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_HTTPWSHibernateHandlerInboundorg.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_HTTPHibernateWSorg.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