Hi: I am testing ws binding for a project; However, I am not having much luck with one of the examples I am testing. I have performed this test on both, Geronimo Tomcat (2.1.3) and WebSphere Application Server Community Edition (2.1.1.1), with the same result. After updating the Geronimo.xml as per https://issues.apache.org/jira/browse/TUSCANY-2622 and deploying the application, I get an exception when I try http://localhost:8080/sample-helloworld-ws-service-webapp/SCA/HelloWorldService?wsdl. Lastly, after installing this app the admin console throws a class cast exception when viewing the installed wars.
Here is my Geronimo.xml <?xml version="1.0" encoding="UTF-8"?> <>web:web-app xmlns:app= "http://geronimo.apache.org/xml/ns/j2ee/application-2.0" xmlns:client= "http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0" xmlns:conn= "http://geronimo.apache.org/xml/ns/j2ee/connector-1.2" xmlns:dep= "http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:ejb= "http://openejb.apache.org/xml/ns/openejb-jar-2.2" xmlns:name= "http://geronimo.apache.org/xml/ns/naming-1.2" xmlns:pers= "http://java.sun.com/xml/ns/persistence" xmlns:pkgen= "http://openejb.apache.org/xml/ns/pkgen-2.1" xmlns:sec= "http://geronimo.apache.org/xml/ns/security-2.0" xmlns:web= "http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"> <dep:environment> <dep:moduleId> <dep:groupId>org.apache.tuscany.sca</dep:groupId> <dep:artifactId>sample-helloworld-ws-service-webapp</ dep:artifactId> <dep:version>1.0:</dep:version> <dep:type>car:</dep:type> </dep:moduleId> <dep:inverse-classloading/> </dep:environment> <web:context-root>demo</web:context-root> </web:web-app> here is the exception I get when i try to get to the wsdl 21:38:29,563 ERROR [[TuscanyServlet]] Servlet.service() for servlet TuscanyServlet threw exception java.lang.NullPointerException at java.lang.String.lastIndexOf(String.java:1654) at java.lang.String.lastIndexOf(String.java:1636) at org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.setContextRoot( TuscanyListingAgent.java:209) at org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.extractServiceName ( TuscanyListingAgent.java:88) at org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.processListService ( TuscanyListingAgent.java:109) at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.doGet( Axis2ServiceServlet.java:258) at javax.servlet.http.HttpServlet.service(.HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(.HttpServlet.java:806) at org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward (WebAppRequestDispatcher.java:107) at org.apache.tuscany.sca.host.webapp.TuscanyServlet.service(. TuscanyServlet.java:64.) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:191) at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke( DefaultSubjectValve.java:56) at org.apache.geronimo.tomcat.GeronimoStandardContext $SystemMethodValve.invoke(GeronimoStandardContext.java:406) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke( GeronimoBeforeAfterValve.java:47) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:109.) at org.apache.catalina.valves.AccessLogValve.invoke( AccessLogValve.java:568.) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process( Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) Here is the exception I get after I install the app in the admin console: 21:56:08,022 ERROR [[WARModules]] Servlet.service() for servlet WARModules threw exception java.lang.ClassCastException: org.apache.geronimo.management.geronimo.WebModule$$EnhancerByCGLIB$ $e01fa7ef$$FastClassByCGLIB$$2f823ac8 at net.sf.cglib.reflect.FastClass$Generator.create(FastClass.java:64) at net.sf.cglib.reflect.FastClass.create(FastClass.java:46) at net.sf.cglib.reflect.FastClass.create(FastClass.java:39) at org.apache.geronimo.kernel.basic.BasicProxyManager $ManagedProxyFactory.<init>(BasicProxyManager.java:203) at org.apache.geronimo.kernel.basic.BasicProxyManager.createProxyFactory(. BasicProxyManager.java:78) at org.apache.geronimo.kernel.basic.BasicProxyManager.createProxy( BasicProxyManager.java:116) at org.apache.geronimo.console.util.KernelManagementHelper.getModuleForConfiguration ( KernelManagementHelper.java:524.) at org.apache.geronimo.console.util.PortletManager.getModule( PortletManager.java:368.) at org.apache.geronimo.console.configmanager.ConfigManagerPortlet.doView( ConfigManagerPortlet.java:230) at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247) at javax.portlet.GenericPortlet.render(GenericPortlet.java:175) at org.apache.pluto.core.PortletServlet.dispatch( PortletServlet.java:208) at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139 ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke( ApplicationDispatcher.java:630) at org.apache.catalina.core.ApplicationDispatcher.doInclude( ApplicationDispatcher.java:535) at org.apache.catalina.core.ApplicationDispatcher.include( ApplicationDispatcher.java:472) at org.apache.pluto.core.DefaultPortletInvokerService.invoke( DefaultPortletInvokerService.java:167) at org.apache.pluto.core.DefaultPortletInvokerService.render( DefaultPortletInvokerService.java:101) at org.apache.pluto.core.PortletContainerImpl.doRender( PortletContainerImpl.java:173) at org.apache.pluto.driver.tags.PortletTag.doStartTag( PortletTag.java:152) at jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService( portlet_002dskin_jsp.java:87) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke( ApplicationDispatcher.java:630) at org.apache.catalina.core.ApplicationDispatcher.doInclude( ApplicationDispatcher.java:535) at org.apache.catalina.core.ApplicationDispatcher.include( ApplicationDispatcher.java:472) at org.apache.jasper.runtime.JspRuntimeLibrary.include( JspRuntimeLibrary.java:968) at jsp.WEB_002dINF.themes.default_002dtheme_jsp._jspx_meth_c_005fforEach_005f0 (default_002dtheme_jsp.java:196) at jsp.WEB_002dINF.themes.default_002dtheme_jsp._jspService( default_002dtheme_jsp.java:101) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke( ApplicationDispatcher.java:630) at org.apache.catalina.core.ApplicationDispatcher.processRequest( ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward( ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward( ApplicationDispatcher.java:302) at org.apache.pluto.driver.PortalDriverServlet.doGet( PortalDriverServlet.java:151) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:191) at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke( DefaultSubjectValve.java:56) at org.apache.catalina.authenticator.AuthenticatorBase.invoke( AuthenticatorBase.java:525) at org.apache.geronimo.tomcat.GeronimoStandardContext $SystemMethodValve.invoke(GeronimoStandardContext.java:406) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke( GeronimoBeforeAfterValve.java:47) at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke( ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:109.) at org.apache.catalina.valves.AccessLogValve.invoke( AccessLogValve.java:568.) at org.apache.catalina.connector.CoyoteAdapter.service( CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process( Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) Angel E. Tomala-Reyes IBM Corporation, Enterprise Initiatives Cloud Computing Enablement Software Engineer 15038 Union Turnpike 8F Flushing, NY 11367 1-877-564-9244 (T/L:3208066)