Does Geronimo 3.0.1 with Tomcat 7 and Axis2 supports rest webservices?
Hello, as I want to use rest webservices instead of soap Does Geronimo 3.0.1 with Tomcat 7 and Axis2 supports rest webservices? If not should I instal the Geronimo 3.0.1 with Tomcat 7 instead and use with it one of the following softwares? https://cwiki.apache.org/confluence/display/TUSCANYWIKI/Tuscany+Web+Application+based+Integration+with+Geronimo http://gaswerk.sourceforge.net/ http://servicemix.apache.org/docs/6.x/user/what-is-smx4.html -- View this message in context: http://apache-geronimo.328035.n3.nabble.com/Does-Geronimo-3-0-1-with-Tomcat-7-and-Axis2-supports-rest-webservices-tp3988760.html Sent from the Users mailing list archive at Nabble.com.
ejb webservices
at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 41 more -- View this message in context: http://apache-geronimo.328035.n3.nabble.com/ejb-webservices-tp3985903.html Sent from the Users mailing list archive at Nabble.com.
Re: ejb webservices
) at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:247) at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:126) at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:66) at com.sun.tools.ws.spi.WSToolsObjectFactory.wsgen(WSToolsObjectFactory.java:112) ... 30 more Caused by: java.lang.ClassNotFoundException: org.asteriskjava.manager.ManagerEventListener at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 41 more -- View this message in context: http://apache-geronimo.328035.n3.nabble.com/ejb-webservices-tp3985903.html Sent from the Users mailing list archive at Nabble.com. -- Ivan
WebServices and Spring Injection?
Hi How can I inject Spring Beans into a WebService created through Annotation and deployed through Geronimo. Scott
Re: WebServices and Spring Injection?
On Nov 28, 2009, at 3:47 AM, scot...@iinet.net.au wrote: Hi How can I inject Spring Beans into a WebService created through Annotation and deployed through Geronimo. AFAIK you would have to write the following code for geronimo: 1. A spring integration that makes spring modules a geronimo app type. You might be able to make them integrated in javaee apps by writing a ModuleBuilderExtension that would look for spring plans in an ee module and fire them up. This wouldn't help with standalone modules but might be a good approach for spring apps embedded in ee apps. 2. A DI integration that gets spring components into the java:comp ee component jndi tree and also hooks up the annotation so something like @Resource can refer to a spring component. At this point I don't have an opinion on whether overloading an existing annotation such as @Resource or coming up with an entirely new one is a better approach. If you are interested in working on this I'd suggest considering the osgi blueprint service rather than spring as your target platform and working in geronimo trunk. I think the aries project in the apache incubator may be considering some functionality like this. Also I've seen that Apache James has done some experiments with assembling the server with spring while also using jsr 250 annotations. Are you aware of any other app servers that offer this kind of integration? thanks david jencks Scott
Re: Re: Security and WebServices
Hello David, Thanks for your Response. It runs with the following constellation: 1. Create an own Securityrealm called myRealm 2. using myRealm in geronimo-web.xml 3. Using LoginContext and a custom CallbackHandler which knows the required username and password MyCallbackHandler handler = new MyCallbackHandler(); handler.setUsername( req.getUser() ); handler.setPassword( req.getPass() ); LoginContext loginCtx = new LoginContext(myRealm, handler); loginCtx.login(); Subject s = loginCtx.getSubject(); SetPrincipal principals = s.getPrincipals(); This works fine. But I am wondering about the rolemapping part in geronimo-web.xml. I expected, that the principal users, defined in myRealms Database would be mapped to test1 (See the end of my text for geronimo-web.xml). The GroupPrincipal of the Subject is named users and not test1, as I expected. Does this mechanism only works in combination with security configuration in web.xml? Or is an error in my Configuration? security part in geronimo-web.xml security-realm-namemyrealm/security-realm-name security default-principal realm-name=myrealm principal name=anonymous class=org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal/ /default-principal role-mappings role role-name=test1 realm realm-name=myrealm principal name=users class=org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal/ /realm /role role role-name=test2 realm realm-name=myrealm principal name=admins class=org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal/ /realm /role role role-name=test3 realm realm-name=myrealm principal name=superadmins class=org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal/ /realm /role /role-mappings /security Regards and thanks a lot!! Jochen -Ursprüngliche Nachricht- Von: David Jencks david_jen...@yahoo.com Gesendet: 08.01.09 00:37:51 An: user@geronimo.apache.org Betreff: Re: Security and WebServices On Jan 7, 2009, at 5:03 AM, Jochen Zink wrote: Hello, I want to use geronimos securitysystem together with a JAX-WS 2.1 WebService (WAR-File). My vision ;): - standard security configuration: all URLs like /services/* are secure - Using a standard LoginModule (A Geronimo one or a self written for BinarySecurityTokens) Is it possible to secure a WebService with the standard Securitymechanism or must the application handle the ws-security header? If the application has to handle it, is it possible to get access to a LoginModule and how does this work? Can i check that you want to send the credentials inside the xml message? At the moment we don't have any support for that. In the future it may be possible to handle this with a JASPI authentication module. You can get the credentials yourself and log in to a JAAS realm using org.apache.geronimo.security.ContextManager.login(realmName, callbackHandler) where realmName is the name of a security realm you've set up in geronimo and callbackHandler is a callback handler you've stuffed the credentials into. This will log in and install the user in the geronimo security framework. However if your code to do this is in the application (such as a filter or servlet) you can't use javaee web security constraints because they will have already been evaluated by the time control gets to your auth code. You ought to be able to use javaee ejb security with the logged in Subject although I haven't tested this for problems I haven't thought of. hope this helps. please supply more details if appropriate. I'm running into several similar situations recently and more info on what people would like to be able to do would be great to figure out how to support this. thanks david jencks Thanks a lot! Regards Jochen __ Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!* http://entertainment.web.de/de/entertainment/maxdome/index.html Pt! Schon vom neuen WEB.DE MultiMessenger gehört? Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123
Security and WebServices
Hello, I want to use geronimos securitysystem together with a JAX-WS 2.1 WebService (WAR-File). My vision ;): - standard security configuration: all URLs like /services/* are secure - Using a standard LoginModule (A Geronimo one or a self written for BinarySecurityTokens) Is it possible to secure a WebService with the standard Securitymechanism or must the application handle the ws-security header? If the application has to handle it, is it possible to get access to a LoginModule and how does this work? Thanks a lot! Regards Jochen __ Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!* http://entertainment.web.de/de/entertainment/maxdome/index.html
Re: Security and WebServices
On Jan 7, 2009, at 5:03 AM, Jochen Zink wrote: Hello, I want to use geronimos securitysystem together with a JAX-WS 2.1 WebService (WAR-File). My vision ;): - standard security configuration: all URLs like /services/* are secure - Using a standard LoginModule (A Geronimo one or a self written for BinarySecurityTokens) Is it possible to secure a WebService with the standard Securitymechanism or must the application handle the ws-security header? If the application has to handle it, is it possible to get access to a LoginModule and how does this work? Can i check that you want to send the credentials inside the xml message? At the moment we don't have any support for that. In the future it may be possible to handle this with a JASPI authentication module. You can get the credentials yourself and log in to a JAAS realm using org.apache.geronimo.security.ContextManager.login(realmName, callbackHandler) where realmName is the name of a security realm you've set up in geronimo and callbackHandler is a callback handler you've stuffed the credentials into. This will log in and install the user in the geronimo security framework. However if your code to do this is in the application (such as a filter or servlet) you can't use javaee web security constraints because they will have already been evaluated by the time control gets to your auth code. You ought to be able to use javaee ejb security with the logged in Subject although I haven't tested this for problems I haven't thought of. hope this helps. please supply more details if appropriate. I'm running into several similar situations recently and more info on what people would like to be able to do would be great to figure out how to support this. thanks david jencks Thanks a lot! Regards Jochen __ Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!* http://entertainment.web.de/de/entertainment/maxdome/index.html
Re: Webservices client problem
Thanks all for the support, I solved the problem by downloading axis2 and adding the jars necessary. Then I searched for the same jars in geronimo and it worked flawlessly. The jars necessary are: axiom-api, axiom-dom, axiom-impl, axis2-adb, axis2-java2wsdl, axis2-jaxws, axis2-jaxws-api, axis2-kernel, axis2-metadata, axis2-saaj, wsdl4j, xml-resolver, xmlbeans, commons-codec, commons-httpclient, wstx-asl, neethi. On Tue, Jun 10, 2008 at 10:59 AM, sainath chowdary [EMAIL PROTECTED] wrote: Hi, I tried jaxws-tools.bat by building latest trunk also. Can you please explain me how to use it? May be I am not using it in the right way. On Mon, Jun 9, 2008 at 7:12 PM, Lin Sun [EMAIL PROTECTED] wrote: Hi, Regarding the jaxws-tools.bat prob, it is working in 2.1 trunk when I tried late last week. Might be a limitation in the version of geronimo that you are using. Lin On Mon, Jun 9, 2008 at 6:24 AM, sainath chowdary [EMAIL PROTECTED] wrote: Also if I try running from jaxws-tools.bat utility in server bin directory..then i get a error message like this: Exception in thread main java.lang.NoClassDefFoundError: org/apache/geronimo/c ommon/DeploymentException at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.run(JAXWSToolsCLI.jav a:71) at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.main(JAXWSToolsCLI.ja va:61) Kindly clarify me in this regard On Mon, Jun 9, 2008 at 11:55 AM, sainath chowdary [EMAIL PROTECTED] wrote: I just wanted to give this information to know whether this has any relation with the problem. http://cwiki.apache.org/GMOxDOC21/developing-a-simple-calculator-web-service.html As pointed by the above link, when i start gsh and i type jaxws/wsgen its giving me an error Error: NotFoundException: jaxws/wsgen. Wont it work if I add the geronimo server runtime to the java build path? Isnt there a easy way to build a java client that can access a webservice deployed on server? On Mon, Jun 9, 2008 at 11:33 AM, Jarek Gawor [EMAIL PROTECTED] wrote: You have to figure out what sort of jars you need based on the NoClassDefFoundError exceptions. This error indicates that you need wsdl4j.jar. You might also need to add a few axiom-*.jar, XmlSchema-*.jar, neethi-*.jar, etc. Jarek On Mon, Jun 9, 2008 at 1:49 AM, sainath chowdary [EMAIL PROTECTED] wrote: Ya, Its a standalone client in Java 5. I have added all the jar's from the directory org/apache/axis2 in geronimo installation directory. Now its throwing me a new error Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/xml/WSDLLocator at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) at org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory.java:49) at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:74) at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:69) at org.apache.axis2.jaxws.spi.ServiceDelegate.init(ServiceDelegate.java:87) at org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:45) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) What could be possibly going wrong? On Fri, Jun 6, 2008 at 8:04 PM, Jarek Gawor [EMAIL PROTECTED] wrote: That's a standalone client on Java 5, right? You will need to add a bunch of Axis2 (or CXF depending which engine you want to use) jars to the classpath. For example, for Axis2 you will need to add axis2-jaxws-*.jar, axis2-kernel-*.jar, axis2-saaj-*.jar, and a bunch of others jars. Also, if possible, you could try running the client on Java 6 and not worry about Axis2 or CXF jars since Java 6 has JAX-WS engine built-in. Jarek On Fri, Jun 6, 2008 at 3:41 AM, sainath chowdary [EMAIL PROTECTED] wrote: hi, I have the following code in my java class which basically is trying to access the webservice deployed. --URL url = new URL(http://localhost:8080/jaxws-calculator-1.0/calculator?wsdl ); QName qname = new QName( http://jws.samples.geronimo.apache.org;, Calculator); Service service = Service.create(url, qname); But when i try to run it is a java applicaton I get the following error: Exception in thread main javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.axis2.jaxws.spi.Provider not found at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267)
Re: Webservices client problem
Hi, you can just type jaxws-tools.bat wsgen at the bin directory, and it should list all avail options to you, like below - Usage: wsgen [options] SEI where [options] include: -classpath path specify where to find input class files -cp path same as -classpath path -d directory specify where to place generated output files ... I dont know if it works in 2.2 trunk but it works for me in 2.1 trunk. Lin On Tue, Jun 10, 2008 at 1:29 AM, sainath chowdary [EMAIL PROTECTED] wrote: Hi, I tried jaxws-tools.bat by building latest trunk also. Can you please explain me how to use it? May be I am not using it in the right way. On Mon, Jun 9, 2008 at 7:12 PM, Lin Sun [EMAIL PROTECTED] wrote: Hi, Regarding the jaxws-tools.bat prob, it is working in 2.1 trunk when I tried late last week. Might be a limitation in the version of geronimo that you are using. Lin On Mon, Jun 9, 2008 at 6:24 AM, sainath chowdary [EMAIL PROTECTED] wrote: Also if I try running from jaxws-tools.bat utility in server bin directory..then i get a error message like this: Exception in thread main java.lang.NoClassDefFoundError: org/apache/geronimo/c ommon/DeploymentException at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.run(JAXWSToolsCLI.jav a:71) at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.main(JAXWSToolsCLI.ja va:61) Kindly clarify me in this regard On Mon, Jun 9, 2008 at 11:55 AM, sainath chowdary [EMAIL PROTECTED] wrote: I just wanted to give this information to know whether this has any relation with the problem. http://cwiki.apache.org/GMOxDOC21/developing-a-simple-calculator-web-service.html As pointed by the above link, when i start gsh and i type jaxws/wsgen its giving me an error Error: NotFoundException: jaxws/wsgen. Wont it work if I add the geronimo server runtime to the java build path? Isnt there a easy way to build a java client that can access a webservice deployed on server? On Mon, Jun 9, 2008 at 11:33 AM, Jarek Gawor [EMAIL PROTECTED] wrote: You have to figure out what sort of jars you need based on the NoClassDefFoundError exceptions. This error indicates that you need wsdl4j.jar. You might also need to add a few axiom-*.jar, XmlSchema-*.jar, neethi-*.jar, etc. Jarek On Mon, Jun 9, 2008 at 1:49 AM, sainath chowdary [EMAIL PROTECTED] wrote: Ya, Its a standalone client in Java 5. I have added all the jar's from the directory org/apache/axis2 in geronimo installation directory. Now its throwing me a new error Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/xml/WSDLLocator at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) at org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory.java:49) at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:74) at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:69) at org.apache.axis2.jaxws.spi.ServiceDelegate.init(ServiceDelegate.java:87) at org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:45) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) What could be possibly going wrong? On Fri, Jun 6, 2008 at 8:04 PM, Jarek Gawor [EMAIL PROTECTED] wrote: That's a standalone client on Java 5, right? You will need to add a bunch of Axis2 (or CXF depending which engine you want to use) jars to the classpath. For example, for Axis2 you will need to add axis2-jaxws-*.jar, axis2-kernel-*.jar, axis2-saaj-*.jar, and a bunch of others jars. Also, if possible, you could try running the client on Java 6 and not worry about Axis2 or CXF jars since Java 6 has JAX-WS engine built-in. Jarek On Fri, Jun 6, 2008 at 3:41 AM, sainath chowdary [EMAIL PROTECTED] wrote: hi, I have the following code in my java class which basically is trying to access the webservice deployed. --URL url = new URL(http://localhost:8080/jaxws-calculator-1.0/calculator?wsdl;); QName qname = new QName(http://jws.samples.geronimo.apache.org;, Calculator); Service service = Service.create(url, qname); But when i try to run it is a java applicaton I get the following error: Exception in thread main javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.axis2.jaxws.spi.Provider not found at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138) at
Re: Webservices client problem
This is the error its throwing to me. C:\geronimo-tomcat6-javaee5-2.1\binjaxws-tools.bat wsgen Using GERONIMO_BASE: C:\geronimo-tomcat6-javaee5-2.1 Using GERONIMO_HOME: C:\geronimo-tomcat6-javaee5-2.1 Using GERONIMO_TMPDIR: var\temp Using JRE_HOME:C:\jdk1.5.0_11\jre Exception in thread main java.lang.NoClassDefFoundError: org/apache/geronimo/c ommon/DeploymentException at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.run(JAXWSToolsCLI.jav a:71) at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.main(JAXWSToolsCLI.ja va:61) On Tue, Jun 10, 2008 at 6:59 PM, Lin Sun [EMAIL PROTECTED] wrote: Hi, you can just type jaxws-tools.bat wsgen at the bin directory, and it should list all avail options to you, like below - Usage: wsgen [options] SEI where [options] include: -classpath path specify where to find input class files -cp path same as -classpath path -d directory specify where to place generated output files ... I dont know if it works in 2.2 trunk but it works for me in 2.1 trunk. Lin On Tue, Jun 10, 2008 at 1:29 AM, sainath chowdary [EMAIL PROTECTED] wrote: Hi, I tried jaxws-tools.bat by building latest trunk also. Can you please explain me how to use it? May be I am not using it in the right way. On Mon, Jun 9, 2008 at 7:12 PM, Lin Sun [EMAIL PROTECTED] wrote: Hi, Regarding the jaxws-tools.bat prob, it is working in 2.1 trunk when I tried late last week. Might be a limitation in the version of geronimo that you are using. Lin On Mon, Jun 9, 2008 at 6:24 AM, sainath chowdary [EMAIL PROTECTED] wrote: Also if I try running from jaxws-tools.bat utility in server bin directory..then i get a error message like this: Exception in thread main java.lang.NoClassDefFoundError: org/apache/geronimo/c ommon/DeploymentException at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.run(JAXWSToolsCLI.jav a:71) at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.main(JAXWSToolsCLI.ja va:61) Kindly clarify me in this regard On Mon, Jun 9, 2008 at 11:55 AM, sainath chowdary [EMAIL PROTECTED] wrote: I just wanted to give this information to know whether this has any relation with the problem. http://cwiki.apache.org/GMOxDOC21/developing-a-simple-calculator-web-service.html As pointed by the above link, when i start gsh and i type jaxws/wsgen its giving me an error Error: NotFoundException: jaxws/wsgen. Wont it work if I add the geronimo server runtime to the java build path? Isnt there a easy way to build a java client that can access a webservice deployed on server? On Mon, Jun 9, 2008 at 11:33 AM, Jarek Gawor [EMAIL PROTECTED] wrote: You have to figure out what sort of jars you need based on the NoClassDefFoundError exceptions. This error indicates that you need wsdl4j.jar. You might also need to add a few axiom-*.jar, XmlSchema-*.jar, neethi-*.jar, etc. Jarek On Mon, Jun 9, 2008 at 1:49 AM, sainath chowdary [EMAIL PROTECTED] wrote: Ya, Its a standalone client in Java 5. I have added all the jar's from the directory org/apache/axis2 in geronimo installation directory. Now its throwing me a new error Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/xml/WSDLLocator at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) at org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory.java:49) at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:74) at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:69) at org.apache.axis2.jaxws.spi.ServiceDelegate.init(ServiceDelegate.java:87) at org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:45) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) What could be possibly going wrong? On Fri, Jun 6, 2008 at 8:04 PM, Jarek Gawor [EMAIL PROTECTED] wrote: That's a standalone client on Java 5, right? You will need to add a bunch of Axis2 (or CXF depending which engine you want to use) jars to the classpath. For example, for Axis2 you will need to add axis2-jaxws-*.jar, axis2-kernel-*.jar, axis2-saaj-*.jar, and a bunch of others jars. Also, if possible, you could try running the client on Java 6 and not worry about Axis2 or CXF jars since Java 6 has JAX-WS engine built-in. Jarek
Re: Webservices client problem
Hi Lin, Thanks for the help. I downloaded 2.1.1 from geronimo site and its working flawlessly. On Tue, Jun 10, 2008 at 7:49 PM, Lin Sun [EMAIL PROTECTED] wrote: Right - you are using 2.1 below (I think this is a known prob in 2.1). I am just saying it is fixed in 2.1. trunk now when I tried it last week. Lin On Tue, Jun 10, 2008 at 9:45 AM, sainath chowdary [EMAIL PROTECTED] wrote: This is the error its throwing to me. C:\geronimo-tomcat6-javaee5-2.1\binjaxws-tools.bat wsgen Using GERONIMO_BASE: C:\geronimo-tomcat6-javaee5-2.1 Using GERONIMO_HOME: C:\geronimo-tomcat6-javaee5-2.1 Using GERONIMO_TMPDIR: var\temp Using JRE_HOME:C:\jdk1.5.0_11\jre Exception in thread main java.lang.NoClassDefFoundError: org/apache/geronimo/c ommon/DeploymentException at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.run(JAXWSToolsCLI.jav a:71) at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.main(JAXWSToolsCLI.ja va:61) On Tue, Jun 10, 2008 at 6:59 PM, Lin Sun [EMAIL PROTECTED] wrote: Hi, you can just type jaxws-tools.bat wsgen at the bin directory, and it should list all avail options to you, like below - Usage: wsgen [options] SEI where [options] include: -classpath path specify where to find input class files -cp path same as -classpath path -d directory specify where to place generated output files ... I dont know if it works in 2.2 trunk but it works for me in 2.1 trunk. Lin On Tue, Jun 10, 2008 at 1:29 AM, sainath chowdary [EMAIL PROTECTED] wrote: Hi, I tried jaxws-tools.bat by building latest trunk also. Can you please explain me how to use it? May be I am not using it in the right way. On Mon, Jun 9, 2008 at 7:12 PM, Lin Sun [EMAIL PROTECTED] wrote: Hi, Regarding the jaxws-tools.bat prob, it is working in 2.1 trunk when I tried late last week. Might be a limitation in the version of geronimo that you are using. Lin On Mon, Jun 9, 2008 at 6:24 AM, sainath chowdary [EMAIL PROTECTED] wrote: Also if I try running from jaxws-tools.bat utility in server bin directory..then i get a error message like this: Exception in thread main java.lang.NoClassDefFoundError: org/apache/geronimo/c ommon/DeploymentException at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.run(JAXWSToolsCLI.jav a:71) at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.main(JAXWSToolsCLI.ja va:61) Kindly clarify me in this regard On Mon, Jun 9, 2008 at 11:55 AM, sainath chowdary [EMAIL PROTECTED] wrote: I just wanted to give this information to know whether this has any relation with the problem. http://cwiki.apache.org/GMOxDOC21/developing-a-simple-calculator-web-service.html As pointed by the above link, when i start gsh and i type jaxws/wsgen its giving me an error Error: NotFoundException: jaxws/wsgen. Wont it work if I add the geronimo server runtime to the java build path? Isnt there a easy way to build a java client that can access a webservice deployed on server? On Mon, Jun 9, 2008 at 11:33 AM, Jarek Gawor [EMAIL PROTECTED] wrote: You have to figure out what sort of jars you need based on the NoClassDefFoundError exceptions. This error indicates that you need wsdl4j.jar. You might also need to add a few axiom-*.jar, XmlSchema-*.jar, neethi-*.jar, etc. Jarek On Mon, Jun 9, 2008 at 1:49 AM, sainath chowdary [EMAIL PROTECTED] wrote: Ya, Its a standalone client in Java 5. I have added all the jar's from the directory org/apache/axis2 in geronimo installation directory. Now its throwing me a new error Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/xml/WSDLLocator at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) at org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory.java:49) at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:74) at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:69) at org.apache.axis2.jaxws.spi.ServiceDelegate.init(ServiceDelegate.java:87) at org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:45) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) What
Re: Webservices client problem
You have to figure out what sort of jars you need based on the NoClassDefFoundError exceptions. This error indicates that you need wsdl4j.jar. You might also need to add a few axiom-*.jar, XmlSchema-*.jar, neethi-*.jar, etc. Jarek On Mon, Jun 9, 2008 at 1:49 AM, sainath chowdary [EMAIL PROTECTED] wrote: Ya, Its a standalone client in Java 5. I have added all the jar's from the directory org/apache/axis2 in geronimo installation directory. Now its throwing me a new error Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/xml/WSDLLocator at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) at org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory.java:49) at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:74) at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:69) at org.apache.axis2.jaxws.spi.ServiceDelegate.init(ServiceDelegate.java:87) at org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:45) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) What could be possibly going wrong? On Fri, Jun 6, 2008 at 8:04 PM, Jarek Gawor [EMAIL PROTECTED] wrote: That's a standalone client on Java 5, right? You will need to add a bunch of Axis2 (or CXF depending which engine you want to use) jars to the classpath. For example, for Axis2 you will need to add axis2-jaxws-*.jar, axis2-kernel-*.jar, axis2-saaj-*.jar, and a bunch of others jars. Also, if possible, you could try running the client on Java 6 and not worry about Axis2 or CXF jars since Java 6 has JAX-WS engine built-in. Jarek On Fri, Jun 6, 2008 at 3:41 AM, sainath chowdary [EMAIL PROTECTED] wrote: hi, I have the following code in my java class which basically is trying to access the webservice deployed. --URL url = new URL(http://localhost:8080/jaxws-calculator-1.0/calculator?wsdl;); QName qname = new QName(http://jws.samples.geronimo.apache.org;, Calculator); Service service = Service.create(url, qname); But when i try to run it is a java applicaton I get the following error: Exception in thread main javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.axis2.jaxws.spi.Provider not found at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:125) at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:44) at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:258) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:168) at javax.xml.ws.spi.Provider.provider(Provider.java:32) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) But, when I use the same code to access a web service from a servlet it works fine.. Dont know where i am going wrong. Do we need to specify any other details? Kindly clarify me in this regard -- Sainath Chowdary B.Tech III yr, Spring Semester Electronics Communication Engg Indian Institute of Technology Roorkee -- Sainath Chowdary B.Tech III yr, Spring Semester Electronics Communication Engg Indian Institute of Technology Roorkee
Re: Webservices client problem
I just wanted to give this information to know whether this has any relation with the problem. http://cwiki.apache.org/GMOxDOC21/developing-a-simple-calculator-web-service.html As pointed by the above link, when i start gsh and i type jaxws/wsgen its giving me an error Error: NotFoundException: jaxws/wsgen. Wont it work if I add the geronimo server runtime to the java build path? Isnt there a easy way to build a java client that can access a webservice deployed on server? On Mon, Jun 9, 2008 at 11:33 AM, Jarek Gawor [EMAIL PROTECTED] wrote: You have to figure out what sort of jars you need based on the NoClassDefFoundError exceptions. This error indicates that you need wsdl4j.jar. You might also need to add a few axiom-*.jar, XmlSchema-*.jar, neethi-*.jar, etc. Jarek On Mon, Jun 9, 2008 at 1:49 AM, sainath chowdary [EMAIL PROTECTED] wrote: Ya, Its a standalone client in Java 5. I have added all the jar's from the directory org/apache/axis2 in geronimo installation directory. Now its throwing me a new error Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/xml/WSDLLocator at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) at org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory.java:49) at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:74) at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:69) at org.apache.axis2.jaxws.spi.ServiceDelegate.init(ServiceDelegate.java:87) at org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:45) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) What could be possibly going wrong? On Fri, Jun 6, 2008 at 8:04 PM, Jarek Gawor [EMAIL PROTECTED] wrote: That's a standalone client on Java 5, right? You will need to add a bunch of Axis2 (or CXF depending which engine you want to use) jars to the classpath. For example, for Axis2 you will need to add axis2-jaxws-*.jar, axis2-kernel-*.jar, axis2-saaj-*.jar, and a bunch of others jars. Also, if possible, you could try running the client on Java 6 and not worry about Axis2 or CXF jars since Java 6 has JAX-WS engine built-in. Jarek On Fri, Jun 6, 2008 at 3:41 AM, sainath chowdary [EMAIL PROTECTED] wrote: hi, I have the following code in my java class which basically is trying to access the webservice deployed. --URL url = new URL(http://localhost:8080/jaxws-calculator-1.0/calculator?wsdl;); QName qname = new QName(http://jws.samples.geronimo.apache.org;, Calculator); Service service = Service.create(url, qname); But when i try to run it is a java applicaton I get the following error: Exception in thread main javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.axis2.jaxws.spi.Provider not found at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:125) at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:44) at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:258) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:168) at javax.xml.ws.spi.Provider.provider(Provider.java:32) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) But, when I use the same code to access a web service from a servlet it works fine.. Dont know where i am going wrong. Do we need to specify any other details? Kindly clarify me in this regard -- Sainath Chowdary B.Tech III yr, Spring Semester Electronics Communication Engg Indian Institute of Technology Roorkee -- Sainath Chowdary B.Tech III yr, Spring Semester Electronics Communication Engg Indian Institute of Technology Roorkee -- Sainath Chowdary B.Tech III yr, Spring Semester Electronics Communication Engg Indian Institute of Technology Roorkee
Re: Webservices client problem
Also if I try running from jaxws-tools.bat utility in server bin directory..then i get a error message like this: Exception in thread main java.lang.NoClassDefFoundError: org/apache/geronimo/c ommon/DeploymentException at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.run(JAXWSToolsCLI.jav a:71) at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.main(JAXWSToolsCLI.ja va:61) Kindly clarify me in this regard On Mon, Jun 9, 2008 at 11:55 AM, sainath chowdary [EMAIL PROTECTED] wrote: I just wanted to give this information to know whether this has any relation with the problem. http://cwiki.apache.org/GMOxDOC21/developing-a-simple-calculator-web-service.html As pointed by the above link, when i start gsh and i type jaxws/wsgen its giving me an error Error: NotFoundException: jaxws/wsgen. Wont it work if I add the geronimo server runtime to the java build path? Isnt there a easy way to build a java client that can access a webservice deployed on server? On Mon, Jun 9, 2008 at 11:33 AM, Jarek Gawor [EMAIL PROTECTED] wrote: You have to figure out what sort of jars you need based on the NoClassDefFoundError exceptions. This error indicates that you need wsdl4j.jar. You might also need to add a few axiom-*.jar, XmlSchema-*.jar, neethi-*.jar, etc. Jarek On Mon, Jun 9, 2008 at 1:49 AM, sainath chowdary [EMAIL PROTECTED] wrote: Ya, Its a standalone client in Java 5. I have added all the jar's from the directory org/apache/axis2 in geronimo installation directory. Now its throwing me a new error Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/xml/WSDLLocator at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) at org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory.java:49) at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:74) at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:69) at org.apache.axis2.jaxws.spi.ServiceDelegate.init(ServiceDelegate.java:87) at org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:45) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) What could be possibly going wrong? On Fri, Jun 6, 2008 at 8:04 PM, Jarek Gawor [EMAIL PROTECTED] wrote: That's a standalone client on Java 5, right? You will need to add a bunch of Axis2 (or CXF depending which engine you want to use) jars to the classpath. For example, for Axis2 you will need to add axis2-jaxws-*.jar, axis2-kernel-*.jar, axis2-saaj-*.jar, and a bunch of others jars. Also, if possible, you could try running the client on Java 6 and not worry about Axis2 or CXF jars since Java 6 has JAX-WS engine built-in. Jarek On Fri, Jun 6, 2008 at 3:41 AM, sainath chowdary [EMAIL PROTECTED] wrote: hi, I have the following code in my java class which basically is trying to access the webservice deployed. --URL url = new URL(http://localhost:8080/jaxws-calculator-1.0/calculator?wsdl;); QName qname = new QName(http://jws.samples.geronimo.apache.org;, Calculator); Service service = Service.create(url, qname); But when i try to run it is a java applicaton I get the following error: Exception in thread main javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.axis2.jaxws.spi.Provider not found at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:125) at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:44) at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:258) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:168) at javax.xml.ws.spi.Provider.provider(Provider.java:32) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) But, when I use the same code to access a web service from a servlet it works fine.. Dont know where i am going wrong. Do we need to specify any other details? Kindly clarify me in this regard -- Sainath Chowdary B.Tech III yr, Spring Semester Electronics Communication Engg Indian Institute of Technology Roorkee -- Sainath Chowdary B.Tech III yr, Spring Semester Electronics Communication Engg Indian Institute of Technology Roorkee -- Sainath
Re: Webservices client problem
Hi, Regarding the jaxws-tools.bat prob, it is working in 2.1 trunk when I tried late last week. Might be a limitation in the version of geronimo that you are using. Lin On Mon, Jun 9, 2008 at 6:24 AM, sainath chowdary [EMAIL PROTECTED] wrote: Also if I try running from jaxws-tools.bat utility in server bin directory..then i get a error message like this: Exception in thread main java.lang.NoClassDefFoundError: org/apache/geronimo/c ommon/DeploymentException at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.run(JAXWSToolsCLI.jav a:71) at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.main(JAXWSToolsCLI.ja va:61) Kindly clarify me in this regard On Mon, Jun 9, 2008 at 11:55 AM, sainath chowdary [EMAIL PROTECTED] wrote: I just wanted to give this information to know whether this has any relation with the problem. http://cwiki.apache.org/GMOxDOC21/developing-a-simple-calculator-web-service.html As pointed by the above link, when i start gsh and i type jaxws/wsgen its giving me an error Error: NotFoundException: jaxws/wsgen. Wont it work if I add the geronimo server runtime to the java build path? Isnt there a easy way to build a java client that can access a webservice deployed on server? On Mon, Jun 9, 2008 at 11:33 AM, Jarek Gawor [EMAIL PROTECTED] wrote: You have to figure out what sort of jars you need based on the NoClassDefFoundError exceptions. This error indicates that you need wsdl4j.jar. You might also need to add a few axiom-*.jar, XmlSchema-*.jar, neethi-*.jar, etc. Jarek On Mon, Jun 9, 2008 at 1:49 AM, sainath chowdary [EMAIL PROTECTED] wrote: Ya, Its a standalone client in Java 5. I have added all the jar's from the directory org/apache/axis2 in geronimo installation directory. Now its throwing me a new error Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/xml/WSDLLocator at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) at org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory.java:49) at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:74) at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:69) at org.apache.axis2.jaxws.spi.ServiceDelegate.init(ServiceDelegate.java:87) at org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:45) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) What could be possibly going wrong? On Fri, Jun 6, 2008 at 8:04 PM, Jarek Gawor [EMAIL PROTECTED] wrote: That's a standalone client on Java 5, right? You will need to add a bunch of Axis2 (or CXF depending which engine you want to use) jars to the classpath. For example, for Axis2 you will need to add axis2-jaxws-*.jar, axis2-kernel-*.jar, axis2-saaj-*.jar, and a bunch of others jars. Also, if possible, you could try running the client on Java 6 and not worry about Axis2 or CXF jars since Java 6 has JAX-WS engine built-in. Jarek On Fri, Jun 6, 2008 at 3:41 AM, sainath chowdary [EMAIL PROTECTED] wrote: hi, I have the following code in my java class which basically is trying to access the webservice deployed. --URL url = new URL(http://localhost:8080/jaxws-calculator-1.0/calculator?wsdl;); QName qname = new QName(http://jws.samples.geronimo.apache.org;, Calculator); Service service = Service.create(url, qname); But when i try to run it is a java applicaton I get the following error: Exception in thread main javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.axis2.jaxws.spi.Provider not found at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:125) at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:44) at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:258) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:168) at javax.xml.ws.spi.Provider.provider(Provider.java:32) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) But, when I use the same code to access a web service from a servlet it works fine.. Dont know where i am going wrong. Do we need to specify any other details? Kindly clarify me in this regard -- Sainath
Re: Webservices client problem
Hi, I tried jaxws-tools.bat by building latest trunk also. Can you please explain me how to use it? May be I am not using it in the right way. On Mon, Jun 9, 2008 at 7:12 PM, Lin Sun [EMAIL PROTECTED] wrote: Hi, Regarding the jaxws-tools.bat prob, it is working in 2.1 trunk when I tried late last week. Might be a limitation in the version of geronimo that you are using. Lin On Mon, Jun 9, 2008 at 6:24 AM, sainath chowdary [EMAIL PROTECTED] wrote: Also if I try running from jaxws-tools.bat utility in server bin directory..then i get a error message like this: Exception in thread main java.lang.NoClassDefFoundError: org/apache/geronimo/c ommon/DeploymentException at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.run(JAXWSToolsCLI.jav a:71) at org.apache.geronimo.jaxws.builder.JAXWSToolsCLI.main(JAXWSToolsCLI.ja va:61) Kindly clarify me in this regard On Mon, Jun 9, 2008 at 11:55 AM, sainath chowdary [EMAIL PROTECTED] wrote: I just wanted to give this information to know whether this has any relation with the problem. http://cwiki.apache.org/GMOxDOC21/developing-a-simple-calculator-web-service.html As pointed by the above link, when i start gsh and i type jaxws/wsgen its giving me an error Error: NotFoundException: jaxws/wsgen. Wont it work if I add the geronimo server runtime to the java build path? Isnt there a easy way to build a java client that can access a webservice deployed on server? On Mon, Jun 9, 2008 at 11:33 AM, Jarek Gawor [EMAIL PROTECTED] wrote: You have to figure out what sort of jars you need based on the NoClassDefFoundError exceptions. This error indicates that you need wsdl4j.jar. You might also need to add a few axiom-*.jar, XmlSchema-*.jar, neethi-*.jar, etc. Jarek On Mon, Jun 9, 2008 at 1:49 AM, sainath chowdary [EMAIL PROTECTED] wrote: Ya, Its a standalone client in Java 5. I have added all the jar's from the directory org/apache/axis2 in geronimo installation directory. Now its throwing me a new error Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/xml/WSDLLocator at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) at org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory.java:49) at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:74) at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:69) at org.apache.axis2.jaxws.spi.ServiceDelegate.init(ServiceDelegate.java:87) at org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:45) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) What could be possibly going wrong? On Fri, Jun 6, 2008 at 8:04 PM, Jarek Gawor [EMAIL PROTECTED] wrote: That's a standalone client on Java 5, right? You will need to add a bunch of Axis2 (or CXF depending which engine you want to use) jars to the classpath. For example, for Axis2 you will need to add axis2-jaxws-*.jar, axis2-kernel-*.jar, axis2-saaj-*.jar, and a bunch of others jars. Also, if possible, you could try running the client on Java 6 and not worry about Axis2 or CXF jars since Java 6 has JAX-WS engine built-in. Jarek On Fri, Jun 6, 2008 at 3:41 AM, sainath chowdary [EMAIL PROTECTED] wrote: hi, I have the following code in my java class which basically is trying to access the webservice deployed. --URL url = new URL(http://localhost:8080/jaxws-calculator-1.0/calculator?wsdl ); QName qname = new QName( http://jws.samples.geronimo.apache.org;, Calculator); Service service = Service.create(url, qname); But when i try to run it is a java applicaton I get the following error: Exception in thread main javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.axis2.jaxws.spi.Provider not found at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:125) at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:44) at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:258) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:168) at javax.xml.ws.spi.Provider.provider(Provider.java:32) at
Re: Webservices client problem
Ya, Its a standalone client in Java 5. I have added all the jar's from the directory org/apache/axis2 in geronimo installation directory. Now its throwing me a new error Exception in thread main java.lang.NoClassDefFoundError: javax/wsdl/xml/WSDLLocator at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180) at org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory.java:49) at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:74) at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:69) at org.apache.axis2.jaxws.spi.ServiceDelegate.init(ServiceDelegate.java:87) at org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:45) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) What could be possibly going wrong? On Fri, Jun 6, 2008 at 8:04 PM, Jarek Gawor [EMAIL PROTECTED] wrote: That's a standalone client on Java 5, right? You will need to add a bunch of Axis2 (or CXF depending which engine you want to use) jars to the classpath. For example, for Axis2 you will need to add axis2-jaxws-*.jar, axis2-kernel-*.jar, axis2-saaj-*.jar, and a bunch of others jars. Also, if possible, you could try running the client on Java 6 and not worry about Axis2 or CXF jars since Java 6 has JAX-WS engine built-in. Jarek On Fri, Jun 6, 2008 at 3:41 AM, sainath chowdary [EMAIL PROTECTED] wrote: hi, I have the following code in my java class which basically is trying to access the webservice deployed. --URL url = new URL(http://localhost:8080/jaxws-calculator-1.0/calculator?wsdl;); QName qname = new QName(http://jws.samples.geronimo.apache.org;, Calculator); Service service = Service.create(url, qname); But when i try to run it is a java applicaton I get the following error: Exception in thread main javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.axis2.jaxws.spi.Provider not found at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:125) at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:44) at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:258) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:168) at javax.xml.ws.spi.Provider.provider(Provider.java:32) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) But, when I use the same code to access a web service from a servlet it works fine.. Dont know where i am going wrong. Do we need to specify any other details? Kindly clarify me in this regard -- Sainath Chowdary B.Tech III yr, Spring Semester Electronics Communication Engg Indian Institute of Technology Roorkee -- Sainath Chowdary B.Tech III yr, Spring Semester Electronics Communication Engg Indian Institute of Technology Roorkee
Webservices client problem
hi, I have the following code in my java class which basically is trying to access the webservice deployed. --URL url = new URL( http://localhost:8080/jaxws-calculator-1.0/calculator?wsdl;); QName qname = new QName(http://jws.samples.geronimo.apache.org;, Calculator); Service service = Service.create(url, qname); But when i try to run it is a java applicaton I get the following error: Exception in thread main javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.axis2.jaxws.spi.Provider not found at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:125) at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:44) at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:258) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:168) at javax.xml.ws.spi.Provider.provider(Provider.java:32) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) But, when I use the same code to access a web service from a servlet it works fine.. Dont know where i am going wrong. Do we need to specify any other details? Kindly clarify me in this regard -- Sainath Chowdary B.Tech III yr, Spring Semester Electronics Communication Engg Indian Institute of Technology Roorkee
Re: Webservices client problem
That's a standalone client on Java 5, right? You will need to add a bunch of Axis2 (or CXF depending which engine you want to use) jars to the classpath. For example, for Axis2 you will need to add axis2-jaxws-*.jar, axis2-kernel-*.jar, axis2-saaj-*.jar, and a bunch of others jars. Also, if possible, you could try running the client on Java 6 and not worry about Axis2 or CXF jars since Java 6 has JAX-WS engine built-in. Jarek On Fri, Jun 6, 2008 at 3:41 AM, sainath chowdary [EMAIL PROTECTED] wrote: hi, I have the following code in my java class which basically is trying to access the webservice deployed. --URL url = new URL(http://localhost:8080/jaxws-calculator-1.0/calculator?wsdl;); QName qname = new QName(http://jws.samples.geronimo.apache.org;, Calculator); Service service = Service.create(url, qname); But when i try to run it is a java applicaton I get the following error: Exception in thread main javax.xml.ws.spi.FactoryFinder$ConfigurationError: Provider org.apache.axis2.jaxws.spi.Provider not found at javax.xml.ws.spi.FactoryFinder$2.run(FactoryFinder.java:138) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:125) at javax.xml.ws.spi.FactoryFinder.access$200(FactoryFinder.java:44) at javax.xml.ws.spi.FactoryFinder$3.run(FactoryFinder.java:258) at javax.xml.ws.spi.FactoryFinder.doPrivileged(FactoryFinder.java:267) at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:168) at javax.xml.ws.spi.Provider.provider(Provider.java:32) at javax.xml.ws.Service.init(Service.java:36) at javax.xml.ws.Service.create(Service.java:88) at abc.CalculatorClient.main(CalculatorClient.java:25) But, when I use the same code to access a web service from a servlet it works fine.. Dont know where i am going wrong. Do we need to specify any other details? Kindly clarify me in this regard -- Sainath Chowdary B.Tech III yr, Spring Semester Electronics Communication Engg Indian Institute of Technology Roorkee
Re: NotFoundException doing Webservices tutorial...
You need to do the following (just change the version references to 2.1.1): http://mail-archives.apache.org/mod_mbox/geronimo-user/200803.mbox/[EMAIL PROTECTED] Jarek On Tue, May 13, 2008 at 12:47 PM, [EMAIL PROTECTED] wrote: Hi, I'm running Geronimo 2.1.1 on OS X Leopard under JDK 1.5.0_13 and was following the tutorial at: http://cwiki.apache.org/GMOxDOC21/developing-a-simple-calculator-web-service.html When I get to the step in the tutorial to run jaxws/wsgen to generate the wsdl document and schema definition, I get the following error: ERROR NotFoundException: jaxwsgen/wsgen What do I need to do in order to work through/around this issue? As always, any assistance is greatly appreciated. Thanks, John
NotFoundException doing Webservices tutorial...
Hi, I'm running Geronimo 2.1.1 on OS X Leopard under JDK 1.5.0_13 and was following the tutorial at: http://cwiki.apache.org/GMOxDOC21/developing-a-simple-calculator-web-service.html When I get to the step in the tutorial to run jaxws/wsgen to generate the wsdl document and schema definition, I get the following error: ERROR NotFoundException: jaxwsgen/wsgen What do I need to do in order to work through/around this issue? As always, any assistance is greatly appreciated. Thanks, John
Re: Basic Auth passwords in webservices
djencks wrote: I'm curious as to why. This is AFAIK rather unusual. If you need to propagate the credentials from the caller on to some other service you call that may well be possible without involving your business logic. I know. But the busines logic is not a service, It's actually a call to another server using some proprietary tcp-ip protocol that needs the user and password on each call. Is there any way I can deploy the Custom LoginModule jar within the war/ear? that should work without problems, what is happening that you ask? I made a login.jar file and put it in the WEB-INF/Lib folder but i still got a class not found exception on my custom Principal class when i install my ear file. I got around this by installing the jar file as a Common lib in the repository and declaring a dependency in the geronimo-application.xml, but I would like to avoid this, so i could install all my app using only the Ear file. thanks Thomas Neerup -- View this message in context: http://www.nabble.com/Basic-Auth-passwords-in-webservices-tf4726213s134.html#a13525158 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Webservices problem with JAX-RPC in 1.2?
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Hello, my first try with V1.2 was to deploy my good ol' ws sample. Version 1.1 was refusing to use EJB webservices so I switched to JAX-RPC. At least the war became deployable but not the ear. For now, I tried to deploy the ear which contained the war and a jar file (a session bean). The deploy ended in this: Caused by: org.apache.geronimo.kernel.config.LifecycleException: load of FirefoxWsTest/Ear1_WebApp.war/1.1/car failed at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:294) at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:115) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:281) at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:111) at org.apache.geronimo.deployment.DeploymentContext.createTempConfiguration(DeploymentContext.java:118) ... 43 more Caused by: org.apache.geronimo.kernel.repository.MissingDependencyException: Unable to resolve dependency geronimo/geronimo-webservices//jar at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:123) at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:102) at org.apache.geronimo.kernel.repository.DefaultArtifactResolver$$FastClassByCGLIB$$e847b746.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:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.kernel.repository.ArtifactResolver$$EnhancerByCGLIB$$6cf5d406.resolveInClassLoader(generated) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds(SimpleConfigurationManager.java:466) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst(SimpleConfigurationManager.java:425) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:291) ... 47 more I like the // path ;) I'll try to deploy the war file now. But it seems that there is another bug involved into this :/ Best regards Dirk - -- Kaeto23 HTTP: http://kaeto23.dnsalias.com (german!) Jabber: jabber://[EMAIL PROTECTED]/DS2 Reclaim Your Inbox! http://www.mozilla.org/products/thunderbird/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFm1XKbiSTaBU+G6oRA6sHAJwMSZclJrNl2Zx1Ca8oeB//BU1PQwCfZH6e AAIVNgHfJK78h3Wzr3nnvLA= =nHwe -END PGP SIGNATURE- ___ Der fr�he Vogel f�ngt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
Re: Webservices problem with JAX-RPC in 1.2?
This is not a valid dependency anymore in Geronimo 1.2 (or 2.x): geronimo/geronimo-webservices//jar The groupId has changed for all Geronimo modules. Something like this might get you farther: org.apache.geronimo/geronimo-webservices//jar Though... I'd imagine there are probably a few other changes, but don't hold me to it ;-) Probably need to paste the plan you are using to pick out any other issues. --jason On Jan 2, 2007, at 11:05 PM, Kaeto23 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Hello, my first try with V1.2 was to deploy my good ol' ws sample. Version 1.1 was refusing to use EJB webservices so I switched to JAX-RPC. At least the war became deployable but not the ear. For now, I tried to deploy the ear which contained the war and a jar file (a session bean). The deploy ended in this: Caused by: org.apache.geronimo.kernel.config.LifecycleException: load of FirefoxWsTest/Ear1_WebApp.war/1.1/car failed at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfi guration(SimpleConfigurationManager.java:294) at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConf iguration(DeploymentConfigurationManager.java:115) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfi guration(SimpleConfigurationManager.java:281) at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConf iguration(DeploymentConfigurationManager.java:111) at org.apache.geronimo.deployment.DeploymentContext.createTempConfigurati on(DeploymentContext.java:118) ... 43 more Caused by: org.apache.geronimo.kernel.repository.MissingDependencyException: Unable to resolve dependency geronimo/geronimo-webservices//jar at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveI nClassLoader(DefaultArtifactResolver.java:123) at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveI nClassLoader(DefaultArtifactResolver.java:102) at org.apache.geronimo.kernel.repository.DefaultArtifactResolver$ $FastClassByCGLIB$$e847b746.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:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke (GBeanInstance.java:820) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke (RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke (RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept (ProxyMethodInterceptor.java:96) at org.apache.geronimo.kernel.repository.ArtifactResolver$ $EnhancerByCGLIB$$6cf5d406.resolveInClassLoader(generated) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolvePa rentIds(SimpleConfigurationManager.java:466) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepth First(SimpleConfigurationManager.java:425) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfi guration(SimpleConfigurationManager.java:291) ... 47 more I like the // path ;) I'll try to deploy the war file now. But it seems that there is another bug involved into this :/ Best regards Dirk - -- Kaeto23 HTTP: http://kaeto23.dnsalias.com (german!) Jabber: jabber://[EMAIL PROTECTED]/DS2 Reclaim Your Inbox! http://www.mozilla.org/products/thunderbird/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFm1XKbiSTaBU+G6oRA6sHAJwMSZclJrNl2Zx1Ca8oeB//BU1PQwCfZH6e AAIVNgHfJK78h3Wzr3nnvLA= =nHwe -END PGP SIGNATURE- ___ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
Re: Webservices problem with JAX-RPC in 1.2?
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Hello, Jason thx for your response and your tip. After some try-n-error I got the final solution/dependency: org.apache.geronimo.modules/geronimo-webservices//jar It's good that http://cwiki.apache.org/GMOxDOC12/simple-web-services-sample-application.html was updated to match that changes ;) I keep testing the beta. Best regards Dirk Jason Dillon schrieb: This is not a valid dependency anymore in Geronimo 1.2 (or 2.x): geronimo/geronimo-webservices//jar The groupId has changed for all Geronimo modules. Something like this might get you farther: org.apache.geronimo/geronimo-webservices//jar Though... I'd imagine there are probably a few other changes, but don't hold me to it ;-) Probably need to paste the plan you are using to pick out any other issues. --jason On Jan 2, 2007, at 11:05 PM, Kaeto23 wrote: Hello, my first try with V1.2 was to deploy my good ol' ws sample. Version 1.1 was refusing to use EJB webservices so I switched to JAX-RPC. At least the war became deployable but not the ear. For now, I tried to deploy the ear which contained the war and a jar file (a session bean). The deploy ended in this: Caused by: org.apache.geronimo.kernel.config.LifecycleException: load of FirefoxWsTest/Ear1_WebApp.war/1.1/car failed at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:294) at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:115) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:281) at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadConfiguration(DeploymentConfigurationManager.java:111) at org.apache.geronimo.deployment.DeploymentContext.createTempConfiguration(DeploymentContext.java:118) ... 43 more Caused by: org.apache.geronimo.kernel.repository.MissingDependencyException: Unable to resolve dependency geronimo/geronimo-webservices//jar at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:123) at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:102) at org.apache.geronimo.kernel.repository.DefaultArtifactResolver$$FastClassByCGLIB$$e847b746.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:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.kernel.repository.ArtifactResolver$$EnhancerByCGLIB$$6cf5d406.resolveInClassLoader(generated) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds(SimpleConfigurationManager.java:466) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst(SimpleConfigurationManager.java:425) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:291) ... 47 more I like the // path ;) I'll try to deploy the war file now. But it seems that there is another bug involved into this :/ Best regards Dirk ___ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de - -- Kaeto23 HTTP: http://kaeto23.dnsalias.com (german!) Jabber: jabber://[EMAIL PROTECTED]/DS2 Reclaim Your Inbox! http://www.mozilla.org/products/thunderbird/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFm2IqbiSTaBU+G6oRA/+6AJwOPD2SLJ9PsvbhytqlYD4e2eSZuwCfZXfI OH0LQ06+iDTWVR+vOkoWDO4= =v4n9 -END PGP SIGNATURE- ___ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Re: Geronimo Tomcat vs. EJB Webservices
Hi Dirk, First that I've seen of this sort... I'd say a Jira is definitely in order... This is 1.1, correct? --kevan On Jul 18, 2006, at 1:17 AM, D. Strauss wrote: Hello, geronimo users, as I'm trying to investigate a problem with Geronimo tomcat and webservices, I want to know if you encountered some strange behaviour. Something like: Retrieving document at 'META-INF/wsdl/firefox.wsdl'. 06:59:41,443 INFO [ContextConfig] Missing application web.xml, using defaults only StandardEngine[Geronimo].StandardHost[localhost].StandardContext[/ services/FxWSEP] 06:59:47,553 WARN [AxisWebServiceContainer] AxisFault: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: Premature end of file. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException (Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError (Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse (Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at org.apache.axis.encoding.DeserializationContext.parse (DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java: 696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.geronimo.axis.server.AxisWebServiceContainer.invoke (AxisWebServiceContainer.java:112) at org.apache.geronimo.tomcat.TomcatEJBWebServiceContext $EJBWebServiceValve.invoke(TomcatEJBWebServiceContext.java:159) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:541) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke (ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection (ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt (ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) {http://xml.apache.org/axis/}hostname:cerberus org.xml.sax.SAXParseException: Premature end of file. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java: 701) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.geronimo.axis.server.AxisWebServiceContainer.invoke (AxisWebServiceContainer.java:112) at org.apache.geronimo.tomcat.TomcatEJBWebServiceContext $EJBWebServiceValve.invoke(TomcatEJBWebServiceContext.java:159) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:541) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke (ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection (ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt (ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException (Unknown
Re: Geronimo Tomcat vs. EJB Webservices
Hello, Kevan yes, it is. I'll file a jira entry. Best regards Dirk Kevan Miller schrieb: Hi Dirk, First that I've seen of this sort... I'd say a Jira is definitely in order... This is 1.1, correct? --kevan On Jul 18, 2006, at 1:17 AM, D. Strauss wrote: Hello, geronimo users, as I'm trying to investigate a problem with Geronimo tomcat and webservices, I want to know if you encountered some strange behaviour. Something like: Retrieving document at 'META-INF/wsdl/firefox.wsdl'. 06:59:41,443 INFO [ContextConfig] Missing application web.xml, using defaults only StandardEngine[Geronimo].StandardHost[localhost].StandardContext[/services/FxWSEP] 06:59:47,553 WARN [AxisWebServiceContainer] AxisFault: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: Premature end of file. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.geronimo.axis.server.AxisWebServiceContainer.invoke(AxisWebServiceContainer.java:112) at org.apache.geronimo.tomcat.TomcatEJBWebServiceContext$EJBWebServiceValve.invoke(TomcatEJBWebServiceContext.java:159) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) {http://xml.apache.org/axis/}hostname:cerberus org.xml.sax.SAXParseException: Premature end of file. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.geronimo.axis.server.AxisWebServiceContainer.invoke(AxisWebServiceContainer.java:112) at org.apache.geronimo.tomcat.TomcatEJBWebServiceContext$EJBWebServiceValve.invoke(TomcatEJBWebServiceContext.java:159) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused
Geronimo Tomcat vs. EJB Webservices
Hello, geronimo users, as I'm trying to investigate a problem with Geronimo tomcat and webservices, I want to know if you encountered some strange behaviour. Something like: Retrieving document at 'META-INF/wsdl/firefox.wsdl'. 06:59:41,443 INFO [ContextConfig] Missing application web.xml, using defaults only StandardEngine[Geronimo].StandardHost[localhost].StandardContext[/services/FxWSEP] 06:59:47,553 WARN [AxisWebServiceContainer] AxisFault: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: Premature end of file. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.geronimo.axis.server.AxisWebServiceContainer.invoke(AxisWebServiceContainer.java:112) at org.apache.geronimo.tomcat.TomcatEJBWebServiceContext$EJBWebServiceValve.invoke(TomcatEJBWebServiceContext.java:159) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) {http://xml.apache.org/axis/}hostname:cerberus org.xml.sax.SAXParseException: Premature end of file. at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:701) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.geronimo.axis.server.AxisWebServiceContainer.invoke(AxisWebServiceContainer.java:112) at org.apache.geronimo.tomcat.TomcatEJBWebServiceContext$EJBWebServiceValve.invoke(TomcatEJBWebServiceContext.java:159) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source
Re: Creating webservices for Geronimo 1.1 - fixed
You need to create a Jira account for yourself and then log in. Apparently, only logged in users can create issues for Geronimo. Thanks, Aaron On 6/21/06, D. Strauss [EMAIL PROTECTED] wrote: Hello, David (OT: thx to a wonderful mail server who dropped any responses to my request I have to start a new thread ...) Last time we talked about an issue about creating a EJB webservice. It ended in a stacktrace saying that there was a problem finding the webcontainer for it. You mentioned that I had to add a dependency for the webcontainer - and it worked ^^ So you may update the docs. The working version looks like: ?xml version=1.0 encoding=UTF-8 standalone=no? openejb-jar xmlns=http://www.openejb.org/xml/ns/openejb-jar-2.1; xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.1;!--Created by XD5-- dep:environment dep:moduleId dep:groupIdFirefoxWsTest/dep:groupId dep:artifactIdEjb1/dep:artifactId dep:version1.1/dep:version dep:typejar/dep:type /dep:moduleId dep:dependencies dep:dependency dep:groupIdgeronimo/dep:groupId dep:artifactIdjetty/dep:artifactId dep:version1.1/dep:version dep:typecar/dep:type /dep:dependency /dep:dependencies /dep:environment enterprise-beans session ejb-nameWSEP/ejb-name local-jndi-nameejb/ds2/firefox/WSEP/local-jndi-name web-service-address/services/FxWSEP/web-service-address /session /enterprise-beans /openejb-jar My last problem here is: how to create an issue with JIRA for the project geronimo? When creating a new issue JIRA asks for the project. In the list there are some projects but funnily no project named geronimo :/ is this good or bad? ;) Best regards Dirk
Creating Webservices with 1.1
Hello, everyone, thx to the new startup script Geronimo 1.1 has now no real problems booting here on my server. My first task was to create a EJB jar that contains a simple webservice. And that brings me to the problem: Geronimo accepts my openejb-jar.xml with the new dependency system without any problems. But on final deploy I get a lot of exceptions telling me that there was a problem with my webcontainer. A lot of stacktraces and errors where I have to give up :/ So, what do I have to know about creating webservices with Geronimo using the new 1.1 release? Do I have to say Geronimo which webcontainer I want to use? Any tutorial or documentation would be great ^^ Best regards Dirk Some more info that could be removed in future replies: Retrieving document at 'META-INF/wsdl/myws.wsdl'. org.apache.geronimo.kernel.config.LifecycleException: start of GeronimoWsTest/WsEjb/1.0/jar failed at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:529) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:493) at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.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:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$24d8c2a6.startConfiguration(generated) at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unable to resolve reference WebServiceContainer in gbean GeronimoWsTest/ at org.apache.geronimo.kernel.config.ConfigurationUtil.preprocessGBeanData(ConfigurationUtil.java:305) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:359) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:512) ... 12 more Caused by: org.apache.geronimo.kernel.GBeanNotFoundException: No matches for referencePatterns: [?name=JettyWebContainer#] at org.apache.geronimo.kernel.config.Configuration.findGBeanData(Configuration.java:661) at org.apache.geronimo.kernel.config.Configuration.findGBean(Configuration.java:632) at org.apache.geronimo.kernel.config.Configuration.findGBean(Configuration.java:627) at org.apache.geronimo.kernel.config.ConfigurationUtil.preprocessGBeanData(ConfigurationUtil.java:303) ... 15 more 16:57:31,539 INFO [DirectoryMonitor] Hot deployer notified that an artifact was removed: GeronimoWsTest/WsEjb/1.0/jar Just another note: is or was cwiki.apache.org offline on saturday and sunday? Or is my ISP blocking the access to it? I couldn't get any route to it :/
Re: Creating Webservices with 1.1
I think this is somewhere between a bug and a known problem that I forgot to document. I think you have to include a dependency on the web container car in the environment.dependencies section of your plan, something like this: dependency groupIdgeronimo/groupId artifactIdjetty/artifactId version1.1/version typecar/type /dependency A bug report saying if this fixed the problem would be helpful. thanks david jencks --- D. Strauss [EMAIL PROTECTED] wrote: Hello, everyone, thx to the new startup script Geronimo 1.1 has now no real problems booting here on my server. My first task was to create a EJB jar that contains a simple webservice. And that brings me to the problem: Geronimo accepts my openejb-jar.xml with the new dependency system without any problems. But on final deploy I get a lot of exceptions telling me that there was a problem with my webcontainer. A lot of stacktraces and errors where I have to give up :/ So, what do I have to know about creating webservices with Geronimo using the new 1.1 release? Do I have to say Geronimo which webcontainer I want to use? Any tutorial or documentation would be great ^^ Best regards Dirk Some more info that could be removed in future replies: Retrieving document at 'META-INF/wsdl/myws.wsdl'. org.apache.geronimo.kernel.config.LifecycleException: start of GeronimoWsTest/WsEjb/1.0/jar failed at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:529) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:493) at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.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:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$24d8c2a6.startConfiguration(generated) at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unable to resolve reference WebServiceContainer in gbean GeronimoWsTest/ at org.apache.geronimo.kernel.config.ConfigurationUtil.preprocessGBeanData(ConfigurationUtil.java:305) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:359) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:512) ... 12 more Caused by: org.apache.geronimo.kernel.GBeanNotFoundException: No matches for referencePatterns: [?name=JettyWebContainer#] at org.apache.geronimo.kernel.config.Configuration.findGBeanData(Configuration.java:661) at org.apache.geronimo.kernel.config.Configuration.findGBean(Configuration.java:632) at org.apache.geronimo.kernel.config.Configuration.findGBean(Configuration.java:627) at org.apache.geronimo.kernel.config.ConfigurationUtil.preprocessGBeanData(ConfigurationUtil.java:303) ... 15 more 16:57:31,539 INFO [DirectoryMonitor] Hot deployer notified that an artifact was removed: GeronimoWsTest/WsEjb/1.0/jar Just another note: is or was cwiki.apache.org offline on saturday and sunday? Or is my ISP blocking the access to it? I couldn't get any route to it :/
Re: WEBSERVICES problem
OK, can you file a bug for this? I'm not too familiar with the Axis code myself, but it seems clear that extra slashes are getting inserted here and there. http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10220 Thanks, Aaron On 2/6/06, Phani Madgula [EMAIL PROTECTED] wrote: Hi Aaron, Thanks for reply. I have added the following tags in openejb-jar.xml to bind the service to a different URL than what is specified in wsdl file. enterprise-beans session ejb-nameHelloBean/ejb-name jndi-nameHelloBean/jndi-name web-service-address/RAMESH/Hello/web-service-address /session /enterprise-beans where as my wsdl file contains port name=HelloPort binding=tns:HelloBinding soap:address location=http://localhost:8080/TestEJB/Hello//port In either case, the extra '/' is being generated while using Dynamic Proxy client. Contacting webservice at http://localhost:8080/RAMESH/Hello?wsdl Exception in thread main javax.xml.rpc.ServiceException: Error processing WSDL document: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/RAMESH/Hello/?wsdl at org.apache.axis.client.Service.initService (Service.java:250) at org.apache.axis.client.Service.init(Service.java:165) at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198) at HelloClient.main(HelloClient.java :27) Even while viewing wsdl from a browser window, at the URL 'http://localhost:8080/TestEJB/Hello?wsdl;, the extra '/' is getting appended. Thanks phani On 2/6/06, Aaron Mulder [EMAIL PROTECTED] wrote: I was able to get a web services reference (service-ref) from a web app to connect to an EJB exposed as a web service in Geronimo 1.0 when working through some tests for my web services chapter at: http://chariotsolutions.com/geronimo/web-services.html However, I did not try a dynamic proxy client. I did notice that a servlet web service got an extra slash in the URL it generated in the WSDL, though in my case it was after the port not at the end of the name. Perhaps this is related? If you look at the WSDL file at the URL http://localhost:8080/TestEJB/Hello?wsdl (NOTE: not your original copy of the WSDL, but specifically look at the copy at that URL), does the service URL have the extra slash in it? If so, that's likely the problem, and possibly related to the slash problem I had, which I recorded at: http://issues.apache.org/jira/browse/GERONIMO-1584 In any case, to work around this, you might try adding a web-service-address element to your EJB configuration in openejb-jar.xml and see if you can provide an explicit value there that might override the auto-generated one with the extra slash. (Also, of course, make sure you don't have a web-service-address there already that has a slash on the end.) Thanks, Aaron On 2/5/06, Phani Madgula [EMAIL PROTECTED] wrote: Hi I have deployed a WEBSERVICE implemented using an EJB, and facing a problem while accessing through Dynamic Proxy client. The client is as follows. String urlstr = http://localhost:8080/TestEJB/Hello?wsdl ; String argument = phani; System.out.println(Contacting webservice at + urlstr); URL url = new URL(urlstr); QName qname = new QName(http://hello.phani.org/;, HelloService); ServiceFactory factory = ServiceFactory.newInstance (); Serviceservice = factory.createService(url, qname); Hello hello = (Hello) service.getPort(Hello.class); System.out.println(hello.hello ( + argument + )); System.out.println(output: + hello.hello(argument)); The error is Contacting webservice at http://localhost:8080/TestEJB/Hello?wsdl Exception in thread main javax.xml.rpc.ServiceException: Error processing WSDL document: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/TestEJB/Hello/?wsdl at org.apache.axis.client.Service.initService (Service.java:250) at org.apache.axis.client.Service .init(Service.java:165) at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198) at HelloClient.main(HelloClient.java :27) If we can observe the error trace, a '/' is getting appended for the URL http://localhost:8080/TestEJB/Hello; and making it http://localhost:8080/TestEJB/Hello/?wsdl . It is not happening for WEBSERVICE implemented using a servlet. The WSDL is as follows. ?xml version=1.0 encoding=UTF-8? definitions name=HelloService targetNamespace=http://hello.phani.org/; xmlns:tns=http://hello.phani.org/ xmlns= http://schemas.xmlsoap.org/wsdl/; xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:soap=
WEBSERVICES problem
Hi I have deployed a WEBSERVICE implemented using an EJB, and facing a problem while accessing through Dynamic Proxy client. The client is as follows. String urlstr =http://localhost:8080/TestEJB/Hello?wsdl; String argument =phani; System.out.println(Contacting webservice at + urlstr); URL url ="" new URL(urlstr); QName qname = new QName(http://hello.phani.org/, HelloService); ServiceFactory factory = ServiceFactory.newInstance(); Service service = factory.createService(url, qname); Hello hello = (Hello) service.getPort(Hello.class); System.out.println(hello.hello( + argument + )); System.out.println(output: + hello.hello(argument)); The error is Contacting webservice at http://localhost:8080/TestEJB/Hello?wsdlException in thread main javax.xml.rpc.ServiceException: Error processing WSDL document: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/TestEJB/Hello/?wsdl at org.apache.axis.client.Service.initService (Service.java:250) at org.apache.axis.client.Service.init(Service.java:165) at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198) at HelloClient.main(HelloClient.java :27) If we can observe the error trace, a '/' is getting appended for the URL http://localhost:8080/TestEJB/Hello and making it http://localhost:8080/TestEJB/Hello/?wsdl. It is not happening for WEBSERVICE implemented using a servlet. The WSDL is as follows. ?xml version=1.0 encoding=UTF-8? definitions name=HelloService targetNamespace=http://hello.phani.org/ xmlns:tns=http://hello.phani.org/ xmlns= http://schemas.xmlsoap.org/wsdl/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:soap= http://schemas.xmlsoap.org/wsdl/soap/ types/ message name=Hello_hello part name=String_1 type=xsd:string//message message name=Hello_helloResponse part name=result type=xsd:string//message portType name=Hello operation name=hello parameterOrder=String_1 input message=tns:Hello_hello/ output message=tns:Hello_helloResponse//operation/portType binding name=HelloBinding type=tns:Hello soap:binding transport=http://schemas.xmlsoap.org/soap/http style=rpc/ operation name=hello soap:operation soapAction=/ input soap:body use=literal namespace=http://hello.phani.org///input output soap:body use=literal namespace=http://hello.phani.org///output/operation/binding service name=HelloService port name=HelloPort binding=tns:HelloBinding soap:address location= http://localhost:8080/TestEJB/Hello//port/service/definitions Why is an extra '/' is getting added ? Any issues? Thanks phani
Re: WEBSERVICES problem
I was able to get a web services reference (service-ref) from a web app to connect to an EJB exposed as a web service in Geronimo 1.0 when working through some tests for my web services chapter at: http://chariotsolutions.com/geronimo/web-services.html However, I did not try a dynamic proxy client. I did notice that a servlet web service got an extra slash in the URL it generated in the WSDL, though in my case it was after the port not at the end of the name. Perhaps this is related? If you look at the WSDL file at the URL http://localhost:8080/TestEJB/Hello?wsdl (NOTE: not your original copy of the WSDL, but specifically look at the copy at that URL), does the service URL have the extra slash in it? If so, that's likely the problem, and possibly related to the slash problem I had, which I recorded at: http://issues.apache.org/jira/browse/GERONIMO-1584 In any case, to work around this, you might try adding a web-service-address element to your EJB configuration in openejb-jar.xml and see if you can provide an explicit value there that might override the auto-generated one with the extra slash. (Also, of course, make sure you don't have a web-service-address there already that has a slash on the end.) Thanks, Aaron On 2/5/06, Phani Madgula [EMAIL PROTECTED] wrote: Hi I have deployed a WEBSERVICE implemented using an EJB, and facing a problem while accessing through Dynamic Proxy client. The client is as follows. String urlstr = http://localhost:8080/TestEJB/Hello?wsdl;; String argument = phani; System.out.println(Contacting webservice at + urlstr); URL url = new URL(urlstr); QName qname = new QName(http://hello.phani.org/;, HelloService); ServiceFactory factory = ServiceFactory.newInstance(); Serviceservice = factory.createService(url, qname); Hello hello = (Hello) service.getPort(Hello.class); System.out.println(hello.hello( + argument + )); System.out.println(output: + hello.hello(argument)); The error is Contacting webservice at http://localhost:8080/TestEJB/Hello?wsdl Exception in thread main javax.xml.rpc.ServiceException: Error processing WSDL document: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/TestEJB/Hello/?wsdl at org.apache.axis.client.Service.initService (Service.java:250) at org.apache.axis.client.Service.init(Service.java:165) at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198) at HelloClient.main(HelloClient.java :27) If we can observe the error trace, a '/' is getting appended for the URL http://localhost:8080/TestEJB/Hello; and making it http://localhost:8080/TestEJB/Hello/?wsdl;. It is not happening for WEBSERVICE implemented using a servlet. The WSDL is as follows. ?xml version=1.0 encoding=UTF-8? definitions name=HelloService targetNamespace=http://hello.phani.org/; xmlns:tns=http://hello.phani.org/; xmlns= http://schemas.xmlsoap.org/wsdl/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap= http://schemas.xmlsoap.org/wsdl/soap/; types/ message name=Hello_hello part name=String_1 type=xsd:string//message message name=Hello_helloResponse part name=result type=xsd:string//message portType name=Hello operation name=hello parameterOrder=String_1 input message=tns:Hello_hello/ output message=tns:Hello_helloResponse//operation/portType binding name=HelloBinding type=tns:Hello soap:binding transport=http://schemas.xmlsoap.org/soap/http; style=rpc/ operation name=hello soap:operation soapAction=/ input soap:body use=literal namespace=http://hello.phani.org///input output soap:body use=literal namespace=http://hello.phani.org///output/operation/binding service name=HelloService port name=HelloPort binding=tns:HelloBinding soap:address location= http://localhost:8080/TestEJB/Hello//port/service/definitions Why is an extra '/' is getting added ? Any issues? Thanks phani
Re: WEBSERVICES problem
Hi Aaron, Thanks for reply. I have added the following tags in openejb-jar.xml to bind the service to a different URL than what is specified in wsdl file. enterprise-beans session ejb-nameHelloBean/ejb-name jndi-nameHelloBean/jndi-name web-service-address/RAMESH/Hello/web-service-address /session/enterprise-beans where as my wsdl file contains port name=HelloPort binding=tns:HelloBinding soap:address location=http://localhost:8080/TestEJB/Hello//port In either case, the extra '/' is being generated while using Dynamic Proxy client. Contacting webservice at http://localhost:8080/RAMESH/Hello?wsdlException in thread main javax.xml.rpc.ServiceException: Error processing WSDL document: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/RAMESH/Hello/?wsdl at org.apache.axis.client.Service.initService (Service.java:250) at org.apache.axis.client.Service.init(Service.java:165) at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198) at HelloClient.main(HelloClient.java :27) Even while viewing wsdl from a browser window, at the URL 'http://localhost:8080/TestEJB/Hello?wsdl, the extra '/' is getting appended. Thanks phani On 2/6/06, Aaron Mulder [EMAIL PROTECTED] wrote: I was able to get a web services reference (service-ref) from a webapp to connect to an EJB exposed as a web service in Geronimo 1.0 whenworking through some tests for my web services chapter at:http://chariotsolutions.com/geronimo/web-services.htmlHowever, I did not try a dynamic proxy client. I did notice that a servlet web service got an extra slash in the URLit generated in the WSDL, though in my case it was after the port notat the end of the name.Perhaps this is related?If you look at the WSDL file at the URL http://localhost:8080/TestEJB/Hello?wsdl (NOTE: not your original copyof the WSDL, but specifically look at the copy at that URL), does theservice URL have the extra slash in it?If so, that's likely the problem, and possibly related to the slash problem I had, which Irecorded at:http://issues.apache.org/jira/browse/GERONIMO-1584In any case, to work around this, you might try adding a web-service-address element to your EJB configuration inopenejb-jar.xml and see if you can provide an explicit value therethat might override the auto-generated one with the extra slash.(Also, of course, make sure you don't have a web-service-address there already that has a slash on the end.)Thanks, AaronOn 2/5/06, Phani Madgula [EMAIL PROTECTED] wrote: Hi I have deployed a WEBSERVICE implemented using an EJB, and facing a problem while accessing through Dynamic Proxy client. The client is as follows. String urlstr = http://localhost:8080/TestEJB/Hello?wsdl ;String argument =phani; System.out.println(Contacting webservice at + urlstr); URL url ="" URL(urlstr); QName qname = new QName(http://hello.phani.org/, HelloService); ServiceFactory factory = ServiceFactory.newInstance (); Serviceservice = factory.createService(url, qname); Hellohello = (Hello) service.getPort(Hello.class); System.out.println(hello.hello ( + argument + )); System.out.println(output: + hello.hello(argument)); The error is Contacting webservice at http://localhost:8080/TestEJB/Hello?wsdl Exception in thread main javax.xml.rpc.ServiceException: Error processing WSDL document: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/TestEJB/Hello/?wsdl at org.apache.axis.client.Service.initService (Service.java:250) at org.apache.axis.client.Service .init(Service.java:165) at org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:198) at HelloClient.main(HelloClient.java :27) If we can observe the error trace, a '/' is getting appended for the URL http://localhost:8080/TestEJB/Hello and making it http://localhost:8080/TestEJB/Hello/?wsdl . It is not happening for WEBSERVICE implemented using a servlet. The WSDL is as follows. ?xml version=1.0 encoding=UTF-8? definitions name=HelloService targetNamespace=http://hello.phani.org/ xmlns:tns=http://hello.phani.org/ xmlns= http://schemas.xmlsoap.org/wsdl/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:soap= http://schemas.xmlsoap.org/wsdl/soap/ types/ message name=Hello_hello part name=String_1 type=xsd:string//message message name=Hello_helloResponse part name=result type=xsd:string//message portType name=Hello operation name=hello parameterOrder=String_1 input message=tns:Hello_hello/ output message=tns:Hello_helloResponse//operation/portType binding name=HelloBinding type=tns:Hello soap:binding transport=http://schemas.xmlsoap.org/soap/http style=rpc/ operation name=hello soap:operation soapAction=/ input soap:body use=literal namespace=http://hello.phani.org/ //input outputsoap:body use=literal namespace=http://hello.phani.org///output/operation/binding service name=HelloService port name=HelloPort binding=tns:HelloBinding soap:address location=
WebServices
Hi, I have a Webapp deployed in geronimo that calls an external webservice. If I generate the stubs using wscompile I seem to be able to get a handle to the stub by calling HelloService myHelloService =(HelloService) ic.lookup(java:comp/env/service/HelloService); Now I can also generate the Stubs using Axis in which case i get some different impl classes , the ServiceLocator and the Stub. Can I use these stubs instead? Also the Service Interface axis generates seems to have 2 extra methods compared to the interface generated by wscompile for the same wsdl file. When I bundle these stubs with my webapp Geronimo is not giving me the Stub generated by axis with 3 methods and is instead giving me a stub with a single method to invoke the service? Can anyone explain why this is happening? Thanks Manu
Re: WebServices
On Jan 25, 2006, at 4:31 AM, Manu George wrote: Hi, I have a Webapp deployed in geronimo that calls an external webservice. If I generate the stubs using wscompile I seem to be able to get a handle to the stub by calling HelloService myHelloService =(HelloService) ic.lookup(java:comp/ env/service/HelloService); Now I can also generate the Stubs using Axis in which case i get some different impl classes , the ServiceLocator and the Stub. Can I use these stubs instead? Also the Service Interface axis generates seems to have 2 extra methods compared to the interface generated by wscompile for the same wsdl file. When I bundle these stubs with my webapp Geronimo is not giving me the Stub generated by axis with 3 methods and is instead giving me a stub with a single method to invoke the service? Can anyone explain why this is happening? Our webservices implementation does not use any supplied stubs, only the interface classes, wsdl, and jaxrpc mapping file. We generate the implementation class that implements the supplied interface ourselves using cglib. Beyond this I'm not sure what I can say without knowing more details of what your are doing. thanks david jencks Thanks Manu