[jboss-user] [JBoss Seam] - Re: Problem injecting drools WorkingMemory

sjmenden do-not-reply at jboss.com
Fri Dec 8 11:22:59 EST 2006


I am following the example as closely as I possibly can.  I can not track seam to track down this problem.

Here is the directory structure of the drools example deployed and my application deployed:

JBoss- seam

EAR contents:

  | drwxr-xr-x 3 root root   4096 Dec  8 11:00 drools
  | drwxr-xr-x 4 root root   4096 Dec  8 11:00 jboss-seam-drools-exp.war
  | -rw-r--r-- 1 root root   3005 Dec  8 11:00 jboss-seam-drools.jar
  | -rw-r--r-- 1 root root 627241 Dec  8 11:00 jboss-seam.jar
  | drwxr-xr-x 2 root root   4096 Dec  8 11:00 lib
  | drwxr-xr-x 2 root root   4096 Dec  8 11:00 META-INF
  | -rw-r--r-- 1 root root    923 Dec  8 11:00 numberguess.drl
  | -rw-r--r-- 1 root root   1026 Dec  8 11:00 pageflow.jpdl.xml
  | 

drools/lib:

  | -rw-r--r-- 1 root root 443432 Dec  8 11:00 antlr-2.7.6.jar
  | -rw-r--r-- 1 root root 546498 Dec  8 11:00 antlr-3.0ea8.jar
  | -rw-r--r-- 1 root root  36846 Dec  8 11:00 commons-jci-core-1.0-406301.jar
  | -rw-r--r-- 1 root root  10802 Dec  8 11:00 commons-jci-janino-2.4.3.jar
  | -rw-r--r-- 1 root root 207723 Dec  8 11:00 commons-lang-2.1.jar
  | -rw-r--r-- 1 root root  26202 Dec  8 11:00 commons-logging-api-1.0.4.jar
  | -rw-r--r-- 1 root root 635207 Dec  8 11:00 drools-compiler-3.0.5.jar
  | -rw-r--r-- 1 root root 550976 Dec  8 11:00 drools-core-3.0.5.jar
  | -rw-r--r-- 1 root root 383546 Dec  8 11:00 janino-2.4.3.jar
  | -rw-r--r-- 1 root root 358843 Dec  8 11:00 stringtemplate-2.3b6.jar
  | 

lib:

  | jbpm-3.1.2.jar
  | 



My Purchasing App 

EAR contents:

  | drwxr-xr-x 3 root root   4096 Dec  8 11:11 drools
  | drwxr-xr-x 4 root root   4096 Dec  8 11:11 purchasing.jar
  | drwxr-xr-x 4 root root   4096 Dec  8 11:11 purchasing.war
  | -rw-r--r-- 1 root root 619971 Dec  8 11:11 jboss-seam.jar
  | -rw-r--r-- 1 root root 600277 Dec  8 11:11 jbpm-3.1.2.jar
  | drwxr-xr-x 2 root root   4096 Dec  8 11:11 META-INF
  | -rw-r--r-- 1 root root    359 Dec  8 11:11 purchasingRules.drl
  | 

drools/lib:

  | -rw-r--r-- 1 root root 443432 Dec  8 11:11 antlr-2.7.6.jar
  | -rw-r--r-- 1 root root 546498 Dec  8 11:11 antlr-3.0ea8.jar
  | -rw-r--r-- 1 root root  36846 Dec  8 11:11 commons-jci-core-1.0-406301.jar
  | -rw-r--r-- 1 root root  10802 Dec  8 11:11 commons-jci-janino-2.4.3.jar
  | -rw-r--r-- 1 root root  26202 Dec  8 11:11 commons-logging-api-1.0.4.jar
  | -rw-r--r-- 1 root root 635207 Dec  8 11:11 drools-compiler-3.0.5.jar
  | -rw-r--r-- 1 root root 550976 Dec  8 11:11 drools-core-3.0.5.jar
  | -rw-r--r-- 1 root root 383546 Dec  8 11:11 janino-2.4.3.jar
  | -rw-r--r-- 1 root root 358843 Dec  8 11:11 stringtemplate-2.3b6.jar
  | 

purchasing.war/WEB-INF/lib:

  | -rw-r--r-- 1 root root  24432 Dec  8 11:11 el-api.jar
  | -rw-r--r-- 1 root root  97471 Dec  8 11:11 el-ri.jar
  | -rw-r--r-- 1 root root   5096 Dec  8 11:11 jboss-seam-debug.jar
  | -rw-r--r-- 1 root root  70709 Dec  8 11:11 jboss-seam-ui.jar
  | -rw-r--r-- 1 root root 291366 Dec  8 11:11 jsf-facelets.jar
  | 



There are a few difference in location, like I have some libs in WEB-INF/lib whereas drools has it in <EAR dir>/lib

I don't think this matters though because I have the correct paths in my application.xml.  My application deploys fine, but the first time I try to access a page which accesses drools I get:


  | 17:16:25,918 ERROR [STDERR] StringTemplate: problem parsing group <unknown>: java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token
  | 17:16:25,919 ERROR [STDERR] java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.
  | 


Do you guys have any pointers whatsoever as to the means that I can debug this problem.  I will, as a last resort, take the drools example and copy all of my files to it and see if that works, but right now I am running a seam-gen project that has a little different dir structure.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992282#3992282

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992282



More information about the jboss-user mailing list