[JBossWS] - Re: Runtime classloader cannot be null
by sjackson88
I have the same issue using jboss-4.2.2.GA and JBossWS2.0.1SP2 or JBossWS2.0.3.
I need to make my .war dependent on the service that provides the data being served by the web service. My .war contains a single class; it uses @WebService and @WebMethod to tag what needs to be exposed to the wsdl.
I used a < depends > element in jboss-web.xml to make the .war dependent on the service. Unfortunately it appears that the DeploymentAspectManagerImpl is executing despite the .war still waiting for creation/startup. My guess is that JAXWSMetaDataBuilderJSE then tries to pull the classloader while the .war is in this state and receives null.
Is there another way to accomplish this dependency?
Here's a snippet of the log after the interceptors have been set up:
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying TEST.war
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/jboss-4.2.2.GA/server/default/deploy/TEST.war/
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.system.ServiceController] starting service jboss.web.deployment:war=TEST.war,id=-1578707402
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.system.ServiceController] Start requested before create, calling create now for service: jboss.web.deployment:war=TEST.war,id=-1578707402
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.system.ServiceController] Creating service jboss.web.deployment:war=TEST.war,id=-1578707402
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.system.ServiceController] waiting in create of jboss.web.deployment:war=TEST.war,id=-1578707402 waiting on test.test:service=TEST.0
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.system.ServiceController] waiting in start jboss.web.deployment:war=TEST.war,id=-1578707402 on test.test:service=TEST.0
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.wsf.container.jboss42.JAXWSDeployerHookPostJSE] deploy: TEST.war
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.wsf.framework.DefaultSPIProvider] provide SPI 'class org.jboss.wsf.spi.deployment.DeploymentAspectManagerFactory'
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.wsf.framework.DefaultSPIProvider] class org.jboss.wsf.spi.deployment.DeploymentAspectManagerFactory Implementation: org.jboss.wsf.framework.deployment.DefaultDeploymentAspectManagerFactory@709366
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.wsf.framework.deployment.DefaultDeploymentAspectManagerFactory] DeploymentAspectManager for: WSDeploymentAspectManagerPostJSE
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl] RuntimeLoaderDeploymentAspect:Create
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl] JAXBIntroDeploymentAspect:Create
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl] UnifiedMetaDataDeploymentAspect:Create
| 2008-03-05 10:08:22,953 DEBUG [org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE] START buildMetaData: [name=TEST.war]
| 2008-03-05 10:08:22,953 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/C:/jboss-4.2.2.GA/server/default/deploy/TEST.war/
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134298#4134298
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134298
16 years, 10 months
[JBossWS] - SSL and native libraries
by fastbob
Hopefully I have the correct forum section. While I've researched the issue a bit, I can't claim to fully understand what's going on.
On Windows XP, using JBoss 4.2.2 (no modifications) and Sun jdk 1.6, we enabled SSL by uncommenting the SSL connector in service.xml:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
| address="${jboss.bind.address}" maxThreads="100"
| scheme="https" secure="true" clientAuth="false"
| keystoreFile="${jboss.server.home.dir}/conf/my.keystore"
| keystorePass="something" sslProtocol = "TLS" />
This seemed to be handled fine during startup - no native library found but startup continued and SSL worked:
05:47:06,150 INFO [NativeServerConfig] JBoss Web Services - Native
| 05:47:06,150 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=200710210837)
| 05:47:06,941 INFO [Embedded] Catalina naming disabled
| 05:47:07,281 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Java\jdk1.6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Java\jdk1.6.0\bin;C:\Java\apache-ant-1.7.0\bin;C:\Java\jikes_1.22\bin;C:\Java\maven-2.0.7\bin;c:\tools\cygwin\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\cvsnt;C:\Program Files\MySQL\MySQL Server 5.0\bin;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\
| 05:47:07,352 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
| 05:47:08,083 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8443
| 05:47:08,093 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-0.0.0.0-8009
|
On Fedora8 Linux, we copied the same JBoss directory to the system (same Sun jdk 1.6). However, the log showed the following during startup:
03:22:19,508 INFO [NativeServerConfig] JBoss Web Services - Native
| 03:22:19,508 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=200710210837)
| 03:22:20,310 INFO [Embedded] Catalina naming disabled
| 03:22:20,462 WARN [Connector] Property debug not found on the protocol handler.
| 03:22:20,466 WARN [Connector] Property clientAuth not found on the protocol handler.
| 03:22:20,466 WARN [Connector] Property keystoreFile not found on the protocol handler.
| 03:22:20,467 WARN [Connector] Property keystorePass not found on the protocol handler.
| 03:22:20,747 INFO [AprLifecycleListener] Loaded Apache Tomcat Native library 1.1.10.
| 03:22:20,751 INFO [AprLifecycleListener] APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
| 03:22:21,092 INFO [Http11AprProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
| 03:22:21,094 ERROR [Http11AprProtocol] Error initializing endpoint
| java.lang.Exception: No Certificate file specified
| at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method)
| at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:683)
| ...
So it appears that on Fedora the native library was loaded, but then the properties of the SSL connector were not loaded. Startup eventually failed due to the port being in use:
03:23:12,305 INFO [Http11AprProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
| 03:23:12,383 ERROR [Http11AprProtocol] Error starting endpoint
| java.lang.Exception: Socket bind failed: [98] Address already in use
| at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:611)
| at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:716)
| at org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:137)
|
I'm not clear what we need to change in the configuration to get things working on Linux. It seems like removing the native library would work against better performance. Any pointers would be appreciated. Thanks.
Bob
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134121#4134121
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134121
16 years, 10 months
[JBossWS] - Using custom principal class with JBossWS
by ejb3workshop
I would like to use my own Principal class with my own LoginModule. I configured the LoginModule in login-config.xml and annotated by SLSB as follows :
| @Stateless(name="JobAPIWeb")
| @WebService(name="JobAPIWeb", portName="...Port", serviceName="JobAPIWebService", targetNamespace="...")
| @EndpointConfig(configName = "Standard WSSecurity Endpoint")
| @SecurityDomain(value="THZone")
| @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.BARE)
| public class JobAPIWeb implements JobAPIWebRemote {
| ...
|
Authentication takes place, however when I try to access the principal via
| m_sessionContext.getCallerPrincipal().getClass().getName()
|
it presents me with a org.jboss.ws.extensions.security.SimplePrincipal, rather then my own class returned in the LoginModules commit method.
My search so far led me to ReceiveUsernameOperation in which the UserNameToken is converted to a SimplePrincipal.
http://fisheye.jboss.com/browse/JBossWS/trunk/jbossws-core/src/main/java/...
Are there any configuration options which would allow me to access the principal object as it is returned by my LoginModule.
Thanks in advance.
Alex
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133910#4133910
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133910
16 years, 10 months
[JBossWS] - Problems with multipart/related responses
by boopet
Hi everyone,
we have created a JBossWS Client with version 2.0.1 consuming a Axis2 webservice, that is sending its responses in multipart/related format.
Everything works fine when testing with SoapUi. but when calling a method with the JBoss client, we get this error message:
Caused by: java.lang.IllegalArgumentException: multipart/related stream invalid, no root part was found
| at org.jboss.ws.core.soap.attachment.MultipartRelatedDecoder.decodeMultipartRelatedMessage(MultipartRelatedDecoder.java:164)
| at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:228)
| at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:84)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:175)
I have already tried with the libraries from 2.0.3. But this causes the same problems.
This is the response received from Axis2 Server:
HTTP/1.1 200 OK
| Date: Tue, 04 Mar 2008 09:41:08 GMT
| Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_98BB2CA94931E2B9C21204623668217; type="application/xop+xml"; start="0.urn:uuid:98BB2CA94931E2B9C21204623668218@apache.org"; start-info="text/xml"
| Server: Apache-Coyote/1.1
| Transfer-Encoding: chunked
|
| --MIMEBoundaryurn_uuid_98BB2CA94931E2B9C21204623668217
| Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
| Content-Transfer-Encoding: binary
| Content-ID: <0.urn:uuid:98BB2CA94931E2B9C21204623668218@apache.org>
|
| <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:loadEloFileUrlResponse xmlns:ns="http://eloservice.giag.com"><ns:return>http://some_url_notshown</ns:return></ns:loadEloFileUrlResponse></soapenv:Body></soapenv:Envelope>
| --MIMEBoundaryurn_uuid_98BB2CA94931E2B9C21204623668217--
Did somebody have similar problems?
If this is a known issue please let me know.
Thanks for your help!
Regards,
Norbert
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133887#4133887
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133887
16 years, 10 months
[JBossWS] - JBoss 4.0.4GA - Error generating Web Service Consumer code
by mendaye
Hello,
I have been trying to generate a web service consumer code in JBoss4.0.4 GA form WSDL that has dot-net service endpoint. However, using wstools ant task I got the following error..
| [wstools] java.lang.NullPointerException
| [wstools] at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:2
| 84)
| [wstools] at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:3
| 33)
| [wstools] at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:355)
| [wstools] at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:174
| )
| [wstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGenera
| tion(ToolsHelper.java:326)
| [wstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
| [wstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
| [wstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
| [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
| va:288)
| [wstools] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| [wstools] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
| hodAccessorImpl.java:25)
| [wstools] at java.lang.reflect.Method.invoke(Method.java:585)
| [wstools] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
| tils.java:105)
| [wstools] at org.apache.tools.ant.Task.perform(Task.java:348)
| [wstools] at org.apache.tools.ant.Target.execute(Target.java:357)
| [wstools] at org.apache.tools.ant.Target.performTasks(Target.java:385)
| [wstools] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
| a:1329)
| [wstools] at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
|
| [wstools] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
| faultExecutor.java:41)
| [wstools] at org.apache.tools.ant.Project.executeTargets(Project.java:1181
| )
| [wstools] at org.apache.tools.ant.Main.runBuild(Main.java:698)
| [wstools] at org.apache.tools.ant.Main.startAnt(Main.java:199)
| [wstools] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
| [wstools] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
|
| BUILD FAILED
| c:\ws-test\EnNet\ws_client_build.xml:102: Error running jbossws:
|
| Total time: 7 seconds
|
--------------------------------------------------------------------------
Configuration file (wstolls-config.xml)
|
| <?xml version="1.0" encoding="UTF-8"?>
| <configuration
| xmlns="http://www.jboss.org/jbossws-tools"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation=
| "http://www.jboss.org/jbossws-tools
| http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
| <wsdl-java file="http://192.168.0.160:8090/wsdl/IEnNET?wsdl">
| <!--
| <mapping file="jaxrpc-mapping.xml" />
| -->
| </wsdl-java>
| </configuration>
|
--------------------------------------------------------------------------------------
The same error happen when I use wstools.bat, look below..
| C:\WS-Test\EnNet>c:\dev\jboss\jboss-4.0.4.GA\bin\wstools -config wstools-config.
| xml -dest dest
| ========================================================================="
| .
| WSTools Environment
| .
| JBOSS_HOME: c:\DEV\JBoss\jboss-4.0.4.GA\bin\\..
| .
| JAVA: C:\Program Files\Java\jdk1.5.0_13\bin\java
| .
| JAVA_OPTS:
| .
| ========================================================================="
| .
| Exception in thread "main" java.lang.NullPointerException
| at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:284)
| at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:333)
| at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:355)
| at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:174)
| at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(Too
| lsHelper.java:326)
| at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
| at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
| at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
|
Can someone help on this issue please?
Thanks,
Surafel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133746#4133746
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133746
16 years, 10 months