]
Yuriy Drozhdzhal' updated JBRULES-1524:
---------------------------------------
Priority: Critical (was: Major)
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: Manual, Documentation, drools-brms
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
Priority: Critical
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 22:28:09 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\jre1.6.0_05\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
C:\Program Files\QuickTime\QTSystem\;C:\Program Files\FlexModule;C:\Program
Files\FlexModule\jre\bin;C:\Program Files\Java\jdk1.6.0_05\bin;C:\Program
Files\Microsoft SQL
Server\80\Tools\BINN;C:\apache-maven-2.0.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\QuickTime\
QTSystem\;C:\Program Files\FlexModule;C:\Program Files\FlexModule\jre\bin;C:\Program
Files\Java\jdk1.6.0_05\bin;C:\Program Files\Microsoft SQL Server\
80\Tools\BINN;C:\apache-maven-2.0.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\QuickTime\QTSystem\;C:\Program Files\
FlexModule;C:\Program Files\FlexModule\jre\bin;C:\Program
Files\Java\jdk1.6.0_05\bin;C:\Program Files\Microsoft SQL
Server\80\Tools\BINN;%M2_HOME%\bin
;C:\WINDOWS\System32
22 ??? 2008 22:28:09 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
22 ??? 2008 22:28:09 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 828 ms
22 ??? 2008 22:28:09 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
22 ??? 2008 22:28:09 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
22 ??? 2008 22:28:10 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 22:28:17 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "listeners.ContextListener" is already configured for this
context. The duplicate definition has been ignored.
22 ??? 2008 22:28:17 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "listeners.SessionListener" is already configured for this
context. The duplicate definition has been ignored.
ContextListener: attributeAdded('com.sun.faces.config.WebConfiguration',
'com.sun.faces.config.WebConfiguration@10ac2a3')
22 ??? 2008 22:28:18 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
22 ??? 2008 22:28:18 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
22 ??? 2008 22:28:18 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/78 config=null
22 ??? 2008 22:28:18 org.apache.catalina.startup.Catalina start
INFO: Server startup in 9297 ms
ERROR 22-03 22:28:26,500 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
ERROR 22-03 22:28:26,562 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
ERROR 22-03 22:28:26,625 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
ERROR 22-03 22:28:26,625 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
ERROR 22-03 22:28:26,656 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
ERROR 22-03 22:28:26,687 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
ERROR 22-03 22:28:26,734 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
ERROR 22-03 22:28:26,843 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
ERROR 22-03 22:28:27,203 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
ERROR 22-03 22:28:27,406 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
ERROR 22-03 22:28:27,484 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
ERROR 22-03 22:28:27,500 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
RuleAgent(insuranceconfig) INFO (Sat Mar 22 22:28:39 EET 2008): Configuring with
newInstance=true, secondsToRefresh=30
RuleAgent(insuranceconfig) INFO (Sat Mar 22 22:28: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 22:28:40,656 (RulesRepository.java:loadPackageSnapshot:380)
javax.jcr.PathNotFoundException: org.acme.insurance.base
ERROR 22-03 22:28:40,671 (Contexts.java:flushAndDestroyContexts:335) could not
discover transaction status
ERROR 22-03 22:28:40,671 (ContextualHttpServletRequest.java:run:66) ended request
due to exception
org.drools.repository.RulesRepositoryException: javax.jcr.PathNotFoundException:
org.acme.insurance.base
at
org.drools.repository.RulesRepository.loadPackageSnapshot(RulesRepository.java:381)
at
org.drools.brms.server.files.FileManagerUtils.getLastModified(FileManagerUtils.java:217)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at
org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:40)
at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
at
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
at
org.drools.brms.server.files.FileManagerUtils_$$_javassist_2.getLastModified(FileManagerUtils_$$_javassist_2.java)
at
org.drools.brms.server.files.PackageDeploymentServlet.doHead(PackageDeploymentServlet.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
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.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
at
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:46)
at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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(Unknown Source)
Caused by: javax.jcr.PathNotFoundException: org.acme.insurance.base
at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2428)
at
org.drools.repository.RulesRepository.loadPackageSnapshot(RulesRepository.java:376)
... 40 more
RuleAgent(insuranceconfig) WARNING (Sat Mar 22 22:28:40 EET 2008): Was an error
contacting
http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/pa
ckage/org.acme.insurance.base/InsuranceDemo. Reponse header: {null=[HTTP/1.1 500 Internal
Server Error], Date=[Sat, 22 Mar 2008 20:28:40 GMT], Content
-Length=[6078], Content-Type=[text/html;charset=utf-8], Connection=[close],
Server=[Apache-Coyote/1.1]}
RuleAgent(insuranceconfig) EXCEPTION (Sat Mar 22 22:28:40 EET 2008): Was unable to reach
server.. Stack trace should follow.
java.io.IOException: Was unable to reach server.
at org.drools.agent.URLScanner.hasChanged(URLScanner.java:144)
at org.drools.agent.URLScanner.getChangeSet(URLScanner.java:108)
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(Unknown Source)
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(Unknown Source)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: