Drools Server 5.1.1 - can't run test.jsp

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

Drools Server 5.1.1 - can't run test.jsp

OlliSee
Hi there.

I was trying to setup the Drools Server. As I understand, this is not a server per se, its just the usual Drools with some framework plumbing. But I appreciate not having to do that myself. But I can't get it to work.

I imported the .war file into my Eclipse and tried to deploy it to a few application servers, but it didn't work.
I tried Tomcat 6/7, JBoss AS 4.2.2/4.2.3/5.0.1/5.1.0 (I know, they are just using Tomcat, but I gave it a shot anyway...).

The .war deploys right I guess. But as soon as I try to run the test.jsp, I get a lot of errors.

The log below is from Tomcat 6,...

31.01.2011 10:51:00 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:\Programme\Java\jdk1.6.0_22\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Programme/Java/jre6/bin/client;C:/Programme/Java/jre6/bin;C:/Programme/Java/jre6/lib/i386;C:\Programme\ActiveState Komodo Edit 6\;C:\Programme\Mendeley Desktop\wordPlugin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;%JAVA_HOME%\bin;C:\Programme\QuickTime\QTSystem\;C:\derby\bin
31.01.2011 10:51:00 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:drools-5.1.1-server' did not find a matching property.
31.01.2011 10:51:00 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
31.01.2011 10:51:00 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
31.01.2011 10:51:00 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 616 ms
31.01.2011 10:51:00 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
31.01.2011 10:51:00 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.6
31.01.2011 10:51:01 org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Dokumente und Einstellungen\o.roess\Eigene Dateien\Drools Server Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\drools-5.1.1-server\WEB-INF\lib\servlet-api-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
31.01.2011 10:51:11 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
31.01.2011 10:51:18 org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /kservice/rest
31.01.2011 10:51:18 org.apache.cxf.transport.servlet.CXFServlet updateContext
INFO: Load the bus with application context
31.01.2011 10:51:19 org.apache.cxf.transport.servlet.AbstractCXFServlet replaceDestinationFactory
INFO: Servlet transport factory already registered
31.01.2011 10:51:19 org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8080"]
31.01.2011 10:51:19 org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
31.01.2011 10:51:19 org.apache.catalina.startup.Catalina start
INFO: Server startup in 18193 ms

Maybe there is already something wrong?
Ok then, this happens when I try to navigate to the test.jsp in my browser

31.01.2011 10:55:00 org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
WARNUNG: Interceptor for {http://localhost:8080/drools-server-app/kservice/rest}WebClient has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
        at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:615)
        at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:596)
        at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:241)
        at org.apache.camel.component.cxf.jaxrs.CxfRsProducer.invokeHttpClient(CxfRsProducer.java:129)
        at org.apache.camel.component.cxf.jaxrs.CxfRsProducer.process(CxfRsProducer.java:71)
        at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:104)
        at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:272)
        at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:98)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
        at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:290)
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:202)
        at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:143)
        at org.apache.camel.processor.Pipeline.process(Pipeline.java:78)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
        at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:290)
        at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:202)
        at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
        at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:113)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
        at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
        at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61)
        at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:99)
        at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)
        at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)
        at org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63)
        at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:333)
        at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:304)
        at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:208)
        at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:303)
        at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:171)
        at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:114)
        at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:118)
        at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:135)
        at org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:283)
        at org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:313)
        at org.drools.server.Test.execute(Test.java:68)
        at org.drools.server.Test.send(Test.java:60)
        at org.apache.jsp.test_jsp._jspService(test_jsp.java:77)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:550)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: IOException invoking http://localhost:8080/drools-server-app/kservice/rest/execute: HTTP response '404: Not Found'
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:2058)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2043)
        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:639)
        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
        ... 79 more
Caused by: java.io.IOException: HTTP response '404: Not Found'
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2194)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2134)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1988)
        ... 82 more

Anyone got an idea?
Thanks!
Kind regards
Oliver
Reply | Threaded
Open this post in threaded view
|

Re: Drools Server 5.1.1 - can't run test.jsp

Esteban
Your log is pointing a possible problem:

INFO: validateJarFile(C:\Dokumente und Einstellungen\o.roess\Eigene
Dateien\Drools Server
Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\drools-5.1.1-server\WEB-INF\lib\servlet-api-2.3.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class

You should remove servlet-api-2.3.jar from your webapp.

Best Regards,




XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Tue, Feb 1, 2011 at 5:35 AM, OlliSee <[hidden email]> wrote:

Hi there.

I was trying to setup the Drools Server. As I understand, this is not a
server per se, its just the usual Drools with some framework plumbing. But I
appreciate not having to do that myself. But I can't get it to work.

I imported the .war file into my Eclipse and tried to deploy it to a few
application servers, but it didn't work.
I tried Tomcat 6/7, JBoss AS 4.2.2/4.2.3/5.0.1/5.1.0 (I know, they are just
using Tomcat, but I gave it a shot anyway...).

The .war deploys right I guess. But as soon as I try to run the test.jsp, I
get a lot of errors.

The log below is from Tomcat 6,...


31.01.2011 10:51:00 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:\Programme\Java\jdk1.6.0_22\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Programme/Java/jre6/bin/client;C:/Programme/Java/jre6/bin;C:/Programme/Java/jre6/lib/i386;C:\Programme\ActiveState
Komodo Edit 6\;C:\Programme\Mendeley
Desktop\wordPlugin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;%JAVA_HOME%\bin;C:\Programme\QuickTime\QTSystem\;C:\derby\bin
31.01.2011 10:51:00 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNUNG: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'source' to 'org.eclipse.jst.jee.server:drools-5.1.1-server' did
not find a matching property.
31.01.2011 10:51:00 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
31.01.2011 10:51:00 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
31.01.2011 10:51:00 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 616 ms
31.01.2011 10:51:00 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
31.01.2011 10:51:00 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.6
31.01.2011 10:51:01 org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO: validateJarFile(C:\Dokumente und Einstellungen\o.roess\Eigene
Dateien\Drools Server
Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\drools-5.1.1-server\WEB-INF\lib\servlet-api-2.3.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
31.01.2011 10:51:11 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger
(org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
31.01.2011 10:51:18 org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /kservice/rest
31.01.2011 10:51:18 org.apache.cxf.transport.servlet.CXFServlet
updateContext
INFO: Load the bus with application context
31.01.2011 10:51:19 org.apache.cxf.transport.servlet.AbstractCXFServlet
replaceDestinationFactory
INFO: Servlet transport factory already registered
31.01.2011 10:51:19 org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8080"]
31.01.2011 10:51:19 org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
31.01.2011 10:51:19 org.apache.catalina.startup.Catalina start
INFO: Server startup in 18193 ms


Maybe there is already something wrong?
Ok then, this happens when I try to navigate to the test.jsp in my browser


31.01.2011 10:55:00 org.apache.cxf.phase.PhaseInterceptorChain
doDefaultLogging
WARNUNG: Interceptor for
{<a href="http://localhost:8080/drools-server-app/kservice/rest}WebClient" target="_blank">http://localhost:8080/drools-server-app/kservice/rest}WebClient has thrown
exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
       at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
       at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
       at
org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:615)
       at
org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:596)
       at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:241)
       at
org.apache.camel.component.cxf.jaxrs.CxfRsProducer.invokeHttpClient(CxfRsProducer.java:129)
       at
org.apache.camel.component.cxf.jaxrs.CxfRsProducer.process(CxfRsProducer.java:71)
       at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:104)
       at
org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:272)
       at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:98)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
       at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
       at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:290)
       at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:202)
       at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at org.apache.camel.processor.Pipeline.process(Pipeline.java:143)
       at org.apache.camel.processor.Pipeline.process(Pipeline.java:78)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
       at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
       at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
       at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:290)
       at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:202)
       at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
       at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:113)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
       at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
       at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
       at
org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61)
       at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:99)
       at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)
       at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)
       at
org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63)
       at
org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:333)
       at
org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:304)
       at
org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:208)
       at
org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:303)
       at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:171)
       at
org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:114)
       at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:118)
       at
org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:135)
       at
org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:283)
       at
org.apache.camel.impl.DefaultProducerTemplate.requestBody(DefaultProducerTemplate.java:313)
       at org.drools.server.Test.execute(Test.java:68)
       at org.drools.server.Test.send(Test.java:60)
       at org.apache.jsp.test_jsp._jspService(test_jsp.java:77)
       at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
       at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
       at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
       at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:306)
       at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
       at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
       at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
       at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
       at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
       at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:550)
       at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
       at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)
       at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)
       at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
       at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)
       at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
       at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
       at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: IOException invoking
http://localhost:8080/drools-server-app/kservice/rest/execute: HTTP response
'404: Not Found'
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
       at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
       at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:2058)
       at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:2043)
       at
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
       at
org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:639)
       at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
       ... 79 more
Caused by: java.io.IOException: HTTP response '404: Not Found'
       at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2194)
       at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2134)
       at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1988)
       ... 82 more


Anyone got an idea?
Thanks!
Kind regards
Oliver
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Server-5-1-1-can-t-run-test-jsp-tp2395863p2395863.html
Sent from the Drools - User 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: Drools Server 5.1.1 - can't run test.jsp

OlliSee
HI Esteban,

thanks for your hint.. But it didn't work out.. startup was fine again, now only without that "INFO". But still impossible to run the test.jsp. There's still this single warning ("WARNUNG") in the log. Does that happen to be a problem?

Anyone got ideas?
Reply | Threaded
Open this post in threaded view
|

Re: Drools Server 5.1.1 - can't run test.jsp

JeffMax
I found when I was setting up the server that the default url for posting required two consecutive "kservice/"'s because of the way the web.xml is setup.

It looks like the root of the stack trace is a 404, so I would try posting to http://localhost:8080/drools-server-app/kservice/kservice/rest/execute, or since that is probably being done by the test.jsp, you could try the following:

 In camel-server.xml, change the line that says "address="/kservice/rest" to just "address="/rest".

A while ago I wrote a post that might be of some help, it is not exactly what you are trying to do, but I believe if you were to follow it, it might help with understanding the drools-server.

http://drools-java-rules-engine.46999.n3.nabble.com/Sending-requests-to-the-Drools-Execution-Server-from-an-external-source-td1776466.html

Jeff

Reply | Threaded
Open this post in threaded view
|

Re: Drools Server 5.1.1 - can't run test.jsp

OlliSee
Thank you.
I found the main problem, though.
In the camel-client.xml, the route points to cxfrs://http://localhost:8080/drools-server-app/kservice/rest
but cxfrs://http://localhost:8080/drools-5.1.1-server/kservice/rest is right. Then it works, if I also apply your little hint. Thanks.

Now another question:

Since the instantiated KnowledgeSession is now hidden somewhere. How can I access it from other classes directly (not through the REST interface)? (Like: ksession.insert(event))
Reply | Threaded
Open this post in threaded view
|

Re: Drools Server 5.1.1 - can't run test.jsp

IcedDante
Hang on- I tried making this same change. I copied over the drools-camel-server-5.2.0.Final.WAR file to my Tomcat-5 webapps directory. I am using the droolsjbpm-integration-distribution-5.2.0.Final release here.

I too had the invalid url in my camel-client.xml file so I modified it for my web app:

    <route>
       <from uri="direct://kservice"/>
       <policy ref="droolsPolicy">
         <to uri="cxfrs://http://localhost:8080/drools-camel-server-5.2.0.Final/kservice/rest"/>
       </policy>
    </route>

But it is still not working for me. Here is a snippet of the stacktrace:

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: <batch-execution lookup="ksession1">
  <insert out-identifier="message">
      <org.test.Message>
         <text>Hello World</text>
      </org.test.Message>
   </insert>
</batch-execution>
]
        org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:548)
        ...
        javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

root cause

org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: <batch-execution lookup="ksession1">
  <insert out-identifier="message">
      <org.test.Message>
         <text>Hello World</text>
      </org.test.Message>
   </insert>
</batch-execution>
]
        org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1142)
        ...
        org.drools.server.Test.execute(Test.java:66)
        org.drools.server.Test.send(Test.java:58)
        org.apache.jsp.test_jsp._jspService(test_jsp.java:85)
        ...

root cause

org.apache.camel.CamelExchangeException: No consumers available on endpoint: Endpoint[direct://kservice/rest]. Exchange[Message: <batch-execution lookup="ksession1">
  <insert out-identifier="message">
      <org.test.Message>
         <text>Hello World</text>
      ...


A side question as well on this point: is it bad practice to have the URL embedded in camel-client this way? I guess camel-client should be fixed for the next release. Thx every1.
Reply | Threaded
Open this post in threaded view
|

Re: Drools Server 5.1.1 - can't run test.jsp

marnold
Mr/Ms. IcedDante,

I had the same problem as you.  I resolved it by changing the 'from uri' to "direct://kservice/rest" in camel-client.xml, ie:

   
    <route>
       <from uri="direct://kservice/rest"/>
       <policy ref="droolsPolicy">
         <to uri="cxfrs://http://localhost:8080/drools-camel-server-5.2.0.Final/kservice/rest"/>
       </policy>
    </route>

It's a shame the Drools Server doesn't work as downloaded, and you must make changes simply to have the test page work.

Regards
Reply | Threaded
Open this post in threaded view
|

Re: [rules-users] Drools Server 5.1.1 - can't run test.jsp

salaboy
We can fix that quickly if the community reports those problems..
If you find that kind of issues you can create a jira issue using the
jira jboss portal.

Cheers

On Wed, Dec 14, 2011 at 4:16 AM, marnold <[hidden email]> wrote:

> Mr/Ms. IcedDante,
>
> I had the same problem as you.  I resolved it by changing the 'from uri' to
> "direct://kservice*/rest*" in *camel-client.xml*, ie:
>
>
>
> It's a shame the Drools Server doesn't work as downloaded, and you must make
> changes simply to have the test page work.
>
> Regards
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Drools-Server-5-1-1-can-t-run-test-jsp-tp2395863p3584909.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



--
 - CTO @ http://www.plugtree.com
 - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino "Salaboy" Mauricio -

_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users