Hi,

I have checked out the muse trunk via SVN today and built it using maven war:webapp and then deployed the filesystem example via ant compile deploy. The guide found in getting_started using Tomcat worked well (although I had to change ports everywhere since my Tomcat runs on 8070 :-( ).

This success made me want to try the deployment on Geronimo... I packed the whole webapp/muse (which includes the filesystem example) into muse.war and deployed it to Geronimo. The deployment itself was successful, however I get an JNDI-related runtime error:

12:45:53,740 DEBUG [XmlBeanJndiUtils] Initializing WSRF JNDI context...
12:45:53,740 DEBUG [XmlBeanJndiUtils] Creating JNDI subcontext: wsrf ...
12:45:53,740 ERROR [[/muse]] Exception sending context initialized event to listener instance of class org.apache.ws.resource.webapp.WsrfServletContextListener java.lang.RuntimeException: Fatal error! Failed to initialize WSRF JNDI context. at org.apache.ws.resource.webapp.WsrfServletContextListener.contextInitialized(WsrfServletContextListener.java:73) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104) at org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:145) 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.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:205) at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke(<generated>)
   at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:719) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:94) at org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$283d235c.addContext(<generated>) at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:317) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:850) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:328) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:111) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:133) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:503) at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:207) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:141) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:503) at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:207) at org.apache.geronimo.kernel.KernelGBean.startRecursiveGBean(KernelGBean.java:72) at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(<generated>)
   at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:754) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:177) at org.apache.geronimo.kernel.jmx.MBeanServerDelegate.invoke(MBeanServerDelegate.java:117) at mx4j.remote.rmi.RMIConnectionInvoker.invoke(RMIConnectionInvoker.java:219)
   at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at mx4j.remote.rmi.RMIConnectionProxy.invoke(RMIConnectionProxy.java:34)
at mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain(RMIConnectionSubjectInvoker.java:99) at mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$000(RMIConnectionSubjectInvoker.java:31) at mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run(RMIConnectionSubjectInvoker.java:90)
   at java.security.AccessController.doPrivileged(Native Method)
   at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
   at mx4j.remote.MX4JRemoteUtils.subjectInvoke(MX4JRemoteUtils.java:163)
at mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInvoke(RMIConnectionSubjectInvoker.java:86) at mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke(RMIConnectionSubjectInvoker.java:80)
   at $Proxy0.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:221)
   at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
   at sun.rmi.transport.Transport$1.run(Transport.java:148)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
   at java.lang.Thread.run(Thread.java:534)
Caused by: javax.naming.OperationNotSupportedException
at com.sun.jndi.rmi.registry.RegistryContext.createSubcontext(RegistryContext.java:221)
   at javax.naming.InitialContext.createSubcontext(InitialContext.java:413)
at org.apache.ws.util.jndi.XmlBeanJndiUtils.initWsrfContext(XmlBeanJndiUtils.java:555) at org.apache.ws.util.jndi.XmlBeanJndiUtils.initJNDI(XmlBeanJndiUtils.java:196) at org.apache.ws.util.jndi.XmlBeanJndiUtils.initFromInputStream(XmlBeanJndiUtils.java:173) at org.apache.ws.resource.webapp.WsrfServletContextListener.contextInitialized(WsrfServletContextListener.java:69)
   ... 59 more
12:45:53,750 ERROR [StandardContext] Error listenerStart
12:45:53,750 ERROR [StandardContext] Context [/muse] startup failed due to previous errors
12:45:53,750 DEBUG [[/muse]] Stopping filters

Any ideas how and where I can set the JNDI properties correctly?

Also, since Geronimo has already its own Axis module included I would like to use this one rather than deploy another one as standalone in the war archive. Which libs are required for this approach? What would really help here would be a Wiki page where I can find some code examples on how to create a Muse (especially WS-N) enabled WS without packing it together with a complete Axis dist...

Thanks.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to