JBoss As 7 with guvnor 5.4 - package build error: cannot resolve identifier

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

JBoss As 7 with guvnor 5.4 - package build error: cannot resolve identifier

rodolphio
Hi,

 
I expanded the guvnor.war/WEB-INF/libs with new library demo.jar.

In all rules the access on every Class in demo.jar is possible with x.y.z.DemoClass.

 
But the access to a public subclass in the class x.y.z.DemoClass  x.y.z.DemoClass.DemoSuclass does not work, causes "cannot resolve identifier" on trying to build the package in guvnor.

 
Any idea?

Thanks for your feedback.
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] JBoss As 7 with guvnor 5.4 - package build error: cannot resolve identifier

bharadwaj2012
hi,

You can just upload the pojo model jar from guvnar and add dependency jars if required and build it.

no need to put pojo model jars insideĀ  guvnor.war/WEB-INF/libsĀ 
On Thu, Aug 2, 2012 at 12:17 PM, rodolphio <[hidden email]> wrote:
Hi,


I expanded the guvnor.war/WEB-INF/libs with new library demo.jar.

In all rules the access on every Class in demo.jar is possible with
x.y.z.DemoClass.


But the access to a public subclass in the class x.y.z.DemoClass
x.y.z.DemoClass.DemoSuclass does not work, causes "cannot resolve
identifier" on trying to build the package in guvnor.


Any idea?

Thanks for your feedback.




--
View this message in context: http://drools.46999.n3.nabble.com/JBoss-As-7-with-guvnor-5-4-package-build-error-cannot-resolve-identifier-tp4018984.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] JBoss As 7 with guvnor 5.4 - package build error: cannot resolve identifier

rodolphio
Hi bharadwaj2012,

thanks for your fast reply. I'm aware of the option uploading the jar via guvnor web-interface, but I have to do it the way i described above for several reasons.

Any ideas for my choosed option?
Reply | Threaded
Open this post in threaded view
|

Re: JBoss As 7 with guvnor 5.4 - package build error: cannot resolve identifier

rodolphio
In reply to this post by rodolphio
In the Jboss console, there comes  folloing log entry when recieving error message in guvnor:

09:32:00,299 INFO  [org.jboss.as.controller] (MSC service thread 1-3) Service status report
   New missing/unsatisfied dependencies:
      service jboss.data-source-config.java:jboss/datasources/ExampleDS (missing)

09:32:00,301 INFO  [org.jboss.as.controller] (MSC service thread 1-1) Service status report
   New missing/unsatisfied dependencies:
      service jboss.jndi-view.extension.registry (missing)


Maybe this can help for solving my problem?
Reply | Threaded
Open this post in threaded view
|

Re: JBoss As 7 with guvnor 5.4 - package build error: cannot resolve identifier

rodolphio
In reply to this post by rodolphio
one more issue:

I cant access x.y.z.DemoClass.DemoSuclass, but I can access x.y.z.DemoClass$DemoSuclass.
but then following error occures:

Error: unable to resolve method using strict-mode: org.drools.spi.KnowledgeHelper....


I tried it using
1) upload the demo.jar with the guvnor webinterface
2) by adding demo.jar in guvnor.war/WEB-INF/libs

both options causes th same problem
Reply | Threaded
Open this post in threaded view
|

Re: JBoss As 7 with guvnor 5.4 - package build error: cannot resolve identifier

rodolphio
In reply to this post by rodolphio
I made a new java project using eclipse. In this project I included the demo.jar.
Then I used the x.y.z.DemoClass.DemoSuclass inside the class of this project.
It compiled and run without errors.

So I would say this is a problem which has to be resolved in Guvnor. But how?
Reply | Threaded
Open this post in threaded view
|

Re: JBoss As 7 with guvnor 5.4 - package build error: cannot resolve identifier

rodolphio
In reply to this post by rodolphio
I have now a solution for the problem:

till now, I access the x.y.z.DemoClass.DemoSuclass in a "then" - clause.
Now, I changed the rule accessing the x.y.z.DemoClass.DemoSuclass in the "when" - clause, calling the method from x.y.z.DemoClass.DemoSuclass via a variable declared in the "when" - clause.

That works!


If you have any ideas of why accessing the x.y.z.DemoClass.DemoSuclass in the "then" - clause does not work, please let me know it.