rodolphio | 2 Aug 2012 08:47
Picon
Favicon

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

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
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Bharadwaj N | 2 Aug 2012 08:58
Picon

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

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 <m.rindfleisch <at> gameartstudio.de> 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
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
rules-users <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
rodolphio | 2 Aug 2012 09:09
Picon
Favicon

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

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?

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

rodolphio | 2 Aug 2012 09:48
Picon
Favicon

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

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?

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

rodolphio | 2 Aug 2012 11:25
Picon
Favicon

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

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 

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

rodolphio | 2 Aug 2012 11:56
Picon
Favicon

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

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?

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

rodolphio | 2 Aug 2012 14:19
Picon
Favicon

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

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.

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


Gmane