From do-not-reply at jboss.com Sun Jun 1 03:43:19 2008 From: do-not-reply at jboss.com (leorr) Date: Sun, 1 Jun 2008 03:43:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Invoking Web service from in a JSP. Message-ID: <21500201.1212306200001.JavaMail.jboss@colo-br-02.atl.jboss.com> I am using the jbossws-native-2.0.1.GA version, and succesfully compiled and executed the samples (used wsconsume/wsrunclient). I have created a war file for the web service and also a jar for the Web service Client, and deployed both on JBoss. I want to invoke the web service within a JSP file, could some please help me with a source file and and instructions... thanks in advance, Leor View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154859#4154859 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154859 From asoldano at redhat.com Sun Jun 1 05:49:02 2008 From: asoldano at redhat.com (Alessio Soldano) Date: Sun, 01 Jun 2008 11:49:02 +0200 Subject: [jbossws-users] JBoss clustering with webservices In-Reply-To: <5bc4c4570805301536k3770b352od1d7f816ba33adfc@mail.gmail.com> References: <5bc4c4570805301517w1d3b66d0s2c0180d12ed997fe@mail.gmail.com> <5bc4c4570805301536k3770b352od1d7f816ba33adfc@mail.gmail.com> Message-ID: <4842708E.2000202@redhat.com> Hi, something like LVS (http://www.linuxvirtualserver.org/) might be the solution for you. Perhaps refer the documentation page (http://www.linuxvirtualserver.org/Documents.html) for available configurations matching your requirements. Cheers Alessio Soldano Leandro Sales ha scritto: > Hi. I'm implementing cluster of nodes with jboss. Each node provides a > Webservice implemented with EJB (@Stateless, @Webservice and > @Clustered). I deployed the webservice .jar bean into the > server/all/farm directory and hence the webservice is replicated among > the nodes of the cluster. How can I provide the load balancing for > these nodes considering the to points listened below: > > 1 - The webservice consumer needs to point to a unique address (the > interceptor, which is responsible to select a node and forward to > request to it). How to define this interceptor? > > 2 - Once one node is selected, I don't want that the node response > pass back through the interceptor (like documentations explains), > instead I want the webservice response be directly sent to the client. > Is this possible? > > Thank you. All points/suggestion are greatfully accepted. > > Best regards. > > -Leandro > _______________________________________________ > jbossws-users mailing list > jbossws-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/jbossws-users > From leandroal at gmail.com Sun Jun 1 09:39:22 2008 From: leandroal at gmail.com (Leandro Sales) Date: Sun, 1 Jun 2008 10:39:22 -0300 Subject: [jbossws-users] JBoss clustering with webservices In-Reply-To: <4842708E.2000202@redhat.com> References: <5bc4c4570805301517w1d3b66d0s2c0180d12ed997fe@mail.gmail.com> <5bc4c4570805301536k3770b352od1d7f816ba33adfc@mail.gmail.com> <4842708E.2000202@redhat.com> Message-ID: <5bc4c4570806010639r45010f42ucb398b094370fdf0@mail.gmail.com> Hello Alessio, thank you for the answer. Is LVS project still maintained? The latest release for linux kernel is for 2.6.10, but the latest stable Linux kernel is 2.6.25-4. Considering just my first question in the previous e-mail (The webservice consumer needs to point to a unique address (the interceptor, which is responsible to select a node and forward to request to it). How to define this interceptor?), is it possible to implement this using JBoss + Webservice even though the response pass back through the Interceptor? If yes, how can I implement the client cluster interceptor since it is not possible to get the Webservice reference via JNDI? Or is that a way to do this? Thank you, Leandro. On Sun, Jun 1, 2008 at 6:49 AM, Alessio Soldano wrote: > Hi, > something like LVS (http://www.linuxvirtualserver.org/) might be the > solution for you. Perhaps refer the documentation page > (http://www.linuxvirtualserver.org/Documents.html) for available > configurations matching your requirements. > Cheers > Alessio Soldano > > Leandro Sales ha scritto: >> >> Hi. I'm implementing cluster of nodes with jboss. Each node provides a >> Webservice implemented with EJB (@Stateless, @Webservice and >> @Clustered). I deployed the webservice .jar bean into the >> server/all/farm directory and hence the webservice is replicated among >> the nodes of the cluster. How can I provide the load balancing for >> these nodes considering the to points listened below: >> >> 1 - The webservice consumer needs to point to a unique address (the >> interceptor, which is responsible to select a node and forward to >> request to it). How to define this interceptor? >> >> 2 - Once one node is selected, I don't want that the node response >> pass back through the interceptor (like documentations explains), >> instead I want the webservice response be directly sent to the client. >> Is this possible? >> >> Thank you. All points/suggestion are greatfully accepted. >> >> Best regards. >> >> -Leandro >> _______________________________________________ >> jbossws-users mailing list >> jbossws-users at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/jbossws-users >> > > -- Leandro Melo de Sales Pervasive and Embedded Computing Laboratory Computer Science MSc. BRisa and E-Phone Projects Manager Network Admin @ http://embedded.ufcg.edu.br/indexen.html +55 83 3310-1404 (extension 208) http://www.leandrosales.com/ From do-not-reply at jboss.com Mon Jun 2 09:58:59 2008 From: do-not-reply at jboss.com (communityman) Date: Mon, 2 Jun 2008 09:58:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - axis 1, jboss 4.0.4, base64deserializer, linux, windows Message-ID: <1328600.1212415139211.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello community, I'm facing a strange issue while using a webservice deployed in jboss. In windows environnement, i mean locally, all works fine. In axis.log, i've : 2008-06-02 12:23:14 DEBUG [DeserializationContextImpl] Enter: DeserializationContextImpl::startElement(, identifiant) 2008-06-02 12:23:14 DEBUG [ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(pushHandler00) 2008-06-02 12:23:14 DEBUG [DeserializationContextImpl] Pushing handler org.apache.axis.encoding.ser.Base64Deserializer at 1a8c22b But in linux, read 4, i've : 2008-06-02 12:22:36 DEBUG [DeserializationContextImpl] Enter: DeserializationContextImpl::startElement(, identifiant) 2008-06-02 12:22:36 DEBUG [ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(cantHandle00) 2008-06-02 12:22:36 DEBUG [ProjectResourceBundle] org.apache.axis.i18n.resource::handleGetObject(toAxisFault00) 2008-06-02 12:22:36 DEBUG [enterprise] Mapping Exception to AxisFault org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize. Anyone has an idea ? thaank you. Faithfylly View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155052#4155052 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155052 From do-not-reply at jboss.com Mon Jun 2 10:49:39 2008 From: do-not-reply at jboss.com (leorr) Date: Mon, 2 Jun 2008 10:49:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Class javax/xml/rpc/ParameterMode violates loader constraint Message-ID: <28286780.1212418179667.JavaMail.jboss@colo-br-02.atl.jboss.com> I am encountering the following error when trying to invoke a web service. using Jboss 4.2.2 and jbossws-native-2.0.1.GA webservices. "Class javax/xml/rpc/ParameterMode violates loader constraints" Has anyone got an idea? thanks, org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.LinkageError: Class javax/xml/rpc/ParameterMode violates loader constraints org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:397) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause javax.servlet.ServletException: java.lang.LinkageError: Class javax/xml/rpc/ParameterMode violates loader constraints org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779) org.apache.jsp.views.jbossws_jsp._jspService(jbossws_jsp.java:183) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.LinkageError: Class javax/xml/rpc/ParameterMode violates loader constraints java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1814) org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872) org.jboss.web.tomcat.service.WebAppClassLoader.findClass(WebAppClassLoader.java:139) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:164) $Proxy255.(Unknown Source) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155079#4155079 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155079 From do-not-reply at jboss.com Mon Jun 2 12:17:34 2008 From: do-not-reply at jboss.com (ljgp) Date: Mon, 2 Jun 2008 12:17:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: No tests for @SchemaValidation annotation in 3.0.1 ? Message-ID: <12806477.1212423454949.JavaMail.jboss@colo-br-02.atl.jboss.com> A reply would still be appreciated. Does the schema validation feature really work ? Cheers, Luc. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155118#4155118 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155118 From do-not-reply at jboss.com Mon Jun 2 17:06:26 2008 From: do-not-reply at jboss.com (sheshi) Date: Mon, 2 Jun 2008 17:06:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Error while generating annotated Java classes using wsconsum Message-ID: <25192206.1212440786774.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, I am trying to generate annotated Java classes/sources using wsconsume tool (top down approach) for WS-Trust WSDL. Everytime I run the tool, I get the following exception. E:\java\jboss-4.2.2.GA\bin>wsconsume -v -k http://docs.oasis-open.org/ws-sx/ws-t rust/200512/ws-trust-1.3.wsdl JBossWS-Native stack deployed parsing WSDL... [ERROR] Failed to read the WSDL document: http://docs.oasis-open.org/ws-sx/ws-tr ust/200512/ws-trust-1.3.wsdl, because 1) could not find the document; /2) the do cument could not be read; 3) the root element of the document is not . unknown location Failed to parse the WSDL. Failed to invoke WsImport java.lang.IllegalStateException: WsImport invocation failed. Try the verbose swi tch for more information at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumer Impl.java:220) at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:2 23) at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81) I tried accessing the WSDL locally and it failed with an same kinda exception for a XSD file the WSDL refers to. E:\java\jboss-4.2.2.GA\bin>wsconsume -v -k ws-trust-1.3.wsdl JBossWS-Native stack deployed parsing WSDL... [ERROR] Failed to read the WSDL document: http://docs.oasis-open.org/ws-sx/ws-tr ust/200512/ws-trust-1.3.xsd, because 1) could not find the document; /2) the doc ument could not be read; 3) the root element of the document is not . unknown location Failed to parse the WSDL. Failed to invoke WsImport java.lang.IllegalStateException: WsImport invocation failed. Try the verbose swi tch for more information at org.jboss.ws.tools.jaxws.impl.SunRIConsumerImpl.consume(SunRIConsumer Impl.java:220) at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:2 23) at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81) E:\java\jboss-4.2.2.GA\bin> I would appreciate if someone help me with this issue. Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155158#4155158 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155158 From do-not-reply at jboss.com Tue Jun 3 05:57:25 2008 From: do-not-reply at jboss.com (Grid.Qian) Date: Tue, 3 Jun 2008 05:57:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - a problem when call web service using web service client Message-ID: <29987516.1212487045102.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi guys, Now I focus on extending wtp web service framework to support JBoss WS. To do this task, we must firstly create a dynamic web project and then generate web service or web service client codes. So far I can create web service and web service client. For user's convenience I generate a client sample to call web service. Because I use the WTP dynamic project and jboss server, when the project is created, all the jars that are from jboss server lib folder and client folder are added to project classpath. When I run the web service client sample to call web service, a issue occurs. And after I google this issue, I found a same issue. I know the issue will be fixed by removing jaxws-rt.jar and jaxws-tools.jar from classpath. But this looks like jaxws in JBoss is "incomplete" or something, and I want to know why this issue occurs? the link: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063438#4063438 the client sample codes: System.out.println("***********************"); System.out.println("Create Web Service Client..."); HelloWorldService service1 = new HelloWorldService(); System.out.println("Create Web Service..."); HelloWorld port1 = service1.getHelloWorldPort(); System.out.println("Create Web Service Operation..."); System.out.println("Server said: " + port1.sayHello()); System.out.println("***********************"); the issue: Exception in thread "main" javax.xml.ws.WebServiceException: Unable to load Provider: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl at javax.xml.ws.spi.Provider.provider(Provider.java:98) at javax.xml.ws.Service.(Service.java:83) at org.example.www.helloworld.HelloWorldService.(HelloWorldService.java:40) at org.example.www.helloworld.clientsample.ClientSample.main(ClientSample.java:10) Caused by: java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:96) at javax.xml.ws.spi.Provider.provider(Provider.java:90) ... 3 more Caused by: java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:91) ... 4 more Caused by: javax.xml.ws.WebServiceException: Error creating JAXBContext for W3CEndpointReference. at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:188) at com.sun.xml.ws.spi.ProviderImpl.(ProviderImpl.java:65) ... 11 more Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions Two classes have the same XML type name "address". Use @XmlType.name and @XmlType.namespace to assign different names to them. this problem is related to the following location: at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address com.sun.xml.ws.developer.MemberSubmissionEndpointReference.addr at com.sun.xml.ws.developer.MemberSubmissionEndpointReference this problem is related to the following location: at javax.xml.ws.wsaddressing.W3CEndpointReference$Address at private javax.xml.ws.wsaddressing.W3CEndpointReference$Address javax.xml.ws.wsaddressing.W3CEndpointReference.address at javax.xml.ws.wsaddressing.W3CEndpointReference Two classes have the same XML type name "elements". Use @XmlType.name and @XmlType.namespace to assign different names to them. this problem is related to the following location: at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements com.sun.xml.ws.developer.MemberSubmissionEndpointReference.referenceProperties at com.sun.xml.ws.developer.MemberSubmissionEndpointReference this problem is related to the following location: at javax.xml.ws.wsaddressing.W3CEndpointReference$Elements at private javax.xml.ws.wsaddressing.W3CEndpointReference$Elements javax.xml.ws.wsaddressing.W3CEndpointReference.referenceParameters at javax.xml.ws.wsaddressing.W3CEndpointReference at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:286) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211) at javax.xml.bind.ContextFinder.find(ContextFinder.java:372) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:186) ... 12 more I'm looking foreward for your replies. Thanks in advance Grid View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155257#4155257 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155257 From do-not-reply at jboss.com Wed Jun 4 02:28:05 2008 From: do-not-reply at jboss.com (siddharth_god) Date: Wed, 4 Jun 2008 02:28:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - SOAP Header Parameters and xml param renaming in Doc style E Message-ID: <1762242.1212560885819.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have a Document literal - wrapped style endpoint. I am using wstools with its config file to generate all necessary artifacts. But even if i mark some of the method parameters in my endpoint with `header="true" mode="IN"` and `xml-name=""1, the WSDL doesn't seem to reflect any of these. I want to put some of method parameters as part of SOAP header. Thats why i provided that configuration. This works fine if i compile my endpoint as a RPC endpoint, but same thing does not work in Document - literal-wrapped style. Can somebody please point out whats wrong or atleast is it possible to have SOAP header params in case of Document-wrapped style ? Thanks, Sid View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155549#4155549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155549 From do-not-reply at jboss.com Wed Jun 4 11:00:48 2008 From: do-not-reply at jboss.com (victorstar) Date: Wed, 4 Jun 2008 11:00:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - invalid timestamps Message-ID: <13212288.1212591648720.JavaMail.jboss@colo-br-02.atl.jboss.com> Using jbossws 3.0.1 native for both server and client. Ran into this problem when server and client running on different machines - even slightest difference in time makes the communication impossible due to "invalid timestamp.... message claims to be created before..." exceptions. Makes we wonder - slight time differences between machines is a pretty common thing. And looks like jbossws is not usable in this situations? So how do you people use it in production? Or am I missing something here (I truly hope that I do!). I know 3.0.2 should have support for additional parameters in the config files to deal with this issue. But it's not available yet. Any ETA for 3.0.2 release? How stable/production ready are the current SVN snapshots? Also I had a hard time figuring out the exact path of the current native branch. Any help here would be appreciated. Meanwhile I see no other solutions but patching 3.0.1 manually. Are there any other solutions/workarounds? I've found one thread on this board discussing this issue but no other suggestions other than waiting for 3.0.2 or patching 3.0.1. Any help would be greatly appreciated! Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155715#4155715 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155715 From do-not-reply at jboss.com Wed Jun 4 11:22:54 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 4 Jun 2008 11:22:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: invalid timestamps Message-ID: <856629.1212592974699.JavaMail.jboss@colo-br-02.atl.jboss.com> "victorstar" wrote : | Meanwhile I see no other solutions but patching 3.0.1 manually. Are there any other solutions/workarounds? | Yes, wait few days. 3.0.2 release is coming out soon ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155725#4155725 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155725 From do-not-reply at jboss.com Wed Jun 4 11:38:41 2008 From: do-not-reply at jboss.com (victorstar) Date: Wed, 4 Jun 2008 11:38:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: invalid timestamps Message-ID: <668520.1212593921520.JavaMail.jboss@colo-br-02.atl.jboss.com> Soon like in a week or so? Can I at least sign up anywhere for new release notifications? I'm asking because of some project on the track right now and it would be helpful to see if we can wait until 3.0.2 or have to patch 3.0.1 for now View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155736#4155736 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155736 From do-not-reply at jboss.com Wed Jun 4 11:56:49 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 4 Jun 2008 11:56:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: invalid timestamps Message-ID: <28420999.1212595009899.JavaMail.jboss@colo-br-02.atl.jboss.com> "victorstar" wrote : Soon like in a week or so? Yes "victorstar" wrote : Can I at least sign up anywhere for new release notifications? here View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155744#4155744 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155744 From do-not-reply at jboss.com Wed Jun 4 11:57:24 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 4 Jun 2008 11:57:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: invalid timestamps Message-ID: <20920344.1212595044494.JavaMail.jboss@colo-br-02.atl.jboss.com> https://lists.jboss.org/mailman/listinfo/jbossws-announce View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155745#4155745 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155745 From do-not-reply at jboss.com Wed Jun 4 12:07:01 2008 From: do-not-reply at jboss.com (victorstar) Date: Wed, 4 Jun 2008 12:07:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: invalid timestamps Message-ID: <29130316.1212595621763.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks Richard! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155750#4155750 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155750 From do-not-reply at jboss.com Thu Jun 5 04:26:01 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Thu, 5 Jun 2008 04:26:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: a problem when call web service using web service client Message-ID: <12239482.1212654361469.JavaMail.jboss@colo-br-02.atl.jboss.com> It's the JAXWS API that uses a service loader mechanism to pull the implementation. You have to make sure that WS invocation don't have the Sun API (jaxws-rt.jar, jaxws-tools.jar, jaxws-api.jar) on the classpath. JBossWS ships with it's own impl. of the API wich then delegates to the correct provider implementation: jboss-jaxws.jar It's a little tricky to get both tooling and web service invocations into the project, because tooling still requires those jars mentioned above. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155882#4155882 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155882 From do-not-reply at jboss.com Thu Jun 5 04:27:09 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Thu, 5 Jun 2008 04:27:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: a problem when call web service using web service client Message-ID: <13909956.1212654429169.JavaMail.jboss@colo-br-02.atl.jboss.com> So, conceptually you start with two different classpath settings, depending on the use case. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155883#4155883 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155883 From do-not-reply at jboss.com Thu Jun 5 04:31:33 2008 From: do-not-reply at jboss.com (aguyngueran) Date: Thu, 5 Jun 2008 04:31:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBoss-4.2.2-GA + JOSS-1.7 and WCF client Message-ID: <6497965.1212654693448.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm having problems with SOAP fault declaration from JOSSO. It is like this: The problem is 'type' attribute which according to WS-Basic Profile http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html#Bindings_and_Faults. So 'type' should be replaced by 'element' attribute. The warning message from WCF SvcUtil is: Warning: Fault named IdentityProvisioningException in operation resolveAuthenticationAssertion cannot be imported. Unsup ported WSDL, the fault message part must reference an element. This fault message does not reference an element. If you have edit access to the WSDL document, you can fix the problem by referencing a schema element using the 'element' attri bute. And I don't know where to start with this problem. Is is JBoss issue (Ws-BP is supported here I think), JOSSO issue or WCF problem? Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155885#4155885 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155885 From do-not-reply at jboss.com Thu Jun 5 14:19:48 2008 From: do-not-reply at jboss.com (jinglei) Date: Thu, 5 Jun 2008 14:19:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Can not find truststore url Message-ID: <8140831.1212689988434.JavaMail.jboss@colo-br-02.atl.jboss.com> I am seeing the same warn in the log file, Here is what I have the connector configured in the server.xml, Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156076#4156076 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156076 From do-not-reply at jboss.com Thu Jun 5 18:10:40 2008 From: do-not-reply at jboss.com (GalinaAtHP) Date: Thu, 5 Jun 2008 18:10:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBoss AS 4.0.2 and JDK versions Message-ID: <6679230.1212703840062.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, simple question: need to find out if JBoss AS 4.0.2 is certified with JDK 1.6. In general, I have hard time finding certification matrix for AS. Would really appreciate help. Thanks, Galina View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156130#4156130 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156130 From do-not-reply at jboss.com Thu Jun 5 18:19:00 2008 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 5 Jun 2008 18:19:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss AS 4.0.2 and JDK versions Message-ID: <22517304.1212704340921.JavaMail.jboss@colo-br-02.atl.jboss.com> You probably should have asked this in the config forum http://www.jboss.com/index.html?module=bb&op=viewforum&f=61, not the web services forum. But to answer your question, see http://wiki.jboss.org/wiki/JBossVsJavaJDKVersionMatrix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156132#4156132 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156132 From do-not-reply at jboss.com Fri Jun 6 02:42:52 2008 From: do-not-reply at jboss.com (max.andersen@jboss.com) Date: Fri, 6 Jun 2008 02:42:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: a problem when call web service using web service client Message-ID: <24875740.1212734572762.JavaMail.jboss@colo-br-02.atl.jboss.com> So are these two jars ever needed at *runtime* or *compiletime* for users applications ? The question is if our AS runtime adapter should explicilty excluded these jars when being asked which jars should be available to a WAR or EJB project. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156184#4156184 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156184 From do-not-reply at jboss.com Fri Jun 6 09:43:22 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 6 Jun 2008 09:43:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Http Basic Authentication / GET and POST differences? Message-ID: <29127432.1212759802243.JavaMail.jboss@colo-br-02.atl.jboss.com> IOW you get a not-authorized error while trying to retrieve the wsdl before invoking the service, don't you? (check the logs to see what actually is asked with the GET call) In this case you could store the wsdl locally (which btw is a general suggestion for clients to reduce network traffic). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156307#4156307 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156307 From do-not-reply at jboss.com Fri Jun 6 10:12:57 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 6 Jun 2008 10:12:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Which version of JBossWS? Message-ID: <28527732.1212761578006.JavaMail.jboss@colo-br-02.atl.jboss.com> You might be able to use JBossWS 1.2.1. For recent releases/target containers please refer this http://jbws.dyndns.org/mediawiki/index.php?title=Supported_Target_Containers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156320#4156320 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156320 From do-not-reply at jboss.com Fri Jun 6 10:29:29 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 6 Jun 2008 10:29:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Retrieve SOAP header Message-ID: <28884132.1212762569289.JavaMail.jboss@colo-br-02.atl.jboss.com> In an handler you can get the SOAPMessage from the MessageContext and then use the SOAPMessage's getSOAPHeader() method. Otherwise create your endpoint as webservice provider (see org.jboss.test.ws.jaxws.samples.provider.ProviderBeanMessage for example) implementing Provider. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156330#4156330 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156330 From do-not-reply at jboss.com Fri Jun 6 10:39:12 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 6 Jun 2008 10:39:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: arguments passed as null into method when invoked from P Message-ID: <14798945.1212763152893.JavaMail.jboss@colo-br-02.atl.jboss.com> This seems a PHP client issue, you should start looking at the message that is actually produced and goes on the wire and eventually ask for some kind of php support. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156332#4156332 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156332 From do-not-reply at jboss.com Fri Jun 6 10:53:07 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 6 Jun 2008 10:53:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Upgrading from jbossws-native-2.0.2.GA to jbossws-3.0.1- Message-ID: <25268305.1212763987781.JavaMail.jboss@colo-br-02.atl.jboss.com> This might be due to a bug that has been fixed in 3.0.1 that caused the chunked encoding to be always disabled http://jira.jboss.com/jira/browse/JBWS-2000. The default jaxws client configuration has chunk size = 2048; if the server you're calling doesn't support chunked encoding, you might want to disable it setting the http://org.jboss.ws/http#chunksize property to 0 (zero) in the standard-jaxws-client-config.xml (or in your own config). I also suggest you to try using http/1.0 when .NET endpoints are involved and this kind of issues appear. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156342#4156342 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156342 From do-not-reply at jboss.com Fri Jun 6 11:23:27 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 6 Jun 2008 11:23:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: New to WS... Need help... Message-ID: <5972781.1212765807540.JavaMail.jboss@colo-br-02.atl.jboss.com> "PeterJ" wrote : As a hint - I never run the "default" configuration. Instead I make a copy of it and modify the copy and run that. This way I can easily "refresh" my configuration by deleting it and recopying "default" again. (I actually do this as part of my Ant script.) This is often useful, just remember that the JBossWS deploy procedure also changes libraries outside the JBOSS_HOME/server/your_configuration/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156350#4156350 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156350 From do-not-reply at jboss.com Fri Jun 6 11:46:39 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 6 Jun 2008 11:46:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Endpoint already registered Message-ID: <25037543.1212767199886.JavaMail.jboss@colo-br-02.atl.jboss.com> Generally speaking, the "Endpoint already registered" error can be caused by a failed deploy/undeploy that left the endpoint registry in a inconsistent state (i.e. the endpoint is registered but is actually not available). Do the errors you get somehow influence the deploy/undeploy? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156359#4156359 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156359 From do-not-reply at jboss.com Fri Jun 6 13:17:24 2008 From: do-not-reply at jboss.com (tomstrummer) Date: Fri, 6 Jun 2008 13:17:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - @WebServiceRef for JAX-RPC service? Message-ID: <2487501.1212772644651.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, does the @WebServiceRef annotation work for JAX-RPC services? I can retrieve and use a service from the InitalContext (so I know it works) but I was hoping to get rid of the JNDI lookup. However if I use @WebServiceRef I just get a NullPointerException. Do I have to do anything fancy in my web.xml in order to enable the annotation scanning? This is all in a servlet. I'm using JBossAS 4.2.2.GA upgraded to the latest JBossWS client (3.0.1-native-2.0.4.GA) This doesn't work: | public class TestServiceServlet extends HttpServlet { | | @WebServiceRef(wsdlLocation="META-INF/wsdl/IEnNET.wsdl") | IEnNETService service; | | @Override | protected void doGet(HttpServletRequest req, HttpServletResponse resp) | throws ServletException, IOException { | | try { | IEnNET port = service.getIEnNETPort(); // throws NPE | // ... | This does work: | public class TestServiceServlet extends HttpServlet { | | @Override | protected void doGet(HttpServletRequest req, HttpServletResponse resp) | throws ServletException, IOException { | | try { | InitialContext ctx = new InitialContext(); | IEnNETService service = (IEnNETService)ctx.lookup("java:comp/env/service/EnNET"); | IEnNET port = service.getIEnNETPort(); | web.xml looks like this: | | service/EnNET | com.gridlogix.webservices.IEnNETService | META-INF/wsdl/IEnNET.wsdl | META-INF/jaxrpc-mapping.xml | | com.gridlogix.webservices.IEnNET | | | Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156382#4156382 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156382 From do-not-reply at jboss.com Fri Jun 6 14:16:08 2008 From: do-not-reply at jboss.com (tomstrummer) Date: Fri, 6 Jun 2008 14:16:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JWSDP 2.0 with JBoss 4.0.4 ? Message-ID: <19074903.1212776168692.JavaMail.jboss@colo-br-02.atl.jboss.com> "jason.greene at jboss.com" wrote : We don't support soap encoding. We recommend using our tool, but if you prefer to stick with wscompile thats fine. Just make sure you are using rpcliteral or documentliteral. | | -Jason Hi Jason -- sorry to resurrect an old thread but I'm seeing a similar problem. I am consuming a web service that I don't have control over (I think it's a .NET WS). First I tried using Apache CXF's wsdl2java to generate the client stubs, which complained about soapenc:Array in the WSDL (I don't remember the exact error). Googling suggested I needed an XML-RPC client, which JBossWS supports. So the JBossWS' wsconsume tool generates my stubs and jaxrpc-mapping.xml file correctly, and I can even create and call the web service. But I see this same warning about soap encoding. I am a WS noob -- what should I do? Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156398#4156398 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156398 From do-not-reply at jboss.com Mon Jun 9 07:48:08 2008 From: do-not-reply at jboss.com (ljgp) Date: Mon, 9 Jun 2008 07:48:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: No tests for @SchemaValidation annotation in 3.0.1 ? Message-ID: <5072301.1213012088682.JavaMail.jboss@colo-br-02.atl.jboss.com> A reply would _really_ be appreciated. I know that support here is on a best effort basis, but I am still hoping to get a useful answer to this (imho) simple question. Regards, Luc. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156655#4156655 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156655 From do-not-reply at jboss.com Mon Jun 9 10:28:24 2008 From: do-not-reply at jboss.com (soni_rahul337) Date: Mon, 9 Jun 2008 10:28:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - org.jboss.ws.WSException: Cannot generate wsdl from interfac Message-ID: <13655087.1213021704558.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi,All I have created the webservice that returns the user defined type. I have to use the jboss wstools for developing service. For that I have created the class that containts the getter and setter methods and the required interface and the and the class that implements the intreface with the logic. but now when I am returning the complex-type it will not allow me to generate the wsdl file and another artifacts neccesary for creating the service. The same webservice works fine for the String[] as a return parameter. I have read that wstools generate the response and request classes for the complex type but in my case it wont create. what to do in that case. Here is the exception that i am getting while executing the wstools ant task:-- | | [jbosswstools] org.jboss.ws.WSException: Cannot generate wsdl from: interface com.test.testdb.TestDataConnectionInterface | [jbosswstools] at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:348) | [jbosswstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:122) | [jbosswstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:132) | [jbosswstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:120) | [jbosswstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103) | [jbosswstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) | [jbosswstools] at org.apache.tools.ant.Task.perform(Task.java:364) | [jbosswstools] at org.apache.tools.ant.Target.execute(Target.java:341) | [jbosswstools] at org.apache.tools.ant.Target.performTasks(Target.java:369) | [jbosswstools] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) | [jbosswstools] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) | [jbosswstools] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) | [jbosswstools] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) | [jbosswstools] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) | [jbosswstools] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) | [jbosswstools] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) | | My Environment is:-- Jboss 4.0.5 GA Apache Ant 1.6.5 Jdk 1.5.0_11 Regards and Thanks in Advace, Rahul View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156715#4156715 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156715 From jbossws-users at lists.jboss.org Mon Jun 9 11:35:41 2008 From: jbossws-users at lists.jboss.org (VIAGRA ® Trusted Site) Date: Mon, 9 Jun 2008 11:35:41 -0400 Subject: [jbossws-users] Dear jbossws-users@lists.jboss.org June 81% 0FF Message-ID: <20080609103542.15463.qmail@Cantata> An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbossws-users/attachments/20080609/2fca848a/attachment.html From do-not-reply at jboss.com Mon Jun 9 14:34:23 2008 From: do-not-reply at jboss.com (florian79) Date: Mon, 9 Jun 2008 14:34:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - authMethod=FORM Message-ID: <25335801.1213036463902.JavaMail.jboss@colo-br-02.atl.jboss.com> does anyone has experience with JAX-WS using the authMethod=FORM like this: | @WebService(...) | @WebContext(contextRoot = "/context-ws", urlPattern = "/Manager", authMethod = "FORM", transportGuarantee = "NONE", secureWSDLAccess = false) | @Stateless | @SecurityDomain("xx") | where to set the login page and the login errorpage? is there any example/HowTo available? the authMethod=BASIC works well! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156801#4156801 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156801 From do-not-reply at jboss.com Mon Jun 9 14:44:21 2008 From: do-not-reply at jboss.com (tomstrummer) Date: Mon, 9 Jun 2008 14:44:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Bug? SOAP response causes ArrayIndexOutOfBoundsEx Message-ID: <1741224.1213037061671.JavaMail.jboss@colo-br-02.atl.jboss.com> I am trying to consume a 3rd party web service. When JBossWS parses the response, an ArrayIndexOutOfBoundsException is thrown from the JBoss XML binding code. I have generated stubs using the wstools command. I'm guessing this is a bug? I would love to help debug it but I'm kinda lost.. I'm not sure what namespace-to-package name conversion should be going on when the SOAP response is parsed since the mapping is already done in a jaxrpc-mapping.xml file. And the jaxrpc-mapping isn't parsed each time a response is sent, right? WS Response: | | | | | | | Servers | | 0 | msPublic | BACServerList | 1464013352 | | 5 | 4 | 7 | | | IBACServerList,IPersistable | | GlxServer | | | | | jaxrpc-mapping looks like this: | | | com.gridlogix.webservices | Gridlogix.EnNET.Types | | | com.gridlogix.webservices | http://www.gridlogix.com/WebServices/ | | | com.gridlogix.webservices.GlxVersionInfo | typeNS:GlxVersionInfo | complexType | | .... | And the WSDL looks like this: | | | | | | | | ..... | Finally.. the stack trace... | java.rmi.RemoteException: Call invocation failed; nested exception is: | org.jboss.ws.WSException: org.jboss.ws.core.binding.BindingException: org.jboss.ws.core.jaxrpc.binding.jbossxb.UnmarshalException: Failed to parse source: 21 | at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:536) | at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277) | at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:151) | at $Proxy277.getObject(Unknown Source) | at com.enernoc.eea.dpm.web.TestServiceServlet.doGet(TestServiceServlet.java:57) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:619) | Caused by: org.jboss.ws.WSException: org.jboss.ws.core.binding.BindingException: org.jboss.ws.core.jaxrpc.binding.jbossxb.UnmarshalException: Failed to parse source: 21 | at org.jboss.ws.core.soap.XMLContent.unmarshallObjectContents(XMLContent.java:250) | at org.jboss.ws.core.soap.XMLContent.transitionTo(XMLContent.java:97) | at org.jboss.ws.core.soap.DOMContent.transitionTo(DOMContent.java:77) | at org.jboss.ws.core.soap.SOAPContentElement.transitionTo(SOAPContentElement.java:140) | at org.jboss.ws.core.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:171) | at org.jboss.ws.core.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:263) | at org.jboss.ws.core.EndpointInvocation.getReturnValue(EndpointInvocation.java:197) | at org.jboss.ws.core.CommonClient.syncOutputParams(CommonClient.java:499) | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:387) | at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517) | ... 24 more | Caused by: org.jboss.ws.core.binding.BindingException: org.jboss.ws.core.jaxrpc.binding.jbossxb.UnmarshalException: Failed to parse source: 21 | at org.jboss.ws.core.jaxrpc.binding.JBossXBDeserializer.deserialize(JBossXBDeserializer.java:111) | at org.jboss.ws.core.jaxrpc.binding.JBossXBDeserializer.deserialize(JBossXBDeserializer.java:62) | at org.jboss.ws.core.binding.DeserializerSupport.deserialize(DeserializerSupport.java:60) | at org.jboss.ws.core.soap.XMLContent.unmarshallObjectContents(XMLContent.java:180) | ... 33 more | Caused by: org.jboss.ws.core.jaxrpc.binding.jbossxb.UnmarshalException: Failed to parse source: 21 | at org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:65) | at org.jboss.ws.core.jaxrpc.binding.JBossXBDeserializer.deserialize(JBossXBDeserializer.java:103) | ... 36 more | Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: 21 | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:179) | at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:126) | at org.jboss.ws.core.jaxrpc.binding.jbossxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:61) | ... 37 more | Caused by: java.lang.ArrayIndexOutOfBoundsException: 21 | at org.jboss.xb.binding.Util.xmlNamespaceToJavaPackage(Util.java:229) | at org.jboss.xb.binding.Util.xmlNameToClassName(Util.java:310) | at org.jboss.xb.binding.sunday.unmarshalling.impl.runtime.RtCharactersHandler.unmarshal(RtCharactersHandler.java:83) | at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:985) | at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:246) | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.endElement(SaxJBossXBParser.java:296) | at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) | at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) | at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) | at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) | at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) | at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:175) | ... 39 more | Thanks in advance... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156806#4156806 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156806 From do-not-reply at jboss.com Mon Jun 9 15:30:10 2008 From: do-not-reply at jboss.com (florian79) Date: Mon, 9 Jun 2008 15:30:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: authMethod=FORM Message-ID: <284833.1213039810547.JavaMail.jboss@colo-br-02.atl.jboss.com> authMethod=Form is not supported http://jbws.dyndns.org/mediawiki/index.php?title=User_Guide#WebContext View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156814#4156814 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156814 From do-not-reply at jboss.com Mon Jun 9 16:15:52 2008 From: do-not-reply at jboss.com (tomstrummer) Date: Mon, 9 Jun 2008 16:15:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Certain WS request syntax not supported in AS 4.2.x Message-ID: <1617452.1213042552853.JavaMail.jboss@colo-br-02.atl.jboss.com> "alessio.soldano at jboss.com" wrote : The soap message you wrote is using rpc/encoded style. This is not supported anymore since a lot of time, because it has been disallowed by WS-I Basic Profile. Can anyone give a hint on what can be done to consume a RPC/encoded web service? Unfortunately I'm writing a client, the service itself is out of my control. I have no choice, but all of the Java WS toolkits (metro, CXF, JBoss WS) seem to have not support it... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156824#4156824 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156824 From do-not-reply at jboss.com Mon Jun 9 16:21:40 2008 From: do-not-reply at jboss.com (lujop) Date: Mon, 9 Jun 2008 16:21:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: problem with calling ssl web service Message-ID: <4987771.1213042900884.JavaMail.jboss@colo-br-02.atl.jboss.com> I've the same problem. Someone has any workarround? I submitted a bug in the JIRA: http://jira.jboss.org/jira/browse/JBWS-2216 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156825#4156825 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156825 From do-not-reply at jboss.com Mon Jun 9 19:36:36 2008 From: do-not-reply at jboss.com (andregps) Date: Mon, 9 Jun 2008 19:36:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Two ejb's in one wstools config file? Message-ID: <24802194.1213054596984.JavaMail.jboss@colo-br-02.atl.jboss.com> How can i configure the mapping of two ejb's in one wstools config file, in order to generate one webservices.xml? or in this case i have to generate two webservices.xml? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156877#4156877 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156877 From do-not-reply at jboss.com Tue Jun 10 03:08:33 2008 From: do-not-reply at jboss.com (rajesh_css) Date: Tue, 10 Jun 2008 03:08:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to use webservices in jboss portals Message-ID: <19137231.1213081713982.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am working on jbossportals ,how to use webservices in jboss portals. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156907#4156907 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156907 From do-not-reply at jboss.com Tue Jun 10 07:12:13 2008 From: do-not-reply at jboss.com (kishor@datavsn.com) Date: Tue, 10 Jun 2008 07:12:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Ho to use web services in jboss-4.0.5 and EJB 2.0 Message-ID: <29526220.1213096333575.JavaMail.jboss@colo-br-02.atl.jboss.com> I am running a JBoss Server 4.0.5, EJB2.0 and I want to use web services. How to start with it and does it needs any additional s/w's ? Just Wondering... -Kishor. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156961#4156961 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156961 From do-not-reply at jboss.com Tue Jun 10 11:06:01 2008 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 10 Jun 2008 11:06:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to use webservices in jboss portals Message-ID: <6112791.1213110361676.JavaMail.jboss@colo-br-02.atl.jboss.com> It should be no different than using web services from a client. I assume that you are writing a portlet, and that portlet will call a web service. In that case, the portlet acts just like any other web services client, and the web service invocation within the portlet looks the same as for any web services client. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157053#4157053 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157053 From do-not-reply at jboss.com Tue Jun 10 11:07:51 2008 From: do-not-reply at jboss.com (agohar) Date: Tue, 10 Jun 2008 11:07:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JbossWS array type issues Message-ID: <20706558.1213110472163.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am having a problem with JBossWS for Array elements in wsdl. I am using JBoss-4.2.2. One of my webservices method returns an object (complex type), which contains the array of other objects in it. Here is the snippt from my wsdl | | | | | | | | | | | | | This Object is returned from one of the webservices method and when attr2 and attr4 are null array or empty array, it doesn't return anything back to the soap client. I want it to return empty array. Is it possible? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157054#4157054 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157054 From do-not-reply at jboss.com Tue Jun 10 11:14:54 2008 From: do-not-reply at jboss.com (nraghava) Date: Tue, 10 Jun 2008 11:14:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Method Overloading and SOAP Annotations Message-ID: <7203978.1213110894465.JavaMail.jboss@colo-br-02.atl.jboss.com> I have my HelloWorld EJB3 service with 3 overloaded methods and corresponding SOAP Annotations. Hello World Impl Code: | public class SomeServiceBean implements SomeService { | | @WebMethod | @WebResult(name="someData") | public string SomeMethod ( @WebParam(name="somedaylong") long X, | @WebParam(name="somedaylong") long Y, | @WebParam(name="somemonth") string Z) { | .... | } | | @WebMethod | @WebResult(name="someData") | public string SomeMethod ( @WebParam(name="somedayint") int X, | @WebParam(name="someweekint") int Y, | @WebParam(name="somemonth") string Z) { | .... | } | | | @WebMethod | @WebResult(name="someData") | public string SomeMethod ( @WebParam(name="somedaylong") long X, | @WebParam(name="someweekint") int Y, | @WebParam(name="somemonth") string Z) { | .... | } | } | | Per the WSDL Spec, the combination of method name and in/out parameter name should be unique as in this case i.e., [SomeMethod, somedaylong, somedaylong, somemonth] [SomeMethod, somedayint, somedayint, somemonth] [SomeMethod, somedaylong, somedayint, somemonth] When I deploy this service in my JBoss 4.2.1 GA container i get the following error message: | 2008-06-06 14:23:26,714 WARN [org.jboss.ws.metadata.wsdl.WSDLBinding] Multiple binding operations r | eference: {http://Some.services.xyz.com/}SomeMethod | 2008-06-06 14:23:26,715 WARN [org.jboss.ws.metadata.wsdl.WSDLBinding] Multiple binding operations r | eference: {http://Some.services.xyz.com/}SomeMethod | 2008-06-06 14:23:26,715 WARN [org.jboss.ws.metadata.wsdl.WSDLBinding] Multiple binding operations r | eference: {http://Some.services.xyz.com/}SomeMethod | 2008-06-06 14:23:26,742 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/ | var/lib/jbossas/server/production/tmp/deploy/tmp34936Some-service-ear-1.0-SNAPSHOT.ear-contents/Some | -service-ejb-1.0-SNAPSHOT.jar | java.lang.IllegalArgumentException: Duplicate operation with name=SomeMethod, found in binding '{htt | p://Some.services.xyz.com/}SomeServiceBinding'. | at com.ibm.wsdl.BindingImpl.getBindingOperation(BindingImpl.java:244) | at org.jboss.ws.tools.wsdl.WSDL11Reader.getBindingOperation(WSDL11Reader.java:940) | at org.jboss.ws.tools.wsdl.WSDL11Reader.getOperationStyle(WSDL11Reader.java:949) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processPortTypeOperations(WSDL11Reader.java:655) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processPortType(WSDL11Reader.java:642) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processBinding(WSDL11Reader.java:1035) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processPort(WSDL11Reader.java:1560) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processPorts(WSDL11Reader.java:1545) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processServices(WSDL11Reader.java:1515) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:174) | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128) | at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321) | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaDat | a(JAXWSWebServiceMetaDataBuilder.java:166) | at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService( | JAXWSServerMetaDataBuilder.java:50) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataB | uilderEJB3.java:78) | at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(UnifiedMetaDataDeployment | Aspect.java:71) | at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(Unknown Source) | at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97) | at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInt | erceptorSupport.java:188) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy34.start(Unknown Source) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterce | ptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy9.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeplo | ymentScanner.java:263) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploym | entScanner.java:274) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeployme | ntScanner.java:225) | Any help is much appreciated? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157060#4157060 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157060 From do-not-reply at jboss.com Wed Jun 11 04:20:17 2008 From: do-not-reply at jboss.com (agohar) Date: Wed, 11 Jun 2008 04:20:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - @WebContext url pattern problem Message-ID: <18230241.1213172417425.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am using jboss-4.2.2 and EJB 3.0 SLSB to generate a webservice. I've defined a @WebContext for the webservice like: | @WebContext (contextRoot = "/myweb", urlPattern="/myweb-service/WebDelegateEndPoint") | Notice that "myweb" is common in contextRoot and urlPattern attributes. When jbossws generates the webservice, it generates the URL for the webservice as: http://localhost:8080/myweb/-service/WebDelegateEndPoint?wsdl Notice the missing "myweb" in the url pattern. I am expecting it to generate: http://localhost:8080/myweb/myweb-service/WebDelegateEndPoint?wsdl Is it a bug or am i doing anything wrong? Any idea? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157246#4157246 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157246 From do-not-reply at jboss.com Wed Jun 11 04:34:01 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 11 Jun 2008 04:34:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: @WebContext url pattern problem Message-ID: <20320373.1213173241473.JavaMail.jboss@colo-br-02.atl.jboss.com> This might be a bug, could you please fill in the JIRA attaching a small test reproducing the issue? Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157248#4157248 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157248 From do-not-reply at jboss.com Wed Jun 11 08:05:24 2008 From: do-not-reply at jboss.com (max.andersen@jboss.com) Date: Wed, 11 Jun 2008 08:05:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: a problem when call web service using web service client Message-ID: <24496094.1213185924982.JavaMail.jboss@colo-br-02.atl.jboss.com> Heiko - any update ? :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157321#4157321 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157321 From do-not-reply at jboss.com Wed Jun 11 11:17:57 2008 From: do-not-reply at jboss.com (medalhas) Date: Wed, 11 Jun 2008 11:17:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Upgrading from jbossws-native-2.0.2.GA to jbossws-3.0.1- Message-ID: <17376487.1213197477320.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Thanks your info it was very helpful. Problem solved. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157419#4157419 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157419 From do-not-reply at jboss.com Thu Jun 12 00:13:44 2008 From: do-not-reply at jboss.com (BrettSc) Date: Thu, 12 Jun 2008 00:13:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: please help - web services still dont work for me - jbos Message-ID: <27505931.1213244024674.JavaMail.jboss@colo-br-02.atl.jboss.com> Just a minor change to the libraries... jbossclient-all.jar should be jbossall-client.jar. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157566#4157566 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157566 From do-not-reply at jboss.com Thu Jun 12 19:57:40 2008 From: do-not-reply at jboss.com (BrettSc) Date: Thu, 12 Jun 2008 19:57:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - setProperty must be overridden by all subclasses of SOAPMess Message-ID: <8208345.1213315060412.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I've installed JBoss4.2.2 and upgraded JBossws to native-3.0.1-2.0.4. ant deploy-jboss422 works fine but when I run the ant tests 90% or better fail with the "setProperty must be overridden..." exception and the rest fail for other reasons. I'm thinking I've gotten something corrupted but cleaning, redeploying and re-running give the same results. | 17:46:38,395 ERROR [RequestHandlerImpl] Error processing web service request | org.jboss.ws.WSException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage | at org.jboss.ws.WSException.rethrow(WSException.java:68) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:325) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Unknown Source) | Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage | at javax.xml.soap.SOAPMessage.setProperty(Unknown Source) | at org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:83) | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:171) | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:245) | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:174) | at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104) | at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:671) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:488) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284) | ... 23 more | Not sure where I took the wrong turn...any help would be appreciated. -Brett View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157846#4157846 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157846 From do-not-reply at jboss.com Thu Jun 12 20:45:17 2008 From: do-not-reply at jboss.com (BrettSc) Date: Thu, 12 Jun 2008 20:45:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: setProperty must be overridden by all subclasses of SOAP Message-ID: <21711237.1213317917921.JavaMail.jboss@colo-br-02.atl.jboss.com> ack...I had verified I was using jdk 1.5 from ant but somehow the server was getting jdk 1.6. Sorry about that...works much better now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157855#4157855 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157855 From do-not-reply at jboss.com Mon Jun 16 11:50:32 2008 From: do-not-reply at jboss.com (ben.lidgey) Date: Mon, 16 Jun 2008 11:50:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: @PostConstruct never invoked Message-ID: <29217623.1213631432824.JavaMail.jboss@colo-br-02.atl.jboss.com> I am also seeing this behaviour with JAX-WS 2.0 web services deployed to JBoss 4.2.2. @PostConstruct and @PreDestroy are called when the web service is run "manually" by defining an Endpoint in a main method, but not when deployed. Does anyone know why this is? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158407#4158407 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158407 From do-not-reply at jboss.com Mon Jun 16 12:29:05 2008 From: do-not-reply at jboss.com (tomstrummer) Date: Mon, 16 Jun 2008 12:29:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Bug? SOAP response causes ArrayIndexOutOfBoundsEx Message-ID: <11323009.1213633745140.JavaMail.jboss@colo-br-02.atl.jboss.com> I hate to bump this but I was really hoping for some help since JBossWS seemed to be the only toolkit that was getting me anywhere with this old RPC/encoded service. Most of the other Java WS frameworks wouldn't even generate the client stub classes from the WSDL. I'd be happy to give more details, file a bug report, dig into code, etc but I'm at a loss as to where to start. Is this even supported by JBossWS anymore? I know RPC/encoded services are not WS-I compliant and all that jazz, but that doesn't help me since I have an old 3rd party service that I have to integrate with :( My last resort will be hand-crafting the request and response! And the WSDL is not trivial since there are a number of complex types. Any help would be greatly appreciated! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158419#4158419 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158419 From do-not-reply at jboss.com Mon Jun 16 11:04:56 2008 From: do-not-reply at jboss.com (DrPizza) Date: Mon, 16 Jun 2008 11:04:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Creating web service endpoints on-the-fly Message-ID: <24764073.1213628696384.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, We would like to generate web service endpoints dynamically (rather than statically configured using the annotations). Is there any reasonably simple way of doing this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158381#4158381 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158381 From do-not-reply at jboss.com Mon Jun 16 17:23:34 2008 From: do-not-reply at jboss.com (APieropan) Date: Mon, 16 Jun 2008 17:23:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problem calling a ws in a servlet Message-ID: <20552507.1213651414712.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, i am developing an application using jboss 4.2.2,ejb 3.0 and netbeans. Following one of the tutorials online i created a web service inside the ejb container, then i created a web service inside my web container. After that i created a servlet. In the servlet i used the "command call web service operation" to auto generate the needed code to call the ws. The result is the injection | @WebServiceRef(wsdlLocation = "http://localhost:8080/prova/NewWebService?wsdl") | That is not supported in jboss 4.2 causing a null pointer exception when i try to access the requested resource. I tried the "walkaruond" found on this forum using this code in stand of the previous injection: | private NewWebServiceService service; | service = new NewWebServiceService(); | and i got the following exception: | java.lang.ClassCastException: org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl cannot be cast to javax.xml.ws.spi.ServiceDelegate21 | Can someone help me solving this trouble, is there any working "walkaround" to call a ws inside a servlet using Jboss 4.2 and Netbeans? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158513#4158513 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158513 From do-not-reply at jboss.com Tue Jun 17 02:54:02 2008 From: do-not-reply at jboss.com (tommy.bergkvist) Date: Tue, 17 Jun 2008 02:54:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Streaming webservices Message-ID: <29145312.1213685642397.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am using jbossas 4.2.2, jbossws 3.0.1. I am having some trouble with my webservice implementation. My endpoint needs to be able to both send and receive large XMLs. In my case there are large elements (100 Mb) which are Base64 encoded. All attempts on sending such XML ends up as a DOMSource on my endpoint. Is there any way to configure Webservices to not parse the incoming message and use StreamSource instead. I have no interest what so ever to marshall/unmarshall, validate, use Interceptors nor Handlers. I would be very pleased if incoming message could be streamed straight down to disk. If StreamSource is not possible, then a StaxSource using the Woodstox implementation would be nice as well (it handles large Elements). I am also having a similar problem with my stand-alone client. It runs with java 1.6. As soon as an Element is larger than 100kb I get an Exception that end element is missing, It seams that the XMLStreamReader (which is used by com.sun.xml.internal.ws.client.dispatch) can not handle large Elements. Do I need to use Spring to be able to stream over Webservices? Anyone has any ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158588#4158588 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158588 From do-not-reply at jboss.com Tue Jun 17 03:32:55 2008 From: do-not-reply at jboss.com (sagimann) Date: Tue, 17 Jun 2008 03:32:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem calling a ws in a servlet Message-ID: <18045853.1213687975456.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm getting the same problem. Are you sure JBoss 4.2 doesn't support WebServiceRef annotation? could you pls point me to a doc ref that says that? I've been looking all over for an "official" statement about this... anyway, I worked around the problem as you did. However, make sure that the object you create with the 'new' statement is of the class that was auto-generated for you on the client side - not of the class that was used to implement the "real" service. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158603#4158603 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158603 From do-not-reply at jboss.com Tue Jun 17 03:35:35 2008 From: do-not-reply at jboss.com (sagimann) Date: Tue, 17 Jun 2008 03:35:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: @WebServiceRef for JAX-RPC service? Message-ID: <1012001.1213688136030.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm having the same problem. did you solve this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158604#4158604 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158604 From do-not-reply at jboss.com Tue Jun 17 03:43:04 2008 From: do-not-reply at jboss.com (sagimann) Date: Tue, 17 Jun 2008 03:43:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web Service Client Message-ID: <26812820.1213688584330.JavaMail.jboss@colo-br-02.atl.jboss.com> hi, I'm having the same problem with the NPE. Did you solve this? By the way, I noticed that the latest JBossWS comes with many test cases, some of which uses annotations and seem to pass the test-run... However, I was still unable to "reproduce" the success... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158605#4158605 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158605 From do-not-reply at jboss.com Tue Jun 17 03:45:35 2008 From: do-not-reply at jboss.com (APieropan) Date: Tue, 17 Jun 2008 03:45:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem calling a ws in a servlet Message-ID: <25855314.1213688735803.JavaMail.jboss@colo-br-02.atl.jboss.com> I found that WebServiceRef is not supported in Jboss 4.2 web container even on this forum. If you search that annotation you can find many topics related. What do you mean by the class auto generated on the client side? When i create a web service client the only thing that is generate by the ide is a web service reference wsdl. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158606#4158606 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158606 From do-not-reply at jboss.com Tue Jun 17 04:57:34 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 17 Jun 2008 04:57:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Bug? SOAP response causes ArrayIndexOutOfBoundsEx Message-ID: <2026033.1213693054591.JavaMail.jboss@colo-br-02.atl.jboss.com> "tomstrummer" wrote : | I'd be happy to give more details, file a bug report, dig into code, etc but I'm at a loss as to where to start. Is this even supported by JBossWS anymore? I know RPC/encoded services are not WS-I compliant and all that jazz, but that doesn't help me since I have an old 3rd party service that I have to integrate with :( | No, we don't support RPC/encoded as well :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158630#4158630 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158630 From do-not-reply at jboss.com Tue Jun 17 09:27:41 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Tue, 17 Jun 2008 09:27:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Streaming webservices Message-ID: <33035726.1213709261781.JavaMail.jboss@colo-br-02.atl.jboss.com> I think one option to solve your problem could be to use soap as an attachemnt feature. There are samples in the jboss source download. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158698#4158698 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158698 From do-not-reply at jboss.com Tue Jun 17 09:59:56 2008 From: do-not-reply at jboss.com (tomstrummer) Date: Tue, 17 Jun 2008 09:59:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: @WebServiceRef for JAX-RPC service? Message-ID: <2983031.1213711196872.JavaMail.jboss@colo-br-02.atl.jboss.com> "sagimann" wrote : I'm having the same problem. did you solve this? Unfortunately, no. I think there was an open issue related to this, with a fix version of JBossAS 5.0. I guess updating JBossAS 4 with the latest JBossWS JARs is not enough. I had to go the traditional route and do a JNDI lookup as described here: http://jbws.dyndns.org/mediawiki/index.php?title=JAX-RPC_User_Guide#Web_Services_Clients View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158707#4158707 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158707 From do-not-reply at jboss.com Wed Jun 18 04:18:05 2008 From: do-not-reply at jboss.com (tommy.bergkvist) Date: Wed, 18 Jun 2008 04:18:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Streaming webservices Message-ID: <3095909.1213777085637.JavaMail.jboss@colo-br-02.atl.jboss.com> Unfortunately I am note the one who is responsible for the technical specifiaction. The transport should comply with a specified XSD and also various clients and servers (not only the ones I am implementing) should be able to communicate. Also, the XML elements that are that large actually contains binary documents that the server is not required to understand. They should just be stored in an archive as base64 encoded strings. I have tried to figure out how to solve this, but there does not seem to exist any implementation to handle streaming webservices with large XML elements. The one parser I have used which can handle this is Woodstox, but jboss does not support this, right? Maybe in the future? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158908#4158908 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158908 From do-not-reply at jboss.com Wed Jun 18 09:43:08 2008 From: do-not-reply at jboss.com (shaikbash) Date: Wed, 18 Jun 2008 09:43:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - EJB Web Service Stateful? Message-ID: <1521007.1213796588116.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have developed a simple EJB based web-service as shown below: @Stateless @Remote(MySession.class) @WebService(endpointInterface = "test.MySession") @WebContext(contextRoot = "/mySession") public class MySessionBean implements MySession { private int count; public int getCount() { return ++count; } } This is deployed on JBOSS 4.2.2 server. I have a servlet based client, which connects to this service using the jbossws-3.0.1-native-2.0.4 jars. Whenever I call the getCount() method from the client I get an incremented value. I was expecting to always get 1 as the return value, since my EJB is stateless. My question is how is it retaining the state? Any light on this is greately appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158989#4158989 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158989 From do-not-reply at jboss.com Wed Jun 18 13:11:03 2008 From: do-not-reply at jboss.com (tomstrummer) Date: Wed, 18 Jun 2008 13:11:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Bug? SOAP response causes ArrayIndexOutOfBoundsEx Message-ID: <19982475.1213809063423.JavaMail.jboss@colo-br-02.atl.jboss.com> But you (and Axis1) could actually generate client stubs! Damn. I think there is absolutely no Java WS framework that supports RPC/encoded services. I'm pretty sure I've tried them all. What's worse, the difference in the message seems almost trivial. Maybe some XSL magic could help... Does JBossWS offer the ability to hook into the XML event stream before it's sent on to the XML-> Java mapping? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159055#4159055 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159055 From do-not-reply at jboss.com Wed Jun 18 14:18:21 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Wed, 18 Jun 2008 14:18:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Streaming webservices Message-ID: <22696690.1213813101840.JavaMail.jboss@colo-br-02.atl.jboss.com> Is the javax.xml.ws.Provider a solution for you? You might want to check the org.jboss.test.ws.jaxws.samples.provider test cases. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159068#4159068 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159068 From do-not-reply at jboss.com Wed Jun 18 19:30:15 2008 From: do-not-reply at jboss.com (tbansal) Date: Wed, 18 Jun 2008 19:30:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Message-ID: <33421405.1213831815368.JavaMail.jboss@colo-br-02.atl.jboss.com> I ran into a similar issue and fixed it. The interface stubs generated by wsconsume had namespaces defined for the header and the body in annotations. The annotations were not inherited by the implementation class. I manully carried over all the annotations including namespace bindings to the implementation class and it worked since then. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159119#4159119 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159119 From do-not-reply at jboss.com Thu Jun 19 04:15:28 2008 From: do-not-reply at jboss.com (tommy.bergkvist) Date: Thu, 19 Jun 2008 04:15:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Streaming webservices Message-ID: <18016652.1213863328899.JavaMail.jboss@colo-br-02.atl.jboss.com> I am using the Provider and the server receives a Source. However, it is a DOMSource, which means the entire message is in memory. I would like to receive a StreamSource with an InputStream. Then I can parse it myself with the appropriate tools. I have tried to disable all my Logical- and SOAPMessageHandlers to avoid parsing by jboss, but it does not seem to help. Is there somthing I can implement or configure to avoid parsing into DOM tree? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159184#4159184 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159184 From do-not-reply at jboss.com Thu Jun 19 06:29:26 2008 From: do-not-reply at jboss.com (mnemonics) Date: Thu, 19 Jun 2008 06:29:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - TypeNotPresentExceptionProxy when trying to get the Port of Message-ID: <4900187.1213871366795.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, We've generated code with wsimport (sun) from a wsdl and imported that in our webapp. When we try to get the port from the service (in order to make a web service call) it fails wirth the following error: | java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy | at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:653) | at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:460) | at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:286) | at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222) | at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69) | at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52) | at java.lang.Class.initAnnotationsIfNecessary(Class.java:3031) | at java.lang.Class.getAnnotation(Class.java:2989) | at java.lang.Class.isAnnotationPresent(Class.java:3001) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.assertSEIConstraints(ServiceDelegateImpl.java:283) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:180) | at javax.xml.ws.Service.getPort(Service.java:143) | When running this code from a (simple) client with Java EE5 libraries (javaee.jar, webservices-rt.jr) it's ok. But from within JBoss 4.2.2 it fails. We also tried the JBoss-ws update, but same problem. Any ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159223#4159223 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159223 From do-not-reply at jboss.com Thu Jun 19 08:16:08 2008 From: do-not-reply at jboss.com (extasy) Date: Thu, 19 Jun 2008 08:16:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBoss Shutdown hook Message-ID: <25118720.1213877768903.JavaMail.jboss@colo-br-02.atl.jboss.com> What is the advantage of invoking JBoss shutdown hook compared with calling system.exit. How can we invoke JBoss shutdown hook. Thanks in advance Babu View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159249#4159249 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159249 From do-not-reply at jboss.com Thu Jun 19 08:54:30 2008 From: do-not-reply at jboss.com (mnemonics) Date: Thu, 19 Jun 2008 08:54:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: TypeNotPresentExceptionProxy when trying to get the Port Message-ID: <26688017.1213880070770.JavaMail.jboss@colo-br-02.atl.jboss.com> Solved it! Although similar the code generation of wsimport (Sun) is not identical to the wsconsume of JBoss. Generation the code with wsconsume works ok. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159264#4159264 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159264 From do-not-reply at jboss.com Thu Jun 19 18:35:31 2008 From: do-not-reply at jboss.com (bbucy) Date: Thu, 19 Jun 2008 18:35:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Schema Validation - Failed to read schema document Message-ID: <29274569.1213914931493.JavaMail.jboss@colo-br-02.atl.jboss.com> Trying to turn on Schema Validation for a webservice I have created. All is ok running without validation, wsconsume has no issues generating artifacts on the server side, nor any issues running wsconsume on client side, nor any issue running the client and getting a response from the server when schema validation is NOT enabled. But, as soon as I turn on schema validation, I get the following error on the server. 17:03:59,347 INFO [SOAPBodyElementDoc] Validating: XML_VALID 17:03:59,363 WARN [StrictlyValidErrorHandler] org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'OneCardTxnRequest.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . 17:03:59,363 WARN [StrictlyValidErrorHandler] org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'OneCardTxnResponse.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not . 17:03:59,363 ERROR [StrictlyValidErrorHandler] org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'ocreq:OCReq' to a(n) 'element declaration' component. 17:03:59,363 ERROR [SOAPFaultHelperJAXWS] SOAP request exception org.jboss.ws.WSException: org.xml.sax.SAXException: src-resolve: Cannot resolve the name 'ocreq:OCReq' to a(n) 'element declaration' component. at org.jboss.ws.WSException.rethrow(WSException.java:68) at org.jboss.ws.core.soap.SOAPBodyElementDoc.validatePayload(SOAPBodyElementDoc.java:130) at org.jboss.ws.core.soap.SOAPBodyElementDoc.transitionTo(SOAPBodyElementDoc.java:82) at org.jboss.ws.core.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:173) at org.jboss.ws.core.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:263) ........ My wsdl does import two xml schemas that represent the request and response documents. Actually, had this as a single schema, but thought I'd break it up too see if the issue was dealing with both elements. Anways, a snippet of the wsdl is as follows. ................. And a snippet of my Service implementation class is as follows. @WebService(serviceName="OneCardService", portName = "OneCardInterface", endpointInterface="com.hps.exchange.onecard.ws.OneCardInterfaceType", targetNamespace = "http://ws.onecard.exchange.hps.com/", wsdlLocation = "WEB-INF/wsdl/OneCard.wsdl" ) @SchemaValidation public class OneCardInterface extends SpringBeanAutowiringSupport implements OneCardInterfaceType { ...... } I do actually generate my artifacts using wsconsume in a different project and then copy my wsdl and the two xml schemas to my WAR's WEB-INF/wsdl directory. Not sure, if that could be effecting anything. Kind of running around in circles at this point. Any ideas would be greatly, greatly appreciated. Thanks, Bob View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159403#4159403 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159403 From balanscott at gmail.com Thu Jun 19 20:26:46 2008 From: balanscott at gmail.com (Alan Scott) Date: Thu, 19 Jun 2008 20:26:46 -0400 Subject: [jbossws-users] EJB v3 Compatibilities with Apache Axis Message-ID: <485AF946.3050506@gmail.com> Is there any way to use an EJBv3 webservice deployed in jbossws with a solution that is trying to access it via Apache Axis? The core issue is that this is fromm a vendor system and for whatever reason the vendor system has the params to our deployed web service mapped but when the web service is invoked it is not getting any of the params. Any assistance would be greatly appreciated. From do-not-reply at jboss.com Fri Jun 20 03:47:51 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Fri, 20 Jun 2008 03:47:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Schema Validation - Failed to read schema document Message-ID: <6107678.1213948071911.JavaMail.jboss@colo-br-02.atl.jboss.com> Are you having this issue only with more than one imported schema? In this case please see http://jira.jboss.org/jira/browse/JBWS-2235 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159465#4159465 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159465 From do-not-reply at jboss.com Fri Jun 20 03:51:40 2008 From: do-not-reply at jboss.com (FrankTheTank) Date: Fri, 20 Jun 2008 03:51:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss Shutdown hook Message-ID: <19686256.1213948300796.JavaMail.jboss@colo-br-02.atl.jboss.com> You have your concepts mixed up. A shutdown hook is a (or multiple) task you can add to the system that will then be executed when the system recieves a shutdown from the OS. So, lets say you have a connection somewhere and you want it to be closed gracefully when the system shuts down. You would create a task that does exactly this and register it with the shutdown hook. System.exit() tells the application to abort and (I'm only guessing now) would then call the shutdown hook. Someone correct me if I am wrong. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159469#4159469 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159469 From do-not-reply at jboss.com Fri Jun 20 08:54:55 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Fri, 20 Jun 2008 08:54:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBossWS 3.0.2 Released Message-ID: <30324148.1213966495832.JavaMail.jboss@colo-br-02.atl.jboss.com> We're happy to announce the release of JBossWS 3.0.2 GA that includes Native (fully certified JAX-WS web services implementation), Metro and Apache CXF integration Native runs on jboss-5.0.0.Beta4, jboss-4.2.2 and jboss-4.2.1 Both Metro and CXF run on jboss-5.0.0.Beta4 and jboss-4.2.2 JAXWS brings to web services what EJB3 brings to EJB. With its greatly simplified programming model and functional enhancements it is designed to take the place of previous JAX-RPC web service implementations. The binaries, including the samples can be obtained here: http://labs.jboss.com/jbossws/downloads/ Installation instructions can be found here: http://jbws.dyndns.org/mediawiki/index.php/Main_Page To get started please have a look at the Quick Start and User Guide: http://jbws.dyndns.org/mediawiki/index.php/Quick_Start http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide If you don't know it already, you'll be surprised how easy it is to do Web Services. Big thanks to the team and many contributors for all the hard work to make this release possible. The JBossWS team View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159549#4159549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159549 From balanscott at gmail.com Fri Jun 20 09:07:58 2008 From: balanscott at gmail.com (Alan Scott) Date: Fri, 20 Jun 2008 09:07:58 -0400 Subject: [jbossws-users] Can Apache Axis use EJBv3 Based Web Services Message-ID: <485BABAE.6020500@gmail.com> Can vendor systems that use Apache Axis as their WS layer read and use EJBv3 based web services? We are having an issue with a vendors system and we can clearly show we are passing the params to our web service in their technology; however, the web service never get the params. When we use SOAP-UI or the Web Services Explorer in Eclipse everything works great. Any recommendations, web links or help would be greatly appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbossws-users/attachments/20080620/bb87f898/attachment.html From balanscott at gmail.com Fri Jun 20 09:10:32 2008 From: balanscott at gmail.com (Alan Scott) Date: Fri, 20 Jun 2008 09:10:32 -0400 Subject: [jbossws-users] [JBossWS] - EJB Web Service Stateful? In-Reply-To: <1521007.1213796588116.JavaMail.jboss@colo-br-02.atl.jboss.com> References: <1521007.1213796588116.JavaMail.jboss@colo-br-02.atl.jboss.com> Message-ID: <485BAC48.1040804@gmail.com> shaikbash wrote: > Hi, > I have developed a simple EJB based web-service as shown below: > > @Stateless > @Remote(MySession.class) > @WebService(endpointInterface = "test.MySession") > @WebContext(contextRoot = "/mySession") > public class MySessionBean implements MySession > { > private int count; > > public int getCount() > { > return ++count; > } > } > > This is deployed on JBOSS 4.2.2 server. > I have a servlet based client, which connects to this service using the jbossws-3.0.1-native-2.0.4 jars. Whenever I call the getCount() method from the client I get an incremented value. I was expecting to always get 1 as the return value, since my EJB is stateless. My question is how is it retaining the state? Any light on this is greately appreciated. > > > View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158989#4158989 > > Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158989 > _______________________________________________ > jbossws-users mailing list > jbossws-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/jbossws-users > > We always do these within a conversation context of a web application. In other words, our Seam web application form/action calls the service. Other than that everything else does looks the same to me. From balanscott at gmail.com Fri Jun 20 09:15:27 2008 From: balanscott at gmail.com (Alan Scott) Date: Fri, 20 Jun 2008 09:15:27 -0400 Subject: [jbossws-users] Test Post Message-ID: <485BAD6F.8090407@gmail.com> None of my post seem to be posting.. From dlofthouse at redhat.com Fri Jun 20 09:20:59 2008 From: dlofthouse at redhat.com (Darran Lofthouse) Date: Fri, 20 Jun 2008 14:20:59 +0100 Subject: [jbossws-users] Test Post In-Reply-To: <485BAD6F.8090407@gmail.com> References: <485BAD6F.8090407@gmail.com> Message-ID: <485BAEBB.5030702@redhat.com> This mailing list is just really just used as an archive to the forums, if you have questions you should post them directly to the forum: - http://www.jboss.com/index.html?module=bb&op=viewforum&f=200 Regards, Darran Lofthouse. Alan Scott wrote: > None of my post seem to be posting.. > _______________________________________________ > jbossws-users mailing list > jbossws-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/jbossws-users From do-not-reply at jboss.com Fri Jun 20 09:33:08 2008 From: do-not-reply at jboss.com (bbucy) Date: Fri, 20 Jun 2008 09:33:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Schema Validation - Failed to read schema document Message-ID: <19159198.1213968788091.JavaMail.jboss@colo-br-02.atl.jboss.com> Actually originally I was importing a single schema (e.g. OneCardTxn.xsd) which had two elements defined (e.g. OCReq and OCRsp). I was receiving the exact same error just failing on the single import. So, I ended up changing it to two schemas (e.g. OneCardTxnRequest.xml and OneCardTxnResponse.xml) thinking that may have been the problem. By the way, I am using jbossws-3.0.1-native-2.0.4.GA deployed on JBoss_4_2_2_GA with JBoss Messaging 1.4.0.SP3 replacing JBossMQ. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159562#4159562 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159562 From do-not-reply at jboss.com Fri Jun 20 12:33:38 2008 From: do-not-reply at jboss.com (gcoleman) Date: Fri, 20 Jun 2008 12:33:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: EJB Web Service Stateful? Message-ID: <32951464.1213979618472.JavaMail.jboss@colo-br-02.atl.jboss.com> Stateless EJBs are only stateless in the sense that they're not associated with any particular client session. The actual EJB instances can and will be pooled by the application server. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159612#4159612 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159612 From do-not-reply at jboss.com Fri Jun 20 14:22:53 2008 From: do-not-reply at jboss.com (yangg) Date: Fri, 20 Jun 2008 14:22:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: What controls the SOAP version used in JBoss Message-ID: <14202464.1213986173719.JavaMail.jboss@colo-br-02.atl.jboss.com> Amit, I'm having a similar problem. Did you find the answer to how to control the SOAP version in JBoss 4.2.2? Thanks, Gang View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159648#4159648 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159648 From do-not-reply at jboss.com Sun Jun 22 13:12:10 2008 From: do-not-reply at jboss.com (argol1278) Date: Sun, 22 Jun 2008 13:12:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsconsume https Message-ID: <22489719.1214154730112.JavaMail.jboss@colo-br-02.atl.jboss.com> hi all I want to develop web service over https but i have problem with generating artifactes from https: ----------------------------------------------------- 1) It is possible to generate artifactes from https://site/wsdl.wsdl ? ------------------------------------------------------ I configure tomcat ssl jboss-4.2.2.GA\server\default\deploy\jboss-web.deployer\servers and web.xml in my application | | Protected Context | /* | --> | |