[JBossWS] - Re: http://org.jboss.ws/http#chunksize
by CBax007
I too am in the same boat. I am constructing a SOAPMessage object from an XML string. The service I am posting the message to is choking on the chunked request data. I want to be able to disable this and the way seems to be by using the 'HTTP 1.0 Client' config from the standard-jaxws-client-config file. I just don't know how to get my message to use this different config. I am creating and sending my SOAPMessage as follows:
SOAPMessageFactory messageFactory = MessageFactory.newInstance();
| SOAPConnectionFactory connFact = SOAPConnectionFactory.newInstance();
| SOAPMessage message = messageFactory.createMessage(
| null, new ByteArrayInputStream(xmlString.getBytes()));
| SOAPConnection conn = connFact.createConnection();
| URL url = new URL(FARELOGIX_URL);
| SOAPMessage response = conn.call(message, url);
What can I do differently here to get the message to use the 'HTTP 1.0 Client' config?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126864#4126864
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126864
16 years, 10 months
[JBossWS] - Re: SchemaTypeCreator.introspectJavaProperties Exception w/
by modkota
Hi ,
I am getting fallowing exception while making a service as webserice from JbossIDE. Can any one know what is the probelm actually.
Thanks in advance
Exception in thread "main" java.lang.NullPointerException
at org.jboss.ws.tools.schema.SchemaTypeCreator.introspectJavaProperties(SchemaTypeCreator.java:578)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateNewType(SchemaTypeCreator.java:332)
at org.jboss.ws.tools.schema.SchemaTypeCreator.getType(SchemaTypeCreator.java:273)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:132)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:127)
at org.jboss.ws.tools.schema.SchemaTypeCreator.createFieldParticle(SchemaTypeCreator.java:607)
at org.jboss.ws.tools.schema.SchemaTypeCreator.introspectJavaProperties(SchemaTypeCreator.java:592)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateNewType(SchemaTypeCreator.java:332)
at org.jboss.ws.tools.schema.SchemaTypeCreator.getType(SchemaTypeCreator.java:273)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:132)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:127)
at org.jboss.ws.tools.schema.SchemaTypeCreator.createFieldParticle(SchemaTypeCreator.java:607)
at org.jboss.ws.tools.schema.SchemaTypeCreator.introspectJavaProperties(SchemaTypeCreator.java:592)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateNewType(SchemaTypeCreator.java:332)
at org.jboss.ws.tools.schema.SchemaTypeCreator.getType(SchemaTypeCreator.java:273)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:132)
at org.jboss.ws.tools.JavaToXSD.generateForSingleType(JavaToXSD.java:109)
at org.jboss.ws.tools.helpers.JavaToWSDLHelper.generateType(JavaToWSDLHelper.java:556)
at org.jboss.ws.tools.helpers.JavaToWSDLHelper.generateTypesForXSD(JavaToWSDLHelper.java:141)
at org.jboss.ws.tools.JavaToWSDL11.handleJavaToWSDLGeneration(JavaToWSDL11.java:245)
at org.jboss.ws.tools.JavaToWSDL11.generate(JavaToWSDL11.java:168)
at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:318)
at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:122)
at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
I hope this is not the problem with my code. Is there any configuration issues for this? This kind of exception I am getting for one service. But if I do a small service and making it as webservice from Jboss IDE I did not get any errors. Can anyone know what might the problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126539#4126539
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126539
16 years, 10 months
[JBossWS] - Re: http://org.jboss.ws/http#chunksize
by centecbertl
"Ratoo" wrote :
| "heiko.braun(a)jboss.com" wrote :
| | HTTP 1.0 Client Did you try that one?
| |
|
| Where is it? How can I configure it?
|
You can use the tomcat Connector configuration to achieve this. Example given for jboss 4.0.5 restricts .net 2.0 clients to use HTTP 1.0:
| $ diff -U 5 server.xml~ server.xml
| --- server.xml~ 2006-12-06 16:03:28.403259700 +0100
| +++ server.xml 2006-12-16 10:18:38.265625000 +0100
| @@ -11,16 +11,18 @@
| <!-- A HTTP/1.1 Connector on port 8080 -->
| <Connector port="8080" address="${jboss.bind.address}"
| maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
| emptySessionPath="true"
| enableLookups="false" redirectPort="8443" acceptCount="100"
| - connectionTimeout="20000" disableUploadTimeout="true"/>
| + connectionTimeout="20000" disableUploadTimeout="true"
| + restrictedUserAgents="^.*MS Web Services Client Protocol.*$"/>
|
| <!-- Add this option to the connector to avoid problems with
| .NET clients that don't implement HTTP/1.1 correctly
| restrictedUserAgents="^.*MS Web Services Client Protocol 1.1.4322.*$"
| -->
| +
|
| <!-- A AJP 1.3 Connector on port 8009 -->
| <Connector port="8009" address="${jboss.bind.address}"
| emptySessionPath="true" enableLookups="false" redirectPort="8443"
| protocol="AJP/1.3"/>
| @@ -29,11 +31,12 @@
| <Connector port="8443" address="${jboss.bind.address}"
| maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
| emptySessionPath="true"
| scheme="https" secure="true" clientAuth="false"
| keystoreFile="${jboss.server.home.dir}/conf/centec.keystore"
| - keystorePass="centec" sslProtocol = "TLS" />
| + keystorePass="centec" sslProtocol = "TLS"
| + restrictedUserAgents="^.*MS Web Services Client Protocol.*$"/>
| <!-- -->
|
| <Engine name="jboss.web" defaultHost="localhost">
|
| <!-- The JAAS based authentication and authorization realm implementation
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126500#4126500
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126500
16 years, 10 months
[JBossWS] - NoClassDefFoundError using Eclipse/JUnit
by nlaney
hello, I'm accessing a WS running on JBoss 4.2.2 using JBossWS 2.0.3
I've generated the service artifacts using wsconsume and I'm getting a NoClassDefFoundError running the client code as a JUnit or Java app.
The same test runs OK from the command line using wsrunclient, or at least when copying the generated cmd line string into a cmd prompt, and it works when running the test during the Maven build lifecycle.
I would like to be able to run the tests in the Eclipse WTP 2.0 workbench. Any help would be appreciated. The test is just a basic HelloWorld, and the stacktrace is:
java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/AttachmentPartImpl
at com.sun.xml.ws.message.AttachmentUnmarshallerImpl.(AttachmentUnmarshallerImpl.java:55)
at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:500)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:242)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy25.findAll(Unknown Source)
at org.MyTest.test(MyTest.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.messaging.saaj.soap.AttachmentPartImpl
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 25 more
Paste stack traces into this console and follow hyperlinks to source code.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126438#4126438
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126438
16 years, 10 months