[JBossWS] - Re: WS-RM Exception: cannot be cast to org.jboss.ws.core.Stu
by karypid
Actually, I don't have the exact same problem. My exception is;
org.jboss.ws.extensions.wsrm.api.RMException: Unable to create WSRM sequence
| at org.jboss.ws.core.jaxws.client.ClientImpl.createSequence(ClientImpl.java:563)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:170)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
| at $Proxy21.ping(Unknown Source)
| at test.ws.stationsService.StationsServiceTest.pingTest(StationsServiceTest.java:58)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
| at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
| at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
| at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
| at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
| at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
| at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
| at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
| at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
| at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
| at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
| at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
| Caused by: org.jboss.ws.WSException: Cannot obtain operation meta data for: {http://docs.oasis-open.org/ws-rx/wsrm/200702}CreateSequence
| at org.jboss.ws.core.CommonClient.getOperationMetaData(CommonClient.java:203)
| at org.jboss.ws.core.CommonClient.getOperationMetaData(CommonClient.java:184)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:309)
| at org.jboss.ws.core.jaxws.client.ClientImpl.createSequence(ClientImpl.java:550)
| ... 24 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169591#4169591
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169591
16 years, 7 months
[JBossWS] - Re: WS-RM Exception: cannot be cast to org.jboss.ws.core.Stu
by karypid
Hello,
I had the exact same problem and got as far as fixing the StubExt issue, but now I am stuck at the "Unable to create WSRM sequence" exception.
How did you fix that? My classpath seems to be correct. Here's the client:
public void pingTest() {
| System.err.println("java.class.path: "
| + System.getProperty("java.class.path"));
| System.err.println("java.endorsed.dirs: "
| + System.getProperty("java.endorsed.dirs"));
|
| URL jaxwsThatIsUsed = javax.xml.ws.Service.class.getProtectionDomain()
| .getCodeSource().getLocation();
| System.out.println("JAXWS that is used: " + jaxwsThatIsUsed);
|
| ssp.ping("test");
| }
The output is:
JAXWS that is used: file:/D:/Programs/jboss/as0/jboss-4.2.3.GA/client/jbossws-native-jaxws.jar
| java.class.path: [lots of stuff...];D:\Programs\jboss\as0\jboss-4.2.3.GA\client\jbossws-native-core.jar;[...more stuff];D:\Programs\jboss\as0\jboss-4.2.3.GA\lib\endorsed\serializer.jar;D:\Programs\jboss\as0\jboss-4.2.3.GA\lib\endorsed\xalan.jar;D:\Programs\jboss\as0\jboss-4.2.3.GA\lib\endorsed\xercesImpl.jar
| java.endorsed.dirs: D:\Programs\jboss\as0\jboss-4.2.3.GA\lib\endorsed
What did I miss?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169585#4169585
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169585
16 years, 7 months
[JBossWS] - Slow Performance (configuration issue?)
by bhmt
Hey all,
We did a performance test to compare Axis2 and JBoss WS implementatioins with a simple string echo service.
| @WebService
| @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
| public interface EchoService
| {
| @WebMethod
| public String echo(String s);
| }
|
| @Local
| public interface EchoServiceLocal extends EchoService {}
|
| @Remote
| public interface EchoServiceRemote extends EchoService {}
|
| @Stateless
| @WebService(endpointInterface="com.echo.EchoService")
| @WebContext(contextRoot="/echosvc")
| public class EchoServiceBean implements EchoServiceRemote, EchoServiceLocal
| {
| @Override
| public String echo(String s) { return s; }
| }
|
Test1
-----
Client: JBoss 4.2.3.GA client
Server: JBoss 4.2.3.GA
Throughput: 50 requests/second
Test2
-----
Client: JBoss 4.2.3.GA client
Server: JBoss 4.2.3.GA + Axis2 WAR (v1.4)
Throughput: 200 requests/second
Test3
-----
Client: Axis2 (v1.4) client (using ADB)
Server: JBoss 4.2.3.GA + Axis2 (using ADB)
Throughput: 400 requests/second
Test4
-----
Client: JBoss 4.2.3.GA client
Server: Tomcat (v6) + Axis2 WAR (v1.4)
Throughput: 400 requests/second
All tests run 10000 request in single thread on same computer running both client and server.
Java version: 1.6.0_06,Sun Microsystems Inc.
It seems the jbossws-3.0.1-native-2.0.4.GA (this is the default one in JBoss 4.2.3.GA) is the bottleneck.
Tried jbossws-native-3.0.2.GA (replaced jbossws-3.0.1-native-2.0.4.GA) in the same JBossAS, got same result.
Is there any configuration for JBossWS that is limiting performance?
Thanks for your input!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169442#4169442
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169442
16 years, 7 months