ws-sandesha-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chamikara Jayalath" <chamikar...@gmail.com>
Subject Re: [Axis2,Sandesha2]MTOM/XOP + WSRM
Date Tue, 04 Jul 2006 11:10:33 GMT
Hi Elliod,

This is because u hv the old Neethi jar in you tomcat lib directory. Remove
this and add the latest Neethi-SNAPSHOT.jar from
http://people.apache.org/repository/ws-commons/jars/


Chamikara


On 7/4/06, Mancinelli Elodie <elodie.mancinelli@bull.net> wrote:
>
> Hi Chamikara,
>
> I chekout Sandesha2 and run maven.
> I take the sandesha2-SNAPSHOT.mar, sandesha2-client-SNAPSHOT.jar et
> sandesha2-SNAPSHOT.jar. I put them on catalina and on the client. Now I
> have an error when I launch catalina. The problem to the
> sandesha2-SNAPSHOT.mar.
>
> - Deploying module : sandesha2
> - StandardWrapper.Throwable
> java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
>         at
> org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(
> RMPolicyProcessor.java:127)
>         at
>
> org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy
> (PropertyManager.java:190)
>         at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java
> :56)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.initModules(
> ConfigurationContextFactory.java:128)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.init(
> ConfigurationContextFactory.java:104)
>         at
>
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:40)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(
> AxisServlet.java:213)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
> :1105)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3915)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
> :759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         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:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> - La servlet /axis2 a généré une exception "load()"
> java.lang.NoClassDefFoundError: org/apache/ws/policy/ExactlyOne
>         at
> org.apache.sandesha2.policy.RMPolicyProcessor.processPolicy(
> RMPolicyProcessor.java:127)
>         at
>
> org.apache.sandesha2.util.PropertyManager.loadPropertiesFromModuleDescPolicy
> (PropertyManager.java:190)
>         at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java
> :56)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.initModules(
> ConfigurationContextFactory.java:128)
>         at
> org.apache.axis2.context.ConfigurationContextFactory.init(
> ConfigurationContextFactory.java:104)
>         at
>
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:40)
>         at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(
> AxisServlet.java:213)
>         at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:182)
>         at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
> :1105)
>         at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at
> org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3915)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
> :759)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         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:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
> I search the class "ExactlyOne" in jars and mar but I don't find. Where
> is it?
> And What is the problem?
>
> Thanks a lot.
>
> Regards
> Elodie
>
>
>
>
>
> Chamikara Jayalath wrote:
>
> > Hi Elodie,
> >
> > This was due to a bug, fixed now. Please take a latest checkout of
> > Sandesha2.
> >
> > Chamikara
> >
> >
> > On 7/3/06, *Mancinelli Elodie* <elodie.mancinelli@bull.net
> > <mailto:elodie.mancinelli@bull.net>> wrote:
> >
> >     Sorry I forget the StackTrace:
> >
> >     java.lang.NullPointerException
> >
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers
> (TerminateSeqMsgProcessor.java:185)
> >
> org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage
> >     (TerminateSeqMsgProcessor.java:128)
> >     org.apache.sandesha2.handlers.SandeshaInHandler.invoke(
> SandeshaInHandler.java:87)
> >     org.apache.axis2.engine.Phase.invoke(Phase.java:381)
> >     org.apache.axis2.engine.AxisEngine.invoke (AxisEngine.java:473)
> >     org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
> >
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> HTTPTransportUtils.java:284)
> >     org.apache.axis2.transport.http.AxisServlet.doPost
> >     (AxisServlet.java:136)
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)</pre>
> >               This error appear in the response at the
> TerminateSequence.
> >
> >     Elodie
> >
> >
> >     Mancinelli Elodie wrote:
> >
> >     > Hi Chamikara,
> >     >
> >     > Thanks you for your help.
> >     >
> >     > I change the 'InvokeInOrder' policy in the module.xml to 'false'
> in
> >     > the sandesha2_1.0 mar.
> >     > And now,I have an other error. I give you the catalina log:
> >     >
> >     > 3 juil. 2006 15:01:45 org.apache.catalina.core.StandardHostValve
> >     custom
> >     > GRAVE: Exception Processing ErrorPage[errorCode=500,
> >     > location=/axis2-web/Error/error500.jsp]
> >     > org.apache.jasper.JasperException: "getOutputStream()" a déjà été
> >     > appelé pour cette réponse
> >     >        at
> >     > org.apache.jasper.servlet.JspServletWrapper.handleJspException
> >     (JspServletWrapper.java:510)
> >     >
> >     >        at
> >     >
> >     org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:387)
> >     >
> >     >        at
> >     > org.apache.jasper.servlet.JspServlet.serviceJspFile
> >     (JspServlet.java:314)
> >     >        at
> >     > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> >     >        at
> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >     >        at
> >     > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> >     (ApplicationFilterChain.java:252)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> >     >
> >     >        at
> >     > org.apache.catalina.core.ApplicationDispatcher.invoke
> >     (ApplicationDispatcher.java:672)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationDispatcher.processRequest(
> ApplicationDispatcher.java:465)
> >     >
> >     >        at
> >     > org.apache.catalina.core.ApplicationDispatcher.doForward
> >     (ApplicationDispatcher.java:398)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.ApplicationDispatcher.forward(
> ApplicationDispatcher.java:301)
> >     >
> >     >        at
> >     > org.apache.catalina.core.StandardHostValve.custom
> >     (StandardHostValve.java:363)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardHostValve.status(
> StandardHostValve.java:284)
> >     >
> >     >        at
> >     > org.apache.catalina.core.StandardHostValve.throwable
> >     (StandardHostValve.java:228)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:134)
> >     >
> >     >        at
> >     > org.apache.catalina.valves.ErrorReportValve.invoke
> >     (ErrorReportValve.java:105)
> >     >
> >     >        at
> >     >
> >     org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
> >     >
> >     >        at
> >     > org.apache.catalina.connector.CoyoteAdapter.service
> >     (CoyoteAdapter.java:148)
> >     >
> >     >        at
> >     >
> >     org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java:869)
> >     >
> >     >        at
> >     >
> >
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> >     (Http11BaseProtocol.java:667)
> >     >
> >     >        at
> >     >
> >     org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
> >     >
> >     >        at
> >     > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> >     (LeaderFollowerWorkerThread.java:80)
> >     >
> >     >        at
> >     >
> >     org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> >     >
> >     >        at java.lang.Thread.run(Thread.java:595)
> >     >
> >     > I search in the mailling list,and I don't find if there is a
> >     solution
> >     > but I find a JIRA
> >     bug(http://issues.apache.org/jira/browse/AXIS2-707).
> >     >
> >     > Have you an idea?
> >     >
> >     > Elodie
> >     >
> >     >
> >     >
> >     >
> >     > Chamikara Jayalath wrote:
> >     >
> >     >> Hi Elodie, Paul,
> >     >>
> >     >> It seems like MTOM + Sandesha2 + NotInOrder case is working.
> >     >> But MTOM + Sadesha2 + InOrder case is not working.
> >     >>
> >     >> When InOrder Invocation is enabled Sandesha2 always pauses the
> >     >> message before its actual invocation and Axis2 closes the
> >     InPutStream
> >     >> when the message get paused and the thread get returned.
> >     >>
> >     >> Because of that the service Impl. get exceptions when tring to
> read
> >     >> the MTOM attachments from the already closed stream. This seems
> >     to be
> >     >> a general problem with message pausing.
> >     >>
> >     >> So Elodie, for now disable InOrder invocation in Sandesha2. To do
> >     >> that change the 'InvokeInOrder' policy in the module.xml to
> >     'false'
> >     >> (this is 'true' by default).
> >     >>
> >     >> Chamikara
> >     >>
> >     >
> >
> >
>
>

Mime
View raw message