Hi Elodie,

The reason for this error is resource.properties file not being available in the package 'org.apache.sandesha2.i18n'. Please check weather it is available in the 'mar' file you are using.

Chamikara


On 7/21/06, Mancinelli Elodie <[EMAIL PROTECTED]> wrote:
Hi Chamikara,

Thanks for your explain.

I download the mar and jar last version on link. I change the value of
InOrderInvocation to false in the module.xml.
And now, I have an error, at the start of tomcat.

- Deploying module : sandesha2
- StandardWrapper.Throwable
java.lang.ExceptionInInitializerError
        at org.apache.sandesha2.SandeshaModule.init(SandeshaModule.java:54)
        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)
Caused by: java.util.MissingResourceException : Cannot find resource
'org.apache.sandesha2.i18n.resource'
        at
org.apache.axis2.i18n.ProjectResourceBundle.getBundle(ProjectResourceBundle.java:259)
        at
org.apache.sandesha2.i18n.SandeshaMessageHelper .<clinit>(SandeshaMessageHelper.java:19)
        ... 32 more
- La servlet /axis2 a généré une exception "load()"
java.lang.ExceptionInInitializerError
        at org.apache.sandesha2.SandeshaModule.init (SandeshaModule.java:54)
        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)
Caused by: java.util.MissingResourceException : Cannot find resource
'org.apache.sandesha2.i18n.resource'
        at
org.apache.axis2.i18n.ProjectResourceBundle.getBundle(ProjectResourceBundle.java:259)
        at
org.apache.sandesha2.i18n.SandeshaMessageHelper .<clinit>(SandeshaMessageHelper.java:19)
        ... 32 more

And when I check out the project and I create my mar and jar, I have the
same error. The module seems to not be initiate. I search to resolve the
problem but I don't find the solution. I join you the cataliana log,
there are errors on listeners classes (ContextListener and
SessionListener) but I think it's not the same problem and it don't have
consequences on my problem.

Thanks for your time.

Regards
Elodie


Chamikara Jayalath wrote:

> Hi Elodie,
>
> Please see my comments below.
>
> On 7/19/06, *Mancinelli Elodie* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Hi Chamikara,
>
>     Your solution is correct.  Can you explain me what is this
>     property and
>     why it allows to pass the bug?
>
>
>
> In WSRM the messages that belong to a sequence are numbered starting
> from one. If this InvokeInOrder property is set to true, Sandesha2
> will make sure that the messages get invoked in the order of these
> message numbers. This is a delivery assurance provided by Sadesha2
> which is not a must to comply with the WSRM specification. So you can
> safely set it to false if you do not worry abt ardering. Infact
> disabling this will improve the performance.
>
> In implementation wise, we achieve ordering using a seperate thread.
> If InvokeInORder is set to true, messages will be paused at the RM
> handlers and invocation will be done in the order of message numbers
> using our thread. When a message get paused the current thread get
> returned and the incoming sockets with the client get closed.
>
> The bug is with axis2 not reading the attachments from the stream
> before this closing of the socket.
>
>     Change this property, make other mistake:
>     The problem is when I implement method addressable ( i.e. I define the
>     ReplyTo and AcksTo value for WSRM implementation). I have also the
>     same
>     problem in MTOMRM implementation.
>     These values change with this code:
>     String acksTo =
>     serviceClient.getMyEPR(Constants.TRANSPORT_HTTP ).getAddress();
>     options.setProperty(SandeshaClientConstants.AcksTo,acksTo);
>     and
>     options.setUseSeparateListener(true);
>     In this case, for a RequestResponse method I see only the
>     CreateSequence
>     and the first message, others messages never sent. The client never
>     receive the server response and the  server method is never called.
>
>     For OneWay method, in TCPMon, there are all soap messages, but no
>     server
>     reactions. The  server method is never called.
>
>     Have you an idea?
>
>
>
> I guess this is the bug i fixed yested day. Please try the latest
> SNAPSHOT from
> http://people.apache.org/repository/sandesha2/mars/
>
>
> Chamikara
>
>
>     Thanks for your help.
>
>     Regards,
>
>     Elodie
>
>     Chamikara Jayalath wrote:
>
>     > Hi Elodie,
>     >
>     > I just fixed a bug in Sandesha2 not-in-order case is working
>     properly now.
>     >
>     > Currently MTOM+RM will not work when InOrderInvocation property
>     is set
>     > to true. This is due to a bug in OM  (
>     > https://issues.apache.org/jira/browse/WSCOMMONS-52 ).
>     >
>     > But it perfectly works when InOrderInvocation is set to false. I
>     just
>     > added a test case to sandesha2 to demonstrate this (MTOMRMTest).
>     > Currentlly the code in the test method is commented till the
>     previous
>     > bug is fixed. But it passes when InOrderInvation is disabled.
>     >
>     > Hope this will help you.
>     >
>     > Chamikara
>     >
>     >
>





Reply via email to