List of jars at my gf:
antlr-2.7.7.jar
antlr-3.3.jar
antlr-runtime-3.3.jar
biz.aQute.bnd-1.45.0.jar
commons-beanutils-1.8.2.jar
commons-beanutils-bean-collections-1.8.2.jar
commons-beanutils-core-1.8.2.jar
commons-collections-3.2.1.jar
commons-io-2.4.jar
commons-lang-2.6.jar
commons-logging-1.1.1.jar
drools-compiler-5.5.0.Final.jar
drools-core-5.5.0.Final.jar
drools-planner-benchmark-5.5.0.Final.jar
drools-planner-core-5.5.0.Final.jar
ecj-3.5.1.jar
empp.jar
emppapi-1.0.0.jar
gson-2.2.2.jar
httpcore-4.0.1.jar
httpcore-nio-4.0.1.jar
icu4j-4.8.1.1.jar
janino-2.5.16.jar
jcommon-1.0.16.jar
jfreechart-1.0.13.jar
joda-time-1.6.jar
jxl-2.6.10.jar
knowledge-api-5.5.0.Final.jar
knowledge-internal-api-5.5.0.Final.jar
log4j-1.2.16.jar
milyn-smooks-javabean-1.1.jar
mvel2-2.1.3.Final.jar
poi-3.8-beta5.jar
sgipapi-1.0.0.jar
slf4j-api-1.6.4.jar
sqljdbc4.jar
stringtemplate-3.2.1.jar
velocity-1.7.jar
xmlpull-1.1.3.1.jar
xstream-1.4.1.jar
2013/3/21 André Fróes <arfmoraes(a)gmail.com>
Hey Geoffrey!
I can implement those later if you like, the optaplanner, I'll publish it
at my server and post link later.
Regarding the versions of artifacts in my glassfish, they were all taken
from the drools-planner-5.5.0-Final lib, I even searched for others jars at
glassfish, but I didn't find any.
I'm also on xtream mailing list searching for a solution, I know this is
not regarding drools itself.
One thing I forgot to mention was my project structure, I don't know if
this can be a problem. I have a project called DP where the drool planner
is at, I generate a jar from it and use it at my main web project, I import
it to web-inf/lib. According to java compile rules, theres no problem with
that, since all required libs are there, but I don't know if that can be a
problem for drools compilation to, if there's any particular detail from
drools that would prevent it to work. Basically is this the structure:
-- DP (java project)
-- Web (this uses the DP project)
2013/3/21 Geoffrey De Smet <ge0ffrey.spam(a)gmail.com>
> Maybe glassfish embeds an older version of xml pull and/or xstream
> and it doesn't support using your own version of those.
>
> Try googling for this error, or asking on the xstream mailing list.
>
> Also, try deploying drools-planner-webexamples-5.5.0.Final.war (=
> optaplanner-webexamples now) from the distribution zip to glassfish and see
> report here how that works out for you (together with the glassfish
> version).
>
> At some point in the future I 'd like to see an arquillian test for
> optaplanner-webexamples [1] to prove that "it just works" on jboss AS,
> jetty, tomcat, glassfish, ...
> I regularly test that it "just works" on jboss AS 7 and openshift.
>
> [1]
>
https://github.com/droolsjbpm/optaplanner/tree/master/optaplanner-webexam...
>
> Op 21-03-13 13:44, André Fróes schreef:
>
> The exception persist. I added the artifact at web project and also
> checked if it was there at the lib when compiled and also checked at
> glassfish lib folder, it is at both places. I still can't figure what is
> the problem with it, it runs perfectly in my mock, as I said before, but is
> not working when invoked by web.
>
> ---------
> SEVERE: Error Rendering View[/protected/crud/planner.xhtml]
> javax.el.ELException: /protected/crud/planner.xhtml:
> com.thoughtworks.xstream.io.StreamException: Cannot create XmlPullParser
> at
> com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:88)
> at
> com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:82)
> at com.sun.faces.facelets.compiler.UILeaf.encodeAll(UILeaf.java:183)
> at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
> at
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
> at
>
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
> at
>
com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105)
> at
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
> at
>
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
> at
>
com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105)
> at
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1757)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760)
> at
>
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402)
> at
>
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
> at
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
> at
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
> at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
> at com.my.proj.view.listener.LoginFilter.doFilter(LoginFilter.java:40)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
> at
>
com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
> at
>
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
> at
>
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
> at java.lang.Thread.run(Thread.java:722)
> Caused by: com.thoughtworks.xstream.io.StreamException: Cannot create
> XmlPullParser
> at
>
com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:60)
> at com.thoughtworks.xstream.XStream.fromXML(XStream.java:895)
> at
> org.drools.planner.config.XmlSolverFactory.configure(XmlSolverFactory.java:87)
> at
> org.drools.planner.config.XmlSolverFactory.configure(XmlSolverFactory.java:77)
> at com.my.proj.planner.plan.ExecutePlan.doPlan(ExecutePlan.java:217)
> at
> com.my.proj.planner.plan.ExecutePlan.planWorkOrders(ExecutePlan.java:206)
> at
> com.my.proj.planner.plan.ExecutePlan.executePlanning(ExecutePlan.java:86)
> at
> com.my.proj.view.controller.crud.PlannerCrud.runPlanner(PlannerCrud.java:187)
> at
>
com.my.proj.view.controller.crud.PlannerCrud.attributeResourceById(PlannerCrud.java:87)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at javax.el.BeanELResolver.invokeMethod(BeanELResolver.java:779)
> at javax.el.BeanELResolver.invoke(BeanELResolver.java:528)
> at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:257)
> at com.sun.el.parser.AstValue.getValue(AstValue.java:134)
> at com.sun.el.parser.AstValue.getValue(AstValue.java:183)
> at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)
> at
> org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50)
> at
> com.sun.faces.facelets.el.ELText$ELTextVariable.writeText(ELText.java:227)
> at
> com.sun.faces.facelets.el.ELText$ELTextComposite.writeText(ELText.java:150)
> at
> com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:85)
> ... 52 more
>
> WARNING: StandardWrapperValve[Faces Servlet]: PWC1406:
> Servlet.service() for servlet Faces Servlet threw exception
> com.thoughtworks.xstream.io.StreamException: Cannot create XmlPullParser
> at
>
com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:60)
> at com.thoughtworks.xstream.XStream.fromXML(XStream.java:895)
> at
> org.drools.planner.config.XmlSolverFactory.configure(XmlSolverFactory.java:87)
> at
> org.drools.planner.config.XmlSolverFactory.configure(XmlSolverFactory.java:77)
> at com.my.proj.planner.plan.ExecutePlan.doPlan(ExecutePlan.java:217)
> at
> com.my.proj.planner.plan.ExecutePlan.planWorkOrders(ExecutePlan.java:206)
> at
> com.my.proj.planner.plan.ExecutePlan.executePlanning(ExecutePlan.java:86)
> at
> com.my.proj.view.controller.crud.PlannerCrud.runPlanner(PlannerCrud.java:187)
> at
>
com.my.proj.view.controller.crud.PlannerCrud.attributeResourceById(PlannerCrud.java:87)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at javax.el.BeanELResolver.invokeMethod(BeanELResolver.java:779)
> at javax.el.BeanELResolver.invoke(BeanELResolver.java:528)
> at javax.el.CompositeELResolver.invoke(CompositeELResolver.java:257)
> at com.sun.el.parser.AstValue.getValue(AstValue.java:134)
> at com.sun.el.parser.AstValue.getValue(AstValue.java:183)
> at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)
> at
> org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50)
> at
> com.sun.faces.facelets.el.ELText$ELTextVariable.writeText(ELText.java:227)
> at
> com.sun.faces.facelets.el.ELText$ELTextComposite.writeText(ELText.java:150)
> at
> com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:85)
> at
> com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:82)
> at com.sun.faces.facelets.compiler.UILeaf.encodeAll(UILeaf.java:183)
> at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
> at
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
> at
>
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
> at
>
com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105)
> at
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
> at
>
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304)
> at
>
com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105)
> at
> javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1757)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1760)
> at
>
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402)
> at
>
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
> at
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
> at
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
> at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
> at
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
> at com.my.proj.view.listener.LoginFilter.doFilter(LoginFilter.java:40)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
> at
>
com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
> at
>
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
> at
>
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
> at java.lang.Thread.run(Thread.java:722)
>
>
> 2013/3/20 Geoffrey De Smet <ge0ffrey.spam(a)gmail.com>
>
>> Check WEB-INF/lib of the build war for the xml pull jar.
>> Op 20-03-13 20:05, André Fróes schreef:
>>
>> Caused by: com.thoughtworks.xstream.io.StreamException: Cannot create
>> XmlPullParser
>> at
>>
com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:60)
>>
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
>
> _______________________________________________
> rules-users mailing
listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>