[JBoss Web Services Users] - Cannot call JBoss web service through intermediary (soapUI).
by Oberiko
Hello,
I'm having a bit of an odd problem. I have deployed a dummy JbossWS web service onto JBoss AS 5.0.1 and developed a client for it using Axis 1.5. This works fine.
I then loaded up soapUI and pointed it to my web service and ran the test suite. Again, everything worked.
However, when I attempt to connect through a soapUI mock service, I get an "Missing operation for soapAction [http://hello.ws.com/HelloWorld/helloRequest] and body element [{http://hello.ws.com/}hello] with SOAP Version [SOAP 1.1]" error.
The WSDL's for the two web services are identical except that the one deployed by soapUI prefixes with "<?xml version="1.0" encoding="UTF-8" ?>" while the version created by JBoss has no XMLDecl
element.
I'm not sure if this is a JBossWS, Axis or SoapUI, but I figured I'd try here first. Any one encountered anthing like this before?
soapUI error:
| org.apache.axis2.AxisFault: Missing operation for soapAction [http://hello.ws.com/HelloWorld/helloRequest] and body element [{http://hello.ws.com/}hello] with SOAP Version [SOAP 1.1]
| at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:517)
| at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
| at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
| at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
| at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
| at com.ws.hello.HelloWorldServiceStub.hello(HelloWorldServiceStub.java:181)
| at com.test.TestHelloWorld.testHello(TestHelloWorld.java:27)
| 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.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
| at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
| at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
| at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
| at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
| at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
| at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
| at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
| at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
| at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
| at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
| at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
| at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
| at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
| at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
| at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
|
The web service:
| package com.ws.hello;
|
| import javax.jws.WebService;
|
|
| @WebService
| public class HelloWorld {
| public String hello(String name) {
| return "Hello "+name;
| }
| }
|
The client:
| package com.test;
|
| import java.io.IOException;
| import java.rmi.RemoteException;
|
| import org.junit.BeforeClass;
| import org.junit.Test;
|
| import com.ws.hello.HelloWorldServiceStub;
| import com.ws.hello.HelloWorldServiceStub.*;
|
| public class TestHelloWorld {
| private static HelloWorldServiceStub stub;
|
| @BeforeClass
| public static void initialize() throws IOException{
| stub = new HelloWorldServiceStub();
| }
|
| @Test
| public void testHello() throws RemoteException{
| Hello h = new Hello();
| h.setArg0("World");
| HelloE e = new HelloE();
| e.setHello(h);
|
| HelloResponse r = stub.hello(e).getHelloResponse();
| System.out.println(r.get_return());
| }
| }
|
The Axis log (long):
| - mapActionToOperation: Mapping Action to Operation: action: anonRobustOp; operation: org.apache.axis2.description.RobustOutOnlyAxisOperation@1f1fba0named: {http://ws.apache.org/namespaces/axis2}anonRobustOp
| - mapActionToOperation: Mapping Action to Operation: action: urn:anonRobustOp; operation: org.apache.axis2.description.RobustOutOnlyAxisOperation@1f1fba0named: {http://ws.apache.org/namespaces/axis2}anonRobustOp
| - Client-defined operation name matches default operation name. this may cause interoperability issues. Name is: {http://ws.apache.org/namespaces/axis2}anonOutonlyOp
| - mapActionToOperation: Mapping Action to Operation: action: anonOutonlyOp; operation: org.apache.axis2.description.OutOnlyAxisOperation@13c5982named: {http://ws.apache.org/namespaces/axis2}anonOutonlyOp
| - mapActionToOperation: Mapping Action to Operation: action: urn:anonOutonlyOp; operation: org.apache.axis2.description.OutOnlyAxisOperation@13c5982named: {http://ws.apache.org/namespaces/axis2}anonOutonlyOp
| - mapActionToOperation: Mapping Action to Operation: action: anonOutInOp; operation: org.apache.axis2.description.OutInAxisOperation@1186fabnamed: {http://ws.apache.org/namespaces/axis2}anonOutInOp
| - mapActionToOperation: Mapping Action to Operation: action: urn:anonOutInOp; operation: org.apache.axis2.description.OutInAxisOperation@1186fabnamed: {http://ws.apache.org/namespaces/axis2}anonOutInOp
| - mapActionToOperation: Mapping Action to Operation: action: hello; operation: org.apache.axis2.description.OutInAxisOperation@14b7453named: {http://hello.ws.com/}hello
| - mapActionToOperation: Mapping Action to Operation: action: urn:hello; operation: org.apache.axis2.description.OutInAxisOperation@14b7453named: {http://hello.ws.com/}hello
| - Trying to find [org/apache/axis2/deployment/axis2_default.xml] using sun.misc.Launcher$AppClassLoader@133056f class loader.
| - About to create XMLInputFactory implementation with classloader=sun.misc.Launcher$AppClassLoader@133056f
| - The classloader for javax.xml.stream.XMLInputFactory is: sun.misc.Launcher$AppClassLoader@133056f
| - Created XMLInputFactory = class com.ctc.wstx.stax.WstxInputFactory with classloader=sun.misc.Launcher$AppClassLoader@133056f
| - Size of XMLInputFactory map =1
| - isNetworkDetached =false
| - XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader
| - Builder is already complete.
| - Handler RequestURIBasedDispatcher added to Phase Transport
| - Handler SOAPActionBasedDispatcher added to Phase Transport
| - Handler AddressingBasedDispatcher added to Phase Addressing
| - Handler RequestURIBasedDispatcher added to Phase Dispatch
| - Handler SOAPActionBasedDispatcher added to Phase Dispatch
| - Handler RequestURIOperationDispatcher added to Phase Dispatch
| - Handler SOAPMessageBodyBasedDispatcher added to Phase Dispatch
| - Handler HTTPLocationBasedDispatcher added to Phase Dispatch
| - Handler AddressingBasedDispatcher added to Phase Addressing
| - Handler RequestURIBasedDispatcher added to Phase Dispatch
| - Handler SOAPActionBasedDispatcher added to Phase Dispatch
| - Handler RequestURIOperationDispatcher added to Phase Dispatch
| - Handler SOAPMessageBodyBasedDispatcher added to Phase Dispatch
| - Handler HTTPLocationBasedDispatcher added to Phase Dispatch
| - Deploying module from classpath at 'file:/D:/myName/workspaces/webServices/dummy_ws_client/lib/mex-1.5.jar'
| - XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader
| - Builder is already complete.
| - getBundle(org.apache.axis2,org.apache.axis2.i18n,resource,null,...)
| - loadBundle: Ignoring MissingResourceException: Can't find bundle for base name org.apache.axis2.resource, locale en_CA
| - Created org.apache.axis2.i18n.resource, linked to parent null
| - getBundle(org.apache.axis2,org.apache.axis2.i18n,resource,null,...)
| - org.apache.axis2.i18n.resource::handleGetObject(addingnewmodule)
| - Adding new module
| - org.apache.axis2.i18n.resource::handleGetObject(deployingmodule)
| - Deploying module: metadataExchange-1.5 - file:/D:/myName/workspaces/webServices/dummy_ws_client/lib/mex-1.5.jar
| - Adding service to allServices map: [HelloWorldService1259962123791_1]
| - Adding service to allEndpoints map: (HelloWorldService1259962123791_1,HelloWorldService1259962123791_1HttpSoap11Endpoint)
| - Adding service to allEndpoints map: (HelloWorldService1259962123791_1,HelloWorldService1259962123791_1HttpEndpoint)
| - Adding service to allEndpoints map: (HelloWorldService1259962123791_1,HelloWorldService1259962123791_1HttpSoap12Endpoint)
| - After adding to allEndpoints map, size is 3
| - Get operation for {http://hello.ws.com/}hello
| - Found axis operation: org.apache.axis2.description.OutInAxisOperation@14b7453
| - registerOperationContext (false): org.apache.axis2.context.OperationContext@bfc8e0 with key: urn:uuid:99D878B4569EACD35E1259962124262
| - Entry: OutInAxisOperationClient::execute, true
| - OutInAxisOperationClient: useAsyncOption null
| - registerOperationContext (false): org.apache.axis2.context.OperationContext@bfc8e0 with key: urn:uuid:99D878B4569EACD35E1259962124262
| - msgContext: [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] action: http://hello.ws.com/HelloWorld/helloRequest
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Checking pre-condition for Phase "OperationOutPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Invoking phase "OperationOutPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Checking post-conditions for phase "OperationOutPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Checking pre-condition for Phase "RMPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Invoking phase "RMPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Checking post-conditions for phase "RMPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Checking pre-condition for Phase "PolicyDetermination"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Invoking phase "PolicyDetermination"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Checking post-conditions for phase "PolicyDetermination"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Checking pre-condition for Phase "MessageOut"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Invoking phase "MessageOut"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Checking post-conditions for phase "MessageOut"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Checking pre-condition for Phase "Security"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Invoking phase "Security"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Checking post-conditions for phase "Security"
| - Set parameter http.useragent = Jakarta Commons-HttpClient/3.1
| - Set parameter http.protocol.version = HTTP/1.1
| - Set parameter http.connection-manager.class = class org.apache.commons.httpclient.SimpleHttpConnectionManager
| - Set parameter http.protocol.cookie-policy = default
| - Set parameter http.protocol.element-charset = US-ASCII
| - Set parameter http.protocol.content-charset = ISO-8859-1
| - Set parameter http.method.retry-handler = org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@1b9240e
| - Set parameter http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z]
| - Java version: 1.5.0_14
| - Java vendor: Sun Microsystems Inc.
| - Java class path: D:\myName\workspaces\webServices\dummy_ws_client\bin;D:\myName\workspaces\webServices\dummy_ws_client\properties;D:\myName\workspaces\webServices\dummy_ws_client\lib\activation-1.1.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axiom-api-1.2.8.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axiom-dom-1.2.8.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axiom-impl-1.2.8.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-adb-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-adb-codegen-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-ant-plugin-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-clustering-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-codegen-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-corba-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-fastinfoset-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-java2wsdl-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-jaxbri-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-jaxws-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-jibx-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-json-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-kernel-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-metadata-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-mtompolicy-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-saaj-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-spring-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-transport-http-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-transport-local-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\axis2-xmlbeans-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\bcel-5.1.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\commons-codec-1.3.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\commons-fileupload-1.2.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\commons-httpclient-3.1.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\commons-io-1.4.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\commons-lang-2.3.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\commons-logging-1.1.1.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\geronimo-annotation_1.0_spec-1.1.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\geronimo-jaxws_2.1_spec-1.0.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\geronimo-saaj_1.3_spec-1.0.1.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\geronimo-stax-api_1.0_spec-1.0.1.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\geronimo-ws-metadata_2.0_spec-1.1.2.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\httpcore-4.0.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\jalopy-1.5rc3.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\jaxb-api-2.1.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\jaxb-impl-2.1.7.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\jaxb-xjc-2.1.7.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\jaxen-1.1.1.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\jettison-1.0-RC2.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\jibx-bind-1.2.1.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\jibx-run-1.2.1.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\log4j-1.2.15.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\mail-1.4.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\mex-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\neethi-2.0.4.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\smack-3.0.4.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\smackx-3.0.4.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\soapmonitor-1.5.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\woden-api-1.0M8.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\woden-impl-dom-1.0M8.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\wsdl4j-1.6.2.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\wstx-asl-3.2.4.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\xalan-2.7.0.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\xercesImpl-2.6.2.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\xml-apis-1.3.02.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\xml-resolver-1.2.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\xmlbeans-2.3.0.jar;D:\myName\workspaces\webServices\dummy_ws_client\lib\XmlSchema-1.4.3.jar;D:\myName\opt\eclipse-jee-galileo-SR1-win32\eclipse\plugins\org.junit4_4.5.0.v20090824\junit.jar;D:\myName\opt\eclipse-jee-galileo-SR1-win32\eclipse\plugins\org.hamcrest.core_1.1.0.v20090501071000.jar;/D:/myName/opt/eclipse-jee-galileo-SR1-win32/eclipse/configuration/org.eclipse.osgi/bundles/310/1/.cp/;/D:/myName/opt/eclipse-jee-galileo-SR1-win32/eclipse/configuration/org.eclipse.osgi/bundles/308/1/.cp/;/D:/myName/opt/eclipse-jee-galileo-SR1-win32/eclipse/configuration/org.eclipse.osgi/bundles/309/1/.cp/
| - Operating system name: Windows XP
| - Operating system architecture: x86
| - Operating system version: 5.1
| - SUN 1.5: SUN (DSA key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom; X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX CertPathBuilder; LDAP, Collection CertStores)
| - SunRsaSign 1.5: Sun RSA signature provider
| - SunJSSE 1.5: Sun JSSE provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
| - SunJCE 1.5: SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC)
| - SunJGSS 1.0: Sun (Kerberos v5)
| - SunSASL 1.5: Sun SASL provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, EXTERNAL, PLAIN, CRAM-MD5; server mechanisms for: DIGEST-MD5, GSSAPI, CRAM-MD5)
| - Set parameter http.connection.timeout = 30000
| - Set parameter http.socket.timeout = 30000
| - Set parameter http.socket.timeout = 30000
| - Start getContentType: OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false isSOAP11=true charSetEncoding=UTF-8 xmlVersion=null contentType=null ignoreXmlDeclaration=false autoCloseWriter=false actionProperty=null optimizedThreshold=0]
| - getContentType= {text/xml} OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false isSOAP11=true charSetEncoding=UTF-8 xmlVersion=null contentType=text/xml ignoreXmlDeclaration=false autoCloseWriter=false actionProperty=null optimizedThreshold=0]
| - contentType from the OMOutputFormat =text/xml
| - contentType returned =text/xml; charset=UTF-8
| - HttpConnectionManager.getConnection: config = HostConfiguration[host=http://myName1A:8088], timeout = 0
| - Allocating new connection, hostConfig=HostConfiguration[host=http://myName1A:8088]
| - Open connection to myName1A:8088
| - >> "POST /mockHelloWorldBinding HTTP/1.1[\r][\n]"
| - Adding Host request header
| - >> "Content-Type: text/xml; charset=UTF-8[\r][\n]"
| - >> "SOAPAction: "http://hello.ws.com/HelloWorld/helloRequest"[\r][\n]"
| - >> "User-Agent: Axis2[\r][\n]"
| - >> "Host: myName1A:8088[\r][\n]"
| - >> "Transfer-Encoding: chunked[\r][\n]"
| - >> "[\r][\n]"
| - start writeTo()
| - preserve=false
| - isOptimized=false
| - isDoingSWA=false
| - MTOM optimized Threshold value =0
| - OutputStream =class org.apache.commons.httpclient.ChunkedOutputStream
| - OMFormat = OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false isSOAP11=true charSetEncoding=UTF-8 xmlVersion=null contentType=text/xml ignoreXmlDeclaration=false autoCloseWriter=false actionProperty=null optimizedThreshold=0]
| - About to create XMLOutputFactory implementation with classloader=sun.misc.Launcher$AppClassLoader@133056f
| - The classloader for javax.xml.stream.XMLOutputFactory is: sun.misc.Launcher$AppClassLoader@133056f
| - Created XMLOutputFactory = class com.ctc.wstx.stax.WstxOutputFactory for classloader=sun.misc.Launcher$AppClassLoader@133056f
| - Size of XMLOutputFactory map =1
| - XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
| - serialize {http://hello.ws.com/}hello to XMLStreamWriter
| - Calling MTOMXMLStreamWriter.flush
| - Calling MTOMXMLStreamWriter.flush
| - end writeTo()
| - >> "ec[\r][\n]"
| - >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:hello xmlns:ns1="http://hello.ws.com/"><arg0>World</arg0></ns1:hello></soapenv:Body></soapenv:Envelope>"
| - >> "[\r][\n]"
| - >> "0"
| - >> "[\r][\n]"
| - >> "[\r][\n]"
| - Request body sent
| - << "HTTP/1.1 500 Internal Server Error[\r][\n]"
| - << "HTTP/1.1 500 Internal Server Error[\r][\n]"
| - << "Content-Type: text/html; charset=iso-8859-1[\r][\n]"
| - << "Transfer-Encoding: chunked[\r][\n]"
| - << "Server: Jetty(6.1.x)[\r][\n]"
| - << "[\r][\n]"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Invoking flowComplete() in Phase "Security"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Invoking flowComplete() in Phase "MessageOut"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Invoking flowComplete() in Phase "PolicyDetermination"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Invoking flowComplete() in Phase "RMPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124263] Invoking flowComplete() in Phase "OperationOutPhase"
| - Could not find a Builder for type (text/html). Using SOAP.
| - << "1"
| - << "9"
| - << "3"
| - << "[\r]"
| - << "[\n]"
| - << "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">[\r][\n]"
| - << " <soapenv:Body>[\r][\n]"
| - << " <soapenv:Fault>[\r][\n]"
| - << " <faultcode>Server</faultcode>[\r][\n]"
| - << " <faultstring>Missing operation for soapAction [http://hello.ws.com/HelloWorld/helloRequest] and body element [{http://hello.ws.com/}hello] with SOAP Version [SOAP 1.1]</faultstring>[\r][\n]"
| - << " </soapenv:Fault>[\r][\n]"
| - << " </soapenv:Body>[\r][\n]"
| - << "</soapenv:Envelope>"
| - XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader
| - Starting to process SOAP 1.1 message
| - Build the OMElement Envelope by the StaxSOAPModelBuilder
| - Build the OMElement Body by the StaxSOAPModelBuilder
| - Build the OMElement Fault by the StaxSOAPModelBuilder
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Checking pre-condition for Phase "Addressing"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking phase "Addressing"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking Handler 'AddressingBasedDispatcher' in Phase 'Addressing'
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Checking post-conditions for phase "Addressing"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Checking pre-condition for Phase "Security"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking phase "Security"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Checking post-conditions for phase "Security"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Checking pre-condition for Phase "PreDispatch"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking phase "PreDispatch"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Checking post-conditions for phase "PreDispatch"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Checking pre-condition for Phase "Dispatch"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking phase "Dispatch"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking Handler 'RequestURIBasedDispatcher' in Phase 'Dispatch'
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking Handler 'SOAPActionBasedDispatcher' in Phase 'Dispatch'
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking Handler 'RequestURIOperationDispatcher' in Phase 'Dispatch'
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking Handler 'HTTPLocationBasedDispatcher' in Phase 'Dispatch'
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Checking post-conditions for phase "Dispatch"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Checking pre-condition for Phase "RMPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking phase "RMPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Checking post-conditions for phase "RMPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Checking pre-condition for Phase "OperationInPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking phase "OperationInPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Checking post-conditions for phase "OperationInPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking flowComplete() in Phase "OperationInPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking flowComplete() in Phase "RMPhase"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking flowComplete() in Phase "Dispatch"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking flowComplete() for Handler 'HTTPLocationBasedDispatcher' in Phase 'Dispatch'
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking flowComplete() for Handler 'SOAPMessageBodyBasedDispatcher' in Phase 'Dispatch'
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking flowComplete() for Handler 'RequestURIOperationDispatcher' in Phase 'Dispatch'
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking flowComplete() for Handler 'SOAPActionBasedDispatcher' in Phase 'Dispatch'
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking flowComplete() for Handler 'RequestURIBasedDispatcher' in Phase 'Dispatch'
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking flowComplete() in Phase "PreDispatch"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking flowComplete() in Phase "Security"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking flowComplete() in Phase "Addressing"
| - [MessageContext: logID=urn:uuid:99D878B4569EACD35E1259962124494] Invoking flowComplete() for Handler 'AddressingBasedDispatcher' in Phase 'Addressing'
| - Build the OMElement faultcode by the StaxSOAPModelBuilder
| - Build the OMElement faultstring by the StaxSOAPModelBuilder
| - << "[\r]"
| - << "[\n]"
| - << "0"
| - << "[\r]"
| - << "[\n]"
| - << "[\r]"
| - << "[\n]"
| - << "[\r][\n]"
| - Resorting to protocol version default close connection policy
| - Should NOT close connection, using HTTP/1.1
| - Releasing connection back to connection manager.
| - Freeing connection, hostConfig=HostConfiguration[host=http://myName1A:8088]
| - Adding connection at: 1259962124492
| - Notifying no-one, there are no waiting threads
|
The WSDL:
| <?xml version="1.0" encoding="UTF-8"?>
| <definitions name="HelloWorldService" targetNamespace="http://hello.ws.com/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://hello.ws.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
| <types>
| <xs:schema targetNamespace="http://hello.ws.com/" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
| <xs:element name="hello" type="tns:hello"/>
| <xs:element name="helloResponse" type="tns:helloResponse"/>
| <xs:complexType name="hello">
| <xs:sequence>
| <xs:element minOccurs="0" name="arg0" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| <xs:complexType name="helloResponse">
| <xs:sequence>
| <xs:element minOccurs="0" name="return" type="xs:string"/>
| </xs:sequence>
| </xs:complexType>
| </xs:schema>
| </types>
| <message name="HelloWorld_helloResponse">
| <part name="helloResponse" element="tns:helloResponse">
| </part>
| </message>
| <message name="HelloWorld_hello">
| <part name="hello" element="tns:hello">
| </part>
| </message>
| <portType name="HelloWorld">
| <operation name="hello" parameterOrder="hello">
| <input message="tns:HelloWorld_hello">
| </input>
| <output message="tns:HelloWorld_helloResponse">
| </output>
| </operation>
| </portType>
| <binding name="HelloWorldBinding" type="tns:HelloWorld">
| <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
| <operation name="hello">
| <soap:operation soapAction=""/>
| <input>
| <soap:body use="literal"/>
| </input>
| <output>
| <soap:body use="literal"/>
| </output>
| </operation>
| </binding>
| <service name="HelloWorldService">
| <port name="HelloWorldPort" binding="tns:HelloWorldBinding">
| <soap:address location="http://myName1A:8088/mockHelloWorldBinding"/>
| </port>
| </service>
| </definitions>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269111#4269111
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269111
15 years
[JBoss Web Services Users] - Error with registering a RESTeasy Providerfactory
by damienmc3
Hi,
I get the following error:
java.lang.ClassCastException: com.sun.jersey.server.impl.provider.RuntimeDelegateImpl cannot be cast to org.jboss.resteasy.spi.ResteasyProviderFactory
| at org.jboss.resteasy.spi.ResteasyProviderFactory.getInstance(ResteasyProviderFactory.java:330)
| at de.webshop.test.util.RegisterResteasy.register(RegisterResteasy.java:11)
| at de.webshop.test.BestellverwaltungTest.setup(BestellverwaltungTest.java:56)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:617)
| at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
| at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
| at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
| at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
| at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
| at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
| at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
After I run this code:
package de.webshop.test.util;
|
| import org.jboss.resteasy.plugins.providers.RegisterBuiltin;
| import org.jboss.resteasy.spi.ResteasyProviderFactory;
|
| public abstract class RegisterResteasy {
| private static boolean registered = false;
|
| public static void register() {
| if (!registered) {
| ResteasyProviderFactory resteasyProviderFactory = ResteasyProviderFactory.getInstance();
| RegisterBuiltin.register( resteasyProviderFactory );
| registered = true;
| }
| }
| }
What can be the reason ? Thanks for help in advance.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269030#4269030
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269030
15 years, 1 month
[JBoss Web Services Users] - web service called from a portlet
by anteo
Hi
i have writen a simple webservice with axis2 under eclipse that calculates a random number and have deployed it on jboss.I can also see the wsdl description of the web service in the browser.
I have also written a normal portlet that has a text field and a tree. when a node in the tree is clicked the method nodeSelected in the treeBean is called which calls the webservice and saves the value in a variable that is used from the textfield.so the new value should be shown in the text field. but this doesn't happen
The portlet is beeing deployed so i can create an instance of it and also shown in the portal but when i click on any node of the tree a lot of errors shows up. I tried it on tomcat(just the webservice and the webapplication not as portlet) and everything works fine, with no errors and the response of the webservice is beeing showed in the text field. I have jboss-portal-2.7.2 installed.
the portlet works fine if i don't have webservices
The errors i get when deploying are:
| 17:22:26,968 INFO [TomcatDeployer] deploy, ctxPath=/ServiceMitarbeiterPlus_IceF
| aces(Portlet)_WebService, warUrl=.../tmp/deploy/tmp9935ServiceMitarbeiterPlus_Ic
| eFaces(Portlet)_WebService-exp.war/
| 17:22:39,187 INFO [STDOUT] [INFO]
| ICEsoft Technologies, Inc.
| ICEfaces 1.8.2
| Build number: 7
| Revision: 19321
| 17:22:40,359 INFO [STDOUT] [INFO] ViewRootStateManagerImpl constructed with Del
| egate: com.sun.faces.application.StateManagerImpl@18f2af0
| 17:22:46,218 INFO [STDOUT] [INFO] Clustering has been disabled
| 17:23:08,453 INFO [STDOUT] [INFO] Deploying module: addressing-1.5.1 - file:/C:
| /Programme/JBoss Application Server/jboss-portal-2.7.2/server/default/./tmp/depl
| oy/tmp9935ServiceMitarbeiterPlus_IceFaces(Portlet)_WebService-exp.war/WEB-INF/mo
| dules/addressing-1.5.1.mar
| 17:23:08,609 INFO [STDOUT] [INFO] Deploying module: metadataExchange-1.5.1 - fi
| le:/C:/Programme/JBoss Application Server/jboss-portal-2.7.2/server/default/./tm
| p/deploy/tmp9935ServiceMitarbeiterPlus_IceFaces(Portlet)_WebService-exp.war/WEB-
| INF/modules/mex-1.5.1.mar
| 17:23:08,640 INFO [STDOUT] [INFO] Deploying module: mtompolicy-1.5.1 - file:/C:
| /Programme/JBoss Application Server/jboss-portal-2.7.2/server/default/./tmp/depl
| oy/tmp9935ServiceMitarbeiterPlus_IceFaces(Portlet)_WebService-exp.war/WEB-INF/mo
| dules/mtompolicy-1.5.1.mar
| 17:23:08,687 INFO [STDOUT] [INFO] Deploying module: ping-1.5.1 - file:/C:/Progr
| amme/JBoss Application Server/jboss-portal-2.7.2/server/default/./tmp/deploy/tmp
| 9935ServiceMitarbeiterPlus_IceFaces(Portlet)_WebService-exp.war/WEB-INF/modules/
| ping-1.5.1.mar
| 17:23:08,765 INFO [STDOUT] [INFO] Deploying module: script-1.5.1 - file:/C:/Pro
| gramme/JBoss Application Server/jboss-portal-2.7.2/server/default/./tmp/deploy/t
| mp9935ServiceMitarbeiterPlus_IceFaces(Portlet)_WebService-exp.war/WEB-INF/module
| s/scripting-1.5.1.mar
| 17:23:08,796 INFO [STDOUT] [INFO] Deploying module: soapmonitor-1.5.1 - file:/C
| :/Programme/JBoss Application Server/jboss-portal-2.7.2/server/default/./tmp/dep
| loy/tmp9935ServiceMitarbeiterPlus_IceFaces(Portlet)_WebService-exp.war/WEB-INF/m
| odules/soapmonitor-1.5.1.mar
| 17:23:08,937 INFO [STDOUT] [WARN] Exception extracting jars into temporary dire
| ctory : java.io.FileNotFoundException: C:\Programme\JBoss Application Server\jbo
| ss-portal-2.7.2\server\default\.\tmp\deploy\tmp9935ServiceMitarbeiterPlus_IceFac
| es(Portlet)_WebService-exp.war\WEB-INF (Zugriff verweigert) : switching to alter
| nate class loading mechanism
| 17:23:08,953 INFO [STDOUT] [INFO] Deploying Exception Occured with java.io.File
| NotFoundException: C:\Programme\JBoss Application Server\jboss-portal-2.7.2\serv
| er\default\.\tmp\deploy\tmp9935ServiceMitarbeiterPlus_IceFaces(Portlet)_WebServi
| ce-exp.war\WEB-INF (Zugriff verweigert)
| java.lang.RuntimeException: java.io.FileNotFoundException: C:\Programme\JBoss Ap
| plication Server\jboss-portal-2.7.2\server\default\.\tmp\deploy\tmp9935ServiceMi
| tarbeiterPlus_IceFaces(Portlet)_WebService-exp.war\WEB-INF (Zugriff verweigert)
| at org.apache.axis2.deployment.util.Utils.findLibJars(Utils.java:829)
| at org.apache.axis2.deployment.util.Utils.createClassLoader(Utils.java:8
| 82)
| at org.apache.axis2.jaxws.framework.JAXWSDeployer.deployServicesInWARCla
| ssPath(JAXWSDeployer.java:100)
| at org.apache.axis2.jaxws.framework.JAXWSDeployer.init(JAXWSDeployer.jav
| a:80)
| at org.apache.axis2.deployment.DeploymentEngine.initializeDeployers(Depl
| oymentEngine.java:989)
| at org.apache.axis2.deployment.DeploymentEngine.setConfigContext(Deploym
| entEngine.java:981)
| at org.apache.axis2.deployment.WarBasedAxisConfigurator.setConfigContext
| (WarBasedAxisConfigurator.java:350)
| at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
| ionContext(ConfigurationContextFactory.java:89)
| at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisSer
| vlet.java:525)
| at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443
| )
| at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:5
| 6)
| at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
| java:1161)
| at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:98
| 1)
| at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
| t.java:4071)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
| 375)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
| .java:790)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
| 0)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
|
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.j
| ava:296)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:1
| 64)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:53
| 12)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.j
| ava:296)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:1
| 64)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(Tom
| catDeployer.java:301)
| at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeplo
| yer.java:104)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
|
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
| upport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
| eanSupport.java:245)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.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.system.ServiceController$ServiceProxy.invoke(ServiceControl
| ler.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy201.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:46
| 6)
| at sun.reflect.GeneratedMethodAccessor105.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| or.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| BeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
| .java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(Intercepto
| rServiceMBeanSupport.java:238)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt
| erceptor.java:87)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
| start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
| ptor.java:95)
| 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 $Proxy202.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| or.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| BeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
| java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
| tScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
| canner.java:634)
| at org.jboss.deployment.scan
| 17:23:09,062 INFO [STDOUT] ner.AbstractDeploymentScanner$ScannerThread.doScan(A
| bstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
| run(AbstractDeploymentScanner.java:225)
| Caused by: java.io.FileNotFoundException: C:\Programme\JBoss Application Server\
| jboss-portal-2.7.2\server\default\.\tmp\deploy\tmp9935ServiceMitarbeiterPlus_Ice
| Faces(Portlet)_WebService-exp.war\WEB-INF (Zugriff verweigert)
| at java.io.FileInputStream.open(Native Method)
| at java.io.FileInputStream.<init>(FileInputStream.java:106)
| at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLC
| onnection.java:105)
| at java.net.URL.openStream(URL.java:1009)
| at org.apache.axis2.deployment.util.Utils.findLibJars(Utils.java:811)
| ... 101 more
| 17:23:09,296 INFO [STDOUT] [INFO] Deploying Web service: RandomNumber - file:/C
| :/Programme/JBoss Application Server/jboss-portal-2.7.2/server/default/./tmp/dep
| loy/tmp9935ServiceMitarbeiterPlus_IceFaces(Portlet)_WebService-exp.war/WEB-INF/s
| ervices/RandomNumber/
| 17:23:09,406 INFO [STDOUT] [INFO] Deploying Web service: version.aar - file:/C:
| /Programme/JBoss Application Server/jboss-portal-2.7.2/server/default/./tmp/depl
| oy/tmp9935ServiceMitarbeiterPlus_IceFaces(Portlet)_WebService-exp.war/WEB-INF/se
| rvices/version.aar
|
and the errors i get when i click on any tree node are:
| HTTP Status 500 -
|
| type Exception report
|
| message
|
| description The server encountered an internal error () that prevented it from fulfilling this request.
|
| exception
|
| java.lang.RuntimeException: wrapped Exception: java.lang.NullPointerException
| com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:156)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| java.lang.NullPointerException
| client.ServiceTest.getWebServiceValue(ServiceTest.java:26)
| basic.TreeBean.nodeSelected(TreeBean.java:249)
| sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| java.lang.reflect.Method.invoke(Method.java:597)
| org.apache.el.parser.AstValue.invoke(AstValue.java:131)
| org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
| javax.faces.component.UICommand.broadcast(UICommand.java:380)
| com.icesoft.faces.component.tree.Tree.broadcast(Tree.java:1075)
| javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
| javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:755)
| com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
| com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
| com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
| com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
| com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132)
| com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74)
| com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31)
| com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
| com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
| com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
| com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53)
| com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26)
| com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
| com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
|
I am searching for three days now for the problem without finding any solution. Can anyone please help me in this?
Thanks a lot
Teo
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268841#4268841
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268841
15 years, 1 month
[JBoss Web Services Users] - Failed to load org.jboss.wsf.spi.invocation.WebServiceContex
by pa12399
Hi
I updated the WS native stack on JBoss 4.2.3 with jbossws-native-3.1.1GA. I am trying to deploy my webservices and I am getting all exceptions in server.log
2009-12-02 13:33:40,372 DEBUG [org.jboss.wsf.framework.DefaultSPIProvider] provide SPI 'class org.jboss.wsf.spi.management.ServerConfigFactory'
2009-12-02 13:33:40,373 DEBUG [org.jboss.wsf.framework.DefaultSPIProvider] class org.jboss.wsf.spi.management.ServerConfigFactory Implementation: org.jboss.wsf.framework.management.ServerConfigFactoryImpl@4d4d5e
2009-12-02 13:33:40,373 DEBUG [org.jboss.wsf.stack.jbws.WSDLFilePublisher] Publish WSDL file: file:/opt/vzw/webserver/jboss-4.2.3.GA/server/provapi-ws/tmp/jbossws/OnstarServiceRequestsService403.wsdl
2009-12-02 13:33:40,431 INFO [org.jboss.wsf.stack.jbws.WSDLFilePublisher] WSDL published to: file:/opt/vzw/webserver/jboss-4.2.3.GA/server/provapi-ws/data/wsdl/OnstarWebService.war/OnstarServiceRequestsService403.wsdl
2009-12-02 13:33:40,448 DEBUG [org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl] ServiceEndpointInvokerDeploymentAspect:Create
2009-12-02 13:33:40,467 DEBUG [org.jboss.wsf.framework.DefaultSPIProvider] provide SPI 'class org.jboss.wsf.spi.invocation.WebServiceContextFactory'
2009-12-02 13:33:40,472 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/opt/vzw/webserver/jboss-4.2.3.GA/server/provapi-ws/deploy/OnstarWebService.war
java.lang.IllegalStateException: Failed to load org.jboss.wsf.spi.invocation.WebServiceContextFactory: org.jboss.wsf.container.jboss42.WebServiceContextFactoryImpl
at org.jboss.wsf.spi.util.ServiceLoader.loadFromServices(ServiceLoader.java:97)
at org.jboss.wsf.spi.util.ServiceLoader.loadService(ServiceLoader.java:59)
at org.jboss.wsf.framework.DefaultSPIProvider.loadService(DefaultSPIProvider.java:155)
at org.jboss.wsf.framework.DefaultSPIProvider.getSPI(DefaultSPIProvider.java:140)
at org.jboss.ws.core.server.ServiceEndpointInvoker.(ServiceEndpointInvoker.java:101)
at org.jboss.wsf.stack.jbws.ServiceEndpointInvokerDeploymentAspect.create(ServiceEndpointInvokerDeploymentAspect.java:56)
at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
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 $Proxy41.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268617#4268617
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268617
15 years, 1 month