From do-not-reply at jboss.com Thu Mar 1 04:00:37 2007 From: do-not-reply at jboss.com (ragsta) Date: Thu, 1 Mar 2007 04:00:37 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: wsprovide/wsconsume vs wstools Message-ID: <6634961.1172739637872.JavaMail.jboss@colo-br-02.atl.jboss.com> ...I was trying to understand but...wsconsume doesn't work beacuse of the lack of some classes in jbossws-client.jar... if you resolve the problem please post the solution...tanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024126#4024126 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024126 From do-not-reply at jboss.com Thu Mar 1 04:03:54 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Thu, 1 Mar 2007 04:03:54 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2.0.GA NumberFormatException For ENDPOINT_ADDR Message-ID: <27382581.1172739834653.JavaMail.jboss@colo-br-02.atl.jboss.com> You should add parameters ("?datatype=SOAPMessage") to the URL string: Caused by: java.lang.NumberFormatException: For input string: "8791?datatype=SOAPMessage" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024130#4024130 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024130 From do-not-reply at jboss.com Thu Mar 1 04:05:51 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Thu, 1 Mar 2007 04:05:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: wsprovide/wsconsume vs wstools Message-ID: <9562704.1172739951566.JavaMail.jboss@colo-br-02.atl.jboss.com> Regarding the first question: MNo it doesnt replace wstools, it's a complement tool set for JAX-WS artefacts, whereas wstools deals with JAX-RPC artefacts. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024132#4024132 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024132 From do-not-reply at jboss.com Thu Mar 1 04:06:57 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Thu, 1 Mar 2007 04:06:57 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: wsprovide/wsconsume vs wstools Message-ID: <3773848.1172740017232.JavaMail.jboss@colo-br-02.atl.jboss.com> Ragsta, could you provide some stack trace? Also, did you follow the installation instructions as mentioned in the userguide? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024133#4024133 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024133 From do-not-reply at jboss.com Thu Mar 1 04:12:55 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Thu, 1 Mar 2007 04:12:55 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws 1.2.0.GA installation instructions confusion!! Message-ID: <28407.1172740375886.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry for the confusion. The Install.txt has been updated to point ot the right source of information: http://jbws.dyndns.org/mediawiki/index.php/Install_JBossWS You need to follow the installation steps as explained in the wiki above. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024136#4024136 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024136 From do-not-reply at jboss.com Thu Mar 1 04:14:25 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Thu, 1 Mar 2007 04:14:25 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2.0.GA Message-ID: <21864811.1172740465565.JavaMail.jboss@colo-br-02.atl.jboss.com> Did you try the samples that ship with 1.2.0? When exactly does this error occur? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024138#4024138 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024138 From do-not-reply at jboss.com Thu Mar 1 04:52:59 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 04:52:59 -0500 (EST) Subject: [jbossws-users] [JBossWS] - jbossws-1.2.0.GA released Message-ID: <31839051.1172742779390.JavaMail.jboss@colo-br-02.atl.jboss.com> As of this post I am happy to anounce that jbossws-1.2.0.GA is released. This is our first imlementaion that supports both JAX-WS and JAX-RPC style web services. jbossws-1.2.0.GA runs on jboss-5.0.x, jboss-4.2.x, jboss-4.0.5, Tomcat. JAX-WS brings to web services what EJB3 brings to EJB. With its greatly simplified programming model and functional enhancements it is desigend to take the place of previous JAX-RPC web service implementations. Details of how to download and install the new stack can be found in our new wiki http://jbws.dyndns.org/mediawiki/index.php/Main_Page To get started please have a look at our new 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 I'd like to thank the team and the many contributors for all the hard work to make this milestone release possible. If you don't know it already, you'll be surprised how easy it is to do Web Services. Have Fun View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024150#4024150 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024150 From do-not-reply at jboss.com Thu Mar 1 05:29:11 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 05:29:11 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jboss-1.2.0GA info Message-ID: <20903123.1172744951405.JavaMail.jboss@colo-br-02.atl.jboss.com> You need to include jbossws-wsconsume-impl.jar in your client classpath I updated the wiki http://jbws.dyndns.org/mediawiki/index.php/Install_JBossWS and the distribution http://labs.jboss.com/file-access/default/members/jbossws/downloads/jbossws-1.2.0.GA.zip cheers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024162#4024162 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024162 From do-not-reply at jboss.com Thu Mar 1 05:38:22 2007 From: do-not-reply at jboss.com (mikaelstaldal) Date: Thu, 1 Mar 2007 05:38:22 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: How to control port name in generated WSDL Message-ID: <31521432.1172745502582.JavaMail.jboss@colo-br-02.atl.jboss.com> Upgrading to JBossWS 1.2.0 solved this problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024163#4024163 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024163 From do-not-reply at jboss.com Thu Mar 1 06:05:33 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 06:05:33 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: .war Deployment fails after upgrade to jbossws-1.2.0.GA Message-ID: <23277088.1172747133046.JavaMail.jboss@colo-br-02.atl.jboss.com> Make sure you update the jaxb jars that come with the distribution. jbossws-1.2.0 is supported on jboss-4.0.5 and above. We have not done QA on jboss-4.0.4 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024176#4024176 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024176 From do-not-reply at jboss.com Thu Mar 1 07:22:43 2007 From: do-not-reply at jboss.com (mikaelstaldal) Date: Thu, 1 Mar 2007 07:22:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Using rpc/encoded Message-ID: <18260919.1172751763570.JavaMail.jboss@colo-br-02.atl.jboss.com> I use JBossWS 1.2.0. The documentation for JBossWS 1.2.0 says "JBossWS has basic support for rpc/encoded", but it doesn't say how to activate it. How can I deploy a Web Service supporting rpc/encoded? I know that rpc/encoded is not recommended, but I need to maintain interopability with some old clients. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024224#4024224 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024224 From do-not-reply at jboss.com Thu Mar 1 09:43:20 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 09:43:20 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Using rpc/encoded Message-ID: <32734113.1172760200340.JavaMail.jboss@colo-br-02.atl.jboss.com> Its activated by default View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024281#4024281 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024281 From do-not-reply at jboss.com Thu Mar 1 09:46:16 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 09:46:16 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WSDL - Schema definitions Message-ID: <30656373.1172760376868.JavaMail.jboss@colo-br-02.atl.jboss.com> @WebService supports wsdlLocation in which case the wsdl that you privide is fed back to the client. Of course you will have to set your annotations such that it conforms to the abstract contract. Try wsconsume. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024284#4024284 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024284 From do-not-reply at jboss.com Thu Mar 1 09:48:20 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 09:48:20 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: receiving a AxisFault in the client Message-ID: <22106217.1172760500267.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jbws.dyndns.org/mediawiki/index.php/Quick_Start View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024287#4024287 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024287 From do-not-reply at jboss.com Thu Mar 1 10:16:47 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 10:16:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException with JBossWS1.0.4GA and JBoss 4.0.5 Message-ID: <18255543.1172762207253.JavaMail.jboss@colo-br-02.atl.jboss.com> The latest is 1.2.0, please use that. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024299#4024299 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024299 From do-not-reply at jboss.com Thu Mar 1 10:20:26 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 10:20:26 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Generate wsdl from JSR 181 POJO Message-ID: <11824167.1172762426626.JavaMail.jboss@colo-br-02.atl.jboss.com> This should be fixed in jbossws-1.2.0 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024302#4024302 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024302 From do-not-reply at jboss.com Thu Mar 1 10:21:37 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 10:21:37 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: EJB3 and JBossWS (JAXWS), is WSgen even needed for botto Message-ID: <9984532.1172762497988.JavaMail.jboss@colo-br-02.atl.jboss.com> Please have a look at jbossws-1.2.0 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024303#4024303 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024303 From do-not-reply at jboss.com Thu Mar 1 10:28:26 2007 From: do-not-reply at jboss.com (mikaelstaldal) Date: Thu, 1 Mar 2007 10:28:26 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Using rpc/encoded Message-ID: <16116486.1172762906872.JavaMail.jboss@colo-br-02.atl.jboss.com> When I try to deploy a WebService annotated with @SOAPBinding(style=Style.RPC,use=Use.ENCODED) i get this error: | 16:25:25,676 ERROR [MainDeployer] Could not create deployment: file:/usr/local/share/java/jboss-4.0.5.GA/server/pf3/deploy/enecto/pf3-ws.war | org.jboss.deployment.DeploymentException: Cannot create service endpoint; - nested throwable: (org.jboss.ws.WSException: SOAP encoding is not supported for JSR-181 deployments) | at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53) | ... | Caused by: org.jboss.ws.WSException: SOAP encoding is not supported for JSR-181 deployments | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.processSOAPBinding(JAXWSMetaDataBuilder.java:130) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024304#4024304 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024304 From do-not-reply at jboss.com Thu Mar 1 10:32:15 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 10:32:15 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Using rpc/encoded Message-ID: <27947535.1172763135034.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, thats correct. You will have to use JAX-RPC View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024307#4024307 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024307 From do-not-reply at jboss.com Thu Mar 1 10:40:55 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 10:40:55 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Using rpc/encoded Message-ID: <4662119.1172763655055.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jira.jboss.org/jira/browse/JBWS-1552 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024312#4024312 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024312 From do-not-reply at jboss.com Thu Mar 1 10:44:47 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 10:44:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: any idea about define soap header with annotation? Message-ID: <23246518.1172763887827.JavaMail.jboss@colo-br-02.atl.jboss.com> Have a look at the webparam sample | @WebMethod(operationName = "SecurePing") | public void ping(@WebParam(name = "Ping") PingDocument p, @WebParam(name = "SecHeader", header = true) SecurityHeader secHdr) | { | log.info("ping: " + p + "," + secHdr); | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024314#4024314 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024314 From do-not-reply at jboss.com Thu Mar 1 10:55:55 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 10:55:55 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: new to JbossWS Message-ID: <19165597.1172764555224.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jbws.dyndns.org/mediawiki/index.php/Quick_Start View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024319#4024319 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024319 From do-not-reply at jboss.com Thu Mar 1 10:59:01 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 10:59:01 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Can not javax.xml.bind.JAXBContext in which jar file. Message-ID: <6658018.1172764741216.JavaMail.jboss@colo-br-02.atl.jboss.com> yes, and its out now View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024320#4024320 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024320 From do-not-reply at jboss.com Thu Mar 1 12:31:04 2007 From: do-not-reply at jboss.com (greenbean) Date: Thu, 1 Mar 2007 12:31:04 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2.0.GA NumberFormatException For ENDPOINT_ADDR Message-ID: <11706051.1172770264496.JavaMail.jboss@colo-br-02.atl.jboss.com> I am not sure I understand what you are saying? Are you saying I need to add datatype=SOAPMessage? I am not adding that currently. I am only doing this: stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY,"http://myhost:8791"); This is enough to cause the parsing error. "heiko.braun at jboss.com" wrote : You should add parameters ("?datatype=SOAPMessage") to the URL string: Caused by: java.lang.NumberFormatException: For input string: "8791?datatype=SOAPMessage" | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024374#4024374 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024374 From do-not-reply at jboss.com Thu Mar 1 12:35:37 2007 From: do-not-reply at jboss.com (greenbean) Date: Thu, 1 Mar 2007 12:35:37 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2.0.GA Message-ID: <27613720.1172770537888.JavaMail.jboss@colo-br-02.atl.jboss.com> I did not try the samples. I upgraded from the version shipping with JBoss 4.0.5.GA. The version included in JBoss 4.0.5.GA worked, but had a problem. 2007-02-27 22:59:30,052 ERROR [org.jboss.ws.jaxrpc.CallImpl] Call invocation failed with unkown Exception javax.xml.rpc.JAXRPCException: Cannot obtain deserializer factory for: [xmlType= {http://localhost:8080/xxx/}>XXX,javaType=class com.XXX] at org.jboss.ws.soap.SOAPContentElement.getDeserializerFactory(SOAPContentElement.java:421) at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:230) at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233) at org.jboss.ws.binding.EndpointInvocation.getReturnValue(EndpointInvocation.java:182) After I upgraded, this problem went away. However, I ran into this new issue. "heiko.braun at jboss.com" wrote : Did you try the samples that ship with 1.2.0? When exactly does this error occur? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024376#4024376 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024376 From do-not-reply at jboss.com Thu Mar 1 12:48:19 2007 From: do-not-reply at jboss.com (meghanai_99) Date: Thu, 1 Mar 2007 12:48:19 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException with JBossWS1.0.4GA and JBoss 4.0.5 Message-ID: <12125487.1172771299273.JavaMail.jboss@colo-br-02.atl.jboss.com> Well yesterday I downloaded the trunk [I assume that will be the latest code even if 1.2 is out, please let me know if it is different]. I have updated my post on JBPM with the exception that I am seeing now. http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024040#4024040 So now the exception is in processOperationOutputs though I don't have any output there. Thanks, Meghana View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024391#4024391 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024391 From do-not-reply at jboss.com Thu Mar 1 13:13:54 2007 From: do-not-reply at jboss.com (jimmycallaghan) Date: Thu, 1 Mar 2007 13:13:54 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Web Services and an Isolated Classloader Message-ID: <4647872.1172772834756.JavaMail.jboss@colo-br-02.atl.jboss.com> It seems that Web Services do not work when the EAR that contains the @WebService class has an isolated classloader. Here is my take on what happens: You deploy the ear and JBoss creates a war, that contains a web.xml, that points to the org.jboss.ws.server.ServiceEndpointServlet. You can send a request to the web service bean no problem, but any objects that get returned from it will throw a NoClassDefFoundError because this ServiceEndpointServlet is deployed outside of the EAR and, since it has an isolated classloader, can't reference the returned class. My application works absolutely fine when I turn off all isolation of the classloader. I don't think this can be fixed. Any ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024411#4024411 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024411 From do-not-reply at jboss.com Thu Mar 1 15:54:31 2007 From: do-not-reply at jboss.com (mcc4u) Date: Thu, 1 Mar 2007 15:54:31 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws 1.2.0.GA installation instructions confusion!! Message-ID: <19488376.1172782471650.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I installed the jbossws-1.2.0.GA and noticed jboss-xml-binding.jar file is missing. Is there any other place to get it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024463#4024463 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024463 From do-not-reply at jboss.com Thu Mar 1 16:38:26 2007 From: do-not-reply at jboss.com (loopingrage) Date: Thu, 1 Mar 2007 16:38:26 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JBossWS 1.2 on JBoss AS 4.0.5 Message-ID: <6491141.1172785106251.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm running JBoss 4.0.5 without EJB3 on JDK 1.5. I'm confused as to which version of JBossWS I should be using. The installation instructions say to use the standard release (non 14) on JDK 1.5 but when the server starts up, I get a message complaining about EJB3 not being started. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024474#4024474 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024474 From do-not-reply at jboss.com Thu Mar 1 17:32:10 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 17:32:10 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws 1.2.0.GA installation instructions confusion!! Message-ID: <18057511.1172788330774.JavaMail.jboss@colo-br-02.atl.jboss.com> I am sorry, we update. http://repository.jboss.com/jboss/jbossxb/1.0.0.CR9/lib/jboss-xml-binding.jar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024483#4024483 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024483 From do-not-reply at jboss.com Thu Mar 1 17:38:04 2007 From: do-not-reply at jboss.com (alexsun) Date: Thu, 1 Mar 2007 17:38:04 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ejb3.client.ClientLauncher in which Jar file? Message-ID: <15139178.1172788684366.JavaMail.jboss@colo-br-02.atl.jboss.com> I can not find it in my Jboss AS 4.0.5 with Ejb3 + WS 1.20. In the 1.20 Sample, this class is used but I don't know where I could find the jar file. Any one can help me? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024487#4024487 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024487 From do-not-reply at jboss.com Thu Mar 1 18:16:01 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 1 Mar 2007 18:16:01 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2.0.GA NumberFormatException For ENDPOINT_ADDR Message-ID: <895373.1172790961924.JavaMail.jboss@colo-br-02.atl.jboss.com> I believe the andpoint address is invalid because it doesn't have a context path. Shouldn't it be something like http://myhost:8791/some-context View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024494#4024494 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024494 From do-not-reply at jboss.com Thu Mar 1 18:26:10 2007 From: do-not-reply at jboss.com (jerro) Date: Thu, 1 Mar 2007 18:26:10 -0500 (EST) Subject: [jbossws-users] [JBossWS] - jboss WS-Security deployment descriptor (jboss-wsse-server.x Message-ID: <29257746.1172791570159.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm relatively new to jboss and web services security. I need to enable security processing with JSR-181 endpoints, as described here http://labs.jboss.com/portal/jbossws/user-guide/en/html/wssecurity.html, My problem is the server side configuration file (jboss-wsse-server.xml). I am deploying an ear archive with some jars in it, but jboss does not seem to pick up the jboss-wsse-server.xml file no matter where I place it. I see the following warning on my console screen: WARN [WSSecurityHandler] Cannot obtain security configuration when I send a SOAP message to my endpoint to invoke the web service. This despite the fact that I package the jboss-wsse-server.xml file in the META-INF directory of my ejb jars, as specified here http://wiki.jboss.org/wiki/Wiki.jsp?page=WSSecurityConfig. If anybody has any insight into what's going here please share it would be greatly appreciated. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024497#4024497 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024497 From do-not-reply at jboss.com Fri Mar 2 03:13:50 2007 From: do-not-reply at jboss.com (matienzar) Date: Fri, 2 Mar 2007 03:13:50 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JbossWS 1.2.0 Message-ID: <3009514.1172823230985.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, With 1.0.4 release, i've a hibernate handler to begiun a transaction and to commit it. With this new realese, the handler is not threadsafe, and when I need to commit the transaction, it's null. I'd defined the handler (with 1.0.4) in standard-jaxrpc-endpoint-config.xml, but with this new realse i've to define it in standard-jaxws-endpoint-config.xml. The code of the handler is: public class HibernateWS extends GenericSOAPHandler { UserTransaction _tx = null; @Override public boolean handleFault(MessageContext arg0) { try { _tx.rollback(); } catch (Exception e) { Log.error("No se ha podido hacer el rollback", e); throw new RuntimeException(e); } return super.handleFault(arg0); } protected boolean handleInbound(MessageContext msgContext) { try { HibernateUtil.openSession(); _tx = (UserTransaction) new InitialContext() .lookup("java:comp/UserTransaction"); _tx.begin(); } catch (Exception e) { Log.error("Cogiendo la transacci?n.", e); } return true; } protected boolean handleOutbound(MessageContext msgContext) { try { _tx.commit(); } catch (Exception e) { Log.error("Haciendo el commit", e); try { _tx.rollback(); } catch (Exception e2) { Log.error("Haciendo el rollback", e2); } throw new RuntimeException(e); } return true; } } And the config-handler: Handler hibernate gnomo ##SOAP11_HTTP WSHibernateHandlerInbound org.muvale.utilidades.handlers.HibernateWS A lot of thanks, Marcial View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024562#4024562 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024562 From do-not-reply at jboss.com Fri Mar 2 03:27:11 2007 From: do-not-reply at jboss.com (Juergen.Zimmermann) Date: Fri, 2 Mar 2007 03:27:11 -0500 (EST) Subject: [jbossws-users] [JBossWS] - 1.2: wsconsume needs com/sun/tools/xjc/api/ErrorListener ?! Message-ID: <25312443.1172824031689.JavaMail.jboss@colo-br-02.atl.jboss.com> When invoking wsconsume as an ANT task I get this error message:java.lang.NoClassDefFoundError: com/sun/tools/xjc/api/ErrorListener Where can I find a jar containing this ErrorListener? Any hint is appreciated! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024565#4024565 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024565 From do-not-reply at jboss.com Fri Mar 2 03:51:32 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Fri, 2 Mar 2007 03:51:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: 1.2: wsconsume needs com/sun/tools/xjc/api/ErrorListener Message-ID: <1280973.1172825492537.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jbws.dyndns.org/mediawiki/index.php/Install_JBossWS#JBoss-4.0.5_.28JDK-1.5.29 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024573#4024573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024573 From do-not-reply at jboss.com Fri Mar 2 04:05:35 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Fri, 2 Mar 2007 04:05:35 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JbossWS 1.2.0 Message-ID: <26298982.1172826335506.JavaMail.jboss@colo-br-02.atl.jboss.com> This is correct. The handler should be scoped on the endpoint NOT on the request. You can put you UserTransaction in the MessageContext or use a ThreadLocal View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024577#4024577 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024577 From do-not-reply at jboss.com Fri Mar 2 04:11:47 2007 From: do-not-reply at jboss.com (matienzar) Date: Fri, 2 Mar 2007 04:11:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JbossWS 1.2.0 Message-ID: <24055321.1172826707783.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks, but how can i put the usertransaction into the messagecontext? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024582#4024582 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024582 From do-not-reply at jboss.com Fri Mar 2 05:20:26 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 2 Mar 2007 05:20:26 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JbossWS 1.2.0 Message-ID: <29531080.1172830826057.JavaMail.jboss@colo-br-02.atl.jboss.com> There is currently no portable way of doing this in 4.0.5. @WebServiceContext injection will be available with 4.2. In the meantime you can access the message context like this: | CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext(); | msgContext.setProperty(, ); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024592#4024592 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024592 From do-not-reply at jboss.com Fri Mar 2 05:29:47 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 2 Mar 2007 05:29:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2.0.GA NumberFormatException For ENDPOINT_ADDR Message-ID: <11800345.1172831387835.JavaMail.jboss@colo-br-02.atl.jboss.com> It seems to be a known remoting bug: http://jira.jboss.com/jira/browse/JBREM-645 anonymous wrote : | The workaround requires that a trailing '/' is added after the host:port, for example: | "socket://succubus.starkinternational.com:4446/?datatype=invocation" | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024594#4024594 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024594 From do-not-reply at jboss.com Fri Mar 2 05:56:20 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 2 Mar 2007 05:56:20 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ejb3.client.ClientLauncher in which Jar file? Message-ID: <20990573.1172832980370.JavaMail.jboss@colo-br-02.atl.jboss.com> These tests are not suppoed to run with 4.0.5. How do youo build and invoke the samples? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024603#4024603 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024603 From do-not-reply at jboss.com Fri Mar 2 06:00:42 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 2 Mar 2007 06:00:42 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2 on JBoss AS 4.0.5 Message-ID: <19970577.1172833242243.JavaMail.jboss@colo-br-02.atl.jboss.com> Did you follow the steps described in http://jbws.dyndns.org/mediawiki/index.php/Install_JBossWS? Sorry, we are currently working on a install script that should simplify things a lot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024604#4024604 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024604 From do-not-reply at jboss.com Fri Mar 2 06:09:07 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 2 Mar 2007 06:09:07 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2.0.GA Message-ID: <4797482.1172833747401.JavaMail.jboss@colo-br-02.atl.jboss.com> If we want to nail it down, we need more information about the request/response, the WSDL, etc. You'll need to verify what request does exactly cause that error. Does happen upon parsing the request or when the response is marshalled? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024605#4024605 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024605 From do-not-reply at jboss.com Fri Mar 2 07:22:03 2007 From: do-not-reply at jboss.com (ragsta) Date: Fri, 2 Mar 2007 07:22:03 -0500 (EST) Subject: [jbossws-users] [JBossWS] - binding problem Message-ID: <25464185.1172838123392.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, using libraries and tools from Jbossws-1.2.0GA to generate a web service client I found a problem in mapping wsdl element. 'llreport the fragment that define the web service response message: | | ... | | | | | | | | ... | wstools generate for this response a class with this code: | public class Response | { | protected javax.xml.soap.SOAPElement _any; | public Response(){} | | public Response(javax.xml.soap.SOAPElement _any){ | this._any=_any; | } | public javax.xml.soap.SOAPElement get_any() | {return _any ;} | public void set_any(javax.xml.soap.SOAPElement _any) | {this._any=_any; } | | } | when I call the webservice I got a response with this body: | | | | hello | | | | Now I'm expecting that the -nay variable is filled with the .. element but what I obtain is this error: org.jboss.xb.binding.JBossXBRuntimeException: {http://test.it/test}root not found as a child of {http://test.it/test}Response at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:280) Please help, I'm going crazy... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024615#4024615 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024615 From do-not-reply at jboss.com Fri Mar 2 08:22:01 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 2 Mar 2007 08:22:01 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JbossWS 1.2.0 Message-ID: <45529.1172841721183.JavaMail.jboss@colo-br-02.atl.jboss.com> I didn't realize your first post. In case you want to populate the context from within a handler, it's passed in as a parameter. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024629#4024629 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024629 From do-not-reply at jboss.com Fri Mar 2 08:24:51 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Fri, 2 Mar 2007 08:24:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Web Services and an Isolated Classloader Message-ID: <31083846.1172841891162.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jira.jboss.org/jira/browse/JBWS-1556 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024630#4024630 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024630 From do-not-reply at jboss.com Fri Mar 2 08:26:13 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Fri, 2 Mar 2007 08:26:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jboss WS-Security deployment descriptor (jboss-wsse-serv Message-ID: <20037399.1172841973024.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#WS-Security View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024631#4024631 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024631 From do-not-reply at jboss.com Fri Mar 2 08:32:41 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Fri, 2 Mar 2007 08:32:41 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JBossWS-1.2.0.GA Installer available Message-ID: <14281634.1172842361318.JavaMail.jboss@colo-br-02.atl.jboss.com> We have replaced the manual install procedure for jbossws-1.2.0.GA with an automated install script. The updated binary distribution is available on the project download page http://labs.jboss.com/file-access/default/members/jbossws/downloads/jbossws-1.2.0.GA.zip Version: jbossws-1.2.0.GA Installation instructions ========================= This distribution ships with JBoss binaries for JDK1.4 and JDK1.5. Please make sure your chose the right distribution that fits your target JDK. In order to install JBossWS the following steps are necessary: 1.) Copy ant.properties.examples to ant.properties 2.) Modify the target container location in ant.properties 3.) Execute one of the following ant deploy-jboss50 ant deploy-jboss42 ant deploy-jboss40 ant deploy-jboss40-jdk14 ant deploy-tomcat Please consult the wiki for detailed up to date install instructions http://labs.jboss.com/portal/jbossws/ After the jbossws.sar is deployed you should be able to access JBossWS under http://localhost:8080/jbossws If you have any questions, please post to the userforum: http://www.jboss.org/index.html?module=bb&op=viewforum&f=200 Enjoy, The JBossWS Team View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024632#4024632 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024632 From do-not-reply at jboss.com Fri Mar 2 08:50:04 2007 From: do-not-reply at jboss.com (matienzar) Date: Fri, 2 Mar 2007 08:50:04 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JbossWS 1.2.0 Message-ID: <9964253.1172843404730.JavaMail.jboss@colo-br-02.atl.jboss.com> I've solve it with this code: public class HibernateWS extends GenericSOAPHandler { @Override public boolean handleFault(MessageContext msgContext) { UserTransaction _tx = null; try { if (msgContext.containsKey("hibernateTrx")){ _tx = (UserTransaction)msgContext.get("hibernateTrx"); _tx.rollback(); } } catch (Exception e) { Log.error("No se ha podido hacer el rollback", e); throw new RuntimeException(e); } return super.handleFault(msgContext); } @Override protected boolean handleInbound(MessageContext msgContext) { try { HibernateUtil.openSession(); UserTransaction _tx = (UserTransaction) new InitialContext() .lookup("java:comp/UserTransaction"); _tx.begin(); msgContext.put("hibernateTrx", _tx); } catch (Exception e) { Log.error("Cogiendo la transacci?n.", e); } return true; } @Override protected boolean handleOutbound(MessageContext msgContext) { UserTransaction _tx = null; try { if (msgContext.containsKey("hibernateTrx")){ _tx = (UserTransaction)msgContext.get("hibernateTrx"); _tx.commit(); } } catch (Exception e) { Log.error("Haciendo el commit", e); try { if(_tx != null) _tx.rollback(); } catch (Exception e2) { Log.error("Haciendo el rollback", e2); } throw new RuntimeException(e); } return true; } } I use Jboss 4.0.5 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024642#4024642 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024642 From do-not-reply at jboss.com Fri Mar 2 11:23:43 2007 From: do-not-reply at jboss.com (greenbean) Date: Fri, 2 Mar 2007 11:23:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2.0.GA NumberFormatException For ENDPOINT_ADDR Message-ID: <17926173.1172852623506.JavaMail.jboss@colo-br-02.atl.jboss.com> Ok, thanks for the information. We use URLs of this format to communicate with C processes that use GSOAP. I switched to JBossWS 1.0.4 since it parses the URLs correctly. "heiko.braun at jboss.com" wrote : It seems to be a known remoting bug: http://jira.jboss.com/jira/browse/JBREM-645 | | anonymous wrote : | | The workaround requires that a trailing '/' is added after the host:port, for example: | | "socket://succubus.starkinternational.com:4446/?datatype=invocation" | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024683#4024683 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024683 From do-not-reply at jboss.com Fri Mar 2 15:09:59 2007 From: do-not-reply at jboss.com (loopingrage) Date: Fri, 2 Mar 2007 15:09:59 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2 on JBoss AS 4.0.5 Message-ID: <30621288.1172866199439.JavaMail.jboss@colo-br-02.atl.jboss.com> I ran ant deploy-jboss40 using he new install script. I received all success messages. Now I see two suspicious items in the log. It appears as if I cant use the JDK1.5 install without EJB3. Is this correct? Thanks in advance for all you help. I see the following message towards the end of the server startup process: --- MBeans waiting for other MBeans --- | ObjectName: jboss.ws:service=DeployerInterceptorEJB3 | State: CONFIGURED | I Depend On: | jboss.ejb3:service=EJB3Deployer | | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: jboss.ejb3:service=EJB3Deployer | State: NOTYETINSTALLED | Depends On Me: | jboss.ws:service=DeployerInterceptorEJB3 I also get the following exception at the beginning: [ ServiceEndpointManager] jbossws-1.2.0.GA (build=200703021344) | [ JUDDIService ] JNDI Bind Failed:JAXR | [ LoggerStream ] javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] | [ LoggerStream ] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1317) | [ LoggerStream ] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1446) | [ LoggerStream ] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:484) | [ LoggerStream ] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:477) | [ LoggerStream ] at javax.naming.InitialContext.rebind(InitialContext.java:367) | [ LoggerStream ] at org.jboss.jaxr.juddi.JUDDIService.bindJAXRConnectionFactory(JUDDIService.java:383) | [ LoggerStream ] at org.jboss.jaxr.juddi.JUDDIService.setBindJaxr(JUDDIService.java:320) | [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | [ LoggerStream ] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | [ LoggerStream ] at java.lang.reflect.Method.invoke(Method.java:585) | [ LoggerStream ] at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:136) | [ LoggerStream ] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | [ LoggerStream ] at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:103) | [ LoggerStream ] at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76) | [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | [ LoggerStream ] at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:461) | [ LoggerStream ] at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608) | [ LoggerStream ] at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:694) | [ LoggerStream ] at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332) | [ LoggerStream ] at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460) | [ LoggerStream ] at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171) | [ LoggerStream ] at org.jboss.system.ServiceController.install(ServiceController.java:226) | [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | [ LoggerStream ] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | [ LoggerStream ] at java.lang.reflect.Method.invoke(Method.java:585) | [ LoggerStream ] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | [ LoggerStream ] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | [ LoggerStream ] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | [ LoggerStream ] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | [ LoggerStream ] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | [ LoggerStream ] at $Proxy4.install(Unknown Source) | [ LoggerStream ] at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249) | [ LoggerStream ] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) | [ LoggerStream ] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) | [ LoggerStream ] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | [ LoggerStream ] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | [ LoggerStream ] at java.lang.reflect.Method.invoke(Method.java:585) | [ LoggerStream ] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | [ LoggerStream ] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | [ LoggerStream ] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | [ LoggerStream ] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | [ LoggerStream ] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | [ LoggerStream ] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | [ LoggerStream ] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | [ LoggerStream ] at $Proxy7.deploy(Unknown Source) | [ LoggerStream ] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | [ LoggerStream ] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) | [ LoggerStream ] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) | [ LoggerStream ] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336) | [ LoggerStream ] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | [ LoggerStream ] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | [ LoggerStream ] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | [ LoggerStream ] at java.lang.reflect.Method.invoke(Method.java:585) | [ LoggerStream ] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | [ LoggerStream ] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | [ LoggerStream ] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | [ LoggerStream ] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | [ LoggerStream ] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | [ LoggerStream ] at $Proxy0.start(Unknown Source) | [ LoggerStream ] at org.jboss.system.ServiceController.start(ServiceController.java:417) | [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | [ LoggerStream ] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | [ LoggerStream ] at java.lang.reflect.Method.invoke(Method.java:585) | [ LoggerStream ] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | [ LoggerStream ] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | [ LoggerStream ] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | [ LoggerStream ] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | [ LoggerStream ] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | [ LoggerStream ] at $Proxy4.start(Unknown Source) | [ LoggerStream ] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) | [ LoggerStream ] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | [ LoggerStream ] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | [ LoggerStream ] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | [ LoggerStream ] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766) | [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | [ LoggerStream ] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | [ LoggerStream ] at java.lang.reflect.Method.invoke(Method.java:585) | [ LoggerStream ] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | [ LoggerStream ] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | [ LoggerStream ] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | [ LoggerStream ] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | [ LoggerStream ] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | [ LoggerStream ] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | [ LoggerStream ] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | [ LoggerStream ] at $Proxy5.deploy(Unknown Source) | [ LoggerStream ] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) | [ LoggerStream ] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) | [ LoggerStream ] at org.jboss.Main.boot(Main.java:200) | [ LoggerStream ] at org.jboss.Main$1.run(Main.java:490) | [ LoggerStream ] at java.lang.Thread.run(Thread.java:595) | [ LoggerStream ] Caused by: java.net.SocketTimeoutException: Receive timed out | [ LoggerStream ] at java.net.PlainDatagramSocketImpl.receive0(Native Method) | [ LoggerStream ] at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) | [ LoggerStream ] at java.net.DatagramSocket.receive(DatagramSocket.java:712) | [ LoggerStream ] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1287) | [ LoggerStream ] ... 105 more View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024747#4024747 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024747 From do-not-reply at jboss.com Fri Mar 2 15:37:59 2007 From: do-not-reply at jboss.com (valjjou) Date: Fri, 2 Mar 2007 15:37:59 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JBWS181- Exception with the client... Message-ID: <25462976.1172867879154.JavaMail.jboss@colo-br-02.atl.jboss.com> Hy ! I just try the sample HelloWorldWS. I generate my client with Eclipse. When i try to call my method, i have an exception : THE AXIS engine could not find a target service to invoke ! I don't understand, i have just use the sample... Can someone help me ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024752#4024752 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024752 From do-not-reply at jboss.com Fri Mar 2 23:29:27 2007 From: do-not-reply at jboss.com (natebowler) Date: Fri, 2 Mar 2007 23:29:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Multiple EJBs with 1 WSDL Message-ID: <14088561.1172896167071.JavaMail.jboss@colo-br-02.atl.jboss.com> I've got about 200 APIs that are spread over 15 EJB SSB classes. These APIs share a common set of complex types that are quite extensive. Because of the complex data types and large number of APIs, I am interested whether it is possible to have a single WSDL file that could distribute the implementation for specific calls across the 15 EJB classes I have. Any help with this would be appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024808#4024808 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024808 From do-not-reply at jboss.com Sat Mar 3 06:39:00 2007 From: do-not-reply at jboss.com (seventy8) Date: Sat, 3 Mar 2007 06:39:00 -0500 (EST) Subject: [jbossws-users] [JBossWS] - @WebServiceRef jbossws 1.2.0.GA Message-ID: <4789554.1172921940223.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm running jboss 4.0.5.GA with EJB3.0 Configuration and jbossws 1.2.0.GA installed with the installer. I'm using an stateless session bean as a webservice-client. I generated the artifacts with ws-import. If I use @WebServiceRef I run into the following Exception: | Non matching type for inject of field: de.uniSiegen.crm.server.ejb3.session.webservice.generated.bpeluserinteractiondialog.CrmPLService de.uniSiegen.crm.server.ejb3.session.webservice.BPELUserInteractionDialogCallbackClient.service for type: org.jnp.interfaces.NamingContext of jndiName env/de.uniSiegen.crm.server.ejb3.session.webservice.BPELUserInteractionDialogCallbackClient/service | intfs: , javax.naming.Context, java.io.Serializable If I don't use this annotation and instanciate the Service like this: CrmPLService service = new CrmPLService(); everything works fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024826#4024826 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024826 From do-not-reply at jboss.com Sat Mar 3 09:03:08 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Sat, 3 Mar 2007 09:03:08 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: @WebServiceRef jbossws 1.2.0.GA Message-ID: <22623958.1172930588173.JavaMail.jboss@colo-br-02.atl.jboss.com> Have a look at | cd jbossws-tests | ant -Dtest=jaxws/samples/webserviceref test | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024834#4024834 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024834 From do-not-reply at jboss.com Sat Mar 3 09:05:16 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Sat, 3 Mar 2007 09:05:16 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Multiple EJBs with 1 WSDL Message-ID: <11828129.1172930716591.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, this can be done if you manually consolidate the generated wsdls. Then use @WebService(wsdlLocation="bigservice.wsdl") View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024835#4024835 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024835 From do-not-reply at jboss.com Sat Mar 3 12:42:25 2007 From: do-not-reply at jboss.com (natebowler) Date: Sat, 3 Mar 2007 12:42:25 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Multiple EJBs with 1 WSDL Message-ID: <7184088.1172943745701.JavaMail.jboss@colo-br-02.atl.jboss.com> OK. So, really this is as simple as changing the webservices.xml file META-INF/wsdl/TestAPI.wsdl entry and nothing else (I'm not using JSR181, I'm using ws-tools and XDoclet) If I put the WSDL back together appropriately, it should all fall out. The WSDL ports defined with webservices.xml with proper port compenent and service endpoint settings will do the rest... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024868#4024868 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024868 From do-not-reply at jboss.com Sat Mar 3 16:04:52 2007 From: do-not-reply at jboss.com (valjjou) Date: Sat, 3 Mar 2007 16:04:52 -0500 (EST) Subject: [jbossws-users] [JBossWS] - how to use ws compile Message-ID: <16847446.1172955892487.JavaMail.jboss@colo-br-02.atl.jboss.com> Can someone help me to use ws complie. I have maybe a pb with path, i don't know but i can't run it... I have JAVA_HOME and JBOSS_HOME, ANT_HOME... and their bin in path... Which instruction did i use please View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024878#4024878 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024878 From do-not-reply at jboss.com Sun Mar 4 14:22:35 2007 From: do-not-reply at jboss.com (vitor_b) Date: Sun, 4 Mar 2007 14:22:35 -0500 (EST) Subject: [jbossws-users] [JBossWS] - web service and asynchronous processing Message-ID: <17654340.1173036155492.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello I really need your help, so please read my question and post your reply if you know the answer, so ... Webservices generally have one or more business methods exposed for clients. for example: public ResponseObject businessMethod(RequestObject request) A client sends a request, this request is transformed to an object, this object is passed as a parameter to our business method. The method do some work, then returns ResponseObject, application server sends the response to the client. The client waits for the answer. So this is synchronous communication. WebServices use SOAP. Application server knows where has to send the reply. But lets suppose that in some cases i would like to do some business logic later, not just when a request is received. I have been thinking of it and i would like you to help me. So I could expose another method, like: public ConfirmationObject asyncBusinessMethod(RequestObject request) This method would put RequestObject in JMS queue and then send reply. This reply means that request is accepted, and will be processing later. Client can continue its work. The Queue will hold all async requests. Requests will be taken from the queue later, one after the other. There will be for example a session bean (not MDB becouse i don't want it to take objects when they are available, just later), this bean will take a request from queue and then call first described method: businessMethod(...) . This method will create a reply, but now there is a big problem. Where it should be send? We have no info about client which has sent this message to our application. How to handle this? Generally client will have a end point, waiting for async response. It will use SOAP. How to send the async response using SOAP to client? Or should I do it in completely different way? The goal is asynchronous handling of requests. If there was only one client i could create and send SOAP message like that: ResponseObject response = ... | //add the response object to SOAP message | //then | SOAPConnection connection = ... | java.net.URL endpoint = new URL ("http://www.one.known.client"); | SOAPMessage response = connection.call(response, endpoint); | //endpoint - client end point waiting for async reply, hardcoded or in app config Could that be done from a session bean? If there were many clients we wouldn't know to which client we should send the reply. Once again how to handle that? Please help me, I'm a beginner and this is not easy for me at all. Thank you in advance. vitor_b View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024926#4024926 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024926 From do-not-reply at jboss.com Mon Mar 5 04:14:03 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Mon, 5 Mar 2007 04:14:03 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: web service and asynchronous processing Message-ID: <14586012.1173086043311.JavaMail.jboss@colo-br-02.atl.jboss.com> Take a look at our ws-addressing implementation: http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#WS-Addressing EndpointReferences (EPR) are used for use cases like this. Basically the client passes an EPR with the request, which then can be used to send the reply later on. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024998#4024998 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024998 From do-not-reply at jboss.com Mon Mar 5 04:31:44 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Mon, 5 Mar 2007 04:31:44 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 1.2 on JBoss AS 4.0.5 Message-ID: <33544947.1173087104156.JavaMail.jboss@colo-br-02.atl.jboss.com> If you look at the contents of the jbossws40.sar you'll find the service descriptor for non ejb3 installations: | jboss-service-no-ejb3.xml | Just rename the jboss-service-no-ejb3.xml to jboss-service.xml or just comment the DeployerInterceptorEJB3 | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025004#4025004 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025004 From do-not-reply at jboss.com Mon Mar 5 08:13:55 2007 From: do-not-reply at jboss.com (kot) Date: Mon, 5 Mar 2007 08:13:55 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-WS 2.1 Message-ID: <31638492.1173100435610.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello Werner I have the same problem. Do you already know, how to do it? ng Harald View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025036#4025036 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025036 From do-not-reply at jboss.com Mon Mar 5 09:56:54 2007 From: do-not-reply at jboss.com (superomega) Date: Mon, 5 Mar 2007 09:56:54 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAX-WS 2.1 Message-ID: <9798414.1173106614768.JavaMail.jboss@colo-br-02.atl.jboss.com> Hallo Harald, No, I don't have. The Webservices which I had made with Netbeans. With Java client I had also packed the JAX-WS Libs. But I had some problems with other Languages e.g. Delphi as client. I couldn't read the data from the Delphi-Client. The default ant-Task in Netbeans is using JAX-WS. But there are problems with namespace-setting. The program wsconsume from JBossWS is better then wsgen from JAX-WS(pure) I think. So I try now to use completely JBossWS. And I have to try hopefully that there are no problems with Delphi any more. Greets, Werner View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025075#4025075 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025075 From do-not-reply at jboss.com Mon Mar 5 10:17:09 2007 From: do-not-reply at jboss.com (seventy8) Date: Mon, 5 Mar 2007 10:17:09 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: @WebServiceRef jbossws 1.2.0.GA Message-ID: <8534781.1173107829371.JavaMail.jboss@colo-br-02.atl.jboss.com> I ran the ant-script and got the following output: Buildfile: build.xml | | prepare: | [echo] | [echo] ----------------------------------------------- | [echo] jboss.home = C:\java\jboss-4.0.5.GA | [echo] tomcat.home = /usr/java/tomcat | [echo] java.home = C:\Programme\Java\jdk1.5.0_11\jre | [echo] endorsed = C:\java\jboss-4.0.5.GA/lib/endorsed | [echo] excludesfile = tests-jboss40-excludes.txt | [echo] ----------------------------------------------- | | thirdparty-get: | | thirdparty-classpath: | | thirdparty: | | common-classpath: | | jboss-classpath: | | tomcat-classpath: | | init: | | test: | | prepare: | [echo] | [echo] ----------------------------------------------- | [echo] jboss.home = C:\java\jboss-4.0.5.GA | [echo] tomcat.home = /usr/java/tomcat | [echo] java.home = C:\Programme\Java\jdk1.5.0_11\jre | [echo] endorsed = C:\java\jboss-4.0.5.GA/lib/endorsed | [echo] excludesfile = tests-jboss40-excludes.txt | [echo] ----------------------------------------------- | | thirdparty-get: | | thirdparty-classpath: | | thirdparty: | | common-classpath: | | jboss-classpath: | | tomcat-classpath: | | init: | | tests-main: | | BUILD SUCCESSFUL | Total time: 2 seconds the generated output-folder includes the folders classes, log, and reports each of these folders is empty, except the log folder which includes an empty logfile. What is the right way to use an ejb3 stateless session bean as webservice-client? I found several examples, but none of them worked. Do I have to put the annotation to the class, to the field of the service or to the field of the port? Do I have to set a value for mappedName and wsdlLocation? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025080#4025080 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025080 From do-not-reply at jboss.com Mon Mar 5 12:48:34 2007 From: do-not-reply at jboss.com (vitor_b) Date: Mon, 5 Mar 2007 12:48:34 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: web service and asynchronous processing Message-ID: <10610459.1173116914752.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello Thank you for your reply, but unfortunately there are some things i don't understand. Could you clarify these for me please? We have Message Addressing Properties: xs:anyURI ? | wsa:EndpointReferenceType ? | wsa:EndpointReferenceType ? | wsa:EndpointReferenceType ? | xs:anyURI | xs:anyURI ? | xs:anyURI * | xs:any* ? where EndpointReferenceType means: | xs:anyURI | xs:any* ? | xs:any*? | That is ok, but there is on the page http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#WS-Addressing something like this: | | | ##SOAP11_HTTP | | Application Server Handler | org.jboss.test.ws.jaxws.samples.wsaddressing.ServerHandler | | | | At this point i have some questions: 1. in which file should i put handler-chains element? 2. What does element handler-class contain? What is this class? Does this class is able to read SOAPMessage? I think i should i think write this class myself, but what is the contract for writing this class? What interface should it implement? SOAPHandler? Do i have to implement logic which will take info from soap message header? 3. I think these properties are handled automatically, this means webservice will send reply to adderss taken from element: wsa:ReplyTo, and i don't need to do anything in order to get this done. Am i right? 4. If 3 is true, that means that message addressing properties don't support property i need. Client should have entry point which will accept soap message sent by server after message from queue is processed. But this entry point will not be any identified by message addressing properties received in request .................request......................................RequestObject Client -------------------------> WebService --------------- Client <------------------------- WebService ..................| ............ConfirmationObject........................................v ............................................................................Queue ...................................................................................| ...................SOAPMessage.........................................| Client (EP) <------------------- SessionBean <----------- Client (EP) --------------------> SessionBean . (dot) - only used as a spaces, to format this message EP - this should be a client entry point, where all results after processing objects from queue will be sent. There won't be address of this EP in the request. Any help will be appreciated. cheers vitor_b View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025145#4025145 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025145 From do-not-reply at jboss.com Mon Mar 5 14:48:02 2007 From: do-not-reply at jboss.com (gsmithfarmer) Date: Mon, 5 Mar 2007 14:48:02 -0500 (EST) Subject: [jbossws-users] [JBossWS] - generated wsdl always has port 8080 (even when it should be Message-ID: <8634407.1173124082365.JavaMail.jboss@colo-br-02.atl.jboss.com> Tomcat listening on 8180 (using straight ports-01). wsdl viewed via a browser (e.g. http://localhost:8180/...?wsdl) wsdl says port 8080: - Naturally, my client fails to attach. (If I have the client use a local wsdl that has the correct port all works fine). JBoss: 4.0.5.GA JRE: 1.5.0_10-b03 O/S: XP or RHEL -- does not seem to make a difference. Other than creating a servers-binding.xml file (from the samples dir) and changing jboss-services to use "ports-01", my jboss is a plain vanilla install using jems-installer-1.2.0.GA.jar (ejb3 set). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025174#4025174 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025174 From do-not-reply at jboss.com Mon Mar 5 15:14:51 2007 From: do-not-reply at jboss.com (alexsun) Date: Mon, 5 Mar 2007 15:14:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ejb3.client.ClientLauncher in which Jar file? Message-ID: <27393808.1173125691107.JavaMail.jboss@colo-br-02.atl.jboss.com> "heiko.braun at jboss.com" wrote : These tests are not suppoed to run with 4.0.5. How do youo build and invoke the samples? | | Maybe I don't make myself clearly. I try to build the samples, but can not compile the class I mentioned. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025178#4025178 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025178 From do-not-reply at jboss.com Mon Mar 5 15:38:55 2007 From: do-not-reply at jboss.com (gsmithfarmer) Date: Mon, 5 Mar 2007 15:38:55 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: generated wsdl always has port 8080 (even when it should Message-ID: <10656179.1173127135950.JavaMail.jboss@colo-br-02.atl.jboss.com> Simplified question: ServiceEndpoint in the generated wsdl is always 8080. (Even when tomcat is listening on 8180). Why? What configuration am i missing. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025185#4025185 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025185 From do-not-reply at jboss.com Mon Mar 5 15:53:35 2007 From: do-not-reply at jboss.com (teknokrat) Date: Mon, 5 Mar 2007 15:53:35 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Incompatible mapping of complex type Message-ID: <31502618.1173128015944.JavaMail.jboss@colo-br-02.atl.jboss.com> The wsdl I am working on has a snippet | | | | | | | | | | | | | | | This gets converted to GetPriceTypesResponseGetPriceTypesResult.java, however, in the jaxrpc-mapping.xml file the java type stays as GetPriceTypesResult. I am using jboss 4.0.5. Is there a fix for this? The wsdl I have is huge and not mine to alter so I can't just change the offending complex type. any ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025193#4025193 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025193 From do-not-reply at jboss.com Mon Mar 5 15:57:51 2007 From: do-not-reply at jboss.com (teknokrat) Date: Mon, 5 Mar 2007 15:57:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - How do I use enumerations? Message-ID: <33321376.1173128271082.JavaMail.jboss@colo-br-02.atl.jboss.com> I am on jboss 4.0.5. In my wsdl I have | | | | | | | | | wscompile does not create a States.java class. When I make a call that uses this type I get | Caused by: javax.xml.soap.SOAPException: Could not transmit message | at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:204) | at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687) | ... 66 more | Caused by: javax.xml.rpc.JAXRPCException: org.jboss.xb.binding.JBossXBRuntimeException: Failed to find neither value() nor getValue() in class java.lang.String which is bound to enumeration type {com.abc}States | at org.jboss.ws.soap.SOAPContentElement.write(SOAPContentElement.java:986) | at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.java:171) | at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.java:184) | at org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.java:184) | at org.jboss.ws.soap.SAAJElementWriter.printInternal(SAAJElementWriter.java:163) | at org.jboss.ws.soap.SAAJElementWriter.print(SAAJElementWriter.java:142) | at org.jboss.ws.soap.SAAJElementWriter.printSOAPElement(SAAJElementWriter.java:91) | at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:177) | ... 67 more | | What am I doing wrong? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025196#4025196 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025196 From do-not-reply at jboss.com Mon Mar 5 16:11:47 2007 From: do-not-reply at jboss.com (darran.lofthouse@jboss.com) Date: Mon, 5 Mar 2007 16:11:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: generated wsdl always has port 8080 (even when it should Message-ID: <24230730.1173129107098.JavaMail.jboss@colo-br-02.atl.jboss.com> http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWSFAQURLRewriting View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025207#4025207 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025207 From do-not-reply at jboss.com Tue Mar 6 04:49:49 2007 From: do-not-reply at jboss.com (RomeuFigueira) Date: Tue, 6 Mar 2007 04:49:49 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: generated wsdl always has port 8080 (even when it should Message-ID: <17935034.1173174589273.JavaMail.jboss@colo-br-02.atl.jboss.com> Simplified answer: anonymous wrote : File: modify /server/default/deploy/jbossweb-tomcat55.sar/server.xml | Change: We're deploying a JBoss WS application and getting a nasty error: | 13:24:34,303 ERROR [AbstractServlet] Error processing web service request | javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: javax.xml.bind.MarshalException: java.lang.ClassNotFoundException: com.telrock.mint.business.ejb3.webservice.__JBossWS_MintService_MintPort_getSummary | at org.jboss.ws.soap.SOAPContentElement.getXMLFragment(SOAPContentElement.java:187) | at org.jboss.ws.soap.SOAPContentElement.expandToDOM(SOAPContentElement.java:844) | at org.jboss.ws.soap.SOAPContentElement.getChildNodes(SOAPContentElement.java:761) | at org.jboss.util.xml.DOMWriter.printInternal(DOMWriter.java:211) | ... | ... | | Caused by: org.jboss.ws.binding.BindingException: javax.xml.bind.MarshalException: java.lang.ClassNotFoundException: com.telrock.mint.business.ejb3.webservice.__JBossWS_MintService_MintPort_getSummary | at org.jboss.ws.jaxrpc.encoding.JAXBSerializer.serialize(JAXBSerializer.java:112) | at org.jboss.ws.soap.SOAPContentElement.getXMLFragment(SOAPContentElement.java:172) | ... 30 more | Caused by: javax.xml.bind.MarshalException: java.lang.ClassNotFoundException: com.telrock.mint.business.ejb3.webservice.__JBossWS_MintService_MintPort_getSummary | at org.jboss.ws.jaxb.JAXBMarshallerImpl.marshal(JAXBMarshallerImpl.java:181) | at org.jboss.ws.jaxrpc.encoding.JAXBSerializer.serialize(JAXBSerializer.java:100) | ... 31 more | Caused by: java.lang.ClassNotFoundException: com.telrock.mint.business.ejb3.webservice.__JBossWS_MintService_MintPort_getSummary | at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352) | at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198) | at org.jboss.ws.utils.JavaUtils.loadJavaType(JavaUtils.java:81) | at org.jboss.ws.jaxb.JAXBMarshallerImpl.marshal(JAXBMarshallerImpl.java:126) | There is nothing special about the code and we're not trying to use an isolated classloader or anything. When the relevant classes are included as a stand alone application everything works OK. When we deploy the exact same classes with the main project we get this error. The client code was generated in Eclipse from the WSDL URL that was provided by JBoss on deploying the application. I've added a classloader log and I can't find any mention of the __JBoss...getSummary class however I do find a __JBoss...getSummaryBeanInfo class. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025380#4025380 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025380 From do-not-reply at jboss.com Tue Mar 6 08:30:09 2007 From: do-not-reply at jboss.com (jimmycallaghan) Date: Tue, 6 Mar 2007 08:30:09 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: ClassNotFoundException and a generated __JBossWS_... cla Message-ID: <7105008.1173187809012.JavaMail.jboss@colo-br-02.atl.jboss.com> I should also note that we get this error from the server when we run the client. This is not an error thrown BY the client. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025382#4025382 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025382 From do-not-reply at jboss.com Tue Mar 6 09:03:43 2007 From: do-not-reply at jboss.com (teknokrat) Date: Tue, 6 Mar 2007 09:03:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - update jboss 4.0.5 to jbossws 1.2 breaks wstools Message-ID: <9697539.1173189823224.JavaMail.jboss@colo-br-02.atl.jboss.com> I downloaded and installed the latest jbossws 1.2 as per instructions i.e. ant deploy-jboss40 and now when i run wstools.bat i get | Exception in thread "main" java.lang.NullPointerException | at java.io.File.(File.java:222) | at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:283) | at org.jboss.ws.tools.WSTools.process(WSTools.java:137) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:69) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:119) | at org.jboss.ws.tools.WSTools.main(WSTools.java:58) | This was working fine before the install. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025390#4025390 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025390 From do-not-reply at jboss.com Tue Mar 6 09:14:48 2007 From: do-not-reply at jboss.com (centecbertl) Date: Tue, 6 Mar 2007 09:14:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JBossWS-1.2.0.GA invalid wsdl generated when using @jXmlSche Message-ID: <18487142.1173190488530.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, While the @javax.xml.bind.annotation.XmlSchema annotation within the package-info.java of an class not inheriting from other packages works perfectly, JBossWS generates the following error for derived datatypes: | 14:35:02,173 ERROR [ServiceEndpointPublisher] Cannot obtain waURL for: webservice-test.ear/webservice-test.jar | 14:35:02,283 ERROR [JBossXSErrorHandler] [domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve.4.2]::Message=src-resolve.4.2: Error resolving component 'ns1:aClass'. It was detected that 'ns1:aClass' is in namespace 'http://test.org/wsclient/a', but components from this namespace are not referenceable from schema document 'null'. If this is the incorrect namespace, perhaps the prefix of 'ns1:aClass' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'null'. The Parameter classes causing this problem are a.AClass, b.Bclass defined in the packages a, and b with the following package-info.java @XmlSchema annotations: file a/package-info.java: | @javax.xml.bind.annotation.XmlSchema(namespace = http://test.org/wsclient/a" ) | package a; | file a/AClass.java: | package a; | public class AClass { | int a; | | public int getA() { | return a; | } | public void setA(int testInt) { | this.a = testInt; | } | } | file b/package-info.java: | @javax.xml.bind.annotation.XmlSchema(namespace = http://test.org/wsclient/b" ) | package b; | file b/BClass.java | package b; | | public class BClass extends a.AClass { | String b; | | public String getB() { | return b; | } | public void setB(String testString) { | this.b = testString; | } | } | The relevant part of the generated WSDL (which is visible under jbossws/service is: | | | | | | | | | | | | | | | | | | | where the declaration of bClass references the ns1 namespace without declaring it. The same thing happens when aClass is aggreagated by bClass. My Test Envrionment is JBossAS 4.0.5, JBossWS-1.2.0.GA (compiled according to the Howto in the Wiki after checking out the sources from svn , installed using the projects deploy-jboss40 ant-target) (PS: if this a a new issue I could provide you with the complete example code/maven project to reproduce the problem) Best Regards, Bertl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025392#4025392 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025392 From do-not-reply at jboss.com Tue Mar 6 10:29:27 2007 From: do-not-reply at jboss.com (fheldt) Date: Tue, 6 Mar 2007 10:29:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Encoding problem in jbossws-1.2.0 Message-ID: <8386311.1173194967962.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi folks, i gave jboss-2.4.0.CR1 with jbossws-1.2.0 a try and it started without any problems. Then i build a simple Webservice SB | @Remote | public interface HelloWS | { | public String hello(String s); | } | | @Stateless | @WebService( | name="Hello", | serviceName="HelloService" | ) | @SOAPBinding( | style=SOAPBinding.Style.RPC, | use=SOAPBinding.Use.LITERAL | ) | public class HelloEJB implements HelloWS | { | @WebMethod | public String hello(@WebParam(name="name") String s) { | return "Hall?chen " + s; | } | } | After deploying (The WSDL looks fine under http://127.0.0.1:8080/HelloService/HelloEJB?wsdl), i can call the hello method from eg a .NET client or the "Web Services Explorer" in eclipse and get the following result: | calling hello("M?ller"): | | return (string): Hall?chen M??ller | As you can see, there's a problem with utf-8 encoding. Did i miss something or is this a known problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025432#4025432 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025432 From do-not-reply at jboss.com Tue Mar 6 11:27:32 2007 From: do-not-reply at jboss.com (jimmycallaghan) Date: Tue, 6 Mar 2007 11:27:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: ClassNotFoundException and a generated __JBossWS_... cla Message-ID: <5032375.1173198452093.JavaMail.jboss@colo-br-02.atl.jboss.com> I'll also add that we're using JBoss404GA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025465#4025465 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025465 From do-not-reply at jboss.com Tue Mar 6 11:50:20 2007 From: do-not-reply at jboss.com (teknokrat) Date: Tue, 6 Mar 2007 11:50:20 -0500 (EST) Subject: [jbossws-users] [JBossWS] - how to get wstools working in jboss 4.2 Message-ID: <17649841.1173199820641.JavaMail.jboss@colo-br-02.atl.jboss.com> After downloading jboss 4.2 and trying out wstools on a config and wsdl that works fine in jboss 4.0.5 I got | Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/encoding/TypeMapping | at org.jboss.ws.tools.WSTools.process(WSTools.java:130) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:69) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:119) | at org.jboss.ws.tools.WSTools.main(WSTools.java:58) | is jboss 4.2 missing something? do I need to install jbossws 1.2 separately? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025477#4025477 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025477 From do-not-reply at jboss.com Tue Mar 6 11:52:54 2007 From: do-not-reply at jboss.com (gsmithfarmer) Date: Tue, 6 Mar 2007 11:52:54 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: generated wsdl always has port 8080 (even when it should Message-ID: <22078656.1173199974553.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the replies. The actual solution was simpler -- I finally saw it because your replies referenced config files not in my jboss instance. The underlying problem: jems-installer-1.2.0.GA.jar contains jbossws 1.0.3.SP1. I assumed that is contained a GA version of jbossws. Simply replace with a current jbossws (like 1.0.4.GA) and the endpoint rewrite problem is solved. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025482#4025482 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025482 From do-not-reply at jboss.com Tue Mar 6 12:07:36 2007 From: do-not-reply at jboss.com (natebowler) Date: Tue, 6 Mar 2007 12:07:36 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Ability for wstools to ignore properties of superclasses Message-ID: <20902356.1173200856276.JavaMail.jboss@colo-br-02.atl.jboss.com> For methods that are the get/set pairs for transient fields, is there any way to configure wstools (or beans, for that matter) so that certain properties are ignored. I noticed that at the very least, the java.lang.Object.getClass method is ignored. How can I get it to ignore other properties? If I modify the WSDL manually, will this cause any other problems for serialization? Thanks, Nate View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025488#4025488 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025488 From do-not-reply at jboss.com Tue Mar 6 13:56:01 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Tue, 6 Mar 2007 13:56:01 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Namespace for complex types Message-ID: <27697284.1173207361034.JavaMail.jboss@colo-br-02.atl.jboss.com> This is a limitation of the original JSR-181 specification that is implemented by jbossws 1.0.x. In jbossws 1.2.0JAX-WS support is provided which handles this use case by using JAXB for complex type binding. Therefore since 1.2.0 you can customize the namespace for any type you want using JAXB annotations. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025536#4025536 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025536 From do-not-reply at jboss.com Tue Mar 6 15:24:19 2007 From: do-not-reply at jboss.com (ntimesc) Date: Tue, 6 Mar 2007 15:24:19 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Wanna know how to configure jaxws on jboss Message-ID: <25465864.1173212659237.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am using jaxws 2.1 and i have tried many examples on TOMCAT 5.5.20 not i want to configure jaxws 2.1 on jboss-5.0.0.Beta1 ...... so if anyone knows some basic steps then please do post here ............ Thanks a lot for the answer in Advance.... ntimesc. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025563#4025563 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025563 From do-not-reply at jboss.com Tue Mar 6 19:12:36 2007 From: do-not-reply at jboss.com (superomega) Date: Tue, 6 Mar 2007 19:12:36 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Any possibility to understand Delphi? Message-ID: <26529533.1173226356483.JavaMail.jboss@colo-br-02.atl.jboss.com> Hallo, with gSoap I don't have problems to talk at the moment. But with Delphi 6 of course: When I speak with a JavaClient to my WebService the message looks like this --> | | | | Stefan | | | | Delphi is writing this message: | | | | juhu | | | | Is there any possibility to understand the delphi message? When I write a simple response back to delphi (for example a String) Delphi understands the response. But when I want to write back a array the understand is failing. It seems that for some clients I have to know more about the content of the envelope. And sometimes to change the content. Is this the correct way? Do anybody have some tips for this problem? I think webservices are a nice technology but anything else than easy to handle. Thank you very much, Werner View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025629#4025629 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025629 From do-not-reply at jboss.com Tue Mar 6 19:37:12 2007 From: do-not-reply at jboss.com (superomega) Date: Tue, 6 Mar 2007 19:37:12 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WSDL - Schema definitions Message-ID: <24335286.1173227832018.JavaMail.jboss@colo-br-02.atl.jboss.com> Thank you Thomas, things with annotations I have tried out. And wsprovide is making a nice wsld. Yesterday I tried the IE on Windows to show the wsld of the webservice and what I have to see? The namespace declarations are all there. This firefox browser is hiding the namespace declarations, which is very ugly! Greets, Werner View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025634#4025634 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025634 From do-not-reply at jboss.com Tue Mar 6 22:56:52 2007 From: do-not-reply at jboss.com (monowai) Date: Tue, 6 Mar 2007 22:56:52 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Soap client side MessageFactory NoSuchMethod exception Message-ID: <15505673.1173239812937.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm using Jboss 4.05 with WS 1.20ga I have a service that appears to be deploying successfully and I can see it quite clearly from my http://localhost:8080/jbossws url. After using wsconsume to produce the client side objects (from the WSDL created by wsprovide), I get the following when I try to run my unit test: javax.xml.ws.WebServiceException: java.lang.NoSuchMethodError: javax.xml.soap.MessageFactory.newInstance(Ljava/lang/String;)Ljavax/xml/soap/MessageFactory; | at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:296) | at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:153) | at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:85) | at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:176) | at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:105) | at $Proxy15.getAssetChanges(Unknown Source) | at myco.tests.TestAssetWS.testWS(TestAssetWS.java:38) My first thoughts ran to SAAJ version compatibility beging as that appears to be where this stuff is going on. I've tried placing the jwsdp-2.0 version ahead of jboss-saaj.jar and the other way round but the same error. FWIW, my invocation code looks like this: | AssetService service = new AssetService(new URL("http://chma_mikehpc:8080/ws?wsdl"), new QName("http://myco.com/integration/asset/theasset", "TheAssetData")); | Asset port = service.getPort(Asset.class); | TheAssetData result = port.getAssetChanges(99); | assertNotNull (result); | The exception is being thrown during port.getAssetChanges() I'm sure this is going to be a simple classpath issue, but, where to next! Pointers anyone? tia m View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025661#4025661 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025661 From do-not-reply at jboss.com Wed Mar 7 00:26:03 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 7 Mar 2007 00:26:03 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS-1.2.0.GA invalid wsdl generated when using @jXml Message-ID: <22084318.1173245163908.JavaMail.jboss@colo-br-02.atl.jboss.com> Due to the complexity of this case, can you create a Jira issue and attach an example of this? I will take a look at what is going on. http://jira.jboss.com/jira/secure/CreateIssue!default.jspa -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025665#4025665 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025665 From do-not-reply at jboss.com Wed Mar 7 00:36:13 2007 From: do-not-reply at jboss.com (dprentice) Date: Wed, 7 Mar 2007 00:36:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JBossWS-1.2.0.GA - ws-eventing sample fails parsing ws-addr. Message-ID: <17381530.1173245773710.JavaMail.jboss@colo-br-02.atl.jboss.com> I am using Java 1.5.0_10. I have successfully deployed jbossws-1.2.0.GA on JBoss 4.0.5.GA per the install instructions. I have successfully built the jbossws-samples-1.2.0.GA. When I run the wseventing SysmonTestCase, an error parsing ws-addr.xsd occurs when the jaxws-samples-wseventing.war file is deployed in JBoss. The error is: 22:25:29,068 ERROR [ServiceEndpointDeployer] Cannot create service endpoint org.jboss.ws.metadata.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]/xs:schema): faultC ode=PARSER_ERROR: Problem parsing 'file:/C:/Java/jboss-4.0.5.GA/server/default/tmp/deploy/tmp20894jaxws-samples-wseventi ng-exp.war/WEB-INF/wsdl/ws-addr.xsd'.: Connection timed out: connect: java.net.ConnectException: Connection timed out: c onnect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:469) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:382) at sun.net.www.http.HttpClient.openServer(HttpClient.java:494) at sun.net.www.http.HttpClient.(HttpClient.java:231) at sun.net.www.http.HttpClient.New(HttpClient.java:304) at sun.net.www.http.HttpClient.New(HttpClient.java:316) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:817) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:769) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:694) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:938) at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.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.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2030) at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:796) at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:830) at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:620) at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:583) at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:302) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2133) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2125) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2150) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2171) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2201) at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:130) at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:313) at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMet aDataBuilder.java:139) at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataB uilder.java:49) at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMetaData(JAXWSMetaDataBuilderJSE.java:68) at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:90) at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127) at org.jboss.ws.integration.jboss42.DeployerInterceptorJSE.createServiceEndpoint(DeployerInterceptorJSE.java:132 ) at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.jav a:180) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) 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 $Proxy50.create(Unknown Source) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at sun.reflect.GeneratedMethodAccessor24.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(ModelMBeanOperationInterceptor.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 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 org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266) 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 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(ModelMBeanOperationInterceptor.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.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179) 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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420) 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:155) at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:313) at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMet aDataBuilder.java:139) at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataB uilder.java:49) at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMetaData(JAXWSMetaDataBuilderJSE.java:68) at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:90) at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127) at org.jboss.ws.integration.jboss42.DeployerInterceptorJSE.createServiceEndpoint(DeployerInterceptorJSE.java:132 ) at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.jav a:180) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) 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 $Proxy50.create(Unknown Source) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at sun.reflect.GeneratedMethodAccessor24.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(ModelMBeanOperationInterceptor.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 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 org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266) 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 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(ModelMBeanOperationInterceptor.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.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179) 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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420) 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) Caused by: WSDLException (at /wsdl:definitions/wsdl:types/xs:schema[1]/xs:schema): faultCode=PARSER_ERROR: Problem parsi ng 'file:/C:/Java/jboss-4.0.5.GA/server/default/tmp/deploy/tmp20894jaxws-samples-wseventing-exp.war/WEB-INF/wsdl/ws-addr .xsd'.: Connection timed out: connect: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:469) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:382) at sun.net.www.http.HttpClient.openServer(HttpClient.java:494) at sun.net.www.http.HttpClient.(HttpClient.java:231) at sun.net.www.http.HttpClient.New(HttpClient.java:304) at sun.net.www.http.HttpClient.New(HttpClient.java:316) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:817) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:769) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:694) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:938) at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.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.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2030) at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:796) at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:830) at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:620) at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:583) at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:302) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2133) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2125) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2150) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2171) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2201) at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:130) at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:313) at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMet aDataBuilder.java:139) at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataB uilder.java:49) at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMetaData(JAXWSMetaDataBuilderJSE.java:68) at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:90) at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127) at org.jboss.ws.integration.jboss42.DeployerInterceptorJSE.createServiceEndpoint(DeployerInterceptorJSE.java:132 ) at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.jav a:180) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) 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 $Proxy50.create(Unknown Source) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at sun.reflect.GeneratedMethodAccessor24.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(ModelMBeanOperationInterceptor.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 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 org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266) 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 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(ModelMBeanOperationInterceptor.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.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179) 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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420) 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2036) at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:796) at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:830) at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:620) at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:583) at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:302) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2133) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2125) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2150) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2171) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2201) at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:130) ... 69 more View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025667#4025667 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025667 From do-not-reply at jboss.com Wed Mar 7 00:46:43 2007 From: do-not-reply at jboss.com (monowai) Date: Wed, 7 Mar 2007 00:46:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Generate wsdl from JSR 181 POJO Message-ID: <14390840.1173246403741.JavaMail.jboss@colo-br-02.atl.jboss.com> "thomas.diesler at jboss.com" wrote : This should be fixed in jbossws-1.2.0 Having moved to 1.2, things seem a lot smoother. thanks for all the effort Thomas, I can only imagine what goes in to getting this right. wsproduce and wsconsume seem to do a fine job and the reduced level of annotations to get things right is a real boon. Allan's suggestions were also valuable. Obtaining the wsdl straight from the server makes a lot of sense, and the fact you don't need to generate this to deploy your webservices is v. useful cheers all View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025670#4025670 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025670 From do-not-reply at jboss.com Wed Mar 7 00:51:20 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 7 Mar 2007 00:51:20 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JBossWS 1.2.0.GA Tools Overview (wstools, wsprovide, wsconsu Message-ID: <12247584.1173246680752.JavaMail.jboss@colo-br-02.atl.jboss.com> Here is a quick overview, please review the full docs here: http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide | * wstools - Only for legacy JAX-RPC services, use the JAX-WS tools listed below where possible. | * wsprovide - Generates portable artifacts and provides offline generation of WSDL: | http://jbws.dyndns.org/mediawiki/index.php/Wsprovide | http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Bottom-Up_.28Using_wsprovide.29 | * wsconsume - Consumes WSDL and generates java code for client and server deployments: | http://jbws.dyndns.org/mediawiki/index.php/Wsconsume | http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Top-Down_.28Using_wsconsume.29 | * wsrunclient - Runs a standard java app with the jbossws classpath | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025671#4025671 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025671 From do-not-reply at jboss.com Wed Mar 7 00:55:21 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 7 Mar 2007 00:55:21 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Wanna know how to configure jaxws on jboss Message-ID: <33396598.1173246921601.JavaMail.jboss@colo-br-02.atl.jboss.com> JBossWS 1.2.0.GA is the current stable release with JAX-WS support. See the docs: http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025672#4025672 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025672 From do-not-reply at jboss.com Wed Mar 7 01:28:06 2007 From: do-not-reply at jboss.com (joshlam) Date: Wed, 7 Mar 2007 01:28:06 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Is @WebServiceRef Supported On Jboss 4.0.5GA/JBossWS 1.2.0? Message-ID: <17567314.1173248886096.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi I am using JBoss 4.0.5GA with JDK 5 and JBossWS 1.2.0GA. I am trying to work through some of the samples on @WebServiceRef and I noticed that the jboss-client.xml has: I looked at the jboss_4_0.dtd and there isn't any reference to so the following | | TestEndpointService5 | META-INF/wsdl/TestEndpoint.wsdl | does not work in JBoss 4.0.5GA and only supported in JBoss 5? Or is there a way to declare webservice-ref in jboss-client and use the @WebServiceRef samples/features in JBoss 4.0.5GA? Would appreciate any examples or references to similar topics already discussed in the forum. Thanks. -- Josh View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025676#4025676 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025676 From do-not-reply at jboss.com Wed Mar 7 03:49:45 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 7 Mar 2007 03:49:45 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS-1.2.0.GA - ws-eventing sample fails parsing ws-a Message-ID: <35657.1173257385676.JavaMail.jboss@colo-br-02.atl.jboss.com> It seems that 1.2.0 doesn't rely on the EntityResolve to resolve schema imports locally. Instead it tries to fetch them from a remote location. You probably experience these problems when running a) without an internet connection b) or firewall blocking those requests However, in order to fix it, you could turn any remote schema reference into local one. The files are located in the resource directory. Otherwise try running the samples with an internet connection. We will fix this for the next release. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025696#4025696 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025696 From do-not-reply at jboss.com Wed Mar 7 03:50:00 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 7 Mar 2007 03:50:00 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS-1.2.0.GA - ws-eventing sample fails parsing ws-a Message-ID: <33357782.1173257400275.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jira.jboss.org/jira/browse/JBWS-1563 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025697#4025697 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025697 From do-not-reply at jboss.com Wed Mar 7 03:56:40 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 7 Mar 2007 03:56:40 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Soap client side MessageFactory NoSuchMethod exception Message-ID: <31640821.1173257800765.JavaMail.jboss@colo-br-02.atl.jboss.com> You seem to be mixing JWSDP and JBossWS libs in the client classpath. Try removing the JWSDP libraries and solely rely on the JBOSS_HOME/client/*.jar libraries. You may also take a look at the jbossws samples that ship with the distribution. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025704#4025704 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025704 From do-not-reply at jboss.com Wed Mar 7 03:59:11 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 7 Mar 2007 03:59:11 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Any possibility to understand Delphi? Message-ID: <31596403.1173257951788.JavaMail.jboss@colo-br-02.atl.jboss.com> anonymous wrote : | When I speak with a JavaClient to my WebService the message looks like this | What exactly do you mean with JavaClient? JBossWS? What version? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025706#4025706 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025706 From do-not-reply at jboss.com Wed Mar 7 05:01:04 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 7 Mar 2007 05:01:04 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: how to use ws compile Message-ID: <786198.1173261664097.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Tools View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025721#4025721 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025721 From do-not-reply at jboss.com Wed Mar 7 05:24:32 2007 From: do-not-reply at jboss.com (superomega) Date: Wed, 7 Mar 2007 05:24:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Any possibility to understand Delphi? Message-ID: <27851061.1173263072629.JavaMail.jboss@colo-br-02.atl.jboss.com> I use JBossWS 1.2.0 the actual version from last week. The JavaClient runns with JDK 1.5.07 and is a stand alone Application. The SOAP Libs that are used from the JClient are from JAX-WS 2.1 Java is making no problems. But because of the kind of use of the namespaces in Delphi seems that the JBossWS Server is not understanding the message from the Delphi(6)-Client. Greets, Werner View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025730#4025730 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025730 From do-not-reply at jboss.com Wed Mar 7 06:18:23 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 7 Mar 2007 06:18:23 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: @WebServiceRef jbossws 1.2.0.GA Message-ID: <1808466.1173266303164.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, @WebServiceRef functionality is supported with the EJB3 implementation in jboss-4.2.x and jboss-5.0.x In jboss-4.0.5 you will have to use the API to create web service clients. http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Web_Service_Clients View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025744#4025744 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025744 From do-not-reply at jboss.com Wed Mar 7 10:16:17 2007 From: do-not-reply at jboss.com (kvbisme) Date: Wed, 7 Mar 2007 10:16:17 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Question about JIRA Bug JBWS-991 - SchemaBinding Marshaller Message-ID: <3510335.1173280577223.JavaMail.jboss@colo-br-02.atl.jboss.com> I am having this same issue under JBoss 4.0.5.GA which should have the fix in it. Trouble is that when I reduce the scope to something I can post on here it works. When I have the full WSDL (which works under 4.0.4.GA) I get the same "... Failed to find read method or field for property '_value' ..." I check the JAXRPC (we are using wscompile) generated class and it has a "value" attribute not a "_value" attribute. The element is question looks like: So any thoughts? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025818#4025818 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025818 From do-not-reply at jboss.com Wed Mar 7 10:39:11 2007 From: do-not-reply at jboss.com (jimhenderson) Date: Wed, 7 Mar 2007 10:39:11 -0500 (EST) Subject: [jbossws-users] [JBossWS] - I get an "Allocate exception for servlet" error calling my w Message-ID: <30248181.1173281951546.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have a jax rpc based web service written and tested with jboss-4.0.4.GA which works fine (on aix and windows xp). I have just downloaded jboss-4.0.5.GA and am trying my web service on this version and get the following stack trace when the web service is accessed (i have only tried this on windows xp so far)... 2007-03-07 14:48:32,611 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/dcswebservice-servlet]] Marking servlet DcsWebServiceServlet as unavailable 2007-03-07 14:48:32,611 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/dcswebservice-servlet].[DcsWebServiceServlet]] Allocate exception for servlet DcsWebServiceServlet java.lang.ClassCastException at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1055) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:534) Just wondered whether this was a known problem so i can add more information/examples if needed. Thanks in advance, Jim View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025830#4025830 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025830 From do-not-reply at jboss.com Wed Mar 7 14:56:43 2007 From: do-not-reply at jboss.com (joshlam) Date: Wed, 7 Mar 2007 14:56:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Is @WebServiceRef Supported On Jboss 4.0.5GA/JBossWS 1.2 Message-ID: <28293364.1173297403883.JavaMail.jboss@colo-br-02.atl.jboss.com> Ok, I think this is being addressed in: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=103198 So basically, the answer is that to write clients using @WebServiceRef is not possible in JBoss 4.0.5GA, therefore, the samples for webserviceref will only work with Jboss 4.2 and Jboss 5. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025925#4025925 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025925 From do-not-reply at jboss.com Wed Mar 7 15:58:09 2007 From: do-not-reply at jboss.com (natebowler) Date: Wed, 7 Mar 2007 15:58:09 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Ability for wstools to ignore properties of superclasses Message-ID: <27706599.1173301089045.JavaMail.jboss@colo-br-02.atl.jboss.com> OK. Using BeanInfo I can get wstools to ignore props that I don't want published to the WSDL. However, I'm still getting duplicate types added to the WSDL and I believe it is because it doesn't honor the transient keyword on declared fields. Doens't JAX-RPC state that transient fields will be ignored? Or, was this just a behavior of the JWSDP toolset? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025957#4025957 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025957 From do-not-reply at jboss.com Wed Mar 7 16:27:32 2007 From: do-not-reply at jboss.com (matienzar) Date: Wed, 7 Mar 2007 16:27:32 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Encoding problem in jbossws-1.2.0 Message-ID: <30913272.1173302852580.JavaMail.jboss@colo-br-02.atl.jboss.com> I've the same problem. Before jbossws1.2 it worded perfectly. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025972#4025972 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025972 From do-not-reply at jboss.com Wed Mar 7 16:29:27 2007 From: do-not-reply at jboss.com (gray727) Date: Wed, 7 Mar 2007 16:29:27 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Getting access to X509Certificate Message-ID: <32260391.1173302967899.JavaMail.jboss@colo-br-02.atl.jboss.com> My configuration: JDK 1.5 JBoss AS 4.0.5 JBossWS 1.2.0 WS-Security The configuration of my web service requires an incoming SOAP message to be digitally signed (using Message Level Security; not BASIC authentication over SSL), and this works fine. However, I have an audit requirement to log the credentials of the client trying to access the service, whether successful or not. In the past (using JWSDP and JSR-109 style web services), I've used security callback functions to meet these sort of requirements. Is there a way to interact with WS-Security during authentication and authorization and obtain the X509Certificate, Subject, Principal, etc. to log security related events? I've experimented with the WebServiceContext.getUserPrincipal(), but it seems that this is only useful for BASIC authentication, which I'm not using. thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025975#4025975 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025975 From do-not-reply at jboss.com Wed Mar 7 16:32:45 2007 From: do-not-reply at jboss.com (valjjou) Date: Wed, 7 Mar 2007 16:32:45 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Exception client / User guide Echo sample Message-ID: <21737202.1173303165229.JavaMail.jboss@colo-br-02.atl.jboss.com> I exactly follow the user guide instructions and i have my WS Echo, the client and all the described classes. But, when running my EchoClient, i encounter the following exception : Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/FactoryLoader at javax.xml.ws.spi.Provider.provider(Provider.java:91) at javax.xml.ws.Service.(Service.java:83) at echo.EchoService.(EchoService.java:49) at echo.EchoClient.main(EchoClient.java:7) It seems to be a pb with the EchoService constructor but i don't understand why Thanks for helping View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025977#4025977 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025977 From do-not-reply at jboss.com Wed Mar 7 16:36:43 2007 From: do-not-reply at jboss.com (natebowler) Date: Wed, 7 Mar 2007 16:36:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Ability for wstools to ignore properties of superclasses Message-ID: <27598320.1173303403349.JavaMail.jboss@colo-br-02.atl.jboss.com> It looks like the problem I had was related to not using my package name in the wstools-config.xml file. The "type-namespace" attribute didn't match the package name of my data objects. It looks like it needs to be the form type-namespace="http:///jaws". Otherwise, wstools will create this namespace which will contain duplicate complextypes in the WSDL. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025979#4025979 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025979 From do-not-reply at jboss.com Wed Mar 7 16:58:00 2007 From: do-not-reply at jboss.com (centecbertl) Date: Wed, 7 Mar 2007 16:58:00 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS-1.2.0.GA invalid wsdl generated when using @jXml Message-ID: <8321472.1173304680319.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, http://jira.jboss.com/jira/secure/ManageAttachments.jspa?id=12335583 describes the issue, and provides a patch against the jbossws-samples distributed with the biniary installer version of jbossws-1.2.0.GA Best Regards, Bertl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025995#4025995 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025995 From do-not-reply at jboss.com Wed Mar 7 16:59:24 2007 From: do-not-reply at jboss.com (centecbertl) Date: Wed, 7 Mar 2007 16:59:24 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JBossWS-1.2.0.GA invalid wsdl generated when using @jXml Message-ID: <30889765.1173304764427.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jira.jboss.com/jira/secure/ManageAttachments.jspa?id=12335583 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025996#4025996 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025996 From do-not-reply at jboss.com Wed Mar 7 17:01:59 2007 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 7 Mar 2007 17:01:59 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Exception client / User guide Echo sample Message-ID: <11871186.1173304920007.JavaMail.jboss@colo-br-02.atl.jboss.com> Which version of JBoss AS are you using? I assume you are using JBoss WS 1.2, and that you are using wsrunclient to run the client. Most likely, there is a missing jar from the classpath (I found that the wsdl4j.jar was missing, I'm using JBoss AS 5.0 beta 2 (or actually, the svn trunk from Monday). Anyway, the missing file is in jboss-saaj.jar, or at least that is where I found it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025998#4025998 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025998 From do-not-reply at jboss.com Wed Mar 7 17:14:17 2007 From: do-not-reply at jboss.com (matienzar) Date: Wed, 7 Mar 2007 17:14:17 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Encoding problem in jbossws-1.2.0 Message-ID: <17100370.1173305657558.JavaMail.jboss@colo-br-02.atl.jboss.com> I've solve the problem in run.con, setting JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026002#4026002 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026002 From do-not-reply at jboss.com Wed Mar 7 17:18:36 2007 From: do-not-reply at jboss.com (monowai) Date: Wed, 7 Mar 2007 17:18:36 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException with JBossWS1.0.4GA and JBoss 4.0.5 Message-ID: <20865389.1173305916451.JavaMail.jboss@colo-br-02.atl.jboss.com> Ensure you download 1.20 and install it as per the instructions (you use ANT to do the install). Ensure that the JBOSS_HOME/client jars are not conflicting with anything else in your path (i.e. move them up the search path). Try using wsprovide and wsconsume to create your atifacts, not wstools. I followed this (kind of) from the quickstart guide. Trunk will likely be the latest dev release. if you want 1.2.0ga source, then the revision you want is 2482(I think) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026004#4026004 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026004 From do-not-reply at jboss.com Wed Mar 7 19:27:30 2007 From: do-not-reply at jboss.com (natebowler) Date: Wed, 7 Mar 2007 19:27:30 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Forcing JBossWS to use a different Java class for a QName Message-ID: <11298080.1173313650087.JavaMail.jboss@colo-br-02.atl.jboss.com> I have an API that accepts an interface as a parameter. I would like to preserve this from a WSDL perspective because it reduces the number of fields from the concrete class by an order of 10. Now, obviously, by default I get a serialization error from JBossWS when it tries to instantiate this interface. However, if JBossWS could know to just instantiate the concrete class instead, it should work great. I have edited the jaxrpc-mapping.xml file, but that has no effect. Is there a way to do this? Nate View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026049#4026049 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026049 From do-not-reply at jboss.com Thu Mar 8 01:19:03 2007 From: do-not-reply at jboss.com (monowai) Date: Thu, 8 Mar 2007 01:19:03 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Soap client side MessageFactory NoSuchMethod exception Message-ID: <27201976.1173334743330.JavaMail.jboss@colo-br-02.atl.jboss.com> yep that was it. cheers. I had installed Suns ws kit and followed it's installation instructions( java.endorsed.dir etc.) I swear I spent more time sorting out LIB issues than coding solutions. ah well. alls well that endpoints well I guess. thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026124#4026124 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026124 From do-not-reply at jboss.com Thu Mar 8 02:28:45 2007 From: do-not-reply at jboss.com (sujeet.banerjee) Date: Thu, 8 Mar 2007 02:28:45 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws always try to use port 8080 Message-ID: <5999359.1173338925704.JavaMail.jboss@colo-br-02.atl.jboss.com> If you are using JBossWS 100 GA or previous version, here's how you can do it: goto server/default/deploy/jbossws14.sar/META-INF Open file jboss-services.xml edit the field "webservicePort" (or something like that) from 8080 to 80. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026134#4026134 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026134 From do-not-reply at jboss.com Thu Mar 8 02:32:37 2007 From: do-not-reply at jboss.com (sujeet.banerjee) Date: Thu, 8 Mar 2007 02:32:37 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: jbossws always try to use port 8080 Message-ID: <3014057.1173339157388.JavaMail.jboss@colo-br-02.atl.jboss.com> If you are using JBossWS 104 GA or higher version, You don't need do anything. however, this config might be of interest to you: goto server/default/deploy/jbossws**.sar/jbossws.beans/META-INF Open file jboss-beans.xml Edit the property: true View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026136#4026136 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026136 From do-not-reply at jboss.com Thu Mar 8 02:50:25 2007 From: do-not-reply at jboss.com (sujeet.banerjee) Date: Thu, 8 Mar 2007 02:50:25 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JBossWS1.2.0GA - Jaxrpc changes to the SOAP message not repl Message-ID: <33194650.1173340225227.JavaMail.jboss@colo-br-02.atl.jboss.com> I am using SAAJ API to modify the request SOAP message in the endpoint jaxrpc handler. The modified message it targetted to a JSE endpoint. However, the changes are not reflected in the invocation of the endpoint. That is, the endpoint receives unadulterated message, as if there were no handler interception. I'd like to know if JBossWS jaxrpc handler are only meant for readonly operation to the inbound SOAP message. Contrast to that, pther appservers like, Websphere/Weblogic allow modification to inbound/outbound SOAP messages using jaxrpc handlers. Is there a way to achieve this using JBossWS? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026138#4026138 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026138 From do-not-reply at jboss.com Thu Mar 8 05:19:13 2007 From: do-not-reply at jboss.com (valjjou) Date: Thu, 8 Mar 2007 05:19:13 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Exception client / User guide Echo sample Message-ID: <23767866.1173349153633.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks Peter for your help. I use JBoss 4.0.5 GA and WS 1.2. I try with saaj.jar but i always have an exception, a soap exception: Exception in thread "main" java.lang.reflect.UndeclaredThrowableException at $Proxy15.echo(Unknown Source) at echo.EchoClient.main(EchoClient.java:9) Caused by: javax.xml.soap.SOAPException: Could not transmit message at org.jboss.ws.core.soap.SOAPConnectionImpl.callInternal(SOAPConnection Impl.java:221) at org.jboss.ws.core.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:109) at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:309) at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:185) at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:163) at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:149) ... 2 more This is only a part of the exception... I use wsrunclient... Thanks for help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026188#4026188 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026188 From do-not-reply at jboss.com Thu Mar 8 05:36:43 2007 From: do-not-reply at jboss.com (fheldt) Date: Thu, 8 Mar 2007 05:36:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Encoding problem in jbossws-1.2.0 Message-ID: <27868039.1173350203214.JavaMail.jboss@colo-br-02.atl.jboss.com> Bingo ! This solved the problem, so many thanks for your tip :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026194#4026194 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026194 From do-not-reply at jboss.com Thu Mar 8 10:12:40 2007 From: do-not-reply at jboss.com (Marco.Pehla) Date: Thu, 8 Mar 2007 10:12:40 -0500 (EST) Subject: [jbossws-users] [JBossWS] - [EJB3 WebService] How handle SOAPException better? Message-ID: <8421141.1173366760751.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello everybody, I've some problems with the SOAPException handling. I wrote a EJB3 with @WebMethods and JBoss generates automatically the corresponding WSDL catalogue. In order to get a declaration of a fault message inside the WSDL, I have to throw a SOAPException in my @WebMethod. e.g. | @WebMethod | public String doSomething(String input) throws SOAPException { | | String result = "Hello World!"; | | if(input.equals("")) { | throw new SOAPException("No input specified."); | }//if | | return result; | }//doSomething() | My client is written in PHP and able to handle SOAPExceptions like desired. If I send an empty request to my Web Service then JBoss sends a SOAPException back to the PHP client which handles this exception. Everytime the Web Service creates a SOAPException, I get a really huge output on my JBoss console. How could I avoid this? I mean, is it possible to handle this exceptions by myself? Or is this the normal behaviour of a SOAPException? PS: I know, I could put this "throw new SOAPException" inside of a try-catch block, but as everybody know the client of the Web Service gets then no SOAPException message. So I need to let the exception be handled by the EJB container. Or have I to do it in the catch block?) with kind regards, Marco View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026262#4026262 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026262 From do-not-reply at jboss.com Thu Mar 8 10:27:12 2007 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 8 Mar 2007 10:27:12 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Exception client / User guide Echo sample Message-ID: <18382205.1173367632425.JavaMail.jboss@colo-br-02.atl.jboss.com> That error I have not seen. Is the app server running? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026272#4026272 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026272 From do-not-reply at jboss.com Thu Mar 8 12:20:05 2007 From: do-not-reply at jboss.com (IvanLatysh) Date: Thu, 8 Mar 2007 12:20:05 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JAXB-2.0 for JSR-181 endpoints Message-ID: <19003421.1173374405052.JavaMail.jboss@colo-br-02.atl.jboss.com> I am trying to get JSR-181 WS to map complex structure (using JAXB-2.0) Test structure: public interface Container extends List { public void add(Item item); } public interface Item extends Map { public void set(String key, String value); } Will appreciate if anybody can point me to the example or a test case that I can have a look at. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026330#4026330 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026330 From do-not-reply at jboss.com Thu Mar 8 15:53:44 2007 From: do-not-reply at jboss.com (deradam) Date: Thu, 8 Mar 2007 15:53:44 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Strange WSDL File generated with IOException in namespace io Message-ID: <25812.1173387224326.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I am new to JBoss, but not very new to web services. We have a web service running on an JBoss server and access it through axis 1. Now we want to switch to JAX-WS 2. I have tried to create the client files with wsimport, but it fails due to dublicate declarations. A methode throws an IOException and this is declared twice in the wsdl: | | | * some other types* | | | | | | * some other types* | | | | | | | | | | | As you see, IOException is defined twice in different namespaces. Can someone give me a hint to solve this problem? Greets, Adam View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026422#4026422 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026422 From do-not-reply at jboss.com Thu Mar 8 16:55:07 2007 From: do-not-reply at jboss.com (valjjou) Date: Thu, 8 Mar 2007 16:55:07 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Exception client / User guide Echo sample Message-ID: <24942153.1173390907038.JavaMail.jboss@colo-br-02.atl.jboss.com> I don't understand your point : i have only jboss running (eclipse 3.2 closed) and i always have this exception... It seems to be a soap transmission message pb. As for the syntax for the wsrunclient with jboss-saaj.jar I only use wsrunclient echo.EchoClient because when i try -classpath jboss-saaj.jar, i have a NoClassDefFoundError (i have jboss-saaj.jar in my path) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026438#4026438 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026438 From do-not-reply at jboss.com Thu Mar 8 18:59:51 2007 From: do-not-reply at jboss.com (d_pavel) Date: Thu, 8 Mar 2007 18:59:51 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Problem using wstools Message-ID: <25974492.1173398391489.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All, I want to implement web services in my project which is a j2ee web application based on JBoss AS 4.0.5.GA and jbossws-1.2.0.GA. I installed JBoss AS using "jems-installer-1.2.0.GA.jar" on RedHat Linux RHEL4 (using "all" as a profile for the AS). I bought the "JBoss at Work" book but it's using the sun's jwsdp tool. Since I'm using JBoss I want to leverage the wstools which comes with jbossws-1.2.0.GA. I am trying to implement first the JSR-109 JAX-RPC Service Endpoints: 1) Here is my SEI: | package generic.hello; | | import java.rmi.Remote; | import java.rmi.RemoteException; | | public interface Service_SEI_Interface extends Remote | { | | public String hello(String name) throws RemoteException; | | public String purchase (String person, String product) throws RemoteException; | | } | 2)Here is my JSE: | package generic.hello; | | /** | * | * @author dragos | * | * This class represents the Endpoint Implementation Bean (=our web service implementation). | * JAX-RPC service endpoints (JSEs) provide web services from the web tier. They take the form of a simple | * Java objects that masquerade as servlets. This case is implemented in this generic package. | * In other specs this is reffer to as "Java Service Skeleton". | */ | public class POJO_EndpointJSE | { | //ddd - insert all business methods that we provide and expose as web services | | public String hello(String name) | { | System.out.println("Hello There : " + name + "!"); | return "Hello There : " + name + "!"; | } | | public String purchase (String person, String product) | { | System.out.println("DDD_EndpointJSE purchase: " + person + "," + product); | return "ok" + person + product; | } | } | 3) the input configuration file (wstools-config.xml) for the wstools: | | | | | | | | | | | | | | | | 4)I am running WSTools from the command line like this: /usr/local/jboss-4.0.5.GA/bin/wstools.sh -cp /home/dragos/SW/myeclipsews/testbenchWS/WebRoot/WEB-INF/classes/generic/hello/Service_SEI_Interface -config ./wstools-config.xml 5)Here is my web.xml file: | | | | | | | | HelloWorldWS | generic.hello.POJO_EndpointJSE | 0 | | | | | | HelloWorldWS | | /services/* | | | | 6) Here is the output from the command line wstools: | | | | | | | | HelloWorldWS | generic.hello.POJO_EndpointJSE | 0 | | | | | | HelloWorldWS | | /services/* | | | | 7)To me it looks like the parameters passed to anonymous wrote : handleJavaToWSDLGeneration(Configuration config, String outDir) are not instantiated properly cause I not see otherways why later I can't load the end point class. Here is the pertinent code from the ToolsHelper class: | public void handleJavaToWSDLGeneration(Configuration config, String outDir) throws IOException | | jason.greene at jboss.com | | | | 97 | | 89 { | 90 JavaToWSDLConfig j2wc = config.getJavaToWSDLConfig(false); | 91 JavaToWSDL jwsdl = new JavaToWSDL(Constants.NS_WSDL11); | 92 jwsdl.setServiceName(j2wc.serviceName); | 93 jwsdl.setTargetNamespace(j2wc.targetNamespace); | 94 jwsdl.setTypeNamespace(j2wc.typeNamespace); | 95 jwsdl.setOperationMap(j2wc.operations); | 96 | 97 if ("document".equals(j2wc.wsdlStyle)) | 98 jwsdl.setStyle(Style.DOCUMENT); | 99 else if ("rpc".equals(j2wc.wsdlStyle)) | 100 jwsdl.setStyle(Style.RPC); | | thomas.diesler at jboss.com | | | | 221 | | 101 else throw new WSException("Unrecognized Style:" + j2wc.wsdlStyle); | | jason.greene at jboss.com | | | | 97 | | 102 | 103 if ("wrapped".equals(j2wc.parameterStyle)) | 104 jwsdl.setParameterStyle(ParameterStyle.WRAPPED); | 105 else if ("bare".equals(j2wc.parameterStyle)) | 106 jwsdl.setParameterStyle(ParameterStyle.BARE); | | thomas.diesler at jboss.com | | | | 221 | | 107 else throw new WSException("Unrecognized Parameter Style:" + j2wc.parameterStyle); | | jason.greene at jboss.com | | | | 97 | | 108 | 109 Class endpointClass = loadClass(j2wc.endpointName); | 110 | | thomas.diesler at jboss.com | | | | 221 | | 111 if (endpointClass == null) | 112 throw new WSException("Endpoint " + j2wc.endpointName + " cannot be loaded"); | ............ | 8) Any ideas about the endpoint class loading issue? Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026475#4026475 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026475 From do-not-reply at jboss.com Thu Mar 8 20:23:00 2007 From: do-not-reply at jboss.com (jemodurn) Date: Thu, 8 Mar 2007 20:23:00 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: lower timeout in accessing a web service Message-ID: <8751522.1173403380885.JavaMail.jboss@colo-br-02.atl.jboss.com> JBWS-1410 is working for JAX-RPC but it is not working for JAX-WS. Is there a jira for this? Here is a test case: modify the JSR181WebServiceJSETestCase in the jbossws-1.2.0 samples can reproduce the problem. public void testWebService() throws Exception | { | URL wsdlURL = new File("resources/jaxws/samples/jsr181pojo/META-INF/wsdl/TestService.wsdl").toURL(); | QName qname = new QName("http://org.jboss.ws/samples/jsr181pojo", "TestService"); | Service service = Service.create(wsdlURL, qname); | port = (EndpointInterface)service.getPort(EndpointInterface.class); | | ((Stub) port)._setProperty(StubExt.PROPERTY_CLIENT_TIMEOUT, String | .valueOf(500)); | | Object retObj = port.echo(new String[]{}); | assertNotNull(retObj); | assertEquals(0, ((String[])retObj).length); | } Testcase: testWebService took 1.672 sec | Caused an ERROR | $Proxy17 | java.lang.ClassCastException: $Proxy17 | at org.jboss.test.ws.jaxws.samples.jsr181pojo.JSR181WebServiceJSETestCase.testWebService(JSR181WebServiceJSETestCase.java:72) | at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) | at junit.extensions.TestSetup$1.protect(TestSetup.java:23) | at junit.extensions.TestSetup.run(TestSetup.java:27) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026494#4026494 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026494 From do-not-reply at jboss.com Thu Mar 8 20:40:10 2007 From: do-not-reply at jboss.com (jemodurn) Date: Thu, 8 Mar 2007 20:40:10 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: lower timeout in accessing a web service Message-ID: <9534422.1173404410730.JavaMail.jboss@colo-br-02.atl.jboss.com> I saw a post on JAX-WS: http://forums.java.net/jive/message.jspa?messageID=109927 will this work with jbossws 1.2.0? | ((BindingProvider)port).getRequestContext().put(StubExt.PROPERTY_CLIENT_TIMEOUT, new Integer(500)); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026498#4026498 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026498 From do-not-reply at jboss.com Fri Mar 9 05:57:05 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 9 Mar 2007 05:57:05 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Exception client / User guide Echo sample Message-ID: <22875356.1173437825023.JavaMail.jboss@colo-br-02.atl.jboss.com> It's in | JBOSS_HOME/client/jboss-saaj.jar | javax/xml/soap/FactoryLoader$PropertyAccessAction.class | javax/xml/soap/FactoryLoader$PropertyFileAccessAction.class | javax/xml/soap/FactoryLoader.class | Do you execute wsrunclient from the JBOSS_HOME/bin directory. If not you'd need to export JBOSS_HOME. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026560#4026560 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026560 From do-not-reply at jboss.com Fri Mar 9 06:02:57 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 9 Mar 2007 06:02:57 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Strange WSDL File generated with IOException in namespac Message-ID: <24571923.1173438177015.JavaMail.jboss@colo-br-02.atl.jboss.com> You should rely on wsconsume when generating JAX-WS client artefacts: http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Tools View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026561#4026561 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026561 From do-not-reply at jboss.com Fri Mar 9 06:04:04 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 9 Mar 2007 06:04:04 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: JAXB-2.0 for JSR-181 endpoints Message-ID: <27795914.1173438245018.JavaMail.jboss@colo-br-02.atl.jboss.com> http://labs.jboss.com/file-access/default/members/jbossws/downloads/jbossws-samples-1.2.0.GA.zip View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026562#4026562 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026562 From do-not-reply at jboss.com Fri Mar 9 06:08:39 2007 From: do-not-reply at jboss.com (Sanver) Date: Fri, 9 Mar 2007 06:08:39 -0500 (EST) Subject: [jbossws-users] [JBossWS] - WSException from a servlet Message-ID: <17398273.1173438519544.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I'm using a JBossWS to publish an interface via webServices. I've configured my web.xml to show the service as follows. | | | ICMWebServices | | ImageProcessor | mat.icm.ImageProcessor | | | | ServiciosICM | mat.icm.ServiciosICM | | | ImageProcessor | /image | | | ServiciosICM | /ICMWebServices | | | but it seems that somehow, the already existing servlet (ImageProcessor) has stop working, because, when i try to access to it, the following exception is thrown... org.jboss.ws.WSException: Cannot obtain endpoint for: jboss.ws:context=ICMWebCore,endpoint=ImageProcessor | org.jboss.ws.server.StandardEndpointServlet.initServiceEndpoint(StandardEndpointServlet.java:162) | org.jboss.ws.integration.jboss.JBossServiceEndpointServlet.initServiceEndpoint(JBossServiceEndpointServlet.java:49) | org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:74) | javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) I don't know why it's happening, but if i eliminate the Webservice part, the other servlet works fine... I hope someone can help me. Best regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026564#4026564 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026564 From do-not-reply at jboss.com Fri Mar 9 06:15:15 2007 From: do-not-reply at jboss.com (magnus.ahlander) Date: Fri, 9 Mar 2007 06:15:15 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Deployment of JBossWS 1.2 on JBoss 5.0.0 Beta1 Message-ID: <15390675.1173438915023.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm trying to install JBossWS 1.2 on JBoss 5.0.0 Beta1 using the provided ant task (ant deploy-jboss50). However, I get the following server exception: "org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml for archive jbossws.sar". Inside of the jbossws50.sar file in \install\integration-jboss50 there is no jboss-service.xml file. In my JBoss installation I can see that the jbossws.sar has been copied to \server\default\deploy and jbossws.deployer has been copied to \server\default\deployers. The actual deploy then fails with the exception above. Please give me some hints, Regards, Magnus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026566#4026566 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026566 From do-not-reply at jboss.com Fri Mar 9 06:42:50 2007 From: do-not-reply at jboss.com (Sanver) Date: Fri, 9 Mar 2007 06:42:50 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: WSException from a servlet Message-ID: <164772.1173440570806.JavaMail.jboss@colo-br-02.atl.jboss.com> Oh, i forgot, i'm using JBoss 4.0.5, and the jbossWS version endorsed with it View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026573#4026573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026573 From do-not-reply at jboss.com Fri Mar 9 10:02:26 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 9 Mar 2007 10:02:26 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Deployment of JBossWS 1.2 on JBoss 5.0.0 Beta1 Message-ID: <16169273.1173452546717.JavaMail.jboss@colo-br-02.atl.jboss.com> It's not been test against beta1. We did use trunk for QA. However if you want to get a hand on the latest code you could either: a) checkout AS trunk b) get AS 4.2.CR1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026619#4026619 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026619 From do-not-reply at jboss.com Fri Mar 9 11:20:47 2007 From: do-not-reply at jboss.com (d_pavel) Date: Fri, 9 Mar 2007 11:20:47 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Problem using wstools Message-ID: <7010098.1173457247462.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello again, I should've mention that I replaced jbossws-1.0.4.GA (which was included in the distribution package for JBoss AS) and I installed correctly the jbossws-1.2.0.GA version (I was careful with the libraries and I can access "http://localhost:8080/jbossws/" which is fine). Now I read all "Tools Overview" paragraph from the "JAX-WS User Guide" because in the Jason Green's post ("JBossWS 1.2.0.GA Tools Overview (wstools, wsprovide, wsconsu") it is pointed that fact; now because I really want to develop JAX-RPC services I have to use the wstools! In the "JAX-RPC User Guide" there is no overview info for wstools, just the link for the "Documentation for jbossws-tool_1_0". Any help/suggestion with the wstoos ? Thanks, D View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026651#4026651 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026651 From do-not-reply at jboss.com Fri Mar 9 13:37:52 2007 From: do-not-reply at jboss.com (jerro) Date: Fri, 9 Mar 2007 13:37:52 -0500 (EST) Subject: [jbossws-users] [JBossWS] - JSR-181 deployment on jboss-5.0.0.Beta1 - how? Message-ID: <25129046.1173465472994.JavaMail.jboss@colo-br-02.atl.jboss.com> This seems like a fairly simple question. I've got a jsr-181 web service. It's just some jars packaged in an ear. When I was using jboss-4.0.5 (installed through the installer using the EJB-3.0 config) all I had to do was copy the ear to the default/deploy directory of jboss and the the container would start the EJBs and the web service. When I do the same thing thing with the jboss-5.0.0.Beta1 it starts the EJBs but not the web service. What am I missing? How do I get the jboss-5.0.0.Beta1 release to start my jsr-181 web service? Thanks for any help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026712#4026712 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026712 From do-not-reply at jboss.com Fri Mar 9 14:38:43 2007 From: do-not-reply at jboss.com (lbrackman) Date: Fri, 9 Mar 2007 14:38:43 -0500 (EST) Subject: [jbossws-users] [JBossWS] - How do I use MIME types other than text/xml Message-ID: <28712171.1173469123101.JavaMail.jboss@colo-br-02.atl.jboss.com> I am trying to use MTOM to send attachments. I am using wstools to generate all components from an endpoint. I successfully run a test with a text/xml type but I cannot use any others types including text/plain or application/octect. The following is my endpoint and config file: endpoint - public interface FileXferEndpoint extends Remote { public String sendPart(Long txId, Integer partNum, Long size, DataHandler data) throws RemoteException; } config file - Environment: JBoss 4.0.5.GA Java 1.5(5.0) JbossWS 2.0 I always get the following error: failed; nested exception is: [java] org.jboss.ws.core.jaxrpc.binding.BindingException: Mime type application/octet not allowed for parameter DataHandler_4 allowed types are [text/xml] [java] at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:522) [java] at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:273) [java] at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:151) [java] at $Proxy0.sendPart(Unknown Source) I would like to be able to send */* types. How is this done? Any samples would be appreciated. Also, where can I get the schema for the configuration file and a better explanation on how to use wstools? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026729#4026729 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026729 From do-not-reply at jboss.com Fri Mar 9 14:58:05 2007 From: do-not-reply at jboss.com (jemodurn) Date: Fri, 9 Mar 2007 14:58:05 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: lower timeout in accessing a web service Message-ID: <24378461.1173470285368.JavaMail.jboss@colo-br-02.atl.jboss.com> I tried this code to lower the JAX-WS client's connection timeout and it works beautifully | ((BindingProvider)port).getRequestContext().put(StubExt.PROPERTY_CLIENT_TIMEOUT, new Integer(500)); | Issue resolved. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026740#4026740 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026740 From do-not-reply at jboss.com Fri Mar 9 19:03:48 2007 From: do-not-reply at jboss.com (d_pavel) Date: Fri, 9 Mar 2007 19:03:48 -0500 (EST) Subject: [jbossws-users] [JBossWS] - Re: Problem using wstools Message-ID: <9266299.1173485028952.JavaMail.jboss@colo-br-02.atl.jboss.com> I think my post is related with this topic as well: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025390#4025390 Need clarification about this please: 1) the wstools.sh script which comes with the jbossws-1.2.0.GA points to both: WSTOOLS_CLASSPATH="$WSTOOLS_CLASSPATH:$JBOSS_HOME/client/jbossws14-client.jar" WSTOOLS_CLASSPATH="$WSTOOLS_CLASSPATH:$JBOSS_HOME/client/jbossws-client.jar" when esteblishing the wstools classpath. The jboss14 is really needed ? I was thinking that only the 'jbossws-client.jar' will be used in the new version. 2) Do we still have to get an updated "jboss-xml-binding.jar" from the repository ? I want to mention that I used the new distribution for the jboassws-1.2.0.GA which uses the ant. 3) Do we still have to keep the "jbossws14.sar/" in our jboss server/.../deploy ? I was thinking that with the new version we will use only the "jbossws.sar/" service archive. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026797#4026797 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026797 From do-not-reply at jboss.com Mon Mar 12 04:51:08 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Mon, 12 Mar 2007 04:51:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to make XML processeing by myself using contract first ( Message-ID: <32936187.1173689468822.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi!! After reading a lot of posts I cannot find anything that really helps me here. So, time for a question. I have my WSDL file that uses types/schema/import... to import new schema types. Now I want to create a session bean (or whatever else) that can handle this request using xml beans as data binding. I want to use xml beans because I have a lot of other xml processing in my code using xml beans, therefore xml beans is the most correct choice in this solution. As I can see it is very hard to write a mapping file using xml beans directly. Is it possible at all? A more practical way to go is to use a method SOAPElements, e.g. a method like: public SOAPElement doSomething(SOAPELement theRequest) { MyXmlObject myXmlObj = SomeUtils.convertToMyXmlObject(thRequest); .... MyXmlResponseObject myXmlResponseObj = ... return SomUtils.convertToSoapElement(myXmlResponseObj); } Is this the way to go? Have anyone of you out here done this using the new JbossWS implementation (not the old axis based ws4ee). I can't proceed using trial and error here, it will take too long. I tried the following: I tried to put javax.xml.soap.SOAPElement as java types in the jaxrpc mapping file. In Jboss4.0.5GA with JBossWS 1.2.0GA all request where mapped corectly, but it is impossible to send responses. The log says cannot find parameter ... for type javax.xml.soap.SOAPELement. Then I tried to remove all sub types (only top messages where left types typed) left mapped. Then I couldn't deploy my service. A lot of missing type mapping errors occurred in the log.. Thanks Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027082#4027082 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027082 From do-not-reply at jboss.com Mon Mar 12 04:58:46 2007 From: do-not-reply at jboss.com (cdreyer1) Date: Mon, 12 Mar 2007 04:58:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Removing or stopping jUDDI Message-ID: <9352837.1173689926400.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I want to use web services but I have no use for a UDDI. Using JbossWS 1.2.0 - What is the proper way of removing jUDDI (or at least stopping it from starting)? Can I just delete the juddi-service.sar directory (located in server/default/deploy)? Thanks! Best Regards, Claus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027084#4027084 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027084 From do-not-reply at jboss.com Mon Mar 12 06:19:29 2007 From: do-not-reply at jboss.com (ltenmatay) Date: Mon, 12 Mar 2007 06:19:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBoss 4.0.5 and JBoss 4.2 CR1 plus JBossWS 1.2 - Does it rea Message-ID: <17169017.1173694769290.JavaMail.jboss@colo-br-02.atl.jboss.com> Here is what I did, I followed the guide in creating java classes from wsdl. I used the wsconsume tool. The xml to be sent has a body something like this, I just made up the element names, but the structure is the same. | | | | | | | | | | | | | | Everything worked fine during deployment. I also had an existing client which works in the actual web service environment. What I'm doing is trying to replicate that environment. The client communicates by creating and sending an xml, and not by using a port. The client uses castor, but it should not matter since an xml is created and sent. I should not create a new client as I need to make it work with the existing client module. There are 3 problems. The first is ignorable but I still want to put it here. 1. There is no wsrunclient in JBoss 4.0.5, so the guide does not work for JBoss 4.0.5. 2. There is no problem with communication, the xml is sent to JBoss. Problem is that all contents of RequestSender object is null. It always does not have a value, it seems something is wrong with the unbinding or deserializing of the xml. 3. I can return a response to the client, problem is in the case of the returned xml. For example, "Status" is returned as lowercase "status", which raises an error in the client by castor during unbinding. It should not be in lowercase. Did the guide miss something else? Take note that the generated ObjectFactory does not contain much, just a simple new XXX class. But I think this is not related right? Can you advise on what to do? Does JBossWS 1.2 really work? or this is a bug? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027105#4027105 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027105 From do-not-reply at jboss.com Mon Mar 12 06:49:01 2007 From: do-not-reply at jboss.com (fadilica) Date: Mon, 12 Mar 2007 06:49:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Axis webservices for jboss Message-ID: <26415710.1173696541801.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I developed some webservices for axis1.4. They work fine for Tomcat/Axis. I would like to deploy the same webservices in jboss (1.4.02) Do I need to install some additional packages like jbossws or not? May I use the same .class files and just add appropriate deployment descriptors? How should they look like (deployment desriptors) Any help is wellcome. Fadila View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027115#4027115 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027115 From do-not-reply at jboss.com Mon Mar 12 07:24:22 2007 From: do-not-reply at jboss.com (mark2b) Date: Mon, 12 Mar 2007 07:24:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problems with Jboss and Sun's 1.6 JDK Message-ID: <22143862.1173698662916.JavaMail.jboss@colo-br-02.atl.jboss.com> Nothing helps :( After adding jboss-jaxrpc.jar or/and jboss-saaj.jar into endorsed dir it fails on class not found org.jboss.logger.Logger Revision of JBoss source file shows that javax.xml.soap classes refer to JBoss proprietary classes that unacceptable. I've found a vandal workaround removing javax/xml/soap package from rt.jar. I believe that JBoss team will solve this problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027122#4027122 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027122 From do-not-reply at jboss.com Mon Mar 12 07:26:22 2007 From: do-not-reply at jboss.com (cdreyer1) Date: Mon, 12 Mar 2007 07:26:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBossWS 1.2.0 and nillable types Message-ID: <31237555.1173698782693.JavaMail.jboss@colo-br-02.atl.jboss.com> When returning a user defined object from a web service, e.g. @WebMethod(operationName="MyWebMethod") public MyReturnClass myWebMethod(... With JBossWS 1.0.x a variable in MyReturnClass of type Long would be defined with nillable="true" in the WSDL. However, if the variable was of type long then the nillable parameter was omitted. This reflects Java nicely IMHO. With version 1.2.0 of JBossWS this does not seem to be true any longer. The nillable="true" parameter is not added to the WSDL for Long. I can add the @XmlElement annotation and get the same effect, e.g. @XmlElement(nillable = true) Long myVariable; My concern is that I have to fill my code with annotation statements to inform that a particular variable can be null, and this is already true. Or have I misunderstood something? Best regards, Claus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027123#4027123 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027123 From do-not-reply at jboss.com Mon Mar 12 07:51:53 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Mon, 12 Mar 2007 07:51:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss 4.0.5 and JBoss 4.2 CR1 plus JBossWS 1.2 - Does it Message-ID: <17527817.1173700313020.JavaMail.jboss@colo-br-02.atl.jboss.com> anonymous wrote : | Does JBossWS 1.2 really work? | No, it doesn't. It's an april fool's joke... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027127#4027127 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027127 From do-not-reply at jboss.com Mon Mar 12 07:59:25 2007 From: do-not-reply at jboss.com (fbenvegna) Date: Mon, 12 Mar 2007 07:59:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - ACL on client address Message-ID: <23609880.1173700765695.JavaMail.jboss@colo-br-02.atl.jboss.com> I need to filter client address on access to web-services: ex. n.2 web-services: ws1 and ws2 192.168.1.x is authorized on ws1 but not on ws2 192.168.3.x is authorized on ws2 but not on ws1 192.168.2.x is not authorized on ws1 and ws2 I don't know about ACL implementaion on JBossWS. Is there any way through API or AOP ??? Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027130#4027130 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027130 From do-not-reply at jboss.com Mon Mar 12 08:04:42 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Mon, 12 Mar 2007 08:04:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Removing or stopping jUDDI Message-ID: <8982649.1173701082722.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, just remove it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027133#4027133 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027133 From do-not-reply at jboss.com Mon Mar 12 08:07:32 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Mon, 12 Mar 2007 08:07:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to make XML processeing by myself using contract fir Message-ID: <20754420.1173701252172.JavaMail.jboss@colo-br-02.atl.jboss.com> I think the WebServiceProvider API is what you are looking for: http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Endpoint_Provider View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027135#4027135 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027135 From do-not-reply at jboss.com Mon Mar 12 08:08:49 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Mon, 12 Mar 2007 08:08:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: ACL on client address Message-ID: <18515147.1173701329700.JavaMail.jboss@colo-br-02.atl.jboss.com> You may want to take a look at tomcat valves: http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027136#4027136 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027136 From do-not-reply at jboss.com Mon Mar 12 08:14:26 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Mon, 12 Mar 2007 08:14:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How do I use MIME types other than text/xml Message-ID: <14361183.1173701666743.JavaMail.jboss@colo-br-02.atl.jboss.com> Looking at that exception anonymous wrote : | java] org.jboss.ws.core.jaxrpc.binding.BindingException: Mime type application/octet not allowed for parameter DataHandler_4 allowed types are [text/xml] | i assume that you are not using MTOM at all. That particular error occurs when sending an SWA attachment where the mime types of the datahandler doesn't match the WSDL. I would suggest to first make sure that mtom is enabled for your endpoint: http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#MTOM.2FXOP This would then already solve the later problem i guess. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027138#4027138 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027138 From do-not-reply at jboss.com Mon Mar 12 08:29:52 2007 From: do-not-reply at jboss.com (fbenvegna) Date: Mon, 12 Mar 2007 08:29:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: ACL on client address Message-ID: <28079046.1173702592259.JavaMail.jboss@colo-br-02.atl.jboss.com> Tomcat Valve seem to be useful but there is a problem: - ACL are applied on Engine, Host, or Context but not on single web-service of the same application. If ws1 and ws2 are part of the same application, ws1 and ws2 have same ACL !! But I need different! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027141#4027141 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027141 From do-not-reply at jboss.com Mon Mar 12 10:31:46 2007 From: do-not-reply at jboss.com (lbrackman) Date: Mon, 12 Mar 2007 10:31:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How do I use MIME types other than text/xml Message-ID: <22305875.1173709906969.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for you response. I attempted to get MTOM enabled on the server side as instructed in the link provided. Using wsprovide with the following endpoint configuration: @Remote @WebService(targetNamespace = "http://fileXfer.ws.synoran.com/") @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE) @BindingType(value="http://schema.xmlsoap.org/wsdl/soap/http?mtom=true") public interface FileXferEndpoint { public String sendPart(Long txId, Integer partNum, Long size, DataHandler data); } I am getting the following exception: org.jboss.ws.WSException: Unsupported binding: http://schema.xmlsoap.org/wsdl/soap/http?mtom=true at org.jboss.ws.metadata.umdm.EndpointMetaData.setBindingId(EndpointMetaData.java:178) Is the documentation update to date with regards to the URL needed for the binding type to enable MTOM? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027175#4027175 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027175 From do-not-reply at jboss.com Mon Mar 12 10:56:02 2007 From: do-not-reply at jboss.com (ltenmatay) Date: Mon, 12 Mar 2007 10:56:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss 4.0.5 and JBoss 4.2 CR1 plus JBossWS 1.2 - Does it Message-ID: <1135822.1173711362019.JavaMail.jboss@colo-br-02.atl.jboss.com> Seriously, anything obvious that I may have missed? I asked the question since I want to make sure if it really works as mentioned in the guide or is it not yet really ready? I really want to use it since it is very easy to create a webservice, but I want to know if I need to wait for the next release. What I am doing right now is figuring out how to make it work, but I may just be wasting my time or I may be really doing something wrong. Please help here. To heiko.braun at jboss.com, I really don't know what your point is. If you are one of jboss developers, then help me out. Tell me if I need to wait for the next release. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027191#4027191 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027191 From do-not-reply at jboss.com Mon Mar 12 10:56:35 2007 From: do-not-reply at jboss.com (andydale) Date: Mon, 12 Mar 2007 10:56:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - advice needed Message-ID: <30939811.1173711395982.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Let me first explain that i am a beginner when it come to jboss web services, so i am sorry if this is a stupid problem. I installed jbossws-1.2.0.GA last week to an ejb3-clustered install of jboss4.0.5.GA. I then proceeded to follow the simple step listed here http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWS181HelloWorld I created an EJB3 (Stateless bean) like so: @RemoteBinding(jndiBinding = "ws_remote") | @Stateless | @WebService | @SOAPBinding(style = SOAPBinding.Style.RPC) | public class WebServiceTestBean implements IWebServiceTestRemote { | | | @WebMethod | @WebResult(name = "res") | public String echo(@WebParam(name = "input_string") String pInputString) { | System.out.println(pInputString); | return pInputString + " :: web serviced"; | } | | ............ | } And the wsdl generation for it worked. So i am now trying to access it with a simple client. I created the client using the wsconsume.sh script (with -k option) provided with jbossws. This creates the following file: /** | * JBossWS Generated Source | * | * Generation Date: Mon Mar 12 14:55:35 CET 2007 | * | * This generated source code represents a derivative work of the input to | * the generator that produced it. Consult the input for the copyright and | * terms of use that apply to this source code. | * | * JAX-WS Version: 2.0 | * | */ | @WebServiceClient(name = "WebServiceTestBeanService", targetNamespace = "http://beans.test.com/", wsdlLocation = "http://172.16.26.83:8080/test/Echo?wsdl") | public class WebServiceTestBeanService extends Service { | | private final static URL WEBSERVICETESTBEANSERVICE_WSDL_LOCATION; | | static { | URL url = null; | try { | url = new URL("http://172.16.26.83:8080/test/Echo?wsdl"); | } catch (MalformedURLException e) { | e.printStackTrace(); | } | WEBSERVICETESTBEANSERVICE_WSDL_LOCATION = url; | } | | public WebServiceTestBeanService(URL wsdlLocation, QName serviceName) { | super(wsdlLocation, serviceName); | } | | public WebServiceTestBeanService() { | super(WEBSERVICETESTBEANSERVICE_WSDL_LOCATION, new QName("http://beans.test.com/", "WebServiceTestBeanService")); | } | | | /** | * | * @return | * returns WebServiceTestBean | */ | @WebEndpoint(name = "WebServiceTestBeanPort") | public WebServiceTestBean getWebServiceTestBeanPort() { | return (WebServiceTestBean)super.getPort(new QName("http://beans.test.com/", "WebServiceTestBeanPort"), WebServiceTestBean.class); | } | | } I then try to create a WebServiceTestBeanService object, and call the getWebServiceTestBeanPort method which should return a proxy to the web service which i can call the test method "echo" with. I am running into trouble with creating the WebServiceTestBeanService object, as i get a noClassDefFound exception, the stack trace is: Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/xb/binding/ObjectModelFactory | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:108) | at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61) | at javax.xml.ws.Service.(Service.java:83) | at com.test.beans.WebServiceTestBeanService.(WebServiceTestBeanService.java:45) | at com.test.beans.driver.main(driver.java:13) | can anybody tell me what i have done wrong. Cheers, Andy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027192#4027192 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027192 From do-not-reply at jboss.com Mon Mar 12 11:59:13 2007 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 12 Mar 2007 11:59:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: advice needed Message-ID: <17585832.1173715153169.JavaMail.jboss@colo-br-02.atl.jboss.com> Are you using wsrunclient to run the lcient? If so, check the wsrunclient script, it might not be including the jboss-xml-binding.jar file in the classpath. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027221#4027221 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027221 From do-not-reply at jboss.com Mon Mar 12 13:52:36 2007 From: do-not-reply at jboss.com (lbrackman) Date: Mon, 12 Mar 2007 13:52:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How do I use MIME types other than text/xml Message-ID: <17322301.1173721956906.JavaMail.jboss@colo-br-02.atl.jboss.com> ok. I got past that issue. now I am getting an exception of the following on the client side: [java] org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://fileXfer.ws.synoran.com}SendPartRequest This is the SEI: @WebService(targetNamespace = "http://fileXfer.ws.synoran.com/") @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE) @BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true") public interface FileXferEndpoint { public SendPartResponse sendPart(SendPartRequest request); } I have the XmlType annotation on the SendPartRequest message class with the @XmlMimeType("application/octet-stream") declared for the DataHandler get bean. I used the wsprovide tool to generate the wsdl and deployed the app server. @XmlType(name="SendPartRequest", namespace = "http://fileXfer.ws.synoran.com") public class SendPartRequest { public SendPartRequest() { } public SendPartRequest(long txId, int partNum, long size, DataHandler dataHandler) { this.txId = txId; this.dataHandler = dataHandler; } ... @XmlMimeType("application/octet-stream") public DataHandler getDataHandler() { return dataHandler; } public void setDataHandler(DataHandler dataHandler) { this.dataHandler = dataHandler; } Using the wsconsume tool I generated the source code for the client. The generated source code does not appear to use the wrapper classes however and requires me to supply the all the parameters that are wrapped in the SendPartRequest class to the web service method call. I can't seem to find any reference to the SendPartRequest class in any of the generated code. Is there something that I am missing here? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027279#4027279 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027279 From do-not-reply at jboss.com Mon Mar 12 16:28:24 2007 From: do-not-reply at jboss.com (deradam) Date: Mon, 12 Mar 2007 16:28:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Strange WSDL File generated with IOException in namespac Message-ID: <8435376.1173731304719.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks Heiko. What do I need to run wsconsume? I have just downloaded the jboss-ws file, but if I start wsconsume.bat in the etc dir I get Exceptions. Do I need the whole jboss-as AND the ws files? Adam View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027327#4027327 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027327 From do-not-reply at jboss.com Mon Mar 12 17:31:31 2007 From: do-not-reply at jboss.com (lbrackman) Date: Mon, 12 Mar 2007 17:31:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How do I use MIME types other than text/xml Message-ID: <20976273.1173735091373.JavaMail.jboss@colo-br-02.atl.jboss.com> Found the problem. Apparently I had some imports that were in conflict with each other. I had ws classes mixed in with rpc classes such as javax.xml.rpc.Service -and- javax.xml.ws.Service. Obviously you can't use javax.xml.ws.Service in an rpc web service and you can't use javax.xml.rpc.Service in ws web services :-S View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027348#4027348 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027348 From do-not-reply at jboss.com Mon Mar 12 19:41:08 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Mon, 12 Mar 2007 19:41:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to make XML processeing by myself using contract fir Message-ID: <21427969.1173742868529.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks a lot for a quick answer! Doing this is probably the best way for me. //Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027380#4027380 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027380 From do-not-reply at jboss.com Mon Mar 12 19:42:27 2007 From: do-not-reply at jboss.com (superomega) Date: Mon, 12 Mar 2007 19:42:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsconsume with provider sample Message-ID: <16172704.1173742947650.JavaMail.jboss@colo-br-02.atl.jboss.com> Hallo I use JBossWS 1.2.0 GA and want to test the ..../jaxws/samples/provider example. (JBoss 4.0.5 GA) After I have compiled the given wsdl with /opt/jboss/bin/wsconsume.sh | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I got a WebMethod like this: (Provider.java) | @WebMethod | public void echo( | @WebParam(name = "user", targetNamespace = "http://org.jboss.ws/provider", mode = WebParam.Mode.INOUT, partName = "user") | Holder user); | But I thought that I shoud get back a UserType isn't this correct? What do I have overlooked? Greet, Werner View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027382#4027382 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027382 From do-not-reply at jboss.com Mon Mar 12 23:51:29 2007 From: do-not-reply at jboss.com (DivyaMan0j) Date: Mon, 12 Mar 2007 23:51:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jboss 4.0.2 and SOAP attachments Message-ID: <23050418.1173757890008.JavaMail.jboss@colo-br-02.atl.jboss.com> Even i face the same issue now. I am using JBoss 4.0.2. The probelem seems to be intermittent, ti does not occur all the time i try to open huge attachments. Is there any configuration property to be set for this. PLease let me know. -Divya View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027404#4027404 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027404 From do-not-reply at jboss.com Mon Mar 12 23:54:04 2007 From: do-not-reply at jboss.com (DivyaMan0j) Date: Mon, 12 Mar 2007 23:54:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jboss 4.0.2 and SOAP attachments Message-ID: <8533225.1173758044722.JavaMail.jboss@colo-br-02.atl.jboss.com> The solution provided in JIRA is to use JBoss 4.0.3. I think there should be some configuration settings for this as the problem occurs very intermittently. It would be of great help if any one could reply to my queries. Divya View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027405#4027405 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027405 From do-not-reply at jboss.com Tue Mar 13 00:39:26 2007 From: do-not-reply at jboss.com (DivyaMan0j) Date: Tue, 13 Mar 2007 00:39:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jboss 4.0.2 and SOAP attachments Message-ID: <725110.1173760766797.JavaMail.jboss@colo-br-02.atl.jboss.com> Here, is the stack trace : 2007-03-12 20:32:29,852 ERROR [org.jboss.axis.Message] Exception: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client faultSubcode: faultString: No cache available faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: java.lang.IllegalStateException: No cache available at org.jboss.axis.attachments.ManagedMemoryDataSource.getInputStream(ManagedMemoryDataSource.java:104) at javax.activation.DataHandler.getInputStream(DataHandler.java:222) at org.jboss.axis.attachments.DimeBodyPart.send(DimeBodyPart.java:283) at org.jboss.axis.attachments.DimeBodyPart.write(DimeBodyPart.java:232) at org.jboss.axis.attachments.DimeMultiPart.write(DimeMultiPart.java:39) at org.jboss.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:523) at org.jboss.axis.Message.writeTo(Message.java:583) at org.jboss.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:1118) at org.jboss.axis.transport.http.AxisServlet.doPost(AxisServlet.java:972) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:619) org.jboss.axis.AxisFault: No cache available at org.jboss.axis.AxisFault.makeFault(AxisFault.java:99) at org.jboss.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:527) at org.jboss.axis.Message.writeTo(Message.java:583) at org.jboss.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:1118) at org.jboss.axis.transport.http.AxisServlet.doPost(AxisServlet.java:972) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.IllegalStateException: No cache available at org.jboss.axis.attachments.ManagedMemoryDataSource.getInputStream(ManagedMemoryDataSource.java:104) at javax.activation.DataHandler.getInputStream(DataHandler.java:222) at org.jboss.axis.attachments.DimeBodyPart.send(DimeBodyPart.java:283) at org.jboss.axis.attachments.DimeBodyPart.write(DimeBodyPart.java:232) at org.jboss.axis.attachments.DimeMultiPart.write(DimeMultiPart.java:39) at org.jboss.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:523) ... 26 more Please let me know the cause and the solution for the problem. Divya View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027412#4027412 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027412 From do-not-reply at jboss.com Tue Mar 13 01:20:24 2007 From: do-not-reply at jboss.com (sudarshan_srivathsav) Date: Tue, 13 Mar 2007 01:20:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Intereceptor exception when webservice contacts the Stateles Message-ID: <13512602.1173763224466.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Guys...I guess this is a very rare exception though i think u ppl could defenetly help me in this.I have successfully deployed a .war and the websevice also started..when i tried to use the webservice..which inturn calls a EJB..im getting some exception like..I have copied and pasted the exception from Log...Please help me soon VERY URGENT 0,960 ERROR [LogInterceptor] EJBException in method: public abstract com.riskspan.services.userobjects.NBUserObjectServiceRemote com.riskspan.services.userobjects.NBUserObjectServiceHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException: javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract com.riskspan.services.userobjects.NBUserObjectServiceRemote com.riskspan.services.userobjects.NBUserObjectServiceHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:175) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:98) at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:145) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107) at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637) at org.jboss.ejb.Container.invoke(Container.java:975) 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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118) at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70) at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100) at $Proxy78.create(Unknown Source) at com.riskspan.services.userobjects.NBWUserObjectService.serviceRequest(NBWUserObjectService.java:170) 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 org.jboss.ws.server.ServiceEndpointInvokerJSE.invokeServiceEndpoint(ServiceEndpointInvokerJSE.java:95) at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:115) at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209) at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355) at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) 10:32:00,964 ERROR [UserObjects] NBWUserObjectService.serviceRequest() Failed.. - Exception => [ java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract com.riskspan.services.userobjects.NBUserObjectServiceRemote com.riskspan.services.userobjects.NBUserObjectServiceHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException ] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027417#4027417 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027417 From do-not-reply at jboss.com Tue Mar 13 01:39:06 2007 From: do-not-reply at jboss.com (sudarshan_srivathsav) Date: Tue, 13 Mar 2007 01:39:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Intereceptor exception when webservice contacts the Stat Message-ID: <6297101.1173764346768.JavaMail.jboss@colo-br-02.atl.jboss.com> PLZ HELP ME ON THIS ASAP...VERY URGENT..:(.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027418#4027418 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027418 From do-not-reply at jboss.com Tue Mar 13 01:42:48 2007 From: do-not-reply at jboss.com (sudarshan_srivathsav) Date: Tue, 13 Mar 2007 01:42:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jboss 4.0.2 and SOAP attachments Message-ID: <15232225.1173764568984.JavaMail.jboss@colo-br-02.atl.jboss.com> Hey Sorry for posting a new topic on this thread...I need help very urgent plz...I have got a webservice successfully deployed but it is throwing me a interceptor exception when i try to access a statless ejb from the webservice. please tell me whether i need any jar...I have posted the exception. 0,960 ERROR [LogInterceptor] EJBException in method: public abstract com.riskspan.services.userobjects.NBUserObjectServiceRemote com.riskspan.services.userobjects.NBUserObjectServiceHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException: javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract com.riskspan.services.userobjects.NBUserObjectServiceRemote com.riskspan.services.userobjects.NBUserObjectServiceHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:175) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:98) at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:145) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107) at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637) at org.jboss.ejb.Container.invoke(Container.java:975) 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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118) at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70) at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100) at $Proxy78.create(Unknown Source) at com.riskspan.services.userobjects.NBWUserObjectService.serviceRequest(NBWUserObjectService.java:170) 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 org.jboss.ws.server.ServiceEndpointInvokerJSE.invokeServiceEndpoint(ServiceEndpointInvokerJSE.java:95) at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:115) at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209) at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355) at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) 10:32:00,964 ERROR [UserObjects] NBWUserObjectService.serviceRequest() Failed.. - Exception => [ java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract com.riskspan.services.userobjects.NBUserObjectServiceRemote com.riskspan.services.userobjects.NBUserObjectServiceHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException ] Pls rely as soon as possible...very urgent View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027419#4027419 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027419 From do-not-reply at jboss.com Tue Mar 13 04:32:32 2007 From: do-not-reply at jboss.com (magnus.ahlander) Date: Tue, 13 Mar 2007 04:32:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Unmarshalling and binding issues Message-ID: <27137459.1173774752436.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm using JAXWS 1.2 and I am trying to generate a web service client from a wsdl, it works but I have a couple of minor issues: 1) Unmarshalling does not find a needed class Inside of my wsdl I have the following type: ... | | | | | | | | ... wsconsume generates the following java class file import javax.xml.bind.annotation.*; | | @XmlAccessorType(XmlAccessType.FIELD) | @XmlType(name = "ItemValue", propOrder = { | "value" | }) | public class ItemValue { | | @XmlElement(name = "Value") | protected Object value; | @XmlAttribute(name = "ItemName") | protected String itemName; | | //... getters and setters | } Everything works fine if "value" is a java type, for instance float | 6428.76806640625 | However, if value is of some other generated type, in my case ArrayOfUnsignedInt, this class is not visible to the JAXBContent used at unmarshalling and the value is left unmarshalled (DOM element). What is the proper way to provide JAXBContent with the extra class needed for unmarshalling? I believe somewhere I would need to put something like: JAXBContext jaxbContext = JAXBContext.newInstance(ItemValue.class, ArrayOfUnsignedInt.class); Or is there some annotation that could be added to class ItemValue which would provide JAXB with the necessary information for unmarshalling? Or could I somehow modify the wsdl (created by a third party)? 2) Modifying binding The received SOAP message contains a 64-bit value marked as 'xsd:float' | 6428.76806640625 | JAXB (correctly) unmarshals this value to 6428.768 (java.lang.Float). What is the easiest way to override this binding (to say java.lang.Double) in a web service client? Regards, Magnus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027437#4027437 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027437 From do-not-reply at jboss.com Tue Mar 13 05:32:35 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Tue, 13 Mar 2007 05:32:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss 4.0.5 and JBoss 4.2 CR1 plus JBossWS 1.2 - Does it Message-ID: <10021737.1173778355315.JavaMail.jboss@colo-br-02.atl.jboss.com> OK, let's put that joke aside. Regarding your questions: 1.) Did you run the install script? It should copy wsrunclient to 'JBOSS_HOME/bin'. See http://jbws.dyndns.org/mediawiki/index.php/Install_JBossWS for details.. 2.) What exactly does castor send? Why don't you use a JBossWS client in conjunction with the Dispatch API? See http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Dispatch 3.) The last point is a JAXB issue. Make yourself familiar with the way JAXB works. Please keep in mind that community support is delivered at free will and should actually be driven by JBossWS users. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027457#4027457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027457 From do-not-reply at jboss.com Tue Mar 13 09:29:31 2007 From: do-not-reply at jboss.com (andydale) Date: Tue, 13 Mar 2007 09:29:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: advice needed Message-ID: <18765928.1173792571717.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am not running the client via the wsrunclient, i am trying to run it as a standalone app (probably not the best idea, considering the trouble i am having). I added the correct jar into the classpath but i now get a org.jboss.ws.WSException: Cannot find configFile: META-INF/standard-jaxws-client-config.xml error when trying to run the client. I even installed jbossws1.0.4GA on 4.0.4GA and i still get the same problem after coping the standard-jaxws-client-config.xml in the META-INF within the jbossws.sar dir in deploy. I am now attempting to call the web service via a HTTP form with the web service URL as the action (using HTTP POST) , the web service returns something but it is only an error saying: | | | | env:Client | | Unsupported content type: application/x-www-form-urlencoded | | | | Any help/adivce would be appreciated. Thanks, Andy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027533#4027533 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027533 From do-not-reply at jboss.com Tue Mar 13 11:51:39 2007 From: do-not-reply at jboss.com (ltenmatay) Date: Tue, 13 Mar 2007 11:51:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss 4.0.5 and JBoss 4.2 CR1 plus JBossWS 1.2 - Does it Message-ID: <30931895.1173801099490.JavaMail.jboss@colo-br-02.atl.jboss.com> anonymous wrote : 1.) Did you run the install script? It should copy wsrunclient to 'JBOSS_HOME/bin'. As far as I can remember, yes I did, but I just checked the build.xml file, seems it should be copied whatever version of JBoss AS. Anyway, this can be a mistake on my part. I used the JBoss 1.2 SP1 and seems the wsrunclient.bat is there now. Btw, stax-api.jar and wstx.jar are not present in JBoss 4.0.5 and JBoss 4.2 CR1. anonymous wrote : 2.) What exactly does castor send? Why don't you use a JBossWS client in conjunction with the Dispatch API? The actual xml string. OK, will check dispatch. anonymous wrote : The last point is a JAXB issue. Make yourself familiar with the way JAXB works. Ah yes, JAXB 2.0 is really something, that is why I wanted to use it. But in this case, seems JBoss should have handled unmarshalling and marshalling properly. I just followed the guide and was able to send messages properly. Problem was that they were not unmarshalled properly on receiving end and not marshalled properly on response side. Btw, I turned on logging in debug mode, and didn't see any problems. Well actually, no errors were thrown. anonymous wrote : Please keep in mind that community support is delivered at free will and should actually be driven by JBossWS users. Yes, you have a good point there. Maybe I will take a look at the source if I had time. Anyway, using axis right now since I really need to make it work. Will migrate to jboss if I finally solve the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027589#4027589 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027589 From do-not-reply at jboss.com Tue Mar 13 12:12:07 2007 From: do-not-reply at jboss.com (zhijun) Date: Tue, 13 Mar 2007 12:12:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How can I do mutual SSL when using JBoss as Web service clie Message-ID: <33077974.1173802327450.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I'm running a Web Service client on JBoss 4.0.5 and JBossWS1.0.4GA. The Web service I'm trying to consume requires mutual SSL authentication. I have created keytore, with the private key, the certificate in it. I also added the Web service provider's certificate to this keystore as a trusted certificate. I have configured my server.xml file to include the following: But I guess this is not good enough (I don't feel that way either). So when I called the service, the error message said that my request did not present a certificate. How do I configure my Web service client, or write some code, to make sure that my web service request (to a https URL) will present a client certificate? I saw that you could specify user ID and password in the tag if you are using basic authentication. But I need certificate-based authentication and couldn't find an example. SOAP signing doesn't help me either because the Web service provider expects the certificate to be presented during the SSL handshake. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027593#4027593 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027593 From do-not-reply at jboss.com Tue Mar 13 13:06:18 2007 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 13 Mar 2007 13:06:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How can I do mutual SSL when using JBoss as Web service Message-ID: <28757690.1173805578763.JavaMail.jboss@colo-br-02.atl.jboss.com> Try adding the following JVM options to the client: -Djavax.net.ssl.keyStore=xxx -Djavax.net.ssl.keyStorePassword=yyy where xxx is the filename for the keystore and yyy is the password for that keystore. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027616#4027616 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027616 From do-not-reply at jboss.com Tue Mar 13 15:12:14 2007 From: do-not-reply at jboss.com (khaledzarig) Date: Tue, 13 Mar 2007 15:12:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - handler problem Message-ID: <24834092.1173813134499.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi guys, I need to intercept the soap message at rhe server side,but it did not work. what i did is: 1) i have this class: package org.jboss.ws.core.jaxws.handler; import org.jboss.ws.core.jaxws.handler.GenericSOAPHandler; import javax.xml.ws.handler.MessageContext; public class HibernateWS extends GenericSOAPHandler { @Override public boolean handleFault(MessageContext msgContext) { System.out.println("Inside GenericSOAPHandler : "); return super.handleFault(msgContext); } @Override protected boolean handleInbound(MessageContext msgContext) { System.out.println("Inside GenericSOAPHandler : "); return true; } @Override protected boolean handleOutbound(MessageContext msgContext) { System.out.println("Inside GenericSOAPHandler : "); return true; } } and i have put the compiled file(.class) in package org.jboss.ws.core.jaxws.handler, ( i use jbossws 1.2.0 ). 2) I added the following to standard-jaxws-endpoint-config.xml file which is in jboss-4.0.5.GA\server\default\deploy\jbossws.sar\META-INF; Handler hibernate gnomo ##SOAP11_HTTP HibernateWS org.jboss.ws.core.jaxws.handler.HibernateWS When i deployed my service it works as normal, but the handler doesn't print the messages as it is showen in the attached class (HibernateWS). can any body tell me what was wrong in this please. thanks in advance, khaly View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027649#4027649 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027649 From do-not-reply at jboss.com Tue Mar 13 15:38:09 2007 From: do-not-reply at jboss.com (zhijun) Date: Tue, 13 Mar 2007 15:38:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How can I do mutual SSL when using JBoss as Web service Message-ID: <11826483.1173814689538.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the information. If I have multiple certificates in the keystore, how do I specify which one to use? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027661#4027661 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027661 From do-not-reply at jboss.com Tue Mar 13 16:16:59 2007 From: do-not-reply at jboss.com (zhijun) Date: Tue, 13 Mar 2007 16:16:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How can I do mutual SSL when using JBoss as Web service Message-ID: <23123098.1173817019970.JavaMail.jboss@colo-br-02.atl.jboss.com> Actually since I'm running my Web service client in JBoss as a JSP page, where should I set up the keystore file and password to use as a Web service client? The set up in server.xml is apparently for managing the keys and certificates for JBoss as a server. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027675#4027675 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027675 From do-not-reply at jboss.com Tue Mar 13 16:20:06 2007 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 13 Mar 2007 16:20:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How can I do mutual SSL when using JBoss as Web service Message-ID: <15357724.1173817206862.JavaMail.jboss@colo-br-02.atl.jboss.com> I don't think that you have to. The client and the server will negotiate on which certificate to use. If course, they have to have at least one matching certificate. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027677#4027677 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027677 From do-not-reply at jboss.com Tue Mar 13 16:24:40 2007 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 13 Mar 2007 16:24:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How can I do mutual SSL when using JBoss as Web service Message-ID: <32654806.1173817480673.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm not sure how you go about doing this if both the client and the web service are in the same app server. Try adding the JVM options to the command line that starts JBoss and see if that works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027679#4027679 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027679 From do-not-reply at jboss.com Tue Mar 13 16:58:19 2007 From: do-not-reply at jboss.com (khaledzarig) Date: Tue, 13 Mar 2007 16:58:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: handler problem Message-ID: <6169284.1173819499140.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, this the simple source code i used in my web service: @Stateless @Remote(EJB3RemoteInterface.class) @RemoteBinding(jndiBinding = "/ejb3/EJB3EndpointInterface") @WebService @SOAPBinding(style = SOAPBinding.Style.RPC) public class EJB3Bean01 implements EJB3RemoteInterface { @WebMethod public String echo(String input) { return input; } } //------------ public interface EJB3RemoteInterface { String echo(String input); } //---------- and then i packaged them in jar file and deployed. can any body tell me what is wrong and why my handler doesnot print anything, please. any seggestion is appreciated View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027696#4027696 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027696 From do-not-reply at jboss.com Tue Mar 13 16:58:49 2007 From: do-not-reply at jboss.com (zhijun) Date: Tue, 13 Mar 2007 16:58:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How can I do mutual SSL when using JBoss as Web service Message-ID: <16007490.1173819529537.JavaMail.jboss@colo-br-02.atl.jboss.com> Actually I'm only running the Web service client on JBoss. The Web service itself is running remotely on a Sun Solaris environment. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027698#4027698 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027698 From do-not-reply at jboss.com Wed Mar 14 06:01:02 2007 From: do-not-reply at jboss.com (ybenigot) Date: Wed, 14 Mar 2007 06:01:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - cannot call jboss ws from MS SOAP SDK Message-ID: <19424600.1173866462713.JavaMail.jboss@colo-br-02.atl.jboss.com> When using a VB Client (VB 2005/MS SOAP SDK 3.0) to jbossws (v1.0.3 which comes from jboss 4.0.5) the parameters are not correctly passed when jbossws waits for a parameter named String_1, it receives a parameter named SOAPSDK1:String_1 , and followed by xmlns:SOAPSDK= jbossws rejects this as a SOAP fault There is a workaround which is to use MSSOAP lowlevel API as described in a former post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966085 I guess that this xmlns construct is authorized by the specifications, and that jbossws should be configured to accept it. Is that correct ? Is there a clean way to use the M$ high level API ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027860#4027860 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027860 From do-not-reply at jboss.com Wed Mar 14 06:04:42 2007 From: do-not-reply at jboss.com (centecbertl) Date: Wed, 14 Mar 2007 06:04:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Namespace for complex types Message-ID: <2513544.1173866682327.JavaMail.jboss@colo-br-02.atl.jboss.com> You could find an example at JBossWS-Forum http://www.jboss.com/index.html?module=bb&op=viewtopic&t=103352 JIRA http://jira.jboss.com/jira/secure/ManageAttachments.jspa?id=12335583 The problem is that I got problems with the JBossWS namespace mapping when using inherited/aggregated types, though. It works for "simple" complex types, but generates semantically incomplete wsdl when using real world classes with aggregation/inheriatnce from more >1 java packages. In that case Webservice Client Generation from WSDL is complaining about the incorrect wsdl or even worse failing because of dis ambiguities (tried with .net 2.0; axis 1.4; Oracle) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027861#4027861 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027861 From do-not-reply at jboss.com Wed Mar 14 06:10:06 2007 From: do-not-reply at jboss.com (centecbertl) Date: Wed, 14 Mar 2007 06:10:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: cannot call jboss ws from MS SOAP SDK Message-ID: <28036924.1173867006096.JavaMail.jboss@colo-br-02.atl.jboss.com> Clients using the .net sdk 2.0 work for Services using doc-literal-wrapped services generated by jbossws 1.0.x on jboss 4.0.5 for me so far. I did not try the .net 3.0 sdk so far. Your could try to switch to doc-literal (if you are not already using this style) or using the .net 2.0 sdk (Is it possible to use them in parallel?) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027863#4027863 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027863 From do-not-reply at jboss.com Wed Mar 14 10:59:22 2007 From: do-not-reply at jboss.com (zhijun) Date: Wed, 14 Mar 2007 10:59:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How can I do mutual SSL when using JBoss as Web service Message-ID: <14116559.1173884362935.JavaMail.jboss@colo-br-02.atl.jboss.com> I have tried everything I can think of. - Added the -Djavax.net.ssl.keystore=.... properties in my command to start the JBoss JVM. - Added the following in my web.xml file anonymous wrote : | RemoteWebService | javax.xml.rpc.Service | RemoteWebService.wsdl | META-INF/jaxrpc-mapping.xml | | | com.zzz.MyWebService | | | javax.net.ssl.keyStore | my.keystore | | | javax.net.ssl.keyStorePassword | password | | | javax.net.ssl.trustStore | keystore.trust | | | javax.net.ssl.trustStorePassword | password | | | - I added the following lines in my Web service client that will run in JBoss System.setProperty("javax.net.ssl.keyStore", "/opt/jboss/jas405/server/myserver/conf/my.keystore"); | System.setProperty("javax.net.ssl.keyStorePassword", "password"); | System.setProperty("javax.net.ssl.trustStore", "/opt/jboss/jas405/server/myserver/conf/trust.keystore"); | System.setProperty("javax.net.ssl.trustStorePassword", "password"); Now when I ran my Web service client in JBoss and when I tried to call the web service, I continued to get the following error in server log: 2007-03-14 10:37:31,054 DEBUG [org.jboss.remoting.Client] invoke called, but our invoker is disconnected, discarding and fetching another fresh invoker for: InvokerLocator [https://....:1443/.../services/MyWebService] | 2007-03-14 10:37:31,054 DEBUG [org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker] connect called for: org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker at 154fc43 | 2007-03-14 10:37:31,063 DEBUG [org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker] Setting request header with SOAPAction : "" | 2007-03-14 10:37:31,063 DEBUG [org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker] Setting request header with Content-Type : text/xml; charset=UTF-8 | 2007-03-14 10:37:31,098 DEBUG [org.jboss.ws.soap.SOAPContentElement] Transitioning to dom-valid state, MTOM disabled | 2007-03-14 10:37:31,132 DEBUG [org.jboss.remoting.transport.http.ssl.HTTPSClientInvoker] Error invoking http client invoker. | org.jboss.ws.WSException: Invalid HTTP server response [403] - Forbidden | at org.jboss.ws.binding.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:73) | at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:175) | at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81) | at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143) | at org.jboss.remoting.Client.invoke(Client.java:525) | at org.jboss.remoting.Client.invoke(Client.java:488) | at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:189) | at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687) | at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404) | at org.apache.jsp.TestWS1_jsp._jspService(TestWS1_jsp.java:86) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | 2007-03-14 10:37:31,133 ERROR [org.jboss.ws.jaxrpc.CallImpl] Call invocation failed with unkown Exception | javax.xml.soap.SOAPException: Could not transmit message | at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:204) | at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687) | at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404) | at org.apache.jsp.TestWS1_jsp._jspService(TestWS1_jsp.java:86) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. | at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:201) | at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81) | at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143) | at org.jboss.remoting.Client.invoke(Client.java:525) | at org.jboss.remoting.Client.invoke(Client.java:488) | at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:189) | ... 28 more | Caused by: org.jboss.ws.WSException: Invalid HTTP server response [403] - Forbidden | at org.jboss.ws.binding.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:73) | at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:175) | ... 33 more | 2007-03-14 10:37:31,135 DEBUG [org.jboss.ws.soap.MessageContextAssociation] popMessageContext: org.jboss.ws.soap.SOAPMessageContextImpl at e782a8 | 2007-03-14 10:37:31,135 INFO [STDOUT] Call invocation failed: Could not transmit message; nested exception is: | javax.xml.soap.SOAPException: Could not transmit message I would highly appreciate it if anyone can provide any clue as to what I'm missing or what might be the problem. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027959#4027959 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027959 From do-not-reply at jboss.com Wed Mar 14 12:33:11 2007 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 14 Mar 2007 12:33:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: cannot call jboss ws from MS SOAP SDK Message-ID: <27034172.1173889991268.JavaMail.jboss@colo-br-02.atl.jboss.com> Not sure if this would fix your problem, but could you move up to jbossws 1.2? I have a 1.2 web service working correctly with a .Net 3.0 C# client, using both doc and rpc style. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028024#4028024 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028024 From do-not-reply at jboss.com Wed Mar 14 13:33:52 2007 From: do-not-reply at jboss.com (gduan2000) Date: Wed, 14 Mar 2007 13:33:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - is it safe to pack keystore file in my application and ship Message-ID: <475926.1173893632159.JavaMail.jboss@colo-br-02.atl.jboss.com> guys, I have a WebService provided through SSL. Also I am providing my customer a client package that can be easily used to connect to this WebService. In order to make it work, I need to generate and pack the keystore file along with the client package. I am no security expert, but just try to make the things easier for my customer. My question is, is it safe to pack the keystore in my client package? If it is not safe, what is the recommended way(s) to do it? Thanks, g View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028062#4028062 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028062 From do-not-reply at jboss.com Wed Mar 14 17:59:11 2007 From: do-not-reply at jboss.com (magnus.ahlander) Date: Wed, 14 Mar 2007 17:59:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Basic authentication in a JBossWS web service client Message-ID: <18982377.1173909551966.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm using JBossWS 1.2 (JAX-WS 2.0) to access a web service, which requires http basic authentication. In the JBoss JAX-WS user guide I didn't find any example of how to provide username/password in a JBossWS web service client. In the JBossWS forum I found the following custom solution: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=94504 It basically adds a new annotation CallProperties, the content of which is then added to the endpoint metadata when processed by the JSR181ClientMetaDataBuilder and JSR181MetaDataBuilder classes. Which is the proposed way of adding http basic authentication in a JBossWS client? Regards, Magnus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028177#4028177 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028177 From do-not-reply at jboss.com Wed Mar 14 23:03:10 2007 From: do-not-reply at jboss.com (joshlam) Date: Wed, 14 Mar 2007 23:03:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JbossWS 1.2 and JBossWS 1.0.4 Generates Diff URLs For Same E Message-ID: <11292791.1173927790184.JavaMail.jboss@colo-br-02.atl.jboss.com> We have a web service packaged in a EAR file deployed in Jboss 4.0.5GA running JbossWS 1.0.4GA which generated the following url: | http://:8080/PrivacyService-3/PrivacyService | The same EAR file when deployed in JBoss 4.0.5GA running JbossWS 1.2 had the following url generated: | http://:8080/PrivacyEars-3-PrivacyService-3/PrivacyService | Just want to know what causes the difference in the url generated. Also we have clients using the former url and we want to port to JbossWS 1.2, how do we resolve this without our clients changing urls? Thanks. -- J View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028225#4028225 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028225 From do-not-reply at jboss.com Thu Mar 15 01:24:27 2007 From: do-not-reply at jboss.com (trivedikumar_mca@yahoo.com) Date: Thu, 15 Mar 2007 01:24:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Need help on wsdl first webservice approach documentation Message-ID: <2550582.1173936267911.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I was using jboss4.0.4 and jbossws-1.2.0.SP1.ZIP for webservices. I am doing wsdl first approach, I generated the java sources/classes using wsconsume tool. After that I wrote webservice impl class and updated web.xml with those details. I packaged it into war and deployed it in jboss deploy folder. But when I go to the link http://localhost:8080/jbossws/services, I am able to see my webservice. But when I am trying to see wsdl file, it is throwing the following error: =========================================== 10:51:03,723 ERROR [[/jbossws1]] StandardWrapper.Throwable java.lang.NullPointerException at org.jboss.ws.core.server.ServiceEndpointManagerFactory.getServiceEndpointManager(ServiceEndpointManagerFactory.java:52) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.initServiceEndpointManager(AbstractServiceEndpointServlet.java:135) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.init(AbstractServiceEndpointServlet.java:60) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) 10:51:03,723 ERROR [[HelloWebServiceImpl]] Allocate exception for servlet HelloWebServiceImpl java.lang.NullPointerException at org.jboss.ws.core.server.ServiceEndpointManagerFactory.getServiceEndpointManager(ServiceEndpointManagerFactory.java:52) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.initServiceEndpointManager(AbstractServiceEndpointServlet.java:135) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.init(AbstractServiceEndpointServlet.java:60) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) ============================================ Pls let me know, Am I missing anything? I am just using web.xml file nothing else for my webservice. For the earlier version of jboss, we should have mapping and jboss-services xml files. If there is any documentation on step by step process for creating wsdl first webservices in jboss, Please let me know. Thanks in advance, Trivedi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028236#4028236 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028236 From do-not-reply at jboss.com Thu Mar 15 02:01:44 2007 From: do-not-reply at jboss.com (uk_raju) Date: Thu, 15 Mar 2007 02:01:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - webservices support Message-ID: <19847930.1173938504892.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi All,ist possible to run webservices in JBoss 3.2.0??? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028244#4028244 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028244 From do-not-reply at jboss.com Thu Mar 15 02:05:27 2007 From: do-not-reply at jboss.com (trivedikumar_mca@yahoo.com) Date: Thu, 15 Mar 2007 02:05:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: I get an Message-ID: <12368103.1173938727327.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Jim, I need your help in writting webservices on jboss4.0.4. I was actually doing wsdl first approach for web services and also using jbossws1.2.0SP1. I couldnt able to deploy my webservices project in jboss. If possible, Could you pls provide me any documentation on step by step process for creating webservices on jboss 4.0.4. Pls do the needful. Thanks, Trivedi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028245#4028245 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028245 From do-not-reply at jboss.com Thu Mar 15 03:17:05 2007 From: do-not-reply at jboss.com (magnus.ahlander) Date: Thu, 15 Mar 2007 03:17:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Unmarshalling and binding issues Message-ID: <11146537.1173943025110.JavaMail.jboss@colo-br-02.atl.jboss.com> Regarding my first question, the answer was provided to me on the java.net jaxb 2.0 and jax-ws 2.0 forum: JAX-WS does not support type substitution in cases where Java types are used at runtime that are not directly or indirectly referenced by the SEI. More details on: http://weblogs.java.net/blog/kohlert/archive/2006/10/jaxws_and_type.html In this blog entry it is said that JAX-WS 2.1 solves the issue through a new annotation @XmlSeeAlso, which is used to provide the JAXBContext with classes needed at unmarshalling. What are the plans for incorporating JAX-WS 2.1 in JBossWS? Is there any other solution, which could be applied using JBossWS 1.2? Regarding my other question I am still looking for a hint. How can I unmarshal a double value which is incorrectly tagged as 'xsd:float' in the SOAP reponse? Regards, Magnus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028255#4028255 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028255 From do-not-reply at jboss.com Thu Mar 15 04:03:38 2007 From: do-not-reply at jboss.com (ichunlin) Date: Thu, 15 Mar 2007 04:03:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Does JBOSSWS support anyType? Message-ID: <14760401.1173945818179.JavaMail.jboss@colo-br-02.atl.jboss.com> I defined an element as anyType in WSDL. And I tried to code the java with SOAPElement for that. But I always get the following excpetion. :44:36,629 ERROR [SOAPFaultExceptionHelper] SOAP request exception vax.xml.rpc.JAXRPCException: Cannot create or send response message at org.jboss.ws.server.ServiceEndpoint.postProcessResponse(ServiceEndpoint.java:286) at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:211) at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355) at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028261#4028261 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028261 From do-not-reply at jboss.com Thu Mar 15 04:58:36 2007 From: do-not-reply at jboss.com (fadilica) Date: Thu, 15 Mar 2007 04:58:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problems by jbossws-deploy Message-ID: <16076647.1173949116692.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have Jboss AS 4.0.2 and try to install jbossws 1.0.4-GA. I copied jbossws.sar, jbossws-client.jar and jboss-xml-binding.jar appropriete. The URL http://localhost:8080/jbossws results in page not found (404) server.log contains following error: org.jboss.deployment.DeploymentException: Unexpected error during load of: org.jboss.ws.integration.jboss.DeployerInterceptorJSE, msg=org/jboss/ws/integration/jboss/DeployerInterceptorJSEMBean; - nested throwable: (java.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.ws.integration.jboss.DeployerInterceptorJSE, msg=org/jboss/ws/integration/jboss/DeployerInterceptorJSEMBean) What am I doing wrong? Regards, Fadila View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028276#4028276 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028276 From do-not-reply at jboss.com Thu Mar 15 05:13:48 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 15 Mar 2007 05:13:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JAX-WS, possible bug? WSDL-file must be located in WEB-INF/w Message-ID: <364279.1173950028237.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello!! I don't know if this is a bug or the implementation is according to the specification. Anyhow, when running a JAX-WS web service having the wsdlLocation attribute set to an http-location I get an error when parsing the schema. The wsdl has a relative schema import, so changing it to a absolute path might fix the problem. Did it, now I got the error saying the wsdl file must be located in the WEB-INF/wsdl folder. I just wonder if this behavior is according to the specification, or if it is a bug. If it is a bug, I can report it to the Jira. I just want to make sure it is a bug before doing so. Best, Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028281#4028281 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028281 From do-not-reply at jboss.com Thu Mar 15 05:25:02 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Thu, 15 Mar 2007 05:25:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: ClassNotFoundException and a generated __JBossWS_... cla Message-ID: <19066036.1173950702192.JavaMail.jboss@colo-br-02.atl.jboss.com> Is this reproducable with 1.2.0? If yes please create a jira issue and attach a sample deployment with source. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028287#4028287 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028287 From do-not-reply at jboss.com Thu Mar 15 07:47:25 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Thu, 15 Mar 2007 07:47:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Need help on wsdl first webservice approach documentatio Message-ID: <6578038.1173959245443.JavaMail.jboss@colo-br-02.atl.jboss.com> You cannot use 1.2.0 with jboss4.0.4. It works with 4.0.5 and later versions. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028323#4028323 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028323 From do-not-reply at jboss.com Thu Mar 15 07:48:49 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Thu, 15 Mar 2007 07:48:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JbossWS 1.2 and JBossWS 1.0.4 Generates Diff URLs For Sa Message-ID: <17799091.1173959329633.JavaMail.jboss@colo-br-02.atl.jboss.com> You can specify the actual URL within jboss-web.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028324#4028324 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028324 From do-not-reply at jboss.com Thu Mar 15 07:52:42 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Thu, 15 Mar 2007 07:52:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: I get an Message-ID: <11006017.1173959562128.JavaMail.jboss@colo-br-02.atl.jboss.com> Is the 'DcsWebServiceServlet' the actual service endpoint implementation and not a Servlet? In that case you'd need to rename it. *Servlet will be treated as HTTP servlet and not web service endpoints. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028327#4028327 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028327 From do-not-reply at jboss.com Thu Mar 15 07:55:58 2007 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Thu, 15 Mar 2007 07:55:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: handler problem Message-ID: <28474645.1173959758310.JavaMail.jboss@colo-br-02.atl.jboss.com> The first thing is not to put your handler in jbossws packages. Keep them private to your application, that is a custom package. In order to deploy it with your actual endpoint you need to specify a @HandlerChain that points to your handler declaration. Did you read the userguide? http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028330#4028330 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028330 From do-not-reply at jboss.com Thu Mar 15 08:29:59 2007 From: do-not-reply at jboss.com (khaledzarig) Date: Thu, 15 Mar 2007 08:29:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: handler problem Message-ID: <31535710.1173961799676.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, i am aware of this way (@HandlerChain ), but what i am trying to do is: Intecept soap message without the need to modify or add any code to the client or the endpoint code. I need something that helps me to intercept any soap message comes in or out of the jboss server. So, is there a way of doing this, please View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028342#4028342 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028342 From do-not-reply at jboss.com Thu Mar 15 08:51:29 2007 From: do-not-reply at jboss.com (trivedikumar_mca@yahoo.com) Date: Thu, 15 Mar 2007 08:51:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Need help on wsdl first webservice approach documentatio Message-ID: <10735549.1173963089625.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Thanks for your reply. Then what should i use for jboss4.0.4 for webservice impl with wsdl first approach? pls provide me any link to the reference. Thanks in advance. Trivedi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028347#4028347 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028347 From do-not-reply at jboss.com Thu Mar 15 09:10:32 2007 From: do-not-reply at jboss.com (jimmycallaghan) Date: Thu, 15 Mar 2007 09:10:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: ClassNotFoundException and a generated __JBossWS_... cla Message-ID: <9842496.1173964232382.JavaMail.jboss@colo-br-02.atl.jboss.com> I will be deploying the code onto JBoss4.2 in the next week and I'll let you know how I get on. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028349#4028349 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028349 From do-not-reply at jboss.com Thu Mar 15 09:33:45 2007 From: do-not-reply at jboss.com (andydale) Date: Thu, 15 Mar 2007 09:33:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Need help on wsdl first webservice approach documentatio Message-ID: <25180451.1173965625989.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, You can use the 1.0.4GA release of JBossWS no with no prblems in 4.0.4.GA Thanks, Andy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028364#4028364 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028364 From do-not-reply at jboss.com Thu Mar 15 09:57:04 2007 From: do-not-reply at jboss.com (trivedikumar_mca@yahoo.com) Date: Thu, 15 Mar 2007 09:57:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Need help on wsdl first webservice approach documentatio Message-ID: <31281093.1173967024051.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Andy, Thanks for the information. I will try with 1.0.4GA. Can I find documentation on how to use this? Pls help me. Trivedi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028371#4028371 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028371 From do-not-reply at jboss.com Thu Mar 15 10:22:05 2007 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 15 Mar 2007 10:22:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: webservices support Message-ID: <11233419.1173968525208.JavaMail.jboss@colo-br-02.atl.jboss.com> Did you mean JBoss AS 4.2.0? If so, yes, you can run JBossWS 1.2 with JBoss AS 4.2.0. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028398#4028398 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028398 From do-not-reply at jboss.com Thu Mar 15 10:24:57 2007 From: do-not-reply at jboss.com (trivedikumar_mca@yahoo.com) Date: Thu, 15 Mar 2007 10:24:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Need help on wsdl first webservice approach documentatio Message-ID: <3820138.1173968697527.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Andy, As you said, I downloaded and installed 1.0.4GA in jboss4.0.4. But its not working. When I look at the link http://localhost:8080/jbossws/services for services, I was getting the following error: ===================================== 19:46:22,861 ERROR [[ContextServlet]] Servlet.service() for servlet ContextServlet threw exception java.lang.NoSuchMethodError: org.jboss.ws.server.ServiceEndpointManagerMBean.showServiceEndpointTable()Ljava/lang/String; at org.jboss.ws.server.ContextServlet.doGet(ContextServlet.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) ============================================ What went wrong? Thanks, Trivedi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028399#4028399 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028399 From do-not-reply at jboss.com Thu Mar 15 10:45:56 2007 From: do-not-reply at jboss.com (Sanver) Date: Thu, 15 Mar 2007 10:45:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSException from a servlet Message-ID: <4695757.1173969956235.JavaMail.jboss@colo-br-02.atl.jboss.com> Searching through the forum, i've found a solution, it seems the stack waits for a *Servlet.class in order to execute as servlet, otherwise it is considered a Webservice Endpoint... Here is the solution http://www.jboss.com/index.html?module=bb&op=viewtopic&t=85503 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028417#4028417 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028417 From do-not-reply at jboss.com Thu Mar 15 10:59:49 2007 From: do-not-reply at jboss.com (zhijun) Date: Thu, 15 Mar 2007 10:59:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problem calling a web service that requires empty input Message-ID: <23572359.1173970789699.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm trying to call a Web service using a method that doesn't take an input parameter. The WSDL for the input parameter is this: | | | | I'm using call.invoke(Object[]) method to call it. I'm always getting the following ArrayIndexOutOfBoundsException no matter how I manipulate the Object[] for this call. It feels like JBossWS is having problem with this situation/WSDL description. 2007-03-15 10:48:18,870 DEBUG [org.jboss.ws.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.soap.SOAPMessageContextImpl at 1267610 | 2007-03-15 10:48:18,916 ERROR [org.jboss.ws.jaxrpc.CallImpl] Call invocation failed with unkown Exception | java.lang.ArrayIndexOutOfBoundsException: 0 | at org.jboss.ws.binding.EndpointInvocation.initInputParams(EndpointInvocation.java:300) | at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:642) | at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404) | at org.apache.jsp.TestWS1_jsp._jspService(TestWS1_jsp.java:90) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | ... ... | Is this a know issue or am I doing something wrong? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028422#4028422 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028422 From do-not-reply at jboss.com Thu Mar 15 13:26:12 2007 From: do-not-reply at jboss.com (tperrigo) Date: Thu, 15 Mar 2007 13:26:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsconsume -- unable to resolve type definition Message-ID: <31111629.1173979572634.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm trying to use wsconsume to generate a client for a (.NET) web service, but I'm getting the following error: anonymous wrote : | [exec] warning: src-resolve: Cannot resolve the name 'soapenc:Array' to a(n) 'type definition' component. | [exec] line ? of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?schema1 | [exec] error: undefined simple or complex type 'soapenc:Array' | [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?schema1 | [exec] error: undefined attribute 'soapenc:arrayType' | [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?schema1 | [exec] error: undefined simple or complex type 'soapenc:Array' | [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?schema1 | [exec] error: undefined attribute 'soapenc:arrayType' | [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?schema1 | [exec] error: undefined simple or complex type 'soapenc:Array' | [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?schema1 | [exec] error: undefined attribute 'soapenc:arrayType' | [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?schema1 | [exec] error: undefined simple or complex type 'soapenc:Array' | [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?schema1 | [exec] error: undefined attribute 'soapenc:arrayType' | [exec] line 0 of http://oma-svr-miler1c/MultiMiler/RandWS_01/MileMaker.asmx?WSDL#types?schema1 | [exec] org.xml.sax.SAXParseException: undefined attribute 'soapenc:arrayType' | [exec] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:213) | [exec] at org.jboss.com.sun.tools.ws.processor.config.ModelInfo.buildModel(ModelInfo.java:88) | [exec] at org.jboss.com.sun.tools.ws.processor.Processor.runModeler(Processor.java:82) | [exec] at org.jboss.com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:543) | [exec] at org.jboss.com.sun.tools.ws.util.ToolBase.run(ToolBase.java:57) | [exec] at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl$1.run(WSContractConsumerImpl.java:163) | [exec] at org.jboss.ws.tools.jaxws.impl.WSContractConsumerImpl.consume(WSContractConsumerImpl.java:166) | [exec] at org.jboss.ws.tools.jaxws.command.wsconsume.importServices(wsconsume.java:194) | [exec] at org.jboss.ws.tools.jaxws.command.wsconsume.main(wsconsume.java:77) | [exec] Caused by: org.xml.sax.SAXParseException: undefined attribute 'soapenc:arrayType' | [exec] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:128) | [exec] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2207) | [exec] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:224) | [exec] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:181) | [exec] ... 8 more | [exec] Caused by: org.xml.sax.SAXParseException: undefined attribute 'soapenc:arrayType' | [exec] at com.sun.xml.xsom.impl.parser.ParserContext$1.reportError(ParserContext.java:130) | [exec] at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.reportError(NGCCRuntimeEx.java:131) | [exec] at com.sun.xml.xsom.impl.parser.DelayedRef.resolve(DelayedRef.java:90) | [exec] at com.sun.xml.xsom.impl.parser.DelayedRef.run(DelayedRef.java:65) | [exec] at com.sun.xml.xsom.impl.parser.ParserContext.getResult(ParserContext.java:94) | [exec] at com.sun.xml.xsom.parser.XSOMParser.getResult(XSOMParser.java:190) | [exec] at com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:487) | [exec] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:203) | [exec] at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:67) | [exec] at org.jboss.com.sun.tools.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:126) | [exec] ... 11 more | [exec] error: org.xml.sax.SAXParseException: undefined attribute 'soapenc:arrayType' | I'm really quite clueless as to what this means, or how to resolve it. I'm using JBossWS 1.2.0.SP1 and JBoss 4.2.0.CR1. Any help would be very much appreciated! Thanks, Tim View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028474#4028474 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028474 From do-not-reply at jboss.com Thu Mar 15 14:06:41 2007 From: do-not-reply at jboss.com (sursha) Date: Thu, 15 Mar 2007 14:06:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JbossWS 1.2 and JBossWS 1.0.4 Generates Diff URLs For Sa Message-ID: <11203754.1173982001101.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I noticed 2 differences between jbossws 1.0.4GA and 1.2.0GA I have the following annotations to expose an EJB3 as a web service. In 1.0.4GA, the generated url is http://host:8080/svc-rptv1.1/MyService1.1 and in 1.2.0 GA the generated URL is http://whittier:8080/svc-rptv1-svc-rptv1/MyService In 1.2, I read about @PortComponent being replaced with @WebContext and @EndpointConfig I dont have much information about how to replace them. Also why the big differences? Can someone shed some light?? @WebService(name="MyServiceEndPoint", targetNamespace="urn:v1.MyService.services.mycompany.com", serviceName="MyService1.1") @SOAPBinding(style=SOAPBinding.Style.DOCUMENT,use=SOAPBinding.Use.LITERAL) @Stateless @PortComponent(transportGuarantee="NONE",contextRoot="/svc-rptv1.1",urlPattern="/MyService1.1") View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028478#4028478 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028478 From do-not-reply at jboss.com Thu Mar 15 16:22:04 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 15 Mar 2007 16:22:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume -- unable to resolve type definition Message-ID: <16170882.1173990124086.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello!! This is just a guess, or more, just have it in mind. I was in a project where we had to integrate the old JBoss WS4EE with Microsoft .NET. If the wsdl is using document literal and was compatible with the WS-I Basic Profile, we succeeded, otherwise not. Best Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028530#4028530 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028530 From do-not-reply at jboss.com Thu Mar 15 19:29:13 2007 From: do-not-reply at jboss.com (noclueu2) Date: Thu, 15 Mar 2007 19:29:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Issue with dotNet client and Credentials Message-ID: <13974313.1174001353620.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello all, I have tried the JSR-181 EJB Endpoint example at http://labs.jboss.com/portal/jbossws/user-guide/en/html/endpoints.html with .Net as a client. Following the example, everything works great. Now when I try to add authentication to it by adding annotations: | @RolesAllowed("friend") | @WebContext(authMethod="BASIC", transportGuarantee="NONE", secureWSDLAccess=false) | @SecurityDomain(value="JBossWS") | I get a "The request failed with HTTP status 505: HTTP Version Not Supported." error at the .Net client. Here is some of that code. | MagicService ms = new MagicService(); | ms.PreAuthenticate = true; | CredentialCache creds = new CredentialCache(); | creds.Add(new Uri(ms.Url), "BASIC", new NetworkCredential("kermit", "thefrog")); | ms.Credentials = creds; | ms.pullFromHat("Rabbit"); | Any thoughts? Do I need to add the file ServerHandlers.xml somewhere in my jar file, do I need the jboss-wsse-server.xml file already? I am trying to do everything in small steps, was just adding the annotations too small of a step? Thanks, Richard K. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028597#4028597 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028597 From do-not-reply at jboss.com Fri Mar 16 01:12:03 2007 From: do-not-reply at jboss.com (joshlam) Date: Fri, 16 Mar 2007 01:12:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Is MessageContextAssociation.peekMessageContext() Thread Saf Message-ID: <33521287.1174021923581.JavaMail.jboss@colo-br-02.atl.jboss.com> We are currently using JbossWS 1.2 on JBoss 4.0.5GA and read in previous posts that the way to get the message context via a EJB3 web service end point is (even though it is non portable code) | CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext(); Is this call to retrieve the CommonMessageContext object thread safe? Thanks. -- J View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028670#4028670 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028670 From do-not-reply at jboss.com Fri Mar 16 02:36:23 2007 From: do-not-reply at jboss.com (uk_raju) Date: Fri, 16 Mar 2007 02:36:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: webservices support Message-ID: <19737004.1174026983238.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi,I am asking whether JBoss versions below 4.x supports webservices??? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028680#4028680 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028680 From do-not-reply at jboss.com Fri Mar 16 02:42:15 2007 From: do-not-reply at jboss.com (trivedikumar_mca@yahoo.com) Date: Fri, 16 Mar 2007 02:42:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JAX-WS servlet initializing error during deployment of jaxws Message-ID: <13576455.1174027335351.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am trying to deploy the jaxws webservices on jboss 4.0.4GA. During deployment, I was getting the following errors for this webservices: =========================================== 12:01:07,247 INFO [TomcatDeployer] deploy, ctxPath=/jboss404jaxws, warUrl=.../tmp/deploy/tmp5099jboss404jaxws-exp.war/ 12:01:07,466 ERROR [STDERR] Mar 16, 2007 12:01:07 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate init INFO: WSSERVLET14: JAX-WS servlet initializing 12:01:07,466 ERROR [STDERR] Mar 16, 2007 12:01:07 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate warnMissingContextInformation WARNING: WSSERVLET16: missing context information ============================================ My project name is jboss404jaxws, I am using SUN jaxws jars. Is that something causing issue? pls help me. Thanks in advance Trivedi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028682#4028682 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028682 From do-not-reply at jboss.com Fri Mar 16 10:49:32 2007 From: do-not-reply at jboss.com (tperrigo) Date: Fri, 16 Mar 2007 10:49:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - wsconsume ant task Message-ID: <30932629.1174056572420.JavaMail.jboss@colo-br-02.atl.jboss.com> What jars are needed to use the wsconsume ant task? Thanks, Tim View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028792#4028792 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028792 From do-not-reply at jboss.com Fri Mar 16 12:04:32 2007 From: do-not-reply at jboss.com (PeterJ) Date: Fri, 16 Mar 2007 12:04:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume ant task Message-ID: <6221124.1174061072067.JavaMail.jboss@colo-br-02.atl.jboss.com> Probably the same jar files listed in wsconsume.[bat|sh]. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028850#4028850 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028850 From do-not-reply at jboss.com Fri Mar 16 13:01:18 2007 From: do-not-reply at jboss.com (PeterJ) Date: Fri, 16 Mar 2007 13:01:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: is it safe to pack keystore file in my application and s Message-ID: <19404044.1174064478500.JavaMail.jboss@colo-br-02.atl.jboss.com> I have also been contemplating something similar, but came up with several reasons why this would not be a good idea. First, using keytool to generate a certificate is fine for development, test and even perhaps internal use. But if the application will be interacting with users outside of the company then you will want to get a certificate from a valid certificate authority such as VeriSign. That of course costs money, though if you charge for your product you could always include the cost of the certificate in the cost of the product. Second, each customer needs its own certificate. That is, you cannot generate a single certificate and use it for every customer. This then becomes a packaging issue - you cannot simply generate a stack of CDs and give one to each customer - each CD has to be custom made. Third, the certificate has a public and private key. The more people who handle the private key the more likely it is to be compromised. As a business concerned about maintaining privacy, both of my own information and that of my customers (since violating customer privacy can result in various government-imposed penalties), I would not want anyone else to have access to my private key. These are the ones I have thought of so far. My current thought is to offer to generate a certificate using keytool as part of the installation of my product, or allow the customer to provide information about the keystore that the customer has set up (presumably with a certificate from an authority such as VeriSign) and have the installer hook up to that keystore. While this might not be as convenient, it is more secure. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028879#4028879 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028879 From do-not-reply at jboss.com Fri Mar 16 16:09:32 2007 From: do-not-reply at jboss.com (superomega) Date: Fri, 16 Mar 2007 16:09:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume with provider sample Message-ID: <4565795.1174075772523.JavaMail.jboss@colo-br-02.atl.jboss.com> Hallo again, the question was for this example: Why do I get a void type as result of the method and not a result value from type user? Greets, Werner View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028941#4028941 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028941 From do-not-reply at jboss.com Sat Mar 17 21:40:19 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Sat, 17 Mar 2007 21:40:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JAX-WS servlet initializing error during deployment of j Message-ID: <16897478.1174182019751.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Trivedi! Can you please give me some more of your code. Then I might help you. I have been struggeling al lot now an finally found a solution that seems to work for me. //Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029087#4029087 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029087 From do-not-reply at jboss.com Sun Mar 18 03:09:32 2007 From: do-not-reply at jboss.com (gduan2000) Date: Sun, 18 Mar 2007 03:09:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: is it safe to pack keystore file in my application and s Message-ID: <7663123.1174201772616.JavaMail.jboss@colo-br-02.atl.jboss.com> PeterJ, thanks for the advice! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029095#4029095 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029095 From do-not-reply at jboss.com Sun Mar 18 20:14:33 2007 From: do-not-reply at jboss.com (nean) Date: Sun, 18 Mar 2007 20:14:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Webservice Client consumer Message-ID: <32746010.1174263274110.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello i have some problems to built a client which can use web services deployed... My config is like : - eclispe jboss IDE 2.0.0 beta - jboss 4.0.5 EJB3 config - jdk 1.5_11 i deploy normaly an EJB3.0 webservice on jboss, and my wsdl is like : anonymous wrote : ? | | | ? | | | | ? | | | | ? | | | | ? | | | | ? | | ? | | | | | ? | | | | | | ? | | | ? | | | ? | | | | ? | | | | | ? | | | ? | | | | ? | | | | | | ? | | ? | | | | | my client is like : import java.net.MalformedURLException; | import java.net.URL; | import java.rmi.RemoteException; | | import javax.xml.namespace.QName; | import javax.xml.rpc.Call; | import javax.xml.rpc.Service; | import javax.xml.rpc.ServiceException; | import javax.xml.rpc.ServiceFactory; | | public class testWS { | | /** | * @param args | * @throws MalformedURLException | */ | public static void main(String[] args) { | // TODO Auto-generated method stub | String urlstr="http://localhost:8080/SiteMarchand-ejb/wsSiteBean?wsdl"; | URL url=null; | try { | try { | url = new URL(urlstr); | } catch (MalformedURLException e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | | System.out.println("Contacting webservice at " + urlstr); | String ns = "http://wsSite/jaws"; | | QName qname = new QName(ns,"wsSiteService"); | QName port = new QName(ns, "wsSitePort"); | QName operation = new QName(ns, "getPrixProduit"); | | ServiceFactory factory = ServiceFactory.newInstance(); | Service service = factory.createService(url, qname); | Call call = service.createCall(port, operation); | try { | Double d = (Double) call.invoke(new Object[]{"ezekiel"}); | } catch (RemoteException e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | } catch (ServiceException e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | } | } i imported these libraries in my classpath : anonymous wrote : | jre system library 1.5_11 | JbossAOP 1.3 libraries (sdk 1.5) | J2EE 1.4 Libraries (JBoss-IDE) | jboss ejb3 libraries | jbossws-client.jar And my error returned : anonymous wrote : Contacting webservice at http://localhost:8080/SiteMarchand-ejb/wsSiteBean?wsdl | Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xerces/xs/XSModel | at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:106) | at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:82) | at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128) | at testWS.main(testWS.java:37) ligne 37 of testWS.java is "Service service = factory.createService(url, qname);" So is there someone who can give me a solution or my error ? Or maybe a tips to create automaticaly the client with my configuration... Thanks for responses, please View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029164#4029164 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029164 From do-not-reply at jboss.com Sun Mar 18 20:15:38 2007 From: do-not-reply at jboss.com (nean) Date: Sun, 18 Mar 2007 20:15:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Webservice Client consumer Message-ID: <22282456.1174263338693.JavaMail.jboss@colo-br-02.atl.jboss.com> sorry it seems there is somes mod for xml ... i put it again : ? | | | ? | | | | ? | | | | ? | | | | ? | | | | ? | | ? | | | | | ? | | | | | | ? | | | ? | | | ? | | | | ? | | | | | ? | | | ? | | | | ? | | | | | | ? | | ? | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029165#4029165 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029165 From do-not-reply at jboss.com Mon Mar 19 03:51:04 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Mon, 19 Mar 2007 03:51:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WSDL-location help? Message-ID: <32008084.1174290664693.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all!! I just want to ask if it is a requirement to put the wsdl file in the WEB-INF/wsdl folder. I want to have my WSDL (with a lot of schema-imports) on a more common place (an http://...... url). Doing this will casue JBossWS (JBoss 4.0.5.GA and JBossWS 1.2) to fail the deployment and ask for a WSDL file in the WEB-INF/wsdl folder. So, is it possible to have the WSDL file on a remote server and still develop a service endpoint? Thanks Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029216#4029216 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029216 From do-not-reply at jboss.com Mon Mar 19 05:06:49 2007 From: do-not-reply at jboss.com (fujikura) Date: Mon, 19 Mar 2007 05:06:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - StackOverflowError with WS-Security Message-ID: <15992858.1174295209803.JavaMail.jboss@colo-br-02.atl.jboss.com> hi all, i'm having a problem when i use ws-security with jbossws. when a service implementation returns messages(my own class object or string object) including null value, a StackOverflowError occurs in a client side. Exception: java.lang.StackOverflowError java.lang.StackOverflowError at java.security.AccessController.doPrivileged(Native Method) at java.io.PrintWriter.(PrintWriter.java:77) at java.io.PrintWriter.(PrintWriter.java:61) at org.jboss.ws.utils.DOMWriter.(DOMWriter.java:104) at org.jboss.ws.utils.DOMWriter.printNode(DOMWriter.java:141) at org.jboss.ws.soap.NodeImpl.assertSOAPParent(NodeImpl.java:592) at org.jboss.ws.soap.NodeImpl.getParentNode(NodeImpl.java:296) at org.jboss.ws.utils.DOMWriter.getNamespaceURI(DOMWriter.java:435) at org.jboss.ws.utils.DOMWriter.getNamespaceURI(DOMWriter.java:438) at org.jboss.ws.utils.DOMWriter.getNamespaceURI(DOMWriter.java:438) at org.jboss.ws.utils.DOMWriter.printInternal(DOMWriter.java:269) at org.jboss.ws.utils.DOMWriter.printInternal(DOMWriter.java:307) at org.jboss.ws.utils.DOMWriter.printInternal(DOMWriter.java:307) at org.jboss.ws.utils.DOMWriter.print(DOMWriter.java:193) at org.jboss.ws.utils.DOMWriter.printNode(DOMWriter.java:141) at org.jboss.ws.soap.NodeImpl.assertSOAPParent(NodeImpl.java:592) at org.jboss.ws.soap.NodeImpl.getParentNode(NodeImpl.java:296) environments: jboss 4.0.5 jbossws 1.0.3 sp1 service provider(server implementation) and service consumer(client) are running on different machines. i tried some different type of object as a return value(return soap message). i found this error occurs if the return string value is null or return object have at least one null value as an attribute. in other words, no null values are included in the return value, service invocations are done successfully and i confirmed that the soap messages are correctly encripted. does anyone know the reason or workaround? best regards, shigemoto. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029230#4029230 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029230 From do-not-reply at jboss.com Mon Mar 19 05:22:19 2007 From: do-not-reply at jboss.com (fheldt) Date: Mon, 19 Mar 2007 05:22:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Issue with dotNet client and Credentials Message-ID: <23685560.1174296139201.JavaMail.jboss@colo-br-02.atl.jboss.com> http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWSAndDotNet should answer this... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029234#4029234 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029234 From do-not-reply at jboss.com Mon Mar 19 07:32:53 2007 From: do-not-reply at jboss.com (benigot) Date: Mon, 19 Mar 2007 07:32:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: cannot call jboss ws from MS SOAP SDK Message-ID: <13394609.1174303973717.JavaMail.jboss@colo-br-02.atl.jboss.com> I tried jbossws 1.2 installed on top of jboss 4.0.5 without success : I get the same error. I will try C# now to see if it works better with jbossws I didn't try the doc-literal yet, I will do it also. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029266#4029266 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029266 From do-not-reply at jboss.com Mon Mar 19 08:51:46 2007 From: do-not-reply at jboss.com (vitor_b) Date: Mon, 19 Mar 2007 08:51:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - beginner needs help Message-ID: <28006068.1174308706229.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello Jboss: 4.0.5 GA You can skip following info and look directly on description and code. I'm rather new to WS. I decided to create my WebService using Stateless Session Bean, but i was getting errors. Thats why i decided to deply an example, and then modify it. Example is attached to book: JBoss 4.0 the Official Guide. The example service is quite simple. The operation accepts one argument: String, and returns String. I decided to change operation in order to make it accept Object. But I have failed, look at that: description and code Exception stack trace: anonymous wrote : 12:46:56,093 ERROR [MainDeployer] Could not create deployment: file:/C:/Tutorial/jboss-4.0.5.GA/serer/default/deploy/hello-ejb.jar | org.jboss.ws.WSException: Cannot obtain method parameter mapping for message part 'inputttttt' in wdl operation: hello at org.jboss.ws.deployment.JSR109MetaDataBuilder.buildParameterMetaDataRpc(JSR109MetaDataBulder.java:229) | at org.jboss.ws.deployment.JSR109MetaDataBuilder.setupOperationsFromWSDL(JSR109MetaDataBuil | er.java:196) | at ... My session bean operation: public String hello(Input input) | { | return "Witaj " + input.getName() + "!"; | } Input object looks like that: package org.jboss.chap12.hello; | | public class Input { | | String name; | | public String getName() { | return name; | } | | public void setName(String name) { | this.name = name; | } | | } Wsdl file: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mapping file: | | | | | org.jboss.chap12.hello.Input | typeNS:Input | complexType | | name | name | | | | org.jboss.chap12.hello | http://hello.chap12.jboss.org/types | | | org.jboss.chap12.hello | http://hello.chap12.jboss.org/ | | | org.jboss.chap12.hello.HelloService | serviceNS:HelloService | | HelloPort | HelloPort | | | | org.jboss.chap12.hello.Hello | portTypeNS:Hello | bindingNS:HelloBinding | | hello | hello | | 0 | org.jboss.chap12.hello.Input | | wsdlMsgNS:Hello_hello | inputttttt | IN | | | | java.lang.String | wsdlMsgNS:Hello_helloResponse | result | | | | | For me looks like everything is fine, but it is not. The question is: why? Could you help me? Thank you in advance. vitor_b View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029280#4029280 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029280 From do-not-reply at jboss.com Mon Mar 19 13:19:50 2007 From: do-not-reply at jboss.com (openyourmind) Date: Mon, 19 Mar 2007 13:19:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Webservice Client consumer Message-ID: <26017097.1174324790404.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Nean, If you check in the wsrunclient.sh you will see that you should set the vm options as follows: -Djava.endorsed.dirs=/[jboss_install_path]/jboss/jboss-4.0.5.GA/lib/endorsed Hope it helps Open Your Mind View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029403#4029403 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029403 From do-not-reply at jboss.com Mon Mar 19 18:18:14 2007 From: do-not-reply at jboss.com (openyourmind) Date: Mon, 19 Mar 2007 18:18:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Server-side NullpointerException when using ws-security Message-ID: <16021759.1174342694080.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I have some problems using ws-security. My WS runs correctly without wssecurity, but when I activate it I get an strange server-side NullPointerException. My config is : - jboss 4.0.5.GA EJB3 config - jbossws-1.2.0.GA - jdk 1.5_08 This is what we get in the server log from the server start up until the exception. | | 2007-03-19 22:21:38,895 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 48s:327ms | 2007-03-19 22:29:00,239 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000 | 2007-03-19 22:29:01,749 DEBUG [org.jboss.ws.core.server.ServiceEndpoint] WSDL request, using host: chaponniere-linux | 2007-03-19 22:29:01,791 DEBUG [org.jboss.ws.core.server.ServiceEndpoint] WSDL request, using host: chaponniere-linux | 2007-03-19 22:29:05,181 DEBUG [org.jboss.ws.core.server.AbstractServiceEndpointServlet] doPost: /procedures-beans/PstProcedureManager | 2007-03-19 22:29:05,189 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 1757322 (Thread http-0.0.0.0-8080-1) | 2007-03-19 22:29:05,190 DEBUG [org.jboss.ws.core.server.ServiceEndpoint] BEGIN handleRequest: jboss.ws:context=procedures-beans,endpoint=PstProcedureManager | 2007-03-19 22:29:05,220 DEBUG [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage: [contentType=text/xml; charset=UTF-8] | 2007-03-19 22:29:05,245 DEBUG [javax.xml.soap.FactoryLoader] Load from Service API META-INF/services/javax.xml.soap.SOAPFactory: org.jboss.ws.core.soap.SOAPFactoryImpl | 2007-03-19 22:29:05,245 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3 at 12c4d8f, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader at c6948c{ url=null ,addedOrder=0} | 2007-03-19 22:29:05,265 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callRequestHandlerChain: PRE | 2007-03-19 22:29:05,266 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: PRE | 2007-03-19 22:29:05,266 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] Clear handler map: {} | 2007-03-19 22:29:05,268 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] addHandler: [service=null,port=null,binding=http://schemas.xmlsoap.org/wsdl/soap/http]:WSSecurity Handler | 2007-03-19 22:29:05,268 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: ENDPOINT | 2007-03-19 22:29:05,268 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] Clear handler map: {} | 2007-03-19 22:29:05,268 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: POST | 2007-03-19 22:29:05,268 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] Clear handler map: {} | 2007-03-19 22:29:05,268 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] getHandlerChain: [type=PRE,info=[service={http://procedure.procedures/}PstProcedureManagerService,port={http://procedure.procedures/}PstProcedureManagerPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http]] | 2007-03-19 22:29:05,268 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] add protocol handlers: [WSSecurity Handler] | 2007-03-19 22:29:05,274 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: [WSSecurity Handler] | 2007-03-19 22:29:05,274 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Enter: handleRequest | 2007-03-19 22:29:05,279 DEBUG [org.jboss.ws.core.soap.SOAPMessageDispatcher] getDispatchDestination: null | 2007-03-19 22:29:05,279 ERROR [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Exception during handler processing | java.lang.NullPointerException | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:130) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:59) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:276) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleRequest(HandlerChainExecutor.java:112) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:65) | at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.callRequestHandlerChain(AbstractServiceEndpointInvoker.java:106) | at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.invoke(AbstractServiceEndpointInvoker.java:140) | at org.jboss.ws.core.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:204) | at org.jboss.ws.core.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:440) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | 2007-03-19 22:29:05,280 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Exit: handleRequest with status: false | 2007-03-19 22:29:05,282 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception | javax.xml.ws.WebServiceException: java.lang.NullPointerException | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:262) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleRequest(HandlerChainExecutor.java:124) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:65) | at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.callRequestHandlerChain(AbstractServiceEndpointInvoker.java:106) | at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.invoke(AbstractServiceEndpointInvoker.java:140) | at org.jboss.ws.core.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:204) | at org.jboss.ws.core.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:440) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | Caused by: java.lang.NullPointerException | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:130) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:59) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:276) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleRequest(HandlerChainExecutor.java:112) | ... 28 more | | My client-side code | | wsdlURL = new URL("http://chaponniere-linux:8080/procedures-beans/PstProcedureManager?wsdl"); | URL securityURL = new File("jboss-wsse-client.xml").toURL(); | QName serviceName = new QName("http://procedure.procedures/", "PstProcedureManagerService"); | | Service service = Service.create(wsdlURL, serviceName); | ((ServiceExt)service).setSecurityConfig(securityURL.toExternalForm()); | | PstProcedureManager port = (PstProcedureManager)service.getPort(PstProcedureManager.class); | //Hello port = (Hello)service.getPort(Hello.class); | ((StubExt)port).setConfigName("Standard WSSecurity Client"); | | | Map reqContext = ((BindingProvider)port).getRequestContext(); | //reqContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:8080/jaxws-samples-wssecurity-encrypt"); | reqContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://chaponniere-linux:8080/procedures-beans/PstProcedureManager?wsdl"); | | String procedureNumber = port.getProcedure(1).getNumber(); | System.out.println(procedureNumber); | | And finally my WS. | | @WebService | @EndpointConfig(configName = "Standard WSSecurity Endpoint") | public class PstProcedureManager implements PstProcedureInterface { | | @PersistenceContext | protected EntityManager em; | | @WebMethod | public PstProcedureBean getProcedure(int pId) { | Collection procedureCol = | em.createQuery("from PstProcedureBean procedureBean where procedureBean.id = :id") | .setParameter ("id", pId) | .getResultList(); | | | return (PstProcedureBean)procedureCol.iterator().next(); | } | } | | I cannot see where the problem might come from and I would greatly appreciate your help with this issue. Thanks in advance M. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029524#4029524 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029524 From do-not-reply at jboss.com Mon Mar 19 19:56:36 2007 From: do-not-reply at jboss.com (nean) Date: Mon, 19 Mar 2007 19:56:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Webservice Client consumer Message-ID: <13639622.1174348596909.JavaMail.jboss@colo-br-02.atl.jboss.com> "openyourmind" wrote : Hi Nean, | | If you check in the wsrunclient.sh you will see that you should set the vm options as follows: | | -Djava.endorsed.dirs=/[jboss_install_path]/jboss/jboss-4.0.5.GA/lib/endorsed | | Hope it helps | Open Your Mind i haven't wsrunclient.sh, i have only a wstool.sh, where i can find a such line... After finaly i found the problem, i put my main as method on a stateless session bean and it works... Do you know why i can't make a simple client without to do a stateless session bean ? And do you know how i can use objects because it seems that the mapping is impossible... ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029557#4029557 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029557 From do-not-reply at jboss.com Mon Mar 19 19:59:12 2007 From: do-not-reply at jboss.com (nean) Date: Mon, 19 Mar 2007 19:59:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: beginner needs help Message-ID: <22821083.1174348752934.JavaMail.jboss@colo-br-02.atl.jboss.com> i have the same problem than you, it's a problem of mapping, like the object isn't known or built... So if someone have the solution... thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029558#4029558 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029558 From do-not-reply at jboss.com Tue Mar 20 07:04:26 2007 From: do-not-reply at jboss.com (openyourmind) Date: Tue, 20 Mar 2007 07:04:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Webservice Client consumer Message-ID: <20001963.1174388666031.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I thought you were using jbossws-1.2.0.GA. I'm sorry I cannot help with previous versions. M. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029710#4029710 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029710 From do-not-reply at jboss.com Tue Mar 20 10:41:09 2007 From: do-not-reply at jboss.com (gquintana) Date: Tue, 20 Mar 2007 10:41:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Install in Tomcat 6 Message-ID: <20622598.1174401669616.JavaMail.jboss@colo-br-02.atl.jboss.com> Did someone succeeded in installing JBossWS 1.2 in Tomcat 6.0? The directory layout of Tomcat 6.0 is different from 5.5 and earlier. As a result, the Ant script which should install JBossWS fails... Thanks for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029815#4029815 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029815 From do-not-reply at jboss.com Tue Mar 20 10:58:00 2007 From: do-not-reply at jboss.com (benigot) Date: Tue, 20 Mar 2007 10:58:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: cannot call jboss ws from MS SOAP SDK Message-ID: <9776147.1174402680274.JavaMail.jboss@colo-br-02.atl.jboss.com> Finally I tried wstools with style=document Visual Basic cannot get along with this. It seems that MS SOAP Toolkit is using rpc style, and that the high level API uses a namespace in the parameter definition, which is incompatible with jbossws. However, since this toolkit is superseded by .Net there is no way around. The conclusion is : one must use the call Serializer.SoapAttribute("xmlns", "", "", "") and the low level API to get it work. With C#, on the contrary, everything goes fine, and a webservice call is two lines of code. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029825#4029825 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029825 From do-not-reply at jboss.com Tue Mar 20 14:08:20 2007 From: do-not-reply at jboss.com (benigot) Date: Tue, 20 Mar 2007 14:08:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Is there a way to get webservice context information Message-ID: <21720409.1174414100741.JavaMail.jboss@colo-br-02.atl.jboss.com> jbossws 1.0.5 / jboss 4.0.5 I want to know the actual host name that a web service is using, because this host name is used to compute an https: URL. Inside an endPoint code in jbossWs can I access parameters from the StandardEndPointServlet which handles the call ? Or is there a way to access another object which knows that ? For the moment I settled for getting the webservice to call itself, get the wsdl document, parse and extract the webservice URL. It works but this is a very indirect way to accomplish this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029927#4029927 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029927 From do-not-reply at jboss.com Tue Mar 20 14:15:23 2007 From: do-not-reply at jboss.com (zauberlehrling) Date: Tue, 20 Mar 2007 14:15:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Why interface for EJB3 webservices? Message-ID: <33177513.1174414523258.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I'm investigating your examples in jbossws-samples-1.2.0.SP1. In your example for EJB3 webservices you use two classes: 1) An interface (EJB3RemoteInterface) 2) The stateless session bean implementing the operation of the webservice (EJB3Bean01) .. | // standard JSR181 annotations | @WebService(name = "EndpointInterface", targetNamespace = "http://org.jboss.ws/samples/jsr181ejb", serviceName = "TestService") | @SOAPBinding(style = SOAPBinding.Style.RPC) | | // standard EJB3 annotations | @Remote(EJB3RemoteInterface.class) | @RolesAllowed("friend") | @Stateless | | // jboss propriatary annotations | @RemoteBinding(jndiBinding = "/ejb3/EJB3Bean01") | @WebContext(authMethod="BASIC", transportGuarantee="NONE", secureWSDLAccess=false) | @SecurityDomain("JBossWS") | public class EJB3Bean01 implements EJB3RemoteInterface | { | @WebMethod | @WebResult(name = "result") | public String echo(@WebParam(name = "String_1") String input) | { | return input; | } | } I also have a small session bean / webservice : @WebService | @Stateless | public class EjbEndpoint { | | @WebMethod | public String sayHello(String name) | { | return "Hello "+name+"!"; | } | } and I can successfully deploy this session bean / webservice to jboss-5 Beta 2. Even I am able to call the webservice. My question: What's the purpose of the interface? Have I missed something? Thanks in adavance! Frank View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029931#4029931 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029931 From do-not-reply at jboss.com Tue Mar 20 14:32:34 2007 From: do-not-reply at jboss.com (zauberlehrling) Date: Tue, 20 Mar 2007 14:32:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Is there a way to get webservice context information Message-ID: <32594360.1174415554080.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, in the JAX-WS User Guide - JBossWS ( http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Handler_Framework) there is some information: anonymous wrote : Accessing the message context | ------------------------------------ | There is currently no portable way of doing this in 4.0.5. @WebServiceContext injection will be available with 4.2. In the meantime you can access the message context like this: | | CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext(); | msgContext.setProperty(, ); | I do not know if this helps for getting the host name. Best regards, Frank View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029942#4029942 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029942 From do-not-reply at jboss.com Tue Mar 20 15:25:53 2007 From: do-not-reply at jboss.com (davidkally) Date: Tue, 20 Mar 2007 15:25:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - intercepting soap message in a client and server side Message-ID: <754345.1174418753158.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello everybody, I need to handle (intercept) soap messages in the client side and server side, but the main concern is that i do not have to add any code in the client and Endpoint to do so ( like @handlerchain()). what i am doing is devolping tools for fault tolarnce and i need to inject some stuff in a soap message after the client invoke the endpoint and before the message goes to the wire. then i need as weee to intercept the same message before reachs the Endpoint method. I know there are ways to do this by using(@Handlerchain()) at both sides, however, that means i need to add some code in both sides which is i do not have. Therefore, is there any other way to intercept soap messages, please. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029957#4029957 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029957 From do-not-reply at jboss.com Tue Mar 20 22:28:02 2007 From: do-not-reply at jboss.com (monowai) Date: Tue, 20 Mar 2007 22:28:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Why interface for EJB3 webservices? Message-ID: <28721492.1174444082894.JavaMail.jboss@colo-br-02.atl.jboss.com> The interface is not strictly required under EJB3 and your question has nothing to do with Webserices per-se. The reason for a Remote Interface is just that - Remote (or client). If you don't distribute a remote interface, then you have to distribute your EJB's. Deploying server side logic is a no-no in my book. So, to sum up, if you expect a remote client to use RMI to call your EJB's, then create and distribute a remote interface. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030079#4030079 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030079 From do-not-reply at jboss.com Tue Mar 20 22:29:18 2007 From: do-not-reply at jboss.com (monowai) Date: Tue, 20 Mar 2007 22:29:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Why interface for EJB3 webservices? Message-ID: <10799982.1174444158733.JavaMail.jboss@colo-br-02.atl.jboss.com> "monowai" wrote : ...Deploying server side logic is a no-no in my book.. | Should have read: Deploying Service side logic to the Client! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030080#4030080 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030080 From do-not-reply at jboss.com Tue Mar 20 22:31:45 2007 From: do-not-reply at jboss.com (monowai) Date: Tue, 20 Mar 2007 22:31:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: cannot call jboss ws from MS SOAP SDK Message-ID: <3156446.1174444305749.JavaMail.jboss@colo-br-02.atl.jboss.com> Haven't tried your specific example, but have had no problems calling webservices from Excel. Here be the link I used to get things going. http://www.windowsdevcenter.com/pub/a/windows/2005/02/08/xcel_mm.html Maybe there will be some clues in the MS generated code. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030083#4030083 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030083 From do-not-reply at jboss.com Tue Mar 20 23:38:12 2007 From: do-not-reply at jboss.com (monowai) Date: Tue, 20 Mar 2007 23:38:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: beginner needs help Message-ID: <32205992.1174448292352.JavaMail.jboss@colo-br-02.atl.jboss.com> Assuming you're using jbossws 1.2 Your Input class needs to expose it's properties with tags similar to: @XmlAccessorType(XmlAccessType.FIELD) | @XmlType(name = "Input", propOrder = { | "firstName", | "lastName"}) This will allow wsconsume & produce (and the JBoss deployer) to create the necessary complex types and map them to simple XML types To the best of my knowledge, you can not pass complex datatypes as parameters, but someone will probably prove me wrong! I haven't had a need to do it yet. Make sure you familiarise yourself with the examples at http://jbws.dyndns.org/mediawiki/index.php/Main_Page If you're mucking around maintaining WSDL files, you're making too much work for yourself. hth. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030093#4030093 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030093 From do-not-reply at jboss.com Tue Mar 20 23:43:49 2007 From: do-not-reply at jboss.com (monowai) Date: Tue, 20 Mar 2007 23:43:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSDL-location help? Message-ID: <27787291.1174448629097.JavaMail.jboss@colo-br-02.atl.jboss.com> You shouldn't have to create WSDL files at all. If you're using annotations and jbossws-1.2 then the WSDL is created and published during deployment whenever the deployer spots a @webservice. v. easy!! simply navigate to http://localhost/jbossws/services to see which endpoints were detected and deployed. click on the link and there's your WSDL. using a command like the following, you can create java client side artifacts directly from the deployed services: wsconsume http://localhost/myapp-myapp_webservice_ejb-HEAD/SomeBeanFSB?wsd | l -k -s \maven\myapp\src\ -p myapp.tests.ws.mytestpkg View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030097#4030097 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030097 From do-not-reply at jboss.com Tue Mar 20 23:49:57 2007 From: do-not-reply at jboss.com (monowai) Date: Tue, 20 Mar 2007 23:49:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: advice needed Message-ID: <26652196.1174448997945.JavaMail.jboss@colo-br-02.atl.jboss.com> simplest thing to do is add all the [JBOSS_HOME]/client libraries to your classpath. I tried to do what you are doing, and did resolve all dependancies, but it takes time! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030099#4030099 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030099 From do-not-reply at jboss.com Wed Mar 21 02:39:55 2007 From: do-not-reply at jboss.com (redimpream) Date: Wed, 21 Mar 2007 02:39:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - webservicess Message-ID: <3643187.1174459195858.JavaMail.jboss@colo-br-02.atl.jboss.com> sir i hava dowenload sample from net but am getting server side error when am trying to run that sample but am installed jboss 4.0 so what shoud i do? by preamchandru Redim(premd at redim.net) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030107#4030107 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030107 From do-not-reply at jboss.com Wed Mar 21 03:18:27 2007 From: do-not-reply at jboss.com (fenrus) Date: Wed, 21 Mar 2007 03:18:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Do we actually need to download and install JBossWS? Message-ID: <12214062.1174461507423.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm running EJB3.0 on JBoss AS 4.0.5. I thought the default JBoss AS came with Web Services capability. So I merrily went on my way trying to get some Java web services to work with .NET to work, with utter failure. Then I noticed the JBossWS project and download. What's the difference, and/or what more do I get, from having installed JBossWS compared to not having it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030113#4030113 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030113 From do-not-reply at jboss.com Wed Mar 21 04:14:19 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Wed, 21 Mar 2007 04:14:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSDL-location help? Message-ID: <24326300.1174464859754.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! Thanks for your help. I'm sorry to say, that is not what I actually need or do. I want to have control over my contract (the WSDL-file). That is why I'm using contract first development. I have external parts using my services (contracts). Therefore generated contacts is not a good solution for me. But that is another topic. So, I have created the WSDL-file, and my own web service provider. I had to do this because I want to use xml beans as data binding framework. | @Stateless | @WebServiceProvider( | serviceName = "MyService", | portName = "MyServiceSoap11Port", | targetNamespace = "http://my.domain.com/my-service", | wsdlLocation = "WEB-INF/wsdl/my-service.wsdl") | @ServiceMode(value = Service.Mode.PAYLOAD) | public class MyServiceEndpointProvider implements Provider { | ... | } | So, what I want to do is to point out wsdlLocation="http://..." instead of wsdlLocation="WEB-INF/...". Why do I want to do this? Just because I see the contract as a complete separate part of the solution. My service (might be services) implements this contract. I might have several services that implements the same contract, but doing different things in different situations. So, my question still is: Is it a must to point out the wsdlLocation to a local path within the generated war. Best Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030131#4030131 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030131 From do-not-reply at jboss.com Wed Mar 21 08:22:33 2007 From: do-not-reply at jboss.com (stardotjim) Date: Wed, 21 Mar 2007 08:22:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Global Handler Chain Message-ID: <4241986.1174479753542.JavaMail.jboss@colo-br-02.atl.jboss.com> Is there a way to create a anonymous wrote : global chain of handlers that fire for all web service requests? The idea we are struggling with is that we do not want to be forced to decorate all web services with the handler chain annotation. We feel that it leaves too much room for error as well as rework if we want to add an additional handler to all services. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030210#4030210 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030210 From do-not-reply at jboss.com Wed Mar 21 08:35:38 2007 From: do-not-reply at jboss.com (centecbertl) Date: Wed, 21 Mar 2007 08:35:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Do we actually need to download and install JBossWS? Message-ID: <16913599.1174480538908.JavaMail.jboss@colo-br-02.atl.jboss.com> JBossAS 4.0.5 has got JBossWS 1.0.3.SP1 included. You might want to update to as described here to JBossWS 1.2.0 to use JaxWS style WebServices with JSR181 annotations. (There is only limited support for JSR181 in JBossWS 1.0.3.SP1. JSR181 examples are delivered in the JBossWS Samples. I had no problems connecting .net clients to those samples. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030217#4030217 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030217 From do-not-reply at jboss.com Wed Mar 21 10:30:06 2007 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 21 Mar 2007 10:30:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: webservicess Message-ID: <20525234.1174487406415.JavaMail.jboss@colo-br-02.atl.jboss.com> Do it correctly and it will work. :-) But seriously, you have not given us any information about the problem you are having so how could we help you solve it? First, which version of JBoss Application Server are you using? 4.0 is ambiguous, is it 4.0.5, 4.0.4, 4.0.3SP1, 4.0.2, 4.0.1, 4.0.0? Second, what version of JBoss Web Services (JBossWS) are you using? 1.2.0? 1.0.4? Third, did you follow the installation instructions to install JBossWS? Fourth, you mention a "sample", which of the sample applications are you running? Fifth, what error are you getting? Please post the stack trace. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030247#4030247 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030247 From do-not-reply at jboss.com Wed Mar 21 12:06:31 2007 From: do-not-reply at jboss.com (zauberlehrling) Date: Wed, 21 Mar 2007 12:06:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Example ProviderBeanMessage Message-ID: <3109989.1174493191434.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I slightly modified the Provider example ProviderBeanMessage: package org.jboss.test.ws.jaxws.samples.provider; | | // $Id: ProviderBeanMessage.java 2193 2007-01-30 16:33:53Z thomas.diesler at jboss.com $ | | import javax.xml.soap.SOAPMessage; | import javax.xml.ws.Provider; | import javax.xml.ws.Service; | import javax.xml.ws.ServiceMode; | import javax.xml.ws.WebServiceProvider; | import javax.ejb.Stateless; | | /** | * Test a Provider | * | * @author Thomas.Diesler at jboss.org | * @since 29-Jun-2006 | */ | @Stateless | @WebServiceProvider( | serviceName = "ProviderService", | portName = "ProviderPort", | targetNamespace = "http://org.jboss.ws/provider", | wsdlLocation = "Provider.wsdl") | @ServiceMode(value = Service.Mode.MESSAGE) | public class ProviderBeanMessage implements Provider | { | public SOAPMessage invoke(SOAPMessage request) | { | return request; | } | } So it's a stateless session bean. I put the class together with the file Provider.wsdl into a jar file and successfully deployed the archive. The deployment was fine and I can see the wsdl under: http://localhost:8080/Provider/ProviderBeanMessage?wsdl My problem: When I call the webservice with the eclipse webservice explorer I get the following error message: anonymous wrote : The SOAP response failed schema validation. Please switch to the source view for the SOAP response in XML format. | My setup: JBOSS_HOME: L:\..\build\output\jboss-5.0.0.Beta2 JAVA: C:\Programme\Java\jdk1.5.0_10\bin\java .. [ServiceEndpointManager] jbossws-2.0.0.DEV (build=200703171222) Best regards, Frank View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030289#4030289 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030289 From do-not-reply at jboss.com Wed Mar 21 12:14:03 2007 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 21 Mar 2007 12:14:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Top-down development problem Message-ID: <4828925.1174493643262.JavaMail.jboss@colo-br-02.atl.jboss.com> I am trying to follow the docs at http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Top-Down_.28Using_wsconsume.29 to create a Web service using the top-down method. What I did was first use the bottom-up method, and after deploying the Web service, I ran wsprovide to create the WSDL. In addition, I wrote a client that that accessed the Web service to ensure that it works. So far so good. Then I used wsconsume to create the Java stubs, using the interface that was generated to write my Web service endpoint class, packaged the necessary classes, web.xml and wsdl in a war file and deployed it. Now when I access the endpoint with my client, I get an error because the container is attempting to instantiate the interface, not the implementation class. My Web service looks exactly like the one in the documentation, with a few changes: 1) When I created the original bottom-up endpoint, I added the @SOAPBinding(style=SOAPBinding.Style.RPC) annotation to it. Thus when the wsconsume generated the stubs from the WSDL, I got only two classes: Echo.java and EchoService.java. 2) Since I wanted to use the original WSDL, I modified the generated Echo.java to reference the WSDL that I packaged in the war file (without this change, JBossWS will re-generate the WSDL when the web service is deployed, which sort of defeats the whole purpose of top-down development; I could never figure out if there was a default WSDL location; and this property was ignored when I placed it on the implementation class): @WebService(name="Echo", targetNamespace = "http://echo/", wsdlLocation="WEB-INF/wsdl/EchoService.wsdl") My war file has the following contents: WEB-INF/classes/echo/Echo.class WEB-INF/classes/echo/EchoImpl.class WEB-INF/web.xml WEB-INF/wsdl/EchoService.wsdl When I run my client, I get the following error on the server: 09:07:10,941 ERROR [SOAPFaultHelperJAXWS] SOAP request exception java.lang.InstantiationException: echo.Echo at java.lang.Class.newInstance0(Class.java:335) at java.lang.Class.newInstance(Class.java:303) at org.jboss.ws.core.server.ServiceEndpointInvokerJSE.createServiceEndpoint(ServiceEndpointInvokerJSE.java:69) at org.jboss.ws.core.server.AbstractServiceEndpointInvoker.invoke(AbstractServiceEndpointInvoker.java:130) at org.jboss.ws.core.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:204) at org.jboss.ws.core.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:440) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) 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:228) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:86) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) at java.lang.Thread.run(Thread.java:595) By the way, I am running JBossWS 1.2 on JBoss AS 5.0 beta2 (pulled on March 5th) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030294#4030294 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030294 From do-not-reply at jboss.com Wed Mar 21 12:21:38 2007 From: do-not-reply at jboss.com (venugopalm59) Date: Wed, 21 Mar 2007 12:21:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Japanese language pack Message-ID: <14354013.1174494098990.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am new to web services. I tried deploying a web service on JBoss and did a test run of the service using the Web-Service-Explorer tool available with Eclipse. (The client is auto-generated from the WSDL and provides a form-based GUI to access the service.) The JBoss now complains about ill-formatted SOAP request coming rom the Explorer. The machine on which JBoss and Eclipse are running happens to be a Japanese Windows machine. Does JBoss require any particular language pack to be installed? Thanks for your help! Regards, Venu View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030296#4030296 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030296 From do-not-reply at jboss.com Wed Mar 21 13:51:31 2007 From: do-not-reply at jboss.com (fenrus) Date: Wed, 21 Mar 2007 13:51:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Do we actually need to download and install JBossWS? Message-ID: <22145847.1174499491168.JavaMail.jboss@colo-br-02.atl.jboss.com> hmm... I tried again. I found the Web Reference. But I don't end up getting a proxy, I only get a .discomap and .wsdl file in my Solution Explorer. eh, maybe something else is wrong... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030330#4030330 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030330 From do-not-reply at jboss.com Wed Mar 21 16:26:35 2007 From: do-not-reply at jboss.com (flindet) Date: Wed, 21 Mar 2007 16:26:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How Do I See the XML? Message-ID: <6545696.1174508795024.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I'm new to JBossWS. I'm using JBossWS 1.2.0.SP1, installed into JBoss AS 4.0.5. I've created an SEI Document/Wrapped web service (unless I'm confused). I have unit tests that prove that my web service is working. It's a very simple web service based heavily on the "echo" example included with JBossWS. It's my understanding from reading the documentation that somehow JBossWS is converting between Java objects and XML, presumably via JAXB. anonymous wrote : JAX-WS simplifies the development model for a web service endpoint a great deal. In short, an endpoint implementation bean is annotated with JAX-WS annotations and deployed to the server. The server automatically generates and publishes the abstract contract (i.e. wsdl+schema) for client consumption. All marshalling/unmarshalling is delegated to JAXB I'd like to see the XML that's theoretically being generated and passed along the wire so that I can 1) confirm it matches the schema I expect and 2) better understand how this is all working. Ideally, I'd also like to have a unit test that looks at the raw XML because my expected client will not have JAXB, and will probably be in a .NET environment. None of the code that I wrote invokes an Unmarshaller. I'm assuming this is magically done for me. Can anyone shed some light and help me learn where I'm confused? Thanks for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030366#4030366 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030366 From do-not-reply at jboss.com Wed Mar 21 20:24:06 2007 From: do-not-reply at jboss.com (joff) Date: Wed, 21 Mar 2007 20:24:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JSR181 EJB endpoint with root contextRoot Message-ID: <23517815.1174523046715.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I've got an EJB as a JSR181 endpoint, and I want the service to be accessible via a URL like this: http://hostname:8080/MyExampleService?wsdl This is what I have so far: @WebService(targetNamespace = "http://example.com", name="MyExample", serviceName="MyExampleService") | @SOAPBinding(style=SOAPBinding.Style.RPC, use=SOAPBinding.Use.LITERAL) | @Stateless | @PortComponent(contextRoot="/", urlPattern="/MyExampleService") | public class MyExampleServiceImpl implements Remote, MyExampleService { | ... | } However, deploying it like this results in it apparently (according to the /jbossws/services page) being deployed to http://hostname//MyExampleService?wsdl, but when I click on it, it's gives a 404 error. Is there any way to successfully get the webservice to deploy in the root? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030427#4030427 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030427 From do-not-reply at jboss.com Thu Mar 22 04:44:37 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 22 Mar 2007 04:44:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How Do I See the XML? Message-ID: <15590655.1174553077470.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! You can always turn on TRACE debugging on the ws messages. There is an uncommented row in the JBOSS_HOME/server/default/conf/log4j.xml. Now you will see the messages in the JBOSS_HOME/server/default/log/server.log file. By default the CONSOLE-appender in log4j.xml has a threshold parameter set to INFO. This makes log4j to reject all messages with lower priority than this value. If you set threshold to TRACE you will get a lot of info, more than you want. You can always create a handler (http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Handler_Framework[/url]) to monitor the result of the ws, but it might be tricky. Another way is to create an http filter ([url]http://java.sun.com/products/servlet/Filters.html) that will check your incoming request and outgoing response. Best Oskar [/url] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030495#4030495 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030495 From do-not-reply at jboss.com Thu Mar 22 04:47:05 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 22 Mar 2007 04:47:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How Do I See the XML? Message-ID: <13897716.1174553225499.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry, the links got messed. JBossWS Handler: http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Handler_Framework Servlet filter: http://java.sun.com/products/servlet/Filters.html //Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030498#4030498 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030498 From do-not-reply at jboss.com Thu Mar 22 05:29:38 2007 From: do-not-reply at jboss.com (smalbequi) Date: Thu, 22 Mar 2007 05:29:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - charset encoding problem with the jsr181pojo sample : echo( Message-ID: <8413089.1174555778185.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, 1 - I have deployed jaxws-samples-jsr181pojo.war in a jboss-4.0.5.GA + jbossws-1.2.0.GA container 2 - I have generated ws client with the wsconsume ant task | | 3 - I test the web service with the code below | System.out.println(new TestService().getEndpointInterfacePort().echo("Fran?ais")); | | I get: Fran????ais | Any idea ? Thanks in advance LOG : | 578 [main] DEBUG javax.xml.soap.FactoryLoader - Load from Service API META-INF/services/javax.xml.ws.spi.Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl | 1047 [main] TRACE jbossws.SOAPMessage - Remoting meta data: {HEADER={SOAPAction="", Content-Type=text/xml; charset=UTF-8}, NoThrowOnError=true} | 1047 [main] TRACE jbossws.SOAPMessage - Outgoing SOAPMessage | | | | | Fran?ais | | | | 1110 [main] TRACE jbossws.SOAPMessage - Incoming Response SOAPMessage | | | | | Fran??ais | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030510#4030510 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030510 From do-not-reply at jboss.com Thu Mar 22 06:29:11 2007 From: do-not-reply at jboss.com (QPool.Char) Date: Thu, 22 Mar 2007 06:29:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How Do I See the XML? Message-ID: <4840419.1174559351343.JavaMail.jboss@colo-br-02.atl.jboss.com> There is also a tool called "wsmonitor" that is quickly configured. It receives the incoming request on a certain port, prints it out and forwards it to the service endpoint. Therefore you have to change the service endpoint location in your client, perhaps by setting the BindingProperties. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030536#4030536 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030536 From do-not-reply at jboss.com Thu Mar 22 06:44:19 2007 From: do-not-reply at jboss.com (vitor_b) Date: Thu, 22 Mar 2007 06:44:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: beginner needs help Message-ID: <21785483.1174560259568.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello Thank you for your reply. I haven't tried your solution, since i created ant task, which generates mapping and wsdl files for me. With these files my web service (even with more complex input and output) works fine. And i didn't have to add these tags. Maybe that was becouse of my version of jbossws (1.4) but I'm really not sure. I only had to create wscompile-config.xml file. The problem described in my first post was occured becouse i created these files by my hand. I did it becouse i need to understand every aspect of creating these files. And the last thing: i've seen webservice with extremally complex input and output, but someone else created it. Best regards vitor_b View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030545#4030545 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030545 From do-not-reply at jboss.com Thu Mar 22 09:33:12 2007 From: do-not-reply at jboss.com (mreis) Date: Thu, 22 Mar 2007 09:33:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - dynamic clients for JBossWS/JAX-WS endpoints Message-ID: <25453398.1174570392346.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, can anyone tell me whether it is possible to create dynamic clients (i.e. clients that do not rely on any "stub artefacts" at compile time) for JBossWS/JAX-WS based endpoints and if possible, point out the best way(s) to do that? The dynamic client must also work with custom complex datatypes. If someone could point me to an example that would be great ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030631#4030631 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030631 From do-not-reply at jboss.com Thu Mar 22 11:54:06 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Thu, 22 Mar 2007 11:54:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: dynamic clients for JBossWS/JAX-WS endpoints Message-ID: <10046421.1174578846790.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I think you have to create you own web service provider. There is a section about this in the user guide (http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Endpoint_Provider) Doing this gives you the possibility to do whatever you want to do with your request and response - they are all under your control. Best Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030690#4030690 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030690 From do-not-reply at jboss.com Thu Mar 22 12:27:40 2007 From: do-not-reply at jboss.com (flindet) Date: Thu, 22 Mar 2007 12:27:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How Do I See the XML? Message-ID: <8455470.1174580860970.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks, guys. This is all great advice. I appreciate it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030708#4030708 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030708 From do-not-reply at jboss.com Thu Mar 22 12:31:22 2007 From: do-not-reply at jboss.com (flindet) Date: Thu, 22 Mar 2007 12:31:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How Do I See the XML? Message-ID: <31845071.1174581082611.JavaMail.jboss@colo-br-02.atl.jboss.com> By the way, oskar, I got the handler working. This is very nice. ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030712#4030712 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030712 From do-not-reply at jboss.com Thu Mar 22 12:46:44 2007 From: do-not-reply at jboss.com (santhoshitha) Date: Thu, 22 Mar 2007 12:46:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - ClassCastException - jaxws webservice in jboss1.2.0 Message-ID: <11960831.1174582004741.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi there! I have posted over a dozen questions in this forum but haven't gotten a reply to even one. I hope atleast this one qualifies for a reply. I am using jbossws 1.2.0 installed in jboss server 4.0.5. i try to deploy a jaxws webservice that consists of methods accepting an array of custom classes as a parameter and returning an array of strings. i get an exception on deployment which is quite tough to debug. any help/insight into this would be a big help. i am in a fix, and need a solution quickly. the exception i get is : [ServiceEndpointDeployer] Cannot create service endpoint java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5 The complete stack trace is below: 22:04:35,219 ERROR [ServiceEndpointDeployer] Cannot create service endpoint java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5 at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getBaseClass(ClassInfoImpl.java:170) at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:59) at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:39) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:142) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189) at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56) at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33) at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22) at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15) at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38) at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41) at java.util.AbstractList$Itr.next(AbstractList.java:422) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:204) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:356) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:217) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76) 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 com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:76) at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:815) at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:126) at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:49) at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMetaData(JAXWSMetaDataBuilderJSE.java:68) at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:90) at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127) at org.jboss.ws.integration.jboss42.DeployerInterceptorJSE.createServiceEndpoint(DeployerInterceptorJSE.java:132) at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) 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 $Proxy43.create(Unknown Source) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at sun.reflect.GeneratedMethodAccessor17.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(ModelMBeanOperationInterceptor.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 $Proxy8.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(AbstractDeploymentScanner.java:263) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225) 22:04:35,223 ERROR [MainDeployer] Could not create deployment: file:/u/gokulavs/jboss-4.0.5.GA/server/default/deploy/UpdateService.war org.jboss.deployment.DeploymentException: Cannot create service endpoint; - nested throwable: (java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5) at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53) at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:83) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) 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 $Proxy43.create(Unknown Source) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at sun.reflect.GeneratedMethodAccessor17.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(ModelMBeanOperationInterceptor.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 $Proxy8.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(AbstractDeploymentScanner.java:263) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225) Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5 at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getBaseClass(ClassInfoImpl.java:170) at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:59) at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:39) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:142) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189) at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56) at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33) at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22) at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15) at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38) at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41) at java.util.AbstractList$Itr.next(AbstractList.java:422) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48) at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189) at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:204) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:356) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:217) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76) 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 com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:76) at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:815) at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:126) at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:49) at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMetaData(JAXWSMetaDataBuilderJSE.java:68) at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:90) at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127) at org.jboss.ws.integration.jboss42.DeployerInterceptorJSE.createServiceEndpoint(DeployerInterceptorJSE.java:132) at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78) ... 28 more Kindly guide me in this regard. Any help is really appreciated, and would help me a lot in proceeding with my work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030716#4030716 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030716 From do-not-reply at jboss.com Thu Mar 22 13:00:50 2007 From: do-not-reply at jboss.com (natebowler) Date: Thu, 22 Mar 2007 13:00:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Anyone know how to get the context root of a Session Bean en Message-ID: <21115349.1174582850438.JavaMail.jboss@colo-br-02.atl.jboss.com> I have a JBossWS (1.2.0) web service bound to a SSB. I have specified the port-component in jboss.xml as follows: API testWS/API This works great, and I the WS is bound to http://hostname/testWS/API. Is there a way, programmatically to get the setting from my SessionBean in jboss.xml? I need to publish this URL in a different location in my application, and I know the JBossWS war file does this, but I'd like a code snippet from someone that knows how this works. Any help would be appreciated. Thanks, Nate View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030722#4030722 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030722 From do-not-reply at jboss.com Thu Mar 22 13:08:37 2007 From: do-not-reply at jboss.com (santhoshitha) Date: Thu, 22 Mar 2007 13:08:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: ClassCastException - jaxws webservice in jboss1.2.0 Message-ID: <5148667.1174583317465.JavaMail.jboss@colo-br-02.atl.jboss.com> I know that this is something that's got to do with JAXB. how do i get over it? what is it exactly? below is my source code : @WebService( name = "UpdateService", targetNamespace = "http://deshaw.com", serviceName = "NmUpdateService") @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL) public class NmUpdateService extends HttpServlet { /*some declarations and code go in here */ @WebMethod @WebResult(name="returnValues") public String[] updateAttributes(@WebParam(name="spn")Integer spn, @WebParam(name="attributes")SecurityAttributes[] attributes, @WebParam(name="userName")String userName, @WebParam(name="date")Date date, @WebParam(name="source")Integer source ) { StringBuffer cmd = prepareCommand(spn, attributes, date, source); cmd.append(");}; " ); String[] returnValues = {}; try { Object result = pit.submit(cmd.toString(), returnValues.getClass()); returnValues = (String[]) result; } catch(Exception e) {e.printStackTrace();} return returnValues; } } the web service basically invokes a perl engine and passes a command to it. the exception however has got to do with the datatypes used by the web method, if i am right. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030726#4030726 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030726 From do-not-reply at jboss.com Thu Mar 22 13:23:06 2007 From: do-not-reply at jboss.com (jcv) Date: Thu, 22 Mar 2007 13:23:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problem consuming web services Message-ID: <27520511.1174584186554.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, i created a dummy web service to test jbossws, i can compile and deploy with no trouble, but when i try to cunsume the web service from C#, i got this error on the server | 13:17:14,656 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage | at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424) | at org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:79) | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:234) | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:171) | at org.jboss.ws.core.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:185) | at org.jboss.ws.core.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:440) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java | :664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:619) | 13:17:14,671 ERROR [AbstractServiceEndpointServlet] Error processing web service request | java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage | at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424) | at org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:79) | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:147) | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:223) | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:152) | at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:10 | 6) | at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:536) | at org.jboss.ws.core.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:221) | at org.jboss.ws.core.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:440) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java | :664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:619) | 13:17:14,671 ERROR [[GreetingWS]] Servlet.service() for servlet GreetingWS threw exception | java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage | at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:424) | at org.jboss.ws.core.soap.SOAPMessageImpl.(SOAPMessageImpl.java:79) | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:147) | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:223) | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:152) | at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:10 | 6) | at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:536) | at org.jboss.ws.core.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:221) | at org.jboss.ws.core.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:440) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java | :664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:619) This is my web service | package org.imed.webservice; | | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebService; | | @WebService | public class WebService2 { | @WebMethod | public String greetings(@WebParam(name="name") String name) { | return "Hello "+name; | } | | } and to consume i use this code from C# | private void button1_Click(object sender, EventArgs e) | { | G.WebService2Service g = new G.WebService2Service(); | G.greetings n = new G.greetings(); | n.name = textBox1.Text; | G.greetingsResponse r = new G.greetingsResponse(); | r= g.greetings(n); | label1.Text = r. at return; | } I get the same problem when i use http://www.soapclient.com/soaptest.html I'm running JBoss 4.0.5.GA with JBossWS 1.2.0 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030728#4030728 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030728 From do-not-reply at jboss.com Thu Mar 22 13:34:47 2007 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 22 Mar 2007 13:34:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming web services Message-ID: <4224200.1174584887166.JavaMail.jboss@colo-br-02.atl.jboss.com> Try this. In the C# client remove the line: G.greetingsResponse r = new G.greetingsResponse(); and change the following line to: G.greetingsResponse r = g.greetings(n); Not sure if attempting to get the response before calling the endpoint is what is causing the problem, but is is worth a shot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030736#4030736 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030736 From do-not-reply at jboss.com Thu Mar 22 13:41:42 2007 From: do-not-reply at jboss.com (jcv) Date: Thu, 22 Mar 2007 13:41:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming web services Message-ID: <25555322.1174585302838.JavaMail.jboss@colo-br-02.atl.jboss.com> I added this to the webservice definition @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.BARE) | and the c# code to G.WebService2Service g = new G.WebService2Service(); | label1.Text = g.greetings(textBox1.Text); and i'm still getting the same error View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030741#4030741 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030741 From do-not-reply at jboss.com Thu Mar 22 14:43:17 2007 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 22 Mar 2007 14:43:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming web services Message-ID: <12824570.1174588997221.JavaMail.jboss@colo-br-02.atl.jboss.com> I have a simple web service that does not look much different from yours, and I can access it from C# just fine. (using JBoss AS 4.0.5 w. EJB3 and JBoss WS 1.2) What is in your war file? Did you, by any chance, pack any jar files into the war file? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030768#4030768 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030768 From do-not-reply at jboss.com Thu Mar 22 15:15:17 2007 From: do-not-reply at jboss.com (yurimorais) Date: Thu, 22 Mar 2007 15:15:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to retrieve my WebServices' URLs? Message-ID: <5143228.1174590917427.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello folks, I'm using EJB 3 with JBoss 4. How can I retrieve dinamically the WebServices' URLs that are running in my container (JBoss) ? I would like that when the component were deployed, I could retrieve its URL and persist it. Any idea? Thanks, Yuri View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030788#4030788 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030788 From do-not-reply at jboss.com Thu Mar 22 16:17:39 2007 From: do-not-reply at jboss.com (centecbertl) Date: Thu, 22 Mar 2007 16:17:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: ClassCastException - jaxws webservice in jboss1.2.0 Message-ID: <32949566.1174594659852.JavaMail.jboss@colo-br-02.atl.jboss.com> Some steps I't try to make: 1. check that you are running jboss with jdk 1.5 (sun) 2. check that your system classpath is empty when starting jboss (make sure that no non jboss jabxb, jaxws,.... classes are found 3. check that the endorsed dirs in jdk are not ... see 2. 4. check whether jboss runs the jbossws samples 5. when 1...4 are running check your custom class wheter it fullfills all jaxb requirements (probably replace it by somthhing simplier Hope this helps View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030819#4030819 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030819 From do-not-reply at jboss.com Thu Mar 22 16:35:14 2007 From: do-not-reply at jboss.com (centecbertl) Date: Thu, 22 Mar 2007 16:35:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: charset encoding problem with the jsr181pojo sample : ec Message-ID: <29953566.1174595714833.JavaMail.jboss@colo-br-02.atl.jboss.com> I did a "hot fix" to add the system property | "file.encoding=UTF-8" | to the jvm running JBossWS, thus changing the default file !? encoding of the complete jboss installation. Afterwards UTF-8 handling worked as expected (before that jbossws 1.2 used the default file encoding of the installation (was iso latin 1 on my machine) Has anyone found the correct way to configure the file encoding of jbossws 1.2? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030830#4030830 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030830 From do-not-reply at jboss.com Fri Mar 23 02:29:03 2007 From: do-not-reply at jboss.com (santhoshitha) Date: Fri, 23 Mar 2007 02:29:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: ClassCastException - jaxws webservice in jboss1.2.0 Message-ID: <26725684.1174631343912.JavaMail.jboss@colo-br-02.atl.jboss.com> buddy, thanks a lot. i dint quite figure what the exception was though. the classpath contained some proprietary jars needed for my custom class, which i later moved into the war. my service is deployed successfully now. thanks again, San View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030935#4030935 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030935 From do-not-reply at jboss.com Fri Mar 23 02:33:45 2007 From: do-not-reply at jboss.com (mreis) Date: Fri, 23 Mar 2007 02:33:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: dynamic clients for JBossWS/JAX-WS endpoints Message-ID: <21104847.1174631625737.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, isn't @WebServiceProvider something that acts on the server side, that receives SOAP (or XML/HTTP in the case of RESTful services) messages, does something with the incoming message (and probably returns a result as a SOAP or XML/HTTP message)? I thought that I wouldn't have to bother about the server side implementation of the WebService (it may be @WebService or @WebServiceProvider or something else) on the client side (that should only interface with the WSDL ServiceContract and not necessarily know anything about the server side expect from that) - Please correct me if that assumption is NOT correct! So I think I will have to do something with Dispatch (https://jax-ws.dev.java.net/jax-ws-ea3/docs/dispatch.html) rather than Provider, but it is not clear to me if/how I can avoid writing JavaObjects for my custom complex data types. Any further help/guidance is very much appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030937#4030937 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030937 From do-not-reply at jboss.com Fri Mar 23 04:21:03 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Fri, 23 Mar 2007 04:21:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: dynamic clients for JBossWS/JAX-WS endpoints Message-ID: <456375.1174638063115.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi!! Sorry, my mistake - didn't read client. You should go for dispatch when it comes to clients. Then you have full control about everything. Best Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030957#4030957 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030957 From do-not-reply at jboss.com Fri Mar 23 04:24:19 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Fri, 23 Mar 2007 04:24:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: dynamic clients for JBossWS/JAX-WS endpoints Message-ID: <23994732.1174638259605.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi again, Have a look at the dispatch section in the JBossWS user guide. here is a link with a code snippet. http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Dispatch //Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030960#4030960 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030960 From do-not-reply at jboss.com Fri Mar 23 04:38:06 2007 From: do-not-reply at jboss.com (mreis) Date: Fri, 23 Mar 2007 04:38:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: dynamic clients for JBossWS/JAX-WS endpoints Message-ID: <19845851.1174639086262.JavaMail.jboss@colo-br-02.atl.jboss.com> After some more research I'm pretty sure that in the case of a truly dynamic client (i.e. no client-side stub generation from a remote WSDL before running the client that then invokes the WebService call) that should interact with a WebService operation, that has one or more custom complex input/output parameters, I can only create ("manually and dynamically") and then send SOAP messages via Dispatch (even JAXB-Dispatch won't help in my case). In the case of simple data types I could still use the "old" JAX-RPC DII client approach. Can you (or someone else) think of other possibilities or tell me if I'm completely wrong? Does anyone know of a Java library that can create "sample" SOAP messages (see Altova XML Spy or Eclipse WebServices Explorer or Web Service Console Eclipse Plugin or ...) given a specific WebService operation in a WSDL (I know this question may be a bit off topic, but it seems as it would be a key building block in order to go with the JAX-WS Dispatch client)? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030966#4030966 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030966 From do-not-reply at jboss.com Fri Mar 23 05:24:56 2007 From: do-not-reply at jboss.com (RomeuFigueira) Date: Fri, 23 Mar 2007 05:24:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: dynamic clients for JBossWS/JAX-WS endpoints Message-ID: <27954006.1174641896086.JavaMail.jboss@colo-br-02.atl.jboss.com> You can always look into SAAJ, with some effort (initial one), you can develop some classes and make a dynamic client. As for generating SOAP messages, try SOAPui, either the standalone app or the Eclipse plugin for JBoss IDE. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030976#4030976 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030976 From do-not-reply at jboss.com Fri Mar 23 06:50:59 2007 From: do-not-reply at jboss.com (centecbertl) Date: Fri, 23 Mar 2007 06:50:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to retrieve my WebServices' URLs? Message-ID: <13262361.1174647059700.JavaMail.jboss@colo-br-02.atl.jboss.com> http://localhost:8080/jbossws/services you might want to look at the regarding Servlet Implementation in the jbossws source code generating the page | ./integration-jboss42/src/main/java/org/jboss/ws/integration/jboss42/JBossContextServlet.java | ./jbossws-core/src/main/java/org/jboss/ws/core/CommonContextServlet.java | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031001#4031001 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031001 From do-not-reply at jboss.com Fri Mar 23 07:31:58 2007 From: do-not-reply at jboss.com (nean) Date: Fri, 23 Mar 2007 07:31:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: beginner needs help Message-ID: <16597292.1174649518743.JavaMail.jboss@colo-br-02.atl.jboss.com> "vitor_b" wrote : Hello | | Thank you for your reply. | | I haven't tried your solution, since i created ant task, which generates mapping and wsdl files for me. With these files my web service (even with more complex input and output) works fine. | And i didn't have to add these tags. Maybe that was becouse of my version of jbossws (1.4) but I'm really not sure. I only had to create wscompile-config.xml file. | | The problem described in my first post was occured becouse i created these files by my hand. I did it becouse i need to understand every aspect of creating these files. | | And the last thing: i've seen webservice with extremally complex input and output, but someone else created it. | | Best regards | | vitor_b | | Could you explain exactly how you did it? all steps to obtain this please... Thanks nean View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031017#4031017 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031017 From do-not-reply at jboss.com Fri Mar 23 07:44:30 2007 From: do-not-reply at jboss.com (martin.capote) Date: Fri, 23 Mar 2007 07:44:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How can I show the certificate info with WS-Security Message-ID: <14561019.1174650270705.JavaMail.jboss@colo-br-02.atl.jboss.com> HI, sorry for my bad english. I have a swing client, which send and recives signed SOAP messages using JBossWS and WS-Security. How can I show (in the client side) the signer information of the received response? I want to show in a JLabel the message: "The response was signed with the certificate number .....", but I dont know how can obtain the X509Certificate object. Thanks. Mart?n View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031021#4031021 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031021 From do-not-reply at jboss.com Fri Mar 23 08:23:58 2007 From: do-not-reply at jboss.com (yurimorais) Date: Fri, 23 Mar 2007 08:23:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to retrieve my WebServices' URLs? Message-ID: <7545587.1174652638655.JavaMail.jboss@colo-br-02.atl.jboss.com> I know the URLs are available at http://localhost:8080/jbossws/services, but I want that the component itself retrieve its own URL for after that, call my persistence service sending this URL. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031034#4031034 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031034 From do-not-reply at jboss.com Fri Mar 23 09:22:33 2007 From: do-not-reply at jboss.com (ngtdave) Date: Fri, 23 Mar 2007 09:22:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Enforcing a WSDL without doing WSDL first development (t Message-ID: <29143145.1174656153026.JavaMail.jboss@colo-br-02.atl.jboss.com> "dwin" wrote : Ok, correction...some ant scripts did not deploy right. | | enforcing the WSDL through wsdlLocation does work and it is used. | | You just have to ensure that the wsdl in wsdl location does not contradict the web service implementation. | | So if you want to add comments using xs:documentation, you can do so or want to use nillable=false (which by default if attribute it not present). | | I must say...web service development has never been easier! So what exactly did you do to get it to work? Where is the myWSDL.wsdl file located in the war file and what does the @WebService(wsdlLocation="...") say exactly? Thanks for you help! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031045#4031045 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031045 From do-not-reply at jboss.com Fri Mar 23 09:59:39 2007 From: do-not-reply at jboss.com (ngtdave) Date: Fri, 23 Mar 2007 09:59:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Providing your own wsdl instead of the generated one. Message-ID: <269509.1174658379166.JavaMail.jboss@colo-br-02.atl.jboss.com> Alright, it took me a long time to put all the pieces together after searching the forums and jira. If you want to serve up your own wsdl instead of the generated one you do the following: In the interface you specify the wsdlLocation: @WebService(name = "Echo", targetNamespace = "http://echo/", wsdlLocation="META-INF/wsdl/EchoService.wsdl") | Then when you package your war file, you put the wsdl in the META-INF/wsdl directory of your war. I apologize if this is obvious, but it took me a while to figure out. Here is the full working example using top-down design: First I started with EchoService.wsdl | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Congrats! You have published your own WSDL! | | | | | Then I generated the java files using wsconsume: $ wsconsume -k EchoService.wsdl | echo/Echo.java | echo/EchoResponse.java | echo/EchoService.java | echo/Echo_Type.java | echo/ObjectFactory.java | echo/package-info.java | echo/Echo.java | echo/EchoResponse.java | echo/EchoService.java | echo/Echo_Type.java | echo/ObjectFactory.java | echo/package-info.java I promptly threw away EchoService.java because it's really for the client, not the server. Next I implemented EchoImpl.java package echo; | | @javax.jws.WebService(endpointInterface="echo.Echo") | public class EchoImpl implements Echo | { | public String echo(String arg0) | { | return arg0; | } | } Then I edited Echo.java and added wsdlLocation (bolded below) package echo; | | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebResult; | import javax.jws.WebService; | import javax.xml.ws.RequestWrapper; | import javax.xml.ws.ResponseWrapper; | | | /** | * JBossWS Generated Source | * .... | * JAX-WS Version: 2.0 | * | */ | @WebService(name = "Echo", targetNamespace = "http://echo/", wsdlLocation="META-INF/wsdl/EchoService.wsdl") | public interface Echo { | | | /** | * | * @param arg0 | * @return | * returns java.lang.String | */ | @WebMethod | @WebResult(targetNamespace = "") | @RequestWrapper(localName = "echo", targetNamespace = "http://echo/", className = "echo.Echo_Type") | @ResponseWrapper(localName = "echoResponse", targetNamespace = "http://echo/", className = "echo.EchoResponse") | public String echo( | @WebParam(name = "arg0", targetNamespace = "") | String arg0); | | } | Next I created a web.xml: | | | | | echo | echo.Echo | | | | echo | /* | | | | Then I packed them up into a echo.war: META-INF/ | META-INF/MANIFEST.MF | META-INF/wsdl/ | META-INF/wsdl/EchoService.wsdl | WEB-INF/ | WEB-INF/classes/ | WEB-INF/classes/echo/ | WEB-INF/classes/echo/Echo.class | WEB-INF/classes/echo/EchoImpl.class | WEB-INF/classes/echo/EchoResponse.class | WEB-INF/classes/echo/Echo_Type.class | WEB-INF/classes/echo/ObjectFactory.class | WEB-INF/classes/echo/package-info.class | WEB-INF/web.xml Then I dropped it into the deploy directory. When I looked at the log file, I saw it deployed my wsdl: 07:39:03,777 INFO [TomcatDeployer] deploy, ctxPath=/echo, warUrl=.../tmp/deploy/tmp45417echo-exp.war/ | 07:39:04,839 INFO [WSDLFilePublisher] WSDL published to: file:/D:/jboss/jboss-4.2.0.CR1/server/default/data/wsdl/echo.war/EchoService.wsdl | 07:39:04,886 INFO [ServiceEndpointManager] WebService started: http://127.0.0.1:8080/echo Instead of what it did when I didn't properly specify the wsdlLocation: 07:10:04,777 INFO [TomcatDeployer] undeploy, ctxPath=/echo, warUrl=.../tmp/deploy/tmp45397echo-exp.war/ | 07:10:06,449 INFO [TomcatDeployer] deploy, ctxPath=/echo, warUrl=.../tmp/deploy/tmp45400echo-exp.war/ | 07:10:06,730 INFO [WSDLFilePublisher] WSDL published to: file:/D:/jboss/jboss-4.2.0.CR1/server/default/data/wsdl/echo.war/EchoService45401.wsdl Sure enough, going to http://127.0.0.1:8080/echo?wsdl displayed my wsdl, not the generated one. Hope this helps some of you out there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031052#4031052 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031052 From do-not-reply at jboss.com Fri Mar 23 10:05:09 2007 From: do-not-reply at jboss.com (ngtdave) Date: Fri, 23 Mar 2007 10:05:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Enforcing a WSDL without doing WSDL first development (t Message-ID: <31861654.1174658709794.JavaMail.jboss@colo-br-02.atl.jboss.com> Okay, never mind, I figured it out. http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031052 I did a few things wrong: 1) put the wsdlLocation in the implementing class, not the interface 2) put the wsdl in WEB-INF/wsdl for a while 3) edited the wron wsdl file, so I didn't see any changes when it deployed 4) had a syntax error in my wsdl file (caused it not to deploy) 5) some other dumb things. @dwin Thanks for your posts! @diesler Thanks for your continued activities in the forums, and your code. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031056#4031056 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031056 From do-not-reply at jboss.com Fri Mar 23 10:48:57 2007 From: do-not-reply at jboss.com (PeterJ) Date: Fri, 23 Mar 2007 10:48:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Providing your own wsdl instead of the generated one. Message-ID: <8622409.1174661337426.JavaMail.jboss@colo-br-02.atl.jboss.com> I did the same (see my post at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104664). All of this works fine. Have you tried to access the web service from a client yet? When I attempt to do this, the web services container attempts to instantiate the interface instead of the class, which of course fails miserably. My current hunch is that the web services container is ignoring the WebService annotation on the class (hence the reason why placing wsdlLocation there is ignored). Of course, no-one from the JBossWS team has replied to my post... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031079#4031079 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031079 From do-not-reply at jboss.com Fri Mar 23 10:53:37 2007 From: do-not-reply at jboss.com (ngtdave) Date: Fri, 23 Mar 2007 10:53:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Providing your own wsdl instead of the generated one. Message-ID: <19069713.1174661617102.JavaMail.jboss@colo-br-02.atl.jboss.com> Yeppers, just started doing the clinet, and go the same thing: 07:39:04,886 INFO [ServiceEndpointManager] WebService started: http://127.0.0.1:8080/echo | 08:31:07,730 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | java.lang.InstantiationException: echo.Echo | at java.lang.Class.newInstance0(Class.java:335) But I get my wsdl... now I have to figure out what I messed up now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031081#4031081 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031081 From do-not-reply at jboss.com Fri Mar 23 11:00:00 2007 From: do-not-reply at jboss.com (PeterJ) Date: Fri, 23 Mar 2007 11:00:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Providing your own wsdl instead of the generated one. Message-ID: <19492503.1174662000960.JavaMail.jboss@colo-br-02.atl.jboss.com> I have tried a wide variety of combinations of elements on the WebService annotation on both the class and the interface to no success. The only thing that works is deleting the interface, renaming the class to Echo. That (and the fact that the wsdlLocation has no effect when added the WebService on the class) is what lead me to think the container is ignoring the WebService annotation on the class - it is as if the endpointInterface element is being totally ignored. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031084#4031084 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031084 From do-not-reply at jboss.com Fri Mar 23 11:06:57 2007 From: do-not-reply at jboss.com (ngtdave) Date: Fri, 23 Mar 2007 11:06:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Providing your own wsdl instead of the generated one. Message-ID: <3479218.1174662417885.JavaMail.jboss@colo-br-02.atl.jboss.com> I'll try doing some of what you suggest and see what I can get to happen. Over here http://www.jboss.com/index.html?module=bb&op=viewtopic&t=99158 dwin seems to have been able to make it happen. I wonder if s/he ran a client. dwin mentions anonymous wrote : you just have to ensure that the wsdl in wsdl location does not contradict the web service implementation. | I'm not sure what exaclty s/he is referring to, but perhaps there is something in the hand coded wsdl which contradicts the annotation, thus cases this problem. Maybe by investigating the difference in the generated and hand coded, I can find the answer. Let me know if you get it working, and I will do the same. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031091#4031091 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031091 From do-not-reply at jboss.com Fri Mar 23 11:47:39 2007 From: do-not-reply at jboss.com (ngtdave) Date: Fri, 23 Mar 2007 11:47:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Providing your own wsdl instead of the generated one. Message-ID: <19029189.1174664859343.JavaMail.jboss@colo-br-02.atl.jboss.com> "ngtdave" wrote : | 07:39:04,886 INFO [ServiceEndpointManager] WebService started: http://127.0.0.1:8080/echo | | 08:31:07,730 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | | java.lang.InstantiationException: echo.Echo | | at java.lang.Class.newInstance0(Class.java:335) | Alright, I get this error without the wsdlLocation change I made, so it's not that. BTW I'm using JBoss 4.2.0.CR1 with jbossws-1.2.0.GA (build=200703010320) and java 1.5.0_11-b03 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031108#4031108 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031108 From do-not-reply at jboss.com Fri Mar 23 12:20:08 2007 From: do-not-reply at jboss.com (ngtdave) Date: Fri, 23 Mar 2007 12:20:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Providing your own wsdl instead of the generated one. Message-ID: <18481957.1174666808355.JavaMail.jboss@colo-br-02.atl.jboss.com> Alright, I got it working. First I changed my web.xml to use the impl bean: echo.EchoImpl per this discussion: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=70837 where Diesler says: anonymous wrote : So this is trying to instanciate an interface. Your web.xml should contain the endpoint impl bean not the SEI. Is that the case? but then I got this error: 9:55:24,824 ERROR [ServiceEndpointDeployer] Cannot create service endpoint | rg.jboss.ws.WSException: Cannot find port in wsdl: {http://echo/}EchoImplPort So then I remembered: https://jax-ws.dev.java.net/jax-ws-ea3/docs/annotations.html#2.1%20javax.jws.WebService%7Coutline specifies: anonymous wrote : javax.jws.WebService.portName - The wsdl:portName So I tried to change Echo.java to declare the port, but I got an error: 09:56:05,683 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss/jboss-4.2.0.CR1/server/default/deploy/echo.war | org.jboss.deployment.DeploymentException: Cannot create service endpoint; - nested throwable: (org.jboss.ws.WSException: @WebService[portName,serviceName,endpoi | ntInterface] MUST NOT be defined on: echo.Echo) So I changed EchoImple.java: @javax.jws.WebService(endpointInterface="echo.Echo",portName="EchoPort") | public class EchoImpl implements Echo | .... | Now it works and it still serves out my wsdl. I'm not sure if this is a bug or not because the docs here https://jax-ws.dev.java.net/jax-ws-ea3/docs/annotations.html#2.1%20javax.jws.WebService%7Coutline say: anonymous wrote : endpointInterface - The qualified name of the service endpoint interface. This annotation allows the separation of interface contract from implementation. If this property is specified, all other WebService properties are ignored as are all other 181 annotations. Only the annotations on the service endpoint interface will be taken into consideration. The endpoint implementation class is not required to implement the endpointInterface. Which I take to mean the other parameters (portName) should be ignored if endpointInterface is specified. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031115#4031115 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031115 From do-not-reply at jboss.com Fri Mar 23 12:31:53 2007 From: do-not-reply at jboss.com (ngtdave) Date: Fri, 23 Mar 2007 12:31:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Providing your own wsdl instead of the generated one. Message-ID: <26006114.1174667513451.JavaMail.jboss@colo-br-02.atl.jboss.com> Just to be clear which versions I'm using: Boss 4.2.0.CR1 jbossws-1.2.0.GA (build=200703010320) java 1.5.0_11-b03 Here are the final files. EchoService.wsdl (note the \ tag near the bottom) | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Congrats! You have published your own WSDL! | | | | | web.xml (note specifies the imple): | | | | | echo | echo.EchoImpl | | | | echo | /* | | | Echo.java (note wsdlLocation added by hand to @WebService) package echo; | | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebResult; | import javax.jws.WebService; | import javax.xml.ws.RequestWrapper; | import javax.xml.ws.ResponseWrapper; | | | /** | * JBossWS Generated Source | * | * ... | * JAX-WS Version: 2.0 | * | */ | @WebService(name = "Echo", targetNamespace = "http://echo/", wsdlLocation="META-INF/wsdl/EchoService.wsdl") | public interface Echo { | | | /** | * | * @param arg0 | * @return | * returns java.lang.String | */ | @WebMethod | @WebResult(targetNamespace = "") | @RequestWrapper(localName = "echo", targetNamespace = "http://echo/", className = "echo.Echo_Type") | @ResponseWrapper(localName = "echoResponse", targetNamespace = "http://echo/", className = "echo.EchoResponse") | public String echo( | @WebParam(name = "arg0", targetNamespace = "") | String arg0); | | } | and finally EchoImpl.java (not the portName) package echo; | | @javax.jws.WebService(endpointInterface="echo.Echo", portName="EchoPort") | public class EchoImpl implements Echo | { | public String echo(String arg0) | { | return arg0; | } | } And for completeness, the war structure META-INF/ | META-INF/MANIFEST.MF | META-INF/wsdl/ | META-INF/wsdl/EchoService.wsdl | WEB-INF/ | WEB-INF/classes/ | WEB-INF/classes/echo/ | WEB-INF/classes/echo/Echo.class | WEB-INF/classes/echo/EchoImpl.class | WEB-INF/classes/echo/EchoResponse.class | WEB-INF/classes/echo/Echo_Type.class | WEB-INF/classes/echo/ObjectFactory.class | WEB-INF/classes/echo/package-info.class | WEB-INF/web.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031124#4031124 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031124 From do-not-reply at jboss.com Fri Mar 23 13:04:05 2007 From: do-not-reply at jboss.com (jcv) Date: Fri, 23 Mar 2007 13:04:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming web services Message-ID: <26462592.1174669445687.JavaMail.jboss@colo-br-02.atl.jboss.com> The only files on the WAR are the manifes.md, web.xml and the .class of the webservices (there are 2 web services, both of them give me the same error) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031138#4031138 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031138 From do-not-reply at jboss.com Fri Mar 23 13:13:03 2007 From: do-not-reply at jboss.com (PeterJ) Date: Fri, 23 Mar 2007 13:13:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming web services Message-ID: <27455498.1174669983331.JavaMail.jboss@colo-br-02.atl.jboss.com> Which JVM are you using? Try running the app server with the -verbose:class JVM option. This will print out the jar file for each loaded class, perhaps there is a web services-related jar file hiding somewhere in your classpath or in some endorsed directory that is causing this problem (look for javax.xml.soap.SOAPMessage). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031141#4031141 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031141 From do-not-reply at jboss.com Fri Mar 23 13:27:06 2007 From: do-not-reply at jboss.com (PeterJ) Date: Fri, 23 Mar 2007 13:27:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming web services Message-ID: <20840163.1174670826767.JavaMail.jboss@colo-br-02.atl.jboss.com> Further research leads me to believe that you are running JDK 6.0. Don't. Use 5.0 instead. JDK 6.0 comes with an implementation of SOAPMessage that spits out the error that you posted. JBossWS comes with its own implementation of SOAPMessage which is not being used because the one from the JDK takes precedence. Run with a 1.5 JVM and you should be just fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031148#4031148 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031148 From do-not-reply at jboss.com Fri Mar 23 14:38:12 2007 From: do-not-reply at jboss.com (natebowler) Date: Fri, 23 Mar 2007 14:38:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Forcing JBossWS to use a different Java class for a QNam Message-ID: <5820578.1174675092338.JavaMail.jboss@colo-br-02.atl.jboss.com> NM. I had an incorrect setting in jaxrpc. This works fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031167#4031167 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031167 From do-not-reply at jboss.com Fri Mar 23 17:28:11 2007 From: do-not-reply at jboss.com (wcydaip) Date: Fri, 23 Mar 2007 17:28:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Rpc client Message-ID: <29551787.1174685291155.JavaMail.jboss@colo-br-02.atl.jboss.com> you need to drop 4.0.2 as it does not support complex data types. 4.0.3SP1 works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031212#4031212 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031212 From do-not-reply at jboss.com Fri Mar 23 17:34:57 2007 From: do-not-reply at jboss.com (PeterJ) Date: Fri, 23 Mar 2007 17:34:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Providing your own wsdl instead of the generated one. Message-ID: <14463098.1174685697862.JavaMail.jboss@colo-br-02.atl.jboss.com> One more thing. You can now move the wsdlLocation from the interface to the class. This way, you do not have to modify the generated files (not a big deal in this example, but a real big deal if you have many endpoints and are generating the stubs quite often). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031214#4031214 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031214 From do-not-reply at jboss.com Sat Mar 24 05:51:28 2007 From: do-not-reply at jboss.com (santhoshitha) Date: Sat, 24 Mar 2007 05:51:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - NoSuchMethodError in clientside of a jaxws ws Message-ID: <33135758.1174729888103.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am using jbossws1.2.0 on jboss as 4.0.5, and jdk 1.6.0. i have a web service that contains methods that accept arrays of custom classes as one of its parameters, and returns an array of strings. in the wsdl generated i see that separate classes are generated for the arrays of the custom objects and strings. objects of these classes are instead taken as parameters from the client. basically the wsdl contains separate complextypes created for the arrays of the custom objects and strings. when i do a wsdl to java generation on the client i see an sei and a service class that contains a get(service)port method. apart from these there are namespace and package mapping classes. i would like to use a static stub at the client side, since my client is a standalone java app, that acts as an adapter and interacts with other apps in my organization. how do i get a static stub that implements the sei on the clientside using the jaxws tools provided by jboss? as of now i have a cleint that tries to obtain the port by instanciating the service class and invoking the webservice method. since there is no impl on the client side, i get a NoSuchMethodError. i have also tried using the dynamic proxy invocation from my client and get an exception there too. the exception reads, Cannot obtain java type mapping for: {http://datamodel.nm_update}securityAttributesArray, where http://datamodel.nm_update is my target namespace and securityAttributeArray is the complex type generated in the wsdl for the array of custom objects, which is the webservice method's parameter. below is a section of the wsdl generated for my ws. the java name of the webservice method is updateAttributes, and wsdl name is NmUpdateService_updateAttributesResponse. 1) could the nosuchmethoderror be because of incomplete/wrong mapping of type names from wsdl to java? 2) what could the reason for the inability to map between the securityattributesarray object from to java to wsdl be during invocation from the client? 3)will the provider and dispatch APIs help in any way for dynamic invocation? any help is much appreciated. thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031266#4031266 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031266 From do-not-reply at jboss.com Sat Mar 24 19:02:41 2007 From: do-not-reply at jboss.com (zauberlehrling) Date: Sat, 24 Mar 2007 19:02:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSDL-location help? Message-ID: <6208203.1174777361020.JavaMail.jboss@colo-br-02.atl.jboss.com> The JSR181 specification (http://jcp.org/en/jsr/detail?id=181) says in 4.1 Annotation: javax.jws.WebService: anonymous wrote : wsdlLocation: | The location of a pre-defined WSDL | describing the service. The wsdlLocation is | a URL (relative or absolute) that refers to a | pre-existing WSDL file. The presence of a | wsdlLocation value indicates that the | service implementation bean is implementing | a pre-defined WSDL contract. The JSR-181 | tool MUST provide feedback if the service | implementation bean is inconsistent with the | portType and bindings declared in this | WSDL. Note that a single WSDL file might | contain multiple portTypes and multiple | bindings. The annotations on the service | implementation bean determine the specific | portType and bindings that correspond to | the Web Service. My interpretation is that something like | @Webservice(.. | wsdlLocation="http:\\ .. " | ..) | should be possible. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031348#4031348 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031348 From do-not-reply at jboss.com Sun Mar 25 18:49:05 2007 From: do-not-reply at jboss.com (PeterJ) Date: Sun, 25 Mar 2007 18:49:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Accessing a secure WSDL Message-ID: <2163077.1174862945588.JavaMail.jboss@colo-br-02.atl.jboss.com> I have implemented the Echo web service, and client, described at http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#Bottom-Up_.28Using_wsprovide.29. Once those were working, I added BASIC authentication to the web service by adding the following to the web.xml: | | Secure Echo | /Echo | | | friend | | | | BASIC | JBossWS | | | friend | and I added a jboss-web.xml as follows: | | java:/jaas/JBossWS | After deploying the web service, I can access the WSDL through a browser after I enter the user name and password in the pop-up dialog box. However, I then ran into several problems: 1) How do I run wsconsume against this WSDL? There does not appear to be any mechanism to pass the user name and password to wsconsume. 2) I modified my client to set the user name and password on the BindingProvider before I call echo(), but the client fails earlier on because that same BindingProvider information is not used when the WSDL is obtained. I looked at the org.jboss.test.ws.jaxws.samples.context.WebServiceContextJSETestCase class, but it cheats - it gets the WSDL from the file system, not via HTTP. I tried adding the annotation @WebContext(secureWSDLAccess = false) to the Echo class, and deployed it again, but even though the sever.log indicates that it picked up this setting, my browser still wants a user name and password to access the WSDL, and of course wsconsume and the client still fail (with 401 errors). So my question: how do I go about setting the user name and password when requesting the WSDL via wsconsume or client code? JBoss AS 5.0.0 beta2 (pulled on Mar 10) JBoss WS 1.2.0.GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031441#4031441 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031441 From do-not-reply at jboss.com Mon Mar 26 02:36:32 2007 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Mon, 26 Mar 2007 02:36:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WSDL-location help? Message-ID: <11766566.1174890992228.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks!!! I will post this issue as a bug. //Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031470#4031470 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031470 From do-not-reply at jboss.com Mon Mar 26 03:41:09 2007 From: do-not-reply at jboss.com (biroj) Date: Mon, 26 Mar 2007 03:41:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: @WebServiceRef jbossws 1.2.0.GA Message-ID: <24191328.1174894869407.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Do you have an exact list what is NOT supported in JBoss 4.0.5 among features of JBossWS 1.2? We could avoid such a misunderstandings in the future... since it is very time consuming to continously browse what is supported and what is not. Thanks a lot for your help, Bye, Janos View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031478#4031478 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031478 From do-not-reply at jboss.com Mon Mar 26 04:43:20 2007 From: do-not-reply at jboss.com (biroj) Date: Mon, 26 Mar 2007 04:43:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: @WebServiceRef jbossws 1.2.0.GA Message-ID: <21278996.1174898600666.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, You proposed to use the JAX-WS API to create a service, but do you know how to specify a relative path to e.g. META-INF/wsdl/x.wsdl ? I tried the "file:/./META-INF/wsdl/x.wsdl" "file:/META-INF/wsdl/x.wsdl" "file:./META-INF/wsdl/x.wsdl" "file:META-INF/wsdl/x.wsdl" "file://META-INF/wsdl/x.wsdl" "file:///META-INF/wsdl/x.wsdl" but no one is working... Could I avoid to use absolute path? Thanks a lot for your help, Bye, Janos View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031492#4031492 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031492 From do-not-reply at jboss.com Mon Mar 26 04:54:45 2007 From: do-not-reply at jboss.com (manosurf) Date: Mon, 26 Mar 2007 04:54:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problem to trace SOAP Message when an exception occures! Message-ID: <26739930.1174899285142.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, In order to see the SOAP Message I developped my Handler that extends GenericHandler. Bellow the extract code of my Handler public boolean handleRequest(MessageContext msgContext){ try { SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage(); soapMessage.writeTo(System.out); } catch (Exception e){ // to do } return true; } public boolean handleResponse(MessageContext msgContext) { try{ SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage(); soapMessage.writeTo(System.out); } catch (Exception e) { // to do } return true; } Globally I can see the SOAP message in the stdout console, but when my method throws my UserException it happens two things : - I don't the see the SOAP message in the stdout. that means that the handleResponse method has never called. why ? - I see the following Execption in the stdout console but the client application receive well formatted SOAP Message with the Fault. 10:05:24,586 ERROR [SOAPFaultHelperJAXRPC] SOAP request exception com.eservglobal.topupapi.ComplexUserException: user is equals to password at com.eservglobal.topupapi.TopupServiceBean.login(TopupServiceBean.java:35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) How can I do to : - catch the SOAP message in my Hanlder to trace SOAP Message ? - avoid that JBOSS traces the stack Exception in the stdout console ? Can you help me? Best Regards. manosurf View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031495#4031495 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031495 From do-not-reply at jboss.com Mon Mar 26 05:29:03 2007 From: do-not-reply at jboss.com (nicolemans72) Date: Mon, 26 Mar 2007 05:29:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Can not javax.xml.bind.JAXBContext in which jar file. Message-ID: <19715387.1174901343875.JavaMail.jboss@colo-br-02.atl.jboss.com> Could you link the implementation WSContractConsumerFactory rlamie please? I have the same problem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031505#4031505 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031505 From do-not-reply at jboss.com Mon Mar 26 05:50:12 2007 From: do-not-reply at jboss.com (nicolemans72) Date: Mon, 26 Mar 2007 05:50:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JbossWS "java.lang.IllegalStateException:" Message-ID: <4211012.1174902612044.JavaMail.jboss@colo-br-02.atl.jboss.com> Hy! I'm new in JbossWS and I try to run the jbossws-samples-1.2.0.SP1. I deployed on jakarta-tomcat-5.0.28 and when I run the ant, I have this error: anonymous wrote : | D:\workspace\jbossws\build.xml:249: java.lang.IllegalStateException: Could not load provider:org.jboss.ws.tools.jaxws.impl.WSContractConsumerFactoryImpl | Could anyone help me? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031510#4031510 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031510 From do-not-reply at jboss.com Mon Mar 26 06:40:00 2007 From: do-not-reply at jboss.com (vitor_b) Date: Mon, 26 Mar 2007 06:40:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: beginner needs help Message-ID: <102865.1174905600926.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry for such a long time you had to wait for my reply. First thing you need is: JWSDP (Java Web Services Developer Pack). You can download it from www.sun.com. I use jwsdp-1.4. And here it is ant task which will generate for you jaxrpc-mapping and wsdl files: First we need to set path to JWSDP: | Replace values in <> to your specific ones. Now we have to specify jar libraries we will use: | | | | | | | | | | | | We need one more library (we need class com.sun.tools.javac.Main): | | | Now we define our own ant task: And we run it: | | | | | | | | | res-gen-ws and res-hand-made-dir are my dirs. res-gen-ws is the directory which will contain generated jaxrpc-mapping and wsdl files. But wscompile task needs one more thing: wscompile-config.xml This file contains info which will be used for generating files for you. My file looks like that: | | | | | packageName - package contains web service classes Element interface contains WebService class, that implements interface java.rmi.Remote. service name - name for service in wsdl file You still have to create webservices.xml file yourself. But that is not a very hard thing to do. If you have any questions just ask. I will check this topic later. Take care vitor_b View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031523#4031523 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031523 From do-not-reply at jboss.com Mon Mar 26 07:32:11 2007 From: do-not-reply at jboss.com (vitor_b) Date: Mon, 26 Mar 2007 07:32:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Marshalling Message-ID: <1943881.1174908731762.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello Since there is no user forum dedicated for unmarshalling and marshalling problems i think this is the best place where i can ask question related to these topics. Ususally our Webservice get xml document, unmarshall it, do some business logic, then marshall result and send it to caller. Marshalling and unmarshalling are done automatically. Now i would like to marshall my output object manually. I have my object and xml schema. It looks like i have everything i need. But i really don't know how to do it. There should be very simple API enables that funcionality. But i found two things: JbossXB and JAXB. 1. JbossXB There is a big problem. For every class we want to marshall we need class which implements interface ObjectModelProvider. I've taken a look at example: http://wiki.jboss.org/wiki/Wiki.jsp?page=ObjectModelProvider Provider classes are not very simple. And my output is much more complex that that one used in this example. I have no time to write so many Providers for my classes. Besides of lack of time there is one more importnat reason. This object can be changed. Unfortunately there is no other way to marshall with JbossXb using my xml schema. 2. JAXB This is the second way i know. But examples i saw need so many generated classes and interfaces. This is not a problem. But where generating all this stuff interfaces and business classes are also generated. These classes are used for marshalling. But i have my own business classes, and these ones don't implements so many interfaces like: com.sun.xml.bind.RIElement, com.sun.xml.bind.JAXBObject, primer.po.impl.runtime.UnmarshallableObject, primer.po.impl.runtime.XMLSerializable, primer.po.impl.runtime.ValidatableObject So my one question is; how to mashall my business doc using my xml schema? Is there way to do that? Any sugestions are really welcome, becouse i'm really lost. Thank you in advance. vitor_b View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031536#4031536 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031536 From do-not-reply at jboss.com Mon Mar 26 07:51:11 2007 From: do-not-reply at jboss.com (rmartony) Date: Mon, 26 Mar 2007 07:51:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Getting access to X509Certificate Message-ID: <26742631.1174909871204.JavaMail.jboss@colo-br-02.atl.jboss.com> I have the solve the same problem. My configuration: JDK 1.5 JBoss AS 4.0.5 JBossWS 1.0.4 WS-Security Any ideas on how to interact with WS-Security with JSR 181-POJO Endpoint to obtain X509Certificate, Subject, Principal, etc.? grey727, maybe the JWSDP and JSR-109 approach may help me... Regards, Rafael. "gray727" wrote : My configuration: | JDK 1.5 | JBoss AS 4.0.5 | JBossWS 1.2.0 | WS-Security | | The configuration of my web service requires an incoming SOAP message to be digitally signed (using Message Level Security; not BASIC authentication over SSL), and this works fine. However, I have an audit requirement to log the credentials of the client trying to access the service, whether successful or not. In the past (using JWSDP and JSR-109 style web services), I've used security callback functions to meet these sort of requirements. | | Is there a way to interact with WS-Security during authentication and authorization and obtain the X509Certificate, Subject, Principal, etc. to log security related events? I've experimented with the WebServiceContext.getUserPrincipal(), but it seems that this is only useful for BASIC authentication, which I'm not using. | | thanks. | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031545#4031545 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031545 From do-not-reply at jboss.com Mon Mar 26 08:41:08 2007 From: do-not-reply at jboss.com (rmartony) Date: Mon, 26 Mar 2007 08:41:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security - Invalid timestamp, message claimed to be c Message-ID: <13962497.1174912868461.JavaMail.jboss@colo-br-02.atl.jboss.com> A workaround using a system property (jboss.ws.timestampTolerance) to set tolerance: | // Source File Name: TimestampVerificationOperation.java | | package org.jboss.ws.wsse; | | import java.io.PrintStream; | import java.util.Calendar; | import org.jboss.ws.wsse.element.Timestamp; | import org.w3c.dom.Document; | | // Referenced classes of package org.jboss.ws.wsse: | // WSSecurityException, FailedCheckException | | public class TimestampVerificationOperation | { | | public TimestampVerificationOperation() | { | now = null; | } | | public TimestampVerificationOperation(Calendar now) | { | this.now = null; | this.now = now; | } | | public void process(Document message, Timestamp timestamp) | throws WSSecurityException | { | Calendar expired = timestamp.getExpires(); | Calendar created = timestamp.getCreated(); | Calendar now = this.now != null ? this.now : Calendar.getInstance(); | if(Math.abs(created.getTimeInMillis() - now.getTimeInMillis()) > TIMESTAMP_TOLERANCE) | throw new WSSecurityException("Invalid timestamp, message claimed to be created after now"); | if(expired != null && Math.abs(now.getTimeInMillis() - expired.getTimeInMillis()) > TIMESTAMP_TOLERANCE) | throw new FailedCheckException("Expired message."); | else | return; | } | | private Calendar now; | private static long TIMESTAMP_TOLERANCE; | private static String TIMESTAMP_TOLERANCE_PROPERTY; | | static | { | TIMESTAMP_TOLERANCE = 60000L; | TIMESTAMP_TOLERANCE_PROPERTY = "jboss.ws.timestampTolerance"; | String value = null; | System.out.println((new StringBuilder()).append("Setting the property value ").append(TIMESTAMP_TOLERANCE_PROPERTY).toString()); | try | { | value = System.getProperty(TIMESTAMP_TOLERANCE_PROPERTY); | if(value != null) | TIMESTAMP_TOLERANCE = Long.parseLong(value); | else | System.out.println("The value of the property has not been set as a system property"); | } | catch(Throwable e) | { | System.out.println((new StringBuilder()).append("Error ocurred during setting of property value ").append(TIMESTAMP_TOLERANCE_PROPERTY).append(" con el valor: ").append(value).toString()); | } | System.out.println((new StringBuilder()).append("The new timestamp tolerance is ").append(TIMESTAMP_TOLERANCE_PROPERTY).append(" = ").append(TIMESTAMP_TOLERANCE).toString()); | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031566#4031566 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031566 From do-not-reply at jboss.com Mon Mar 26 08:52:29 2007 From: do-not-reply at jboss.com (rmartony) Date: Mon, 26 Mar 2007 08:52:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Getting access to X509Certificate Message-ID: <4586905.1174913549058.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry, I'm using JSR-109 style web services with WS-Security and NOT JSR 181-POJO endpoint services as I mentioned earlier... Regards, Rafael. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031572#4031572 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031572 From do-not-reply at jboss.com Mon Mar 26 10:06:20 2007 From: do-not-reply at jboss.com (jcv) Date: Mon, 26 Mar 2007 10:06:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming web services Message-ID: <5137077.1174917980241.JavaMail.jboss@colo-br-02.atl.jboss.com> Now ir runs perfect, thx View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031595#4031595 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031595 From do-not-reply at jboss.com Mon Mar 26 11:19:58 2007 From: do-not-reply at jboss.com (nicolemans72) Date: Mon, 26 Mar 2007 11:19:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problem for publish a Web Service Message-ID: <31983003.1174922398994.JavaMail.jboss@colo-br-02.atl.jboss.com> Hy! I try to publish a Web Service (with the Eclipse JBoss IDE) with this simple class | package gen; | | import javax.jws.soap.SOAPBinding; | | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | import org.jboss.ws.annotation.EndpointConfig; | | @EndpointConfig(configName = "Standard WSSecurity Endpoint") | @SOAPBinding(style = SOAPBinding.Style.RPC) | @javax.jws.WebService(name="HelloImpl", targetNamespace="urn:gen", serviceName="HelloImplService") | public class HelloImpl implements Hello | { | | @WebMethod | public String saluer() | { | return "Hello "; | } | | } | By when I click on the "generate" button, I have this error: | Running JBossWS wstools for [testWS] | directory: D:\workspace\testWS | command: cmd.exe /C D:\Program Files\Java\jboss-4.0.5.GA\bin\wstools.bat -cp bin -config C:\TEMP\wstools-config22402.xml -dest D:\workspace\testWS\src | =========================================================================" | . | WSTools Environment | . | JBOSS_HOME: D:\Program Files\Java\jboss-4.0.5.GA\bin\\.. | . | JAVA: D:\Program Files\Java\jdk1.5.0_06\bin\java | . | JAVA_OPTS: | . | =========================================================================" | . | Exception in thread "main" java.lang.NoClassDefFoundError: javax/jws/soap/SOAPBinding$ParameterStyle | at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:106) | at org.jboss.ws.tools.WSTools.process(WSTools.java:133) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:69) | at org.jboss.ws.tools.WSTools.generate(WSTools.java:119) | at org.jboss.ws.tools.WSTools.main(WSTools.java:58) | | I looked in my libraries and I have the class "javax/jws/soap/SOAPBinding", so I don't understand my problem Have anybody ever had this problem and solved it? Thank you for your help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031623#4031623 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031623 From do-not-reply at jboss.com Mon Mar 26 11:34:29 2007 From: do-not-reply at jboss.com (omatzura) Date: Mon, 26 Mar 2007 11:34:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem for publish a Web Service Message-ID: <22560004.1174923269701.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! you can't run wstools / publish for an annotated webservice, just package the compiled class in a jar and deploy it.. Hope this helps! regards, /Ole eviware.com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031632#4031632 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031632 From do-not-reply at jboss.com Mon Mar 26 11:56:16 2007 From: do-not-reply at jboss.com (nicolemans72) Date: Mon, 26 Mar 2007 11:56:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem for publish a Web Service Message-ID: <8708775.1174924576205.JavaMail.jboss@colo-br-02.atl.jboss.com> Okay, but even if I delete all annotations I have the error... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031659#4031659 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031659 From do-not-reply at jboss.com Mon Mar 26 13:58:47 2007 From: do-not-reply at jboss.com (omatzura) Date: Mon, 26 Mar 2007 13:58:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem for publish a Web Service Message-ID: <15409929.1174931927975.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, strange.. please try cleaning your project and removing unnecessary imports as well.. regards, /Ole eviware.com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031728#4031728 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031728 From do-not-reply at jboss.com Mon Mar 26 14:15:53 2007 From: do-not-reply at jboss.com (JimDaues) Date: Mon, 26 Mar 2007 14:15:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How do I use enumerations? Message-ID: <16781874.1174932953944.JavaMail.jboss@colo-br-02.atl.jboss.com> I see this problem too. Using JBoss 4.0.5GA + JBossWS 1.2.0GA it all seems fine on the server, but a client generated using the wstools ant task gets that exception. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031735#4031735 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031735 From do-not-reply at jboss.com Mon Mar 26 14:35:49 2007 From: do-not-reply at jboss.com (biroj) Date: Mon, 26 Mar 2007 14:35:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - MTOM/SwA enabled file transfer Message-ID: <29422831.1174934149466.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, My configuration is: JBossAS 4.0.5 JBossWS 1.2.0GA EJB3 shipped with JBossAS 4.0.5 I've tried to publish an EJB3 WS (using contract-first model) with MTOM enabled file transfer as it is proposed by the JBossWS guideline. I compiled the WSDL with wsconsume as appropriate and added the following annotations to the EJB3 POJO. | @Stateless | @Remote(ETI_Receiver.class) | @WebService(endpointInterface="generated.wsdl.EMServicesPortType" | , wsdlLocation="META-INF/wsdl/Services.wsdl" | , targetNamespace="http://my.com/ws" | , portName = "EMServicesPort") | @BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING) | public class ETI_ReceiverBean extends ETI_CommonReceiverServices implements ETI_Receiver { | The endpoint works well, till I try to send send an attachment with MTOM/SwA enabled. The normal attachments are works fine, but if I enable MTOM or simple SwA at client side (Axis2 code, see below) | EMServicesStub emstub = new EMServicesStub(uri); | Options options = new Options(); | options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); | //options.setProperty(Constants.Configuration.ENABLE_SWA, Constants.VALUE_TRUE); | emstub._getServiceClient().setOptions(options); | it drops a SOAPRequest exception | 2007-03-26 20:24:06,062 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 1m:16s:344ms | 2007-03-26 20:25:10,234 DEBUG [org.jboss.ws.core.server.AbstractServiceEndpointServlet] doPost: /ETI-ETI_Framework/ETI_ReceiverBean | 2007-03-26 20:25:10,250 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at e0e9d5 (Thread http-0.0.0.0-8080-1) | 2007-03-26 20:25:10,250 DEBUG [org.jboss.ws.core.server.ServiceEndpoint] BEGIN handleRequest: jboss.ws:context=ETI-ETI_Framework,endpoint=ETI_ReceiverBean | 2007-03-26 20:25:10,312 DEBUG [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage: [contentType=multipart/related; | boundary=MIMEBoundaryurn_uuid_6BC0C2D8E13C69924211749335100931; | type="application/xop+xml"; | start="<0.urn:uuid:6BC0C2D8E13C69924211749335100932 at apache.org>"; | start-info="text/xml"; charset=UTF-8] | 2007-03-26 20:25:10,343 DEBUG [org.jboss.ws.core.soap.attachment.SwapableMemoryDataSource] Using memory buffer, size = 8044 | 2007-03-26 20:25:10,750 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Configure SOAPBinding | 2007-03-26 20:25:10,750 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception | java.lang.IllegalArgumentException: multipart/related stream invalid, no root part was found | at org.jboss.ws.core.soap.attachment.MultipartRelatedDecoder.decodeMultipartRelatedMessage(MultipartRelatedDecoder.java:156) | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:211) | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:171) | at org.jboss.ws.core.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:185) | at org.jboss.ws.core.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:440) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | Could you help me a little how to solve this issue? Any idea? Thanks a lot for your help in advance, Bye, Janos View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031742#4031742 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031742 From do-not-reply at jboss.com Mon Mar 26 16:08:12 2007 From: do-not-reply at jboss.com (zauberlehrling) Date: Mon, 26 Mar 2007 16:08:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Example ProviderBeanMessage Message-ID: <3517106.1174939692956.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I do not have the problem with the annotation: @SOAPBinding(style = SOAPBinding.Style.RPC) Best regards! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031766#4031766 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031766 From do-not-reply at jboss.com Mon Mar 26 16:46:36 2007 From: do-not-reply at jboss.com (zauberlehrling) Date: Mon, 26 Mar 2007 16:46:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Top-down development problem Message-ID: <5241699.1174941996809.JavaMail.jboss@colo-br-02.atl.jboss.com> My understanding is the following: 1.......... wsconsume .......... 2 ........ wsprovide ...... 3 WSDL --------------------> Java --------------------> WSDL ................. top-down.......................... bottom-up Are the WSDL-files under 1 and 3 identical? Wich WSDL have you used for creating the client? One remark: The interface is not necessary for the webservice. isn't it. Second remark: The default webservice is a document-style webservice. The message sent or received by a document-style webservice are different to messages sent or received by a rpc-style webservice. Interface:...........................Echo.java Class used for a clients: .Echoservice.java Best regards! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031796#4031796 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031796 From do-not-reply at jboss.com Mon Mar 26 17:44:03 2007 From: do-not-reply at jboss.com (zauberlehrling) Date: Mon, 26 Mar 2007 17:44:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Package name generated by wsprovide Message-ID: <15395849.1174945443559.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I ran the following ant-task which executes the tool wsprovide. | | | | The service endpoint resides in the package anonymous wrote : beispiel_9 The wsdl file were generated fine in the dirctory ${meta.dir}/beispiel_9. But the generated wrapper classes SayHello.java and SayHelloResponse.java were placed in the packageanonymous wrote : beispiel_9.jaxws and not in the package beispiel_9. Why this? For heaven's sake from where does the 'jaxws' come? Best regards, Frank View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031809#4031809 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031809 From do-not-reply at jboss.com Mon Mar 26 17:49:41 2007 From: do-not-reply at jboss.com (zauberlehrling) Date: Mon, 26 Mar 2007 17:49:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Package name generated by wsprovide Message-ID: <22215859.1174945781086.JavaMail.jboss@colo-br-02.atl.jboss.com> I've forgotten the code of beispiel_9.EjbEndpoint is very simple: package beispiel_9; | | import javax.ejb.Stateless; | import javax.jws.WebMethod; | import javax.jws.WebService; | | | @WebService | @Stateless | public class EjbEndpoint { | | @WebMethod | public String sayHello(String name) | { | return "Hallo "+name+"!"; | } | | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031813#4031813 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031813 From do-not-reply at jboss.com Tue Mar 27 04:16:59 2007 From: do-not-reply at jboss.com (nicolemans72) Date: Tue, 27 Mar 2007 04:16:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem for publish a Web Service Message-ID: <3702186.1174983419996.JavaMail.jboss@colo-br-02.atl.jboss.com> I have no import, no annotation, just my method that returns a String "Hello", and I still have the error I have just clicked on the JBossWS>Publish as Web Service>Generate button. Is there a step that I could have forgotten? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031920#4031920 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031920 From do-not-reply at jboss.com Tue Mar 27 04:25:07 2007 From: do-not-reply at jboss.com (omatzura) Date: Tue, 27 Mar 2007 04:25:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem for publish a Web Service Message-ID: <4220017.1174983907399.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! hm.. no.. wstools uses the compiled class-files for generating artifacts, and these still seem to contain some references to these classes.. how can that be? hmm.. /Ole View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031923#4031923 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031923 From do-not-reply at jboss.com Tue Mar 27 10:26:42 2007 From: do-not-reply at jboss.com (nhpvti) Date: Tue, 27 Mar 2007 10:26:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error consuption web service Message-ID: <12078605.1175005602711.JavaMail.jboss@colo-br-02.atl.jboss.com> And I had this error when running JBoss ESB trialblazer example with JDK 1.6 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032053#4032053 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032053 From do-not-reply at jboss.com Tue Mar 27 10:55:59 2007 From: do-not-reply at jboss.com (JimDaues) Date: Tue, 27 Mar 2007 10:55:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How do I use enumerations? Message-ID: <5106286.1175007359556.JavaMail.jboss@colo-br-02.atl.jboss.com> teknokrat - my problem was that I was using wstools to generate my client. using wsconsume fixed the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032069#4032069 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032069 From do-not-reply at jboss.com Tue Mar 27 11:31:05 2007 From: do-not-reply at jboss.com (c_eric_ray) Date: Tue, 27 Mar 2007 11:31:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0. Message-ID: <15352271.1175009465993.JavaMail.jboss@colo-br-02.atl.jboss.com> "thomas.diesler at jboss.com" wrote : You have the SUN jaxrpc impl on your classpath. Make sure javax.xml.soap.SOAPMessage is pulled from jboss-jaxrpc.jar I have this exact problem and it ocurred when I moved to JDK 1.6. How do I tell JBoss to use jboxx-jaxrpc.jar instead of the Sun jaxrpc-impl? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032088#4032088 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032088 From do-not-reply at jboss.com Tue Mar 27 12:03:07 2007 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 27 Mar 2007 12:03:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Top-down development problem Message-ID: <33492963.1175011387229.JavaMail.jboss@colo-br-02.atl.jboss.com> For the solution, see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104843 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032102#4032102 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032102 From do-not-reply at jboss.com Tue Mar 27 12:35:50 2007 From: do-not-reply at jboss.com (nicolemans72) Date: Tue, 27 Mar 2007 12:35:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem for publish a Web Service Message-ID: <25243655.1175013350692.JavaMail.jboss@colo-br-02.atl.jboss.com> I solved my problem! I have re-installed Eclipse and the plugins and it well runs now (It should be a problem with my old Eclipse plugins or libraries) But I have a new problem now... lol I publish my Web Service and I see it on my server, but the "Request" node doestn't appear under the "JBossWs Web Services" node and I can't open the SOAP Request Editor... I could be another library problem but I could have forgotten another thing, I don't know... Any idea? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032118#4032118 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032118 From do-not-reply at jboss.com Tue Mar 27 13:22:14 2007 From: do-not-reply at jboss.com (JimDaues) Date: Tue, 27 Mar 2007 13:22:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume with provider sample Message-ID: <7758514.1175016134399.JavaMail.jboss@colo-br-02.atl.jboss.com> I have the equivalent question on the client side. wsconsume generates web service client stubs that return void and use Holder as output args of the method. it can work, but sure is ugly and inconvenient. can one make it generate a more reasonable client interface? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032139#4032139 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032139 From do-not-reply at jboss.com Tue Mar 27 15:45:39 2007 From: do-not-reply at jboss.com (JimDaues) Date: Tue, 27 Mar 2007 15:45:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume with provider sample Message-ID: <30524768.1175024739379.JavaMail.jboss@colo-br-02.atl.jboss.com> superomega - the trick is to use custom jaxws bindings. e.g. jaxws-bindings.xml | false | and then wsconsume -b jaxws-bindings.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032183#4032183 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032183 From do-not-reply at jboss.com Tue Mar 27 16:53:34 2007 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 27 Mar 2007 16:53:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error consuption web service Message-ID: <8271530.1175028814811.JavaMail.jboss@colo-br-02.atl.jboss.com> JDK 1.6 ships with jax-ws jar files, which then conflict with the jax-ws jar files provided JBossWS 1.2. I recommend not using JDK 1.6 with JBossWS. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032200#4032200 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032200 From do-not-reply at jboss.com Tue Mar 27 16:53:47 2007 From: do-not-reply at jboss.com (biroj) Date: Tue, 27 Mar 2007 16:53:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - BUG: MTOM with JBossWS 1.2.0SP1 server and Axis2 client Message-ID: <25340157.1175028827714.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have a possible bug report: JBoss AS 4.0.5 JBossWS 1.2.0 SP1 EJB3 Axis2 client with MTOM enabled I exposed an EJB3 exactly as it is described in JBossWS Guide as WS (with MTOM enabled) Endpoint: | @Remote | @WebService(targetNamespace = "http://org.jboss.ws/xop/doclit") | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE) | @BindingType(value="http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true") | public interface ETI_Receiver { | | public void downloadRelationships(DataHandler attachedFile); | | } | Bean | @Stateless | @WebService(endpointInterface="ETI_Receiver") | public class ETI_ReceiverBean implements ETI_Receiver{ | | | public void downloadRelationships(DataHandler attachedFile) { | | } | | | } | Client code (with Axis2 stub generated from the WSDL published during deployment of EJB3 by JBossWS) | | ETI_ReceiverBeanServiceStub emstub = new ETI_ReceiverBeanServiceStub(); | Options options = new Options(); | | options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); | //options.setProperty(Constants.Configuration.CACHE_ATTACHMENTS, Constants.VALUE_TRUE); | //options.setProperty(Constants.Configuration.ATTACHMENT_TEMP_DIR, new File("c:\\")); | //options.setProperty(Constants.Configuration.FILE_SIZE_THRESHOLD,100000); | //options.setProperty(Constants.Configuration.ENABLE_SWA, Constants.VALUE_TRUE); | options.setTo(new EndpointReference(uri)); | emstub._getServiceClient().setOptions(options); | | ws.jboss.org.xop.doclit.DownloadRelationships drs = new ws.jboss.org.xop.doclit.DownloadRelationships(); | | DataSource ds; | | ds = new FileDataSource("d:\\x.zip"); | DataHandler dataHandler = new DataHandler(ds); | | drs.setDownloadRelationships(dataHandler); | | try { | emstub.downloadRelationships(drs); | | } catch (RemoteException e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | | Without enabling MTOM at Axis2 side everything is perfect, the attachment is sent, but after enabling MTOM (see the code above) JbossWS drops an exception with message "multipart/related stream invalid, no root part was found" | 2007-03-27 22:45:13,281 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 45s:938ms | 2007-03-27 22:47:35,796 DEBUG [org.jboss.ws.core.server.AbstractServiceEndpointServlet] doPost: /ETI_Framework/ETI_ReceiverBean | 2007-03-27 22:47:35,796 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 6076f4 (Thread http-0.0.0.0-8080-1) | 2007-03-27 22:47:35,812 DEBUG [org.jboss.ws.core.server.ServiceEndpoint] BEGIN handleRequest: jboss.ws:context=ETI_Framework,endpoint=ETI_ReceiverBean | 2007-03-27 22:47:35,843 DEBUG [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage: [contentType=multipart/related; | boundary=MIMEBoundaryurn_uuid_38281D50CC3CDBE79011750284556091; | type="application/xop+xml"; | start="<0.urn:uuid:38281D50CC3CDBE79011750284556092 at apache.org>"; | start-info="text/xml"; charset=UTF-8] | 2007-03-27 22:47:35,859 DEBUG [org.jboss.ws.metadata.umdm.EndpointMetaData] Configure SOAPBinding | 2007-03-27 22:47:35,859 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception | java.lang.IllegalArgumentException: multipart/related stream invalid, no root part was found | at org.jboss.ws.core.soap.attachment.MultipartRelatedDecoder.decodeMultipartRelatedMessage(MultipartRelatedDecoder.java:156) | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:211) | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:171) | at org.jboss.ws.core.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:185) | at org.jboss.ws.core.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:440) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | 2007-03-27 22:47:35,859 DEBUG [javax.xml.soap.FactoryLoader] Load from Service API META-INF/services/javax.xml.soap.MessageFactory: org.jboss.ws.core.soap.MessageFactoryImpl | 2007-03-27 22:47:35,906 DEBUG [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] Cannot obtain fault meta data for: class java.lang.IllegalArgumentException | 2007-03-27 22:47:35,921 DEBUG [org.jboss.ws.core.server.ServiceEndpoint] END handleRequest: jboss.ws:context=ETI_Framework,endpoint=ETI_ReceiverBean | 2007-03-27 22:47:35,937 DEBUG [org.jboss.ws.core.soap.MessageContextAssociation] popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 6076f4 (Thread http-0.0.0.0-8080-1) | | Note: The Axis2 client works perfectly also with MTOM enabled if you use an Axis2 endpoint and not the JbossWS exposed EJB3. Is it already a known issue or should I report a bug? Bye, Janos View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032201#4032201 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032201 From do-not-reply at jboss.com Tue Mar 27 17:47:20 2007 From: do-not-reply at jboss.com (biroj) Date: Tue, 27 Mar 2007 17:47:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: BUG: MTOM with JBossWS 1.2.0SP1 server and Axis2 client Message-ID: <21141373.1175032040041.JavaMail.jboss@colo-br-02.atl.jboss.com> I tried with SoapUI client, In this case JBossWS does not drop an exception, but the transmitted file has filesize 0 if I enable MTOM enabled in SoapUI request View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032225#4032225 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032225 From do-not-reply at jboss.com Tue Mar 27 18:57:51 2007 From: do-not-reply at jboss.com (biroj) Date: Tue, 27 Mar 2007 18:57:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: BUG: MTOM with JBossWS 1.2.0SP1 server and Axis2 client Message-ID: <30290306.1175036271376.JavaMail.jboss@colo-br-02.atl.jboss.com> Using SoapUI as client I collected the following trace at JBossWS side: | 2007-03-28 00:17:59,296 DEBUG [org.jboss.ws.core.server.ServiceEndpoint] BEGIN handleRequest: jboss.ws:context=ETI-ETI_Framework,endpoint=ETI_ReceiverBean | 2007-03-28 00:17:59,296 DEBUG [org.jboss.ws.core.soap.MessageFactoryImpl] createMessage: [contentType=multipart/related; type="application/xop+xml"; | start=""; startinfo="text/xml; action=\"\""; | boundary="----=_Part_16_1798874.1175033879281"] | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.soap.attachment.SwapableMemoryDataSource] Using memory buffer, size = 707 | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.soap.attachment.SwapableMemoryDataSource] Using memory buffer, size = 81 | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callRequestHandlerChain: PRE | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: PRE | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] Clear handler map: {} | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: ENDPOINT | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] Clear handler map: {} | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: POST | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] Clear handler map: {} | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] getHandlerChain: [type=PRE,info=[service={http://siemens.com/ws}ETI_ReceiverBeanService,port={http://siemens.com/ws}EMServicesPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true]] | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: [] | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.soap.SOAPMessageDispatcher] getDispatchDestination: {http://siemens.com/ws}downloadRelationships | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS] unbindRequestMessage: {http://siemens.com/ws}downloadRelationships | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.EndpointInvocation] setRequestParamValue: [name={http://siemens.com/ws/types}downloadRelationships,value=org.jboss.ws.core.soap.SOAPBodyElementDoc] | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callRequestHandlerChain: ENDPOINT | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: PRE | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] Clear handler map: {} | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: ENDPOINT | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] Clear handler map: {} | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: POST | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] Clear handler map: {} | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] getHandlerChain: [type=ENDPOINT,info=[service={http://siemens.com/ws}ETI_ReceiverBeanService,port={http://siemens.com/ws}EMServicesPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true]] | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: [] | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS] callRequestHandlerChain: POST | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: PRE | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] Clear handler map: {} | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: ENDPOINT | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] Clear handler map: {} | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] initHandlerChain: POST | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] Clear handler map: {} | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerResolverImpl] getHandlerChain: [type=POST,info=[service={http://siemens.com/ws}ETI_ReceiverBeanService,port={http://siemens.com/ws}EMServicesPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true]] | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] Create a handler executor: [] | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.integration.jboss42.ServiceEndpointInvokerEJB3] invokeServiceEndpoint: downloadRelationships | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.EndpointInvocation] getRequestPayload | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.EndpointInvocation] getRequestParamValue: {http://siemens.com/ws/types}downloadRelationships | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] ----------------------------------- | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] Transitioning from XML_VALID to OBJECT_VALID | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.soap.XMLContent] getObjectValue [xmlType={http://siemens.com/ws}downloadRelationships,javaType=class com.siemens.icm.nm.rc.eti.framework.common.generated.wsdl.DownloadRelationshipsType] | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.JAXBDeserializer] deserialize: [xmlName={http://siemens.com/ws/types}downloadRelationships,xmlType={http://siemens.com/ws}downloadRelationships] | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxws.JAXBDeserializer] deserialized: com.siemens.icm.nm.rc.eti.framework.common.generated.wsdl.DownloadRelationshipsType | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.soap.XMLContent] objectValue: com.siemens.icm.nm.rc.eti.framework.common.generated.wsdl.DownloadRelationshipsType | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.soap.SOAPContentElement] ----------------------------------- | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.EndpointInvocation] transformPayloadValue: org.jboss.ws.core.soap.SOAPBodyElementDoc -> com.siemens.icm.nm.rc.eti.framework.common.generated.wsdl.DownloadRelationshipsType | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.jaxrpc.ParameterWrapping] unwrapRequestParameters: com.siemens.icm.nm.rc.eti.framework.common.generated.wsdl.DownloadRelationshipsType | 2007-03-28 00:17:59,312 INFO [STDOUT] 0 | 2007-03-28 00:17:59,312 DEBUG [org.jboss.ws.core.EndpointInvocation] setReturnValue: null | Additonal information: - I tried to send a file with size 81 bytes. - The [STDOUT] 0 means the filesize of the received attachment (0). - It can be seen that I set the binding type properly getHandlerChain: [type=POST,info=[service={http://siemens.com/ws}ETI_ReceiverBeanService,port={http://siemens.com/ws}EMServicesPort,binding=http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true]] Do you have any idea what is the problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032241#4032241 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032241 From do-not-reply at jboss.com Tue Mar 27 20:09:53 2007 From: do-not-reply at jboss.com (omatzura) Date: Tue, 27 Mar 2007 20:09:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem for publish a Web Service Message-ID: <23999971.1175040594019.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! you probably need to switch to the Project Explorer view (not the Package Explorer).. regards! /Ole eviware.com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032259#4032259 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032259 From do-not-reply at jboss.com Tue Mar 27 23:54:00 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Tue, 27 Mar 2007 23:54:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume with provider sample Message-ID: <29228359.1175054040353.JavaMail.jboss@colo-br-02.atl.jboss.com> Just so you guys know the reason this is happening is that the response and request element have the same name, so per the spec, a Holder is used. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032294#4032294 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032294 From do-not-reply at jboss.com Tue Mar 27 23:55:30 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Tue, 27 Mar 2007 23:55:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss WS 1.0.3 and JDK 1.6 not working Message-ID: <1759122.1175054130390.JavaMail.jboss@colo-br-02.atl.jboss.com> JDK 6 is not currently supported on any version since currently there are conflicts with the ws stack that is embedded in it. After EE5 we will look at JDK6 support. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032296#4032296 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032296 From wolfgang.moser at src-gmbh.de Wed Mar 28 07:20:09 2007 From: wolfgang.moser at src-gmbh.de (Wolfgang Moser) Date: Wed, 28 Mar 2007 13:20:09 +0200 Subject: [jbossws-users] How to disable weak ciphersuites for a SSL secured webservice Message-ID: <460A4F69.6000908@src-gmbh.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello there at JBossWS, I'm developing for a WebServices application that runs on JBoss 4.0.5.GA with JBossWS 1.0.4.GA We got managed to setup JBoss as well as the deployed WebService to only allow SSL connections (with user authentication). Unfortunately we don't see a way to disable all the weak ciphersuites (like DES40, RC4_40 or standard DES) for that SSL secured webservice, so that the server acts in a way that it will never accept such weak ciphersuites on the initial SSL handshake. I did already check out: http://jira.jboss.com/jira/browse/JBAS-1983 but was not able to configure the ciphersuites accordingly (this included JBAS-2785). I wasn't unable to check out, if these settings would change anything on WebServices, since JBoss doesn't start due to a null pointer exception (see attachment). As some debugging reveals, this is because the member "securityDomain" within: org.jboss.security.ssl.ServerSocketFactory seems to not get initialized. Any hints on how to become able to select or to configure the ciphersuites being accepted from our SSL enabled WebServices application would be appreciated much. - -- With kind regards, Wolfgang Moser _______________________________________________________________ SRC Security Research & Consulting GmbH Graurheindorfer Str. 149 a Tel: +49(0)228-2806-149 53117 Bonn Fax: +49(0)228-2806-199 http://www.src-gmbh.de Mob: +49(0) Handelsregister Bonn: HRB 9414 Gesch?ftsf?hrer: Gerd Cimiotti -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) iQEVAwUBRgpPaV351eL5alt0AQh6+wf+Na9a4R1m7Q0InWpJMi860Zc9VwyNw9hS klWpt9DPevLhdCopke2AFN2lbyvnbkx2FApBSsRItoowCmow1A6R0CGsY6cZsWo7 jersZe4Ee7U60V6CYreX1C7V6A1/vvPTPq9P0CU2Te4aamd80kOZhCjJ2nZ3vOJQ aVqx3TK2PObTsIYRo01E4dVtfhYNkNznZGKjEdubXai1b4c7Sn3/Gwdid/SRN5jl MpWMLoYhS763ZgXv71S3XFIDdNDTWh36kPpmqokb1baUl7ceUjEdprganBzhQeLE 4qF4dV/R2MCXdBAdcRjGR9/E7XRnP4riPH3OBa6o8wzRRVIF6jOMwA== =RJpB -----END PGP SIGNATURE----- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: jbossserversocketexception.txt Url: http://lists.jboss.org/pipermail/jbossws-users/attachments/20070328/25dae553/attachment.txt From do-not-reply at jboss.com Wed Mar 28 09:46:04 2007 From: do-not-reply at jboss.com (c_eric_ray) Date: Wed, 28 Mar 2007 09:46:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss WS 1.0.3 and JDK 1.6 not working Message-ID: <30994223.1175089564593.JavaMail.jboss@colo-br-02.atl.jboss.com> Excellent. I assumed as much. Thanks for the confirmation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032316#4032316 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032316 From do-not-reply at jboss.com Wed Mar 28 09:51:22 2007 From: do-not-reply at jboss.com (JimDaues) Date: Wed, 28 Mar 2007 09:51:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume with provider sample Message-ID: <11039885.1175089882214.JavaMail.jboss@colo-br-02.atl.jboss.com> thanks Jason. that is true for superomega's example but is not for mine | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032322#4032322 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032322 From do-not-reply at jboss.com Wed Mar 28 10:01:54 2007 From: do-not-reply at jboss.com (qiliu) Date: Wed, 28 Mar 2007 10:01:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - VerifyError in jbossws1.2.0.SP1 Message-ID: <23258940.1175090514074.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I am trying to consume a EJB3 web service in JBoss 4.0.5 and jbossws-1.2.0SP1, and got the error in symbols I couldn't recognize. I have no problem deploying this web service and have tested another Echo web service in the same setting. Please help. Thank you very much. Here is the error trace: javax.xml.ws.WebServiceException: java.lang.VerifyError: (class: org/jboss/ws/tools/wsdl/WSDL11Reader, method: processBindingOutput signature: (Ljavax/wsdl/Definition;Lorg/jboss/ws/metadata/wsdl/WSDLBindingOperation;Lorg/jboss/ws/metadata/wsdl/WSDLInterfaceOperation;Ljavax/wsdl/BindingOperation;Ljavax/wsdl/BindiK?vm0J?"X? at javax.xml.ws.Service.create(Service.java:731) at org.calgb.ecog.client.ECOGWS2ClientTest.testWebService(ECOGWS2ClientTest.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:228) at junit.framework.TestSuite.run(TestSuite.java:223) at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.lang.VerifyError: (class: org/jboss/ws/tools/wsdl/WSDL11Reader, method: processBindingOutput signature: (Ljavax/wsdl/Definition;Lorg/jboss/ws/metadata/wsdl/WSDLBindingOperation;Lorg/jboss/ws/metadata/wsdl/WSDLInterfaceOperation;Ljavax/wsdl/BindingOperation;Ljavax/wsdl/BindiK?vm0J?"X? at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:131) at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:313) at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:78) at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:109) at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61) at javax.xml.ws.Service.(Service.java:83) at org.jboss.ws.core.jaxws.client.ServiceExt.(ServiceExt.java:60) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at javax.xml.ws.Service.create(Service.java:726) ... 20 more View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032328#4032328 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032328 From do-not-reply at jboss.com Wed Mar 28 12:31:35 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 12:31:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsconsume with provider sample Message-ID: <13952164.1175099495595.JavaMail.jboss@colo-br-02.atl.jboss.com> Right so in his case he has a bare style service since it is using the same type definition for request/response (does not qualify for wrapped). Yours does qualify for wrapped, so I am guessing you are seeing holders because getSimilarStructures and getSimilarStructuresResponse schema types share the same internal elemnt names. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032431#4032431 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032431 From do-not-reply at jboss.com Wed Mar 28 12:41:54 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 12:41:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: VerifyError in jbossws1.2.0.SP1 Message-ID: <30292643.1175100114196.JavaMail.jboss@colo-br-02.atl.jboss.com> This looks you have jar conflicts on the client side, can you verify that your jars all match whats in jboss-4.0.5/client? -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032433#4032433 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032433 From do-not-reply at jboss.com Wed Mar 28 12:52:27 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 12:52:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Basic authentication in a JBossWS web service client Message-ID: <27334443.1175100747920.JavaMail.jboss@colo-br-02.atl.jboss.com> See WebServiceContextJSETestCase in the samples: | port = (TestEndpoint)service.getPort(TestEndpoint.class); | BindingProvider bp = (BindingProvider)port; bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "kermit"); bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "thefrog"); | -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032439#4032439 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032439 From do-not-reply at jboss.com Wed Mar 28 13:05:10 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 13:05:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Unmarshalling and binding issues Message-ID: <24180666.1175101510314.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes this is a limitation. The only workaround you could do right now is to create a dummy method that had all known subtypes in it's signature. In order to support XmlSeeAlso we just need to upgrade to JAXB 2.1. I have created a request for this for the 2.0 release. Until then you could try doing this yourself. Although I should warn you that while it should be compatible we have not done thorough testing on it. http://jira.jboss.com/jira/browse/JBWS-1591 -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032452#4032452 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032452 From do-not-reply at jboss.com Wed Mar 28 13:10:24 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 13:10:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: StackOverflowError with WS-Security Message-ID: <21991789.1175101824783.JavaMail.jboss@colo-br-02.atl.jboss.com> Can you verify if this happens with a later versoin of JBossWS? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032456#4032456 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032456 From do-not-reply at jboss.com Wed Mar 28 13:17:16 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 13:17:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Server-side NullpointerException when using ws-security Message-ID: <24626019.1175102236950.JavaMail.jboss@colo-br-02.atl.jboss.com> This looks like a bug. Thanks for the thorough report http://jira.jboss.com/jira/browse/JBWS-1592 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032460#4032460 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032460 From do-not-reply at jboss.com Wed Mar 28 13:20:46 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 13:20:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Webservice Client consumer Message-ID: <7696397.1175102446823.JavaMail.jboss@colo-br-02.atl.jboss.com> Xerces needs to be in your classpath. openyourmind is correct, any client application you write needs to use the endorsed property to load the most current xerces. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032462#4032462 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032462 From do-not-reply at jboss.com Wed Mar 28 13:22:41 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 13:22:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Install in Tomcat 6 Message-ID: <11272134.1175102561974.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jira.jboss.com/jira/browse/JBWS-1593 -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032465#4032465 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032465 From do-not-reply at jboss.com Wed Mar 28 13:26:29 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 13:26:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: advice needed Message-ID: <24398566.1175102789762.JavaMail.jboss@colo-br-02.atl.jboss.com> As PeterJ recommends, use the wsrunclient script, its for standalone apps. You can just copy that and modify it to your liking. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032467#4032467 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032467 From do-not-reply at jboss.com Wed Mar 28 13:33:34 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 13:33:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JSR181 EJB endpoint with root contextRoot Message-ID: <28543791.1175103214209.JavaMail.jboss@colo-br-02.atl.jboss.com> Tomcat has certain restrictions about binding to the root context. Can you try saying contextRoot="ROOT"? Also make sure you don't have a ROOT.war deployed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032472#4032472 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032472 From do-not-reply at jboss.com Wed Mar 28 14:13:14 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 14:13:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Anyone know how to get the context root of a Session Bea Message-ID: <3417921.1175105594962.JavaMail.jboss@colo-br-02.atl.jboss.com> If you are using EJB 2.1 then you can make your bean implement ServiceLifecycle, which will give you an init method. That method passes the ServletEndpointContext, which allows you to get at the ServletContext, and you can get the URL from that. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032488#4032488 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032488 From do-not-reply at jboss.com Wed Mar 28 14:19:51 2007 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 28 Mar 2007 14:19:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WS-Security and certificate password Message-ID: <32178734.1175105991257.JavaMail.jboss@colo-br-02.atl.jboss.com> I just noticed what I think is a problem. If I generate a certificate and use a different password for it than what I used for the keystore, then I get a key not found error. The problem appears to be in the SecurityStore.getPrivateKey method, this line: key = (PrivateKey)keyStore.getKey(alias, decryptPassword(keyStorePassword).toCharArray()); which assumes that the keystore password is also associated with the certificate. I also checked jboss-ws-security_1_0.xsd to see if there was a way to provide a password along with the alias in the tag, but there was none. Should I open a JIRA? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032490#4032490 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032490 From do-not-reply at jboss.com Wed Mar 28 14:29:46 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 14:29:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How can I show the certificate info with WS-Security Message-ID: <4454755.1175106586595.JavaMail.jboss@colo-br-02.atl.jboss.com> This currently isn't exposed. However you could create a feature request for it. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032494#4032494 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032494 From do-not-reply at jboss.com Wed Mar 28 14:30:57 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 14:30:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to retrieve my WebServices' URLs? Message-ID: <26432373.1175106657199.JavaMail.jboss@colo-br-02.atl.jboss.com> You have to know the URL on the client, or alternatively use something like UDDI. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032495#4032495 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032495 From do-not-reply at jboss.com Wed Mar 28 14:45:50 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 14:45:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Accessing a secure WSDL Message-ID: <3923447.1175107550409.JavaMail.jboss@colo-br-02.atl.jboss.com> This is an outstanding request to support secured wsdl on the client: http://jira.jboss.com/jira/browse/JBWS-939 @WebContext(secureWSDLAccess) is only used for EJB3 endpoints where you do not have control over the web.xml file. You can accomplish this using the war endpoints by just only securing POST and not GET. Also if you are using JBoss 5, I would recommend using either the version included with it when you check it out of svn, or just grab jbossws trunk. Even though 1.2.0 should work, the APIs in 5 are not yet stable, so latest is best. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032499#4032499 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032499 From do-not-reply at jboss.com Wed Mar 28 15:10:07 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 15:10:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem to trace SOAP Message when an exception occures! Message-ID: <3324627.1175109007963.JavaMail.jboss@colo-br-02.atl.jboss.com> You have to implement handleFault to catch fault messages. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032507#4032507 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032507 From do-not-reply at jboss.com Wed Mar 28 15:22:18 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 15:22:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JbossWS Message-ID: <31090428.1175109738400.JavaMail.jboss@colo-br-02.atl.jboss.com> So the issue here is that jbossws-wsconsume-impl.jar is not on the classpath. Could be a bug in the installer script. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032512#4032512 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032512 From do-not-reply at jboss.com Wed Mar 28 15:25:23 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 15:25:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Marshalling Message-ID: <7649704.1175109923755.JavaMail.jboss@colo-br-02.atl.jboss.com> JAXB is the way to go, make sure you are using the latest version though. The generated classes should only be referring to standard apis. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032514#4032514 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032514 From do-not-reply at jboss.com Wed Mar 28 15:33:51 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 15:33:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0. Message-ID: <32642192.1175110431412.JavaMail.jboss@colo-br-02.atl.jboss.com> LOL at the Borat reference. As to your problem, See: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWSFAQXercesNPE -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032519#4032519 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032519 From do-not-reply at jboss.com Wed Mar 28 15:36:56 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 15:36:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security and certificate password Message-ID: <2857305.1175110616449.JavaMail.jboss@colo-br-02.atl.jboss.com> PeterJ, Yes go ahead. Also if you plan on doing some improvements patches are welcome :) -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032521#4032521 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032521 From do-not-reply at jboss.com Wed Mar 28 15:40:35 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 15:40:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Example ProviderBeanMessage Message-ID: <11008456.1175110835230.JavaMail.jboss@colo-br-02.atl.jboss.com> This just means the response you returned in your provider did not conform to the WSDL. When you develop a provider endpoint you have to take special care to ensure it conforms to the WSDL. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032523#4032523 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032523 From do-not-reply at jboss.com Wed Mar 28 15:46:21 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 15:46:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Package name generated by wsprovide Message-ID: <9403926.1175111181099.JavaMail.jboss@colo-br-02.atl.jboss.com> The spec requires that all wrappers be generated in the jaxws sub package by default (to avoid name conflicts). You can however control their destination using the RequestWrapper and ResponseWrapper annotations | @RequestWrapper(classname="beispiel_9.Hello"); | Keep in mind though that you do not need to use wsprovide to deploy on jbossws, we generate all of the wrapper classes dynamically at deploy time. You only need them if you want your deployment to be portable to other containers. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032525#4032525 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032525 From do-not-reply at jboss.com Wed Mar 28 15:48:24 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 15:48:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Getting access to X509Certificate Message-ID: <16724123.1175111304862.JavaMail.jboss@colo-br-02.atl.jboss.com> Currently WS-Security only supports keystore authentication, it does not yet fully integrate with JAAS for cert auth. This is however on the roadmap. http://jira.jboss.com/jira/browse/JBWS-652 -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032527#4032527 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032527 From do-not-reply at jboss.com Wed Mar 28 15:57:12 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 15:57:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Providing your own wsdl instead of the generated one. Message-ID: <22989762.1175111832360.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes it makes more sense on the implementation bean than the interface. Although the spec unfortunately requires that we support it on the interface: >From JAXWSWebServiceMetaDataBuilder: | // The spec states that WSDL location should be allowed on an SEI, although it | // makes far more sense on the implementation bean, so we ALWAYS override the SEI | // when wsdlLocation is defined on the bean | if (wsdlLocation.length() == 0) | wsdlLocation = seiAnnotation.wsdlLocation(); | -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032530#4032530 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032530 From do-not-reply at jboss.com Wed Mar 28 16:04:04 2007 From: do-not-reply at jboss.com (czhao07) Date: Wed, 28 Mar 2007 16:04:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to register SerializerFactory and DeSerializerFactory fo Message-ID: <17710311.1175112244916.JavaMail.jboss@colo-br-02.atl.jboss.com> I am implementing a WS client with JBossWS to access a third-party web service, one of the service operations takes a xsd:anyType type as the parameter, and it gets mapped to SOAPElement in the wstools generated code. When I invoke the service, I got this exception: javax.xml.rpc.JAXRPCException: Cannot obtain serializer factory for: [xmlType={http://www.w3.org/2001/XMLSchema}anyType,javaType=interface javax.xml.soap.SOAPElement] This article (http://wiki.jboss.org/wiki/Wiki.jsp?page=WS4EETypeMapping) talks about how to add type mappings for service endpoint, not the WS client. But anyway, I tried to add file ws4ee-deployment.xml to my client's META-INF folder with following mapping: and it didn't work. Does anyone know a solution to this issue? Much thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032531#4032531 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032531 From do-not-reply at jboss.com Wed Mar 28 16:45:36 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 16:45:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to register SerializerFactory and DeSerializerFactor Message-ID: <31095627.1175114736693.JavaMail.jboss@colo-br-02.atl.jboss.com> What version of JBossWS are you using? ws4ee-deployment.xml was only valid on jboss-ws4ee which was the older axis based stack. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032542#4032542 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032542 From do-not-reply at jboss.com Wed Mar 28 16:48:49 2007 From: do-not-reply at jboss.com (czhao07) Date: Wed, 28 Mar 2007 16:48:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to register SerializerFactory and DeSerializerFactor Message-ID: <14893748.1175114929851.JavaMail.jboss@colo-br-02.atl.jboss.com> I am using JBossWS 1.0.3.GA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032543#4032543 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032543 From do-not-reply at jboss.com Wed Mar 28 17:21:14 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Wed, 28 Mar 2007 17:21:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to register SerializerFactory and DeSerializerFactor Message-ID: <6788735.1175116874318.JavaMail.jboss@colo-br-02.atl.jboss.com> I believe this was fixed in 1.0.4. Although you can work around the issue by changing your mapping file and code to use a org.w3c.dom.Element instead. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032555#4032555 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032555 From do-not-reply at jboss.com Wed Mar 28 18:30:34 2007 From: do-not-reply at jboss.com (joff) Date: Wed, 28 Mar 2007 18:30:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JSR181 EJB endpoint with root contextRoot Message-ID: <9154555.1175121034615.JavaMail.jboss@colo-br-02.atl.jboss.com> Okay, I removed the default ROOT.war, and changed the annotation to read contextRoot="ROOT", but that seems to cause it to ignore the @PortComponent entirely - it deploys to the default /earname-jarname/ context, with the default name. btw, my application.xml is like this: | MyExample | | | example.war | / | | | | example.jar | | There is no context root specified in the web.xml. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032573#4032573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032573 From do-not-reply at jboss.com Wed Mar 28 18:40:18 2007 From: do-not-reply at jboss.com (czhao07) Date: Wed, 28 Mar 2007 18:40:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to register SerializerFactory and DeSerializerFactor Message-ID: <32977203.1175121618477.JavaMail.jboss@colo-br-02.atl.jboss.com> I just upgrade JBossWS to 1.0.4, but still have the same problem: javax.xml.rpc.JAXRPCException: Cannot obtain serializer factory for: [xmlType={http://www.w3.org/2001/XMLSchema}anyType,javaType=interface javax.xml.soap.SOAPElement] at org.jboss.ws.soap.SOAPContentElement.getSerializerFactory(SOAPContentElement.java:377) at org.jboss.ws.soap.SOAPContentElement.getXMLFragment(SOAPContentElement.java:143) at org.jboss.ws.soap.SOAPContentElement.expandToDOM(SOAPContentElement.java:802) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032577#4032577 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032577 From do-not-reply at jboss.com Wed Mar 28 20:53:08 2007 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 28 Mar 2007 20:53:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security: keystores and truststores Message-ID: <214561.1175129588320.JavaMail.jboss@colo-br-02.atl.jboss.com> I'll add my own two cents to this (I was going to do a new post but found this one). The only way that I can get WS-Security encryption to work is if I place the private key into the keystore in both the client and the server. If either one has a public key, it complains with the error: org.jboss.ws.extensions.security.WSSecurityException: Problems retrieving private key: Private key (XXX) not in keystore This appears to be a major flaw if both the client and the server have to have the private key available, I would think that the public key would be sufficient for one side. I cannot imagine a company that provides a Web service willingly giving out the private key for that Web service. Or a second company that wants to use said web service providing its private key to the first company. Any thoughts on this or am I just doing it wrong. (I will post the config files on request, but they are pretty much what appears at http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#WS-Security, though substitute 'encrypt' for 'sign'. I think I tried 'sign' also and it had the same problem.) I am using JBossWS 1.2.0.GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032593#4032593 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032593 From do-not-reply at jboss.com Wed Mar 28 21:42:44 2007 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 28 Mar 2007 21:42:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Server-side NullpointerException when using ws-security Message-ID: <975452.1175132564910.JavaMail.jboss@colo-br-02.atl.jboss.com> I got this error before. It was either because I did not make the META-INF/standard-jaxws-client-config.xml, or I did not remove the configurations other than Standard WSSecurity Client from that file, or because I did not reference the truststores in either the jboss-wsse-clsient.xml or jboss-wsse-server.xml files. (It's been several days and several millions errors since that happened, but if the above suggestions don't solve the problem let me know and I will see if I can reproduce it.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032600#4032600 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032600 From do-not-reply at jboss.com Wed Mar 28 22:55:32 2007 From: do-not-reply at jboss.com (acxjbertr) Date: Wed, 28 Mar 2007 22:55:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - StAX parser Message-ID: <4934414.1175136932427.JavaMail.jboss@colo-br-02.atl.jboss.com> I noticed this ticket indicating that a StAX parser would be implemented in JBossXB for use by JBossWS. However, I also noticed this wiki post indicating that JBossWS doesn't yet make use of a StAX parser. My questions are: Is a StAX parser available for JBossWS? If so, was there much performance gain? If not, is one supposed to be implemented? If so, when? | | What are the more general plans for increasing the performance of JBossWS (if any)? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032608#4032608 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032608 From do-not-reply at jboss.com Thu Mar 29 03:39:53 2007 From: do-not-reply at jboss.com (manosurf) Date: Thu, 29 Mar 2007 03:39:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem to trace SOAP Message when an exception occures! Message-ID: <10356248.1175153993661.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks a lot Jason. It works fine. manosurf. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032644#4032644 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032644 From do-not-reply at jboss.com Thu Mar 29 05:39:56 2007 From: do-not-reply at jboss.com (sgof) Date: Thu, 29 Mar 2007 05:39:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss 4.0.5--JAX-RPC has Issues? Message-ID: <16642041.1175161196905.JavaMail.jboss@colo-br-02.atl.jboss.com> I have the same problem, but I don't have JAI. Anyone resolved the proble? On my pc (with windows xp) all work, but the same jboss whith the same web service on a unix server give me the error: ERROR [[WPMServiceServlet]] Servlet.service() for servlet WPMServiceServlet threw exception java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.jboss.ws.soap.attachment.ContentHandlerRegistry.(ContentHandlerRegistry.java:51) at org.jboss.ws.xop.XOPUnmarshallerImpl.(XOPUnmarshallerImpl.java:59) at org.jboss.ws.jaxrpc.encoding.SimpleDeserializer.deserialize(SimpleDeserializer.java:52) at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:235) at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233) at org.jboss.ws.binding.EndpointInvocation.getRequestParamValue(EndpointInvocation.java:103) at org.jboss.ws.binding.EndpointInvocation.getRequestPayload(EndpointInvocation.java:117) at org.jboss.ws.server.ServiceEndpointInvokerJSE.invokeServiceEndpoint(ServiceEndpointInvokerJSE.java:94) at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:115) at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209) at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355) at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.IllegalArgumentException: failed to parse:image/bmp, image/x-bmp, image/x-windows-bmp at java.awt.datatransfer.DataFlavor.(DataFlavor.java:292) at javax.activation.ActivationDataFlavor.(ActivationDataFlavor.java:81) at org.jboss.ws.soap.attachment.ImageDataContentHandler.buildFlavors(ImageDataContentHandler.java:77) at org.jboss.ws.soap.attachment.ImageDataContentHandler.(ImageDataContentHandler.java:63) ... 36 more View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032680#4032680 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032680 From do-not-reply at jboss.com Thu Mar 29 06:41:40 2007 From: do-not-reply at jboss.com (zauberlehrling) Date: Thu, 29 Mar 2007 06:41:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Package name generated by wsprovide Message-ID: <20018931.1175164900979.JavaMail.jboss@colo-br-02.atl.jboss.com> Oh, this helps! Thank you very much. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032702#4032702 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032702 From do-not-reply at jboss.com Thu Mar 29 12:15:07 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Thu, 29 Mar 2007 12:15:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security: keystores and truststores Message-ID: <20292603.1175184907125.JavaMail.jboss@colo-br-02.atl.jboss.com> Encryption operates very differently than signature processing. You can relate it to do ssl mutual auth, or pgp. In order to use encryption you need 2 key pairs (public/private) for each party; in spirit of old school cryptography lets call them bob and alice. In order to send an encrypted message to Alice, Bob must have her public key. He encrypts the message to Alice, using her public key, which she can then decrypt using her private key. Likewise when she replies to the message she uses Bob's public key to encrypt the message, and he uses his private key to decrypt the message. Now when sending these messages WS-Security needs to know which public key the message was encrypted with. To do this, one mechanism is to send the X509 token of the public cert in the message. However this causes another form of validation to occur. WS-Security requires that all tokens be validated. So therefore Bob and Alice need to trust their own public keys. Here is the setup bobs.keystore --------------- bob - keyPair (public + private key) alice - trustedCertEntry (just alice's public key) bobs.truststore ---------------- bob - trustedCertEntry (just bob's public key) alices.keystore ----------------- alice - keyPair (public + private key) bob - trustedCertEntry (just bob's public key) alices.trustore ---------------- alice - trustedCertEntry (just alice's public key) Note, this is just for encryption, to enable signing as well you need to also add a trust entry for the other party, since in signature processing it's the public key that is used for decryption. Let me know if you have any other questions. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032846#4032846 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032846 From do-not-reply at jboss.com Thu Mar 29 12:57:49 2007 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 29 Mar 2007 12:57:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security and certificate password Message-ID: <27308733.1175187469818.JavaMail.jboss@colo-br-02.atl.jboss.com> Hmm, JIRA seems to not work with Firefox any more (I am using 2.0.0.3, and I even disable all of my plugins). I am getting a null pointer exception on the home page and even issues assigned to me state that I don't have the necessary rights to work on them. So I tried IE 7, works fine there. Anyway, I created an issue: http://jira.jboss.org/jira/browse/JBWS-1594. I think I should be able to work on it next week so I assigned it to myself. Of course, feel free to modify the Fix Versions (I guessed at what they would be). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032867#4032867 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032867 From do-not-reply at jboss.com Thu Mar 29 14:13:18 2007 From: do-not-reply at jboss.com (czhao07) Date: Thu, 29 Mar 2007 14:13:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to register SerializerFactory and DeSerializerFactor Message-ID: <10397481.1175191998231.JavaMail.jboss@colo-br-02.atl.jboss.com> I think I found the problem. The web service I need to call uses soap encoding style (http://schemas.xmlsoap.org/soap/encoding/), hence EncodedTypeMapping is used which registers type mapping for xsd:anyType as this: // register mapping for xsd:anyType registerInternal(SOAPElement.class, Constants.TYPE_SOAP11_ANYTYPE, new SOAPElementSerializerFactory(), new SOAPElementDeserializerFactory()); registerInternal(Element.class, Constants.TYPE_SOAP11_ANYTYPE, new ElementSerializerFactory(), new ElementDeserializerFactory()); In above code, it registers (De)SerializerFactory for a wrong QName. While the fix in LiteralTypeMapping is correct: // register mapping for xsd:anyType registerInternal(SOAPElement.class, Constants.TYPE_LITERAL_ANYTYPE, new SOAPElementSerializerFactory(), new SOAPElementDeserializerFactory()); registerInternal(Element.class, Constants.TYPE_LITERAL_ANYTYPE, new ElementSerializerFactory(), new ElementDeserializerFactory()); So I think the above lines of code should be moved to TypeMappingImpl.registerStandardLiteralTypes() in order to fix the problem with both literal and soap encoding styles. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032888#4032888 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032888 From do-not-reply at jboss.com Thu Mar 29 14:27:10 2007 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 29 Mar 2007 14:27:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Accessing a secure WSDL Message-ID: <32784915.1175192830297.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks, Jason, securing only POST requests worked and the client can once again access the WSDL. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032891#4032891 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032891 From do-not-reply at jboss.com Thu Mar 29 15:15:17 2007 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 29 Mar 2007 15:15:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security: keystores and truststores Message-ID: <14033724.1175195717335.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks again, Jason. I tried this for encryption (and your suggested additions to support signing by updating both truststores so that they contain both public keys) and it worked. I think I now have a little better understanding of the role of the truststore in this scheme. For those of you following along at home (or at work), when Bob sends a message he uses Alice's key to encrypt the message but his key to sign it, so the config section of jboss-wsse-xxx.xml file looks like: | | | | | | | Of course, on Alice's machine, the aliases are the opposite. If you don't want to sign the messages, remove the < sign > and < signature/ > tags. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032911#4032911 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032911 From do-not-reply at jboss.com Thu Mar 29 17:16:55 2007 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 29 Mar 2007 17:16:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security: keystores and truststores Message-ID: <10818651.1175203015252.JavaMail.jboss@colo-br-02.atl.jboss.com> Another question. Let's say that Bob runs the web service and Alice has a client that uses the web service. Now John would also like to use the web service. John would create: johns.keystore ---------------- john - keyPair (pub+priv) bob - trustedCertEntry (pub) johns.truststore ---------------- john - trustedCertEntry (just john's public key) In addition, Bob's keystore would be updated to: bobs.keystore ---------------- bob - keyPair (public + private key) alice - trustedCertEntry (just alice's public key) john - trustedCertEntry (just john's public key) This does not pose a problem for encrypting the request from the client side since both Alice and John use Bob's public key to encrypt the message, and Bob of course uses his pirvate key to decrypt the message. But how is the response message encrypted? Bob would have to know who he is responding to and encrypt accordingly, but how would one specify this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032946#4032946 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032946 From do-not-reply at jboss.com Thu Mar 29 19:35:20 2007 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 29 Mar 2007 19:35:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Pooling pojos Message-ID: <29542384.1175211320542.JavaMail.jboss@colo-br-02.atl.jboss.com> I appears that when using a POJO endpoint that the POJO is instantiated each time a web method is called. I looked around for a way to define a pool for the POJO, but could not find one. I would have thought that POJO endpoints would be pooled automatically much the same way servlets and EJBs are pooled. Is there as way to pool POJO endpoints, or should I look into some other mechanism? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032969#4032969 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032969 From do-not-reply at jboss.com Thu Mar 29 20:18:06 2007 From: do-not-reply at jboss.com (fujikura) Date: Thu, 29 Mar 2007 20:18:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: StackOverflowError with WS-Security Message-ID: <24701035.1175213886164.JavaMail.jboss@colo-br-02.atl.jboss.com> yes, i tried jboss-ws 1.2.0 since i submited the first post. however i encountered a different problem and gave up to study this problem with the lastest version. because i need to fix it asap. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032981#4032981 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032981 From do-not-reply at jboss.com Fri Mar 30 01:41:07 2007 From: do-not-reply at jboss.com (magnus.ahlander) Date: Fri, 30 Mar 2007 01:41:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Name of generated exception class Message-ID: <1161138.1175233267905.JavaMail.jboss@colo-br-02.atl.jboss.com> In my endpoint implementation I have a user-defined exception thrown by some operations. The generated wsdl then looks something like: ... | | | | | | ... | | ... | | | | | ... >From this wsdl wsconsume generates the following client-side artifacts: AuthorizationException (jaxb type) AuthorizationException_Exception (java exception) In the client I then I then get some awkward code like try {...} | catch (AuthorizationException_Exception ex) {...} To get around these problems I defined a custom jax-ws binding, which is then provided to wsconsume: | | | | | | | | | | basically this puts jaxws and jaxb generated artifacts into separate packages. However, this works only if I remove the 'package' attribute from the wsconsume task. From this I conclude that the 'package' attribute takes precedence over any custom bindings. Why is this so? Is there any other way to get nice exception class names with wsconsume? Regards, Magnus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033007#4033007 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033007 From do-not-reply at jboss.com Fri Mar 30 02:53:50 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Fri, 30 Mar 2007 02:53:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to register SerializerFactory and DeSerializerFactor Message-ID: <31448254.1175237630424.JavaMail.jboss@colo-br-02.atl.jboss.com> The LiteralTypeMapping is constructed like this | public LiteralTypeMapping() | { | // XOP default mapping | JBossXBSerializerFactory jbxbSF = new JBossXBSerializerFactory(); | JBossXBDeserializerFactory jbxbDF = new JBossXBDeserializerFactory(); | | ... | | registerStandardLiteralTypes(); | | ... | | // register mapping for xsd:anyType | register(SOAPElement.class, Constants.TYPE_LITERAL_ANYTYPE, new SOAPElementSerializerFactory(), new SOAPElementDeserializerFactory()); | register(Element.class, Constants.TYPE_LITERAL_ANYTYPE, new ElementSerializerFactory(), new ElementDeserializerFactory()); | } | Unfortunatly, it is not commented why xsd:antType is not considered as a standard literal type. Maybe only only because it is not by the spec. I hesitate to have this changed since in favour of rpc/encoded because it might break anyType handling for literal users. However, lets have a jira for it http://jira.jboss.org/jira/browse/JBWS-1595 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033017#4033017 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033017 From do-not-reply at jboss.com Fri Mar 30 02:56:39 2007 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Fri, 30 Mar 2007 02:56:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to register SerializerFactory and DeSerializerFactor Message-ID: <30389271.1175237799081.JavaMail.jboss@colo-br-02.atl.jboss.com> This change might work for you | | public EncodedTypeMapping() | { | registerStandardLiteralTypes(); | registerStandardSOAP11EncodedTypes(); | | // register mapping for xsd:anyType | register(SOAPElement.class, Constants.TYPE_LITERAL_ANYTYPE, new SOAPElementSerializerFactory(), new SOAPElementDeserializerFactory()); | register(Element.class, Constants.TYPE_LITERAL_ANYTYPE, new ElementSerializerFactory(), new ElementDeserializerFactory()); | | // register mapping for soap11-enc:anyType | register(SOAPElement.class, Constants.TYPE_SOAP11_ANYTYPE, new SOAPElementSerializerFactory(), new SOAPElementDeserializerFactory()); | register(Element.class, Constants.TYPE_SOAP11_ANYTYPE, new ElementSerializerFactory(), new ElementDeserializerFactory()); | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033019#4033019 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033019 From do-not-reply at jboss.com Fri Mar 30 09:24:56 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Fri, 30 Mar 2007 09:24:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Name of generated exception class Message-ID: <19796103.1175261096195.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, the package name passed to wsconsume is an override, and is not really part of the standard. It's just their for ease of use. You can change the name of the exception class by using to point to the wsdl:fault element. You can also change the name of the fault bean by using a JAXB customization that points to the schema complex type: -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033159#4033159 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033159 From do-not-reply at jboss.com Fri Mar 30 09:36:10 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Fri, 30 Mar 2007 09:36:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Pooling pojos Message-ID: <21196174.1175261770341.JavaMail.jboss@colo-br-02.atl.jboss.com> Currently the only way you get pooling is with EJB3. The POJO model currently allocates an instance per request. This should be improved to reuse the same instance across multiple requests like the servlet container. While we could add pooling to the POJO model, it would only be relevant for endpoints that implement SingleThreadModel, since otherwise they are supposed to be written to handle concurrent requests. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033164#4033164 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033164 From do-not-reply at jboss.com Fri Mar 30 09:40:03 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Fri, 30 Mar 2007 09:40:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: StackOverflowError with WS-Security Message-ID: <9058576.1175262003212.JavaMail.jboss@colo-br-02.atl.jboss.com> If you need to fix it asap, i would recommend just increasing your stack size (-Xss jvm option). Otherwise if you can create a test case that demonstrates the problem and attach it to a jira issue, we can debug it. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033170#4033170 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033170 From do-not-reply at jboss.com Fri Mar 30 09:51:52 2007 From: do-not-reply at jboss.com (jason.greene@jboss.com) Date: Fri, 30 Mar 2007 09:51:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JSR181 EJB endpoint with root contextRoot Message-ID: <9468151.1175262712199.JavaMail.jboss@colo-br-02.atl.jboss.com> Is example.war a servlet deployment? If so, it would conflict with the generated war for the service. Otherwise you don't need that entry. Can you also try contextRoot=""? Otherwise, I believe, we may need to add special support for this for EJB endpoints. http://jira.jboss.com/jira/browse/JBWS-1596 In the meantime you could do with this with a war style deployment. http://wiki.jboss.org/wiki/Wiki.jsp?page=SetupARootContextApp -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033176#4033176 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033176 From do-not-reply at jboss.com Fri Mar 30 10:14:03 2007 From: do-not-reply at jboss.com (czhao07) Date: Fri, 30 Mar 2007 10:14:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to register SerializerFactory and DeSerializerFactor Message-ID: <3570153.1175264043602.JavaMail.jboss@colo-br-02.atl.jboss.com> Yep, this should work. My workaround is to change the WSDL to not use soap encoding style, now it works just fine. -Chunyun Zhao View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033188#4033188 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033188 From do-not-reply at jboss.com Fri Mar 30 10:36:38 2007 From: do-not-reply at jboss.com (rmartony) Date: Fri, 30 Mar 2007 10:36:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How Do I See the XML? Message-ID: <18940069.1175265398566.JavaMail.jboss@colo-br-02.atl.jboss.com> I created a handler, how can I print out the XML of the incoming request? I have the SOAPMessage, SOAPHeader and SOAPBody. What should I do next? I'm using JBossWS-1.0.4.GA, installed into JBoss AS 4.0.5.GA. Regards, Rafael. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033208#4033208 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033208 From wolfgang.moser at src-gmbh.de Fri Mar 30 12:17:07 2007 From: wolfgang.moser at src-gmbh.de (Wolfgang Moser) Date: Fri, 30 Mar 2007 18:17:07 +0200 Subject: [jbossws-users] [JBossWS] - How to disable weak ciphersuites for a SSL secured webservice Message-ID: <460D3803.7020209@src-gmbh.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello there at JBossWS, (please excuse me for sending this message twice, it seems I didn't format my subject line correctly, so the message wasn't put through onto the forum) I'm developing for a WebServices application that runs on JBoss 4.0.5.GA with JBossWS 1.0.4.GA We got managed to setup JBoss as well as the deployed WebService to only allow SSL connections (with user authentication). Unfortunately we don't see a way to disable all the weak ciphersuites (like DES40, RC4_40 or standard DES) for that SSL secured webservice, so that the server acts in a way that it will never accept such weak ciphersuites on the initial SSL handshake. I did already check out: http://jira.jboss.com/jira/browse/JBAS-1983 but was not able to configure the ciphersuites accordingly (this included JBAS-2785). I wasn't unable to check out, if these settings would change anything on WebServices, since JBoss doesn't start due to a null pointer exception (see attachment). As some debugging reveals, this is because the member "securityDomain" within: org.jboss.security.ssl.ServerSocketFactory seems to not get initialized. Any hints on how to become able to select or to configure the ciphersuites being accepted from our SSL enabled WebServices application would be appreciated much. - -- With kind regards, Wolfgang Moser _______________________________________________________________ SRC Security Research & Consulting GmbH Graurheindorfer Str. 149 a Tel: +49(0)228-2806-149 53117 Bonn Fax: +49(0)228-2806-199 http://www.src-gmbh.de Mob: +49(0) Handelsregister Bonn: HRB 9414 Gesch?ftsf?hrer: Gerd Cimiotti -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) iQEVAwUBRg04Al351eL5alt0AQhswwgAnDKiNJ9o0izElzH08D7MU1buhfaxJDOC tTh6qK8qsJ/bMcPSgpwCQV0ulpUukWiQacdhrIZtDu+xvgy8bZ1YCWFjw8lRrgVv aJpwZQ6g+On+B5ZOWnkdRcvt0LWvOyJxaADLRso+WQm9HJ3U+TidtyVsFGU+rgct 0C0t0Df8vLcyoj7IFKC0nJWaUsnVVqXEoRxvTlS45WDYjsYI6n0GxYG5hiY/PSZV djoAVXhzeuP0hBwzEsyEKfBd6a2Kp/nzNNDuF2/V8awKlSmaiDeDBdNBf99ktyyv 6lBLwQuj5fjoXVQDQXXieGHTSvInB/ZVnMXLYbKbGut0Y1YW2SEPcQ== =I9Pc -----END PGP SIGNATURE----- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: jbossserversocketexception.txt Url: http://lists.jboss.org/pipermail/jbossws-users/attachments/20070330/de29392a/attachment.txt From do-not-reply at jboss.com Fri Mar 30 14:02:33 2007 From: do-not-reply at jboss.com (joshlam) Date: Fri, 30 Mar 2007 14:02:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How Do I See the XML? Message-ID: <32397914.1175277753897.JavaMail.jboss@colo-br-02.atl.jboss.com> You can try something like: | public boolean handleMessage(SOAPMessageContext ctx) | { | boolean outbound= ((Boolean)ctx.get(SOAPMessageContext.MESSAGE_OUTBOUND_PROPERTY)).booleanValue(); | SOAPMessage m = ctx.getMessage(); | ByteArrayOutputStream bo = new ByteArrayOutputStream(); | try | { | if (outbound) | { | | m.writeTo(bo); | System.out.println("Outbound: "+bo.toString()); | } | else // inbound | { | | m.writeTo(bo); | System.out.println("Inbound: "+bo.toString()); | } | } | catch (SOAPException e) | { | e.printStackTrace(); | return false; | } | catch (IOException e) | { | e.printStackTrace(); | return false; | } | | return true; | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033308#4033308 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033308 From do-not-reply at jboss.com Fri Mar 30 19:39:47 2007 From: do-not-reply at jboss.com (krishnakumars) Date: Fri, 30 Mar 2007 19:39:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wstools failing on XSDs using xs:import Message-ID: <21477313.1175297987731.JavaMail.jboss@colo-br-02.atl.jboss.com> This one's been out for over a year now. How do people deal with it? Any workarounds? I find it difficult to have a flat set of XSDs without the ability to import. Its a pain to have the same elements and types defined repeatedly in multiple XSDs. having a core XSd that's imported by other XSDs is critical to good design (at least abstraction and reuse). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033394#4033394 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033394