All of my errors seemed to be linked to: - not listing the fully-qualified classname in my web-service.xml <homeInterfaceName> - using * in the allowedMethods tag.
After changing these in the web-service.xml file, I am able to view http://localhost:8080/jboss-net/servlet/AxisServlet and my service creates wsdl. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of John Fawcett Sent: Friday, December 13, 2002 11:45 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] error deploying wsr Thanks for the input. I can access the index.html file just fine. Also, I can access my service via a client similar to the one in the helloEJB example. However, neither http://localhost:8080/jboss-net/servlet/AxisServlet nor http://localhost:8080/jboss-net/services/<servicename>?wsdl respond properly. The error I receive from the latter is quite interesting and attached below. In a fit of desperation, I upgraded to axis1.1beta and made some small tweaks to the jboss-net to enable compilation. The error remained unchanged (error msg 1 listed below). In some other examples I looked at, I saw that the web-service.xml file used <service name="<servicename>" provider="java:EJB"> instead of <service name="<servicename>" provider="Handler"> so I changed my web-servicexml to the former and tried the url again. The error changed to Error msg 2 (listed below). Thank you, Fawce ============= Error msg 1: Sorry, something seems to have gone wrong... here are the details: Fault - WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://ejb.javax'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://ejb.javax'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.: faultActor: null faultNode: null faultDetail: stackTrace: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://ejb.javax'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.: at com.ibm.wsdl.util.xml.DOMUtils.getPrefix(Unknown Source) at com.ibm.wsdl.util.xml.DOMUtils.getQualifiedValue(Unknown Source) at com.ibm.wsdl.util.xml.DOMUtils.printQualifiedAttribute(Unknown Source) at com.ibm.wsdl.xml.WSDLWriterImpl.printParts(Unknown Source) at com.ibm.wsdl.xml.WSDLWriterImpl.printMessages(Unknown Source) at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source) at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source) at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(Unknown Source) at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:269) at org.apache.axis.providers.java.JavaProvider.generateWSDL(JavaProvider.ja va:478) at org.jboss.net.axis.server.EJBProvider.generateWSDL(EJBProvider.java:217) ======================================================================== ======================================================================== ======== Error msg 2: Sorry, something seems to have gone wrong... here are the details: Fault - org.apache.axis.ConfigurationException: java.lang.ClassNotFoundException: MQAdminSession AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.ClassNotFoundException: MQAdminSession faultActor: null faultNode: null faultDetail: stackTrace: java.lang.ClassNotFoundException: MQAdminSession at org.jboss.mx.loading.UnifiedLoaderRepository2.loadClass(UnifiedLoaderRep ository2.java:168) at org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.jav a:271) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:197) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:171) at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:154) at org.apache.axis.providers.java.EJBProvider.getServiceClass(EJBProvider.j ava:227) at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider .java:599) at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAP Service.java:335) at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService. java:507) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDe ployableItem.java:313) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeplo yableItem.java:299) at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment .java:486) at org.apache.axis.configuration.FileProvider.getService(FileProvider.java: 262) at org.apache.axis.AxisEngine.getService(AxisEngine.java:275) at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:310) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j ava:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH andler.java:293) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:581) at org.mortbay.http.HttpContext.handle(HttpContext.java:1687) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon text.java:544) at org.mortbay.http.HttpContext.handle(HttpContext.java:1637) at org.mortbay.http.HttpServer.service(HttpServer.java:875) at org.jboss.jetty.Jetty.service(Jetty.java:543) at org.mortbay.http.HttpConnection.service(HttpConnection.java:806) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:823) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203 ) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743) at java.lang.Thread.run(Thread.java:536) java.lang.ClassNotFoundException: MQAdminSession at org.apache.axis.AxisFault.makeFault(AxisFault.java:127) at org.apache.axis.providers.java.EJBProvider.getServiceClass(EJBProvider.j ava:252) at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvider .java:599) at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAP Service.java:335) at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService. java:507) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDe ployableItem.java:313) at org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeplo yableItem.java:299) at org.apache.axis.deployment.wsdd.WSDDDeployment.getService(WSDDDeployment .java:486) at org.apache.axis.configuration.FileProvider.getService(FileProvider.java: 262) at org.apache.axis.AxisEngine.getService(AxisEngine.java:275) at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:310) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j ava:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH andler.java:293) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:581) at org.mortbay.http.HttpContext.handle(HttpContext.java:1687) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon text.java:544) at org.mortbay.http.HttpContext.handle(HttpContext.java:1637) at org.mortbay.http.HttpServer.service(HttpServer.java:875) at org.jboss.jetty.Jetty.service(Jetty.java:543) at org.mortbay.http.HttpConnection.service(HttpConnection.java:806) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:823) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203 ) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743) at java.lang.Thread.run(Thread.java:536) Caused by: java.lang.ClassNotFoundException: MQAdminSession at org.jboss.mx.loading.UnifiedLoaderRepository2.loadClass(UnifiedLoaderRep ository2.java:168) at org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.jav a:271) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:197) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:171) at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:154) at org.apache.axis.providers.java.EJBProvider.getServiceClass(EJBProvider.j ava:227) ... 27 more -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Bruce Scharlau Sent: Friday, December 13, 2002 10:54 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] error deploying wsr At 13:59 12/12/2002 -0500, you wrote: > > >Hi, > > > >I have a simple session bean that I would like to deploy as a web service. >The bean deploys fine, and passes my client unit tests. I have a >web-service.xml file in a wsr with the following structure: > >tamalemqadmin.wsr/ > > META-INF/ > > web-service.xml > > > >I am running jboss4.0.0alpha on jdk1.4.1. When I start jboss, it gives me >a confirmation that the wsr is deployed. However, when I point my browser >to ><http://localhost:8080/jboss-net/servlet/AxisServlet>http://localhost:8 080/jboss-net/servlet/AxisServlet >I get the error listed below. > > > >Can anyone see where my mistake is? > >Thanks, > >fawce Fawce, a silly question, but does jboss-net come up ok when you go to http://localhost:8080/jboss-net/index.html? Does the basic work ok? in other words. Assuming that it does, then go through the tutorial, which I see you tried in your email to the jboss-dev list. It should work, if you have everything else set up ok. I assumes that you're using jboss-4.0 alpha, which I see you are. The other thing is that you should be able to go to your resource and get it's wsdl file once it's deployed, to find if you've called the right service, etc. That would be: http://localhost:8080/jboss-net/services/<servicename>?wsdl cheers, Bruce Dr. Bruce Scharlau Dept. of Computing Science University of Aberdeen Aberdeen AB24 3UE 01224 272193 http://www.csd.abdn.ac.uk/~bscharla mailto:[EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
