Can't Execute Drools Insurance example on Apache Tomcat 6.x
-----------------------------------------------------------
Key: JBRULES-1524
URL:
http://jira.jboss.com/jira/browse/JBRULES-1524
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Documentation, drools-brms, Manual
Affects Versions: 4.0.5
Environment: OS: Windows XP Professional SP 2, Apache Tomcat 6.0.13 or 6.0.16,
JDK 1.6 Update 5, JRE 1.6 Update 5
Reporter: Yuriy Drozhdzhal'
Assigned To: Mark Proctor
When I starting BRMS and Insurance example on Apache Tomcat 6.0.16, filling correctly all
fields and press continue button then Insurance application stop working and I got error
on Apache Tomcat 6.0.16 console screen with next lines:
22 схЁ 2008 12:39:16 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: C
:\Program
Files\Java\jdk1.6.0_05\jre\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
Files\Far;C:\WINDOWS\system32;C:\WINDOWS;
C:\WINDOWS\System32\Wbem;C:\Program Files\WinRAR;%JAVA_HOME%\bin;C:\bin;C:\Program
Files\Araxis\Araxis Merge v6.5\;C:\ant\bin;C:\Program Files\FlexMod
ule;%JRE_HOME%\bin;C:\nant\bin;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727; C:\Program
Files\Subversion\bin;C:\Program Files\QuickTime\QTSystem\;D:\
MySQL\bin;C:\php;C:\Program Files\Microsoft SQL
Server\80\Tools\BINN;C:\maven\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
F
iles\WinRAR;%JAVA_HOME%\bin;C:\bin;C:\Program Files\Araxis\Araxis Merge
v6.5\;C:\ant\bin;C:\Program Files\FlexModule;%JRE_HOME%\bin;C:\nant\bin;C:\WIN
DOWS\Microsoft.NET\Framework\v2.0.50727; C:\Program Files\Subversion\bin;C:\Program
Files\QuickTime\QTSystem\;D:\MySQL\bin;C:\php;C:\Program Files\Mic
rosoft SQL Server\80\Tools\BINN;C:\Program Files\Common Files\Ahead\Lib\;C:\Program
Files\Common Files\Ahead\Lib\
22 схЁ 2008 12:39:16 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
22 схЁ 2008 12:39:16 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 706 ms
log4j:WARN No appenders could be found for logger (org.objectweb.jotm.jta).
log4j:WARN Please initialize the log4j system properly.
22 схЁ 2008 12:39:16 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
22 схЁ 2008 12:39:16 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
22 схЁ 2008 12:39:17 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.jboss.seam.servlet.SeamListener" is already configured
for this context. The duplicate definition has been ignored.
22 схЁ 2008 12:39:24 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
22 схЁ 2008 12:39:24 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
22 схЁ 2008 12:39:24 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
22 схЁ 2008 12:39:24 org.apache.catalina.startup.Catalina start
INFO: Server startup in 8538 ms
ERROR 22-03 12:39:24,767 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
RuleAgent(insuranceconfig) INFO (Sat Mar 22 12:39:39 EET 2008): Configuring with
newInstance=true, secondsToRefresh=30
RuleAgent(insuranceconfig) INFO (Sat Mar 22 12:39:39 EET 2008): Configuring package
provider : URLScanner monitoring URLs:
http://localhost:8080/droo
ls-jbrms/org.drools.brms.JBRMS/package/org.acme.insurance.base/InsuranceDemo
ERROR 22-03 12:39:40,336 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
PackageName: org.acme.insurance.base
PackageVersion: InsuranceDemo
PackageIsLatest: false
ERROR 22-03 12:39:40,398 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
RuleAgent(insuranceconfig) EXCEPTION (Sat Mar 22 12:39:40 EET 2008):
org.drools.rule.VariableRestriction$VariableContextEntry; local class incompatibl
e: stream classdesc serialVersionUID = 4315261080934628448, local class serialVersionUID =
-2458845645553055486. Stack trace should follow.
java.io.InvalidClassException: org.drools.rule.VariableRestriction$VariableContextEntry;
local class incompatible: stream classdesc serialVersionUID =
4315261080934628448, local class serialVersionUID = -2458845645553055486
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at java.util.ArrayList.readObject(ArrayList.java:593)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at java.util.HashMap.readObject(HashMap.java:1030)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at
org.drools.rule.PackageCompilationData.readExternal(PackageCompilationData.java:149)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at org.drools.rule.Package.readExternal(Package.java:176)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at org.drools.agent.HttpClientImpl.fetchPackage(HttpClientImpl.java:59)
at org.drools.agent.URLScanner.readPackage(URLScanner.java:137)
at org.drools.agent.URLScanner.getChangeSet(URLScanner.java:109)
at org.drools.agent.URLScanner.loadPackageChanges(URLScanner.java:88)
at org.drools.agent.RuleAgent.checkForChanges(RuleAgent.java:330)
at org.drools.agent.RuleAgent.refreshRuleBase(RuleAgent.java:298)
at org.drools.agent.RuleAgent.configure(RuleAgent.java:284)
at org.drools.agent.RuleAgent.init(RuleAgent.java:208)
at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:176)
at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:148)
at org.drools.agent.RuleAgent.newRuleAgent(RuleAgent.java:216)
at
org.acme.insurance.web.InsuranceSessionHelper.loadRuleBaseFromRuleAgent(InsuranceSessionHelper.java:26)
at
org.acme.insurance.web.InsuranceSessionHelper.getSession(InsuranceSessionHelper.java:17)
at org.acme.insurance.web.DroolsBusiness.execute(DroolsBusiness.java:46)
at org.acme.insurance.web.InsuranceServlet.doGet(InsuranceServlet.java:24)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
java.lang.IllegalArgumentException: Unknown process ID: insuranceProcess
at
org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1430)
at
org.acme.insurance.web.InsuranceSessionHelper.getSession(InsuranceSessionHelper.java:21)
at org.acme.insurance.web.DroolsBusiness.execute(DroolsBusiness.java:46)
at org.acme.insurance.web.InsuranceServlet.doGet(InsuranceServlet.java:24)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
ERROR 22-03 12:40:10,634 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira