[JBossWS] - How to access webservice
by majeric
Hi,
I'm new at webservices and have been searching for solution but couldn't find this specific problem anywhere. I'm pretty sure that I'm not the first one with this problem, but anyway.
I have a webservice that works fine on my local machine. I access to it with URL: http://127.0.0.1:8081/taskws/TaskService?wsdl
Web services looks like this:
@Stateless
| @WebContext(contextRoot="/taskws")
| @WebService(name = "TaskService", serviceName = "TaskService")
| public class TaskService implements TaskServiceRemote {
| //...
| }
But problem appears when I deploy on my server. I can't acces my web services there. I have an application instaled like this:
in application.xml:
<context-root>/<context-root>
in jboss-web:
<jboss-web>
| ...
| <virtual-host>test</virtual-host>
| <context-root>/</context-root>
| </jboss-web>
and in server.xml: a have a host:
<Host name="test" autoDeploy="false" deployOnStartup="false" deployXML="false">
| <Alias>test.domain.com</Alias>
| ...
| </Host>
Jboss runs on localhost and I access to jboss via apache mod_jk.
How do I have to configure to have access to this service.
application works fine if I access test.domain.com.
I appriciate your help.
Uros
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186166#4186166
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186166
16 years, 6 months
[JBoss jBPM] - I need you helpï¼Â
by cumtyjp
hello,everyone!
I have met many problems.
jboss:jboss-4.2.3.GA
jbpm:jbpm-bpel-1.1.1
java version "1.6.0_05"
jwsdp-2.0
when I use the command "ant trip" to run the hello example , the result is right. however, I use the same way to run the trip example, it's wrong. how to resolve it, I need your help!
the log isï¼Â
test:
| [junit] Running org.jbpm.bpel.tutorial.trip.TravelAgentTest
| [junit] javax.xml.rpc.soap.SOAPFaultException:
| java.lang.NullPointerException)
| [junit] javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerExce
| ption)
| [junit] javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerExce
| ption)
| [junit] Tests run: 3, Failures: 0, Errors: 3, Time elapsed: 50.078 sec
| [junit] Test org.jbpm.bpel.tutorial.trip.TravelAgentTest FAILED
|
the log is
<testcase classname="org.jbpm.bpel.tutorial.trip.TravelAgentTest" name="testPurchaseTrip" time="10.203">
| <error message="Call invocation failed with code [Server] because of: java.lang.NullPointerException; nested exception is:
| javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException" type="java.rmi.RemoteException">java.rmi.RemoteException: Call invocation failed with code [Server] because of: java.lang.NullPointerException; nested exception is:
| javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:524)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
| at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
| at $Proxy3.purchaseTrip(Unknown Source)
| at org.jbpm.bpel.tutorial.trip.TravelAgentTest.testPurchaseTrip(TravelAgentTest.java:65)
| at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
| at junit.extensions.TestSetup.run(TestSetup.java:23)
| Caused by: javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
| at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
| at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.throwFaultException(SOAP11BindingJAXRPC.java:68)
| at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
| </error>
| </testcase>
| <testcase classname="org.jbpm.bpel.tutorial.trip.TravelAgentTest" name="testGetTripDetails" time="0.64">
| <error message="Call invocation failed with code [Server] because of: java.lang.NullPointerException; nested exception is:
| javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException" type="java.rmi.RemoteException">java.rmi.RemoteException: Call invocation failed with code [Server] because of: java.lang.NullPointerException; nested exception is:
| javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:524)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
| at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
| at $Proxy3.purchaseTrip(Unknown Source)
| at org.jbpm.bpel.tutorial.trip.TravelAgentTest.testGetTripDetails(TravelAgentTest.java:80)
| at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
| at junit.extensions.TestSetup.run(TestSetup.java:23)
| Caused by: javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
| at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
| at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.throwFaultException(SOAP11BindingJAXRPC.java:68)
| at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
| </error>
| </testcase>
| <testcase classname="org.jbpm.bpel.tutorial.trip.TravelAgentTest" name="testCancelTrip" time="0.594">
| <error message="Call invocation failed with code [Server] because of: java.lang.NullPointerException; nested exception is:
| javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException" type="java.rmi.RemoteException">java.rmi.RemoteException: Call invocation failed with code [Server] because of: java.lang.NullPointerException; nested exception is:
| javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:524)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
| at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
| at $Proxy3.purchaseTrip(Unknown Source)
| at org.jbpm.bpel.tutorial.trip.TravelAgentTest.testCancelTrip(TravelAgentTest.java:104)
| at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
| at junit.extensions.TestSetup.run(TestSetup.java:23)
| Caused by: javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
| at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
| at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.throwFaultException(SOAP11BindingJAXRPC.java:68)
| at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
| </error>
| </testcase>
| <system-out><![CDATA[15:53:54,265 DEBUG [SecurityAssociation] Using ThreadLocal: false
| 15:54:15,265 DEBUG [DefaultSPIProvider] provide SPI 'class org.jboss.wsf.spi.management.ServerConfigFactory'
| 15:54:15,296 DEBUG [DefaultSPIProvider] class org.jboss.wsf.spi.management.ServerConfigFactory Implementation: org.jboss.wsf.framework.management.ServerConfigFactoryImpl@1f31652
| 15:54:17,234 TRACE [MessageTrace] Outgoing Request Message
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <ns1:order xmlns:ns1='http://jbpm.org/examples/trip' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
| <items>
| <flight airline='AM' number='637'/>
| <hotel name='Maria Isabel'/>
| <rentalCar xsi:nil='1'/>
| </items>
| <date>2008-11-01T15:53:45.343+08:00</date>
| </ns1:order>
| </env:Body>
| </env:Envelope>
| 15:54:24,015 TRACE [MessageTrace] Incoming Response Message
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <env:Fault xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <faultcode>env:Server</faultcode>
| <faultstring>java.lang.NullPointerException</faultstring>
| </env:Fault>
| </env:Body>
| </env:Envelope>
| 15:54:24,062 ERROR [CallImpl] Call invocation failed
| javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
| at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
| at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.throwFaultException(SOAP11BindingJAXRPC.java:68)
| at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
| at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
| at $Proxy3.purchaseTrip(Unknown Source)
| at org.jbpm.bpel.tutorial.trip.TravelAgentTest.testPurchaseTrip(TravelAgentTest.java:65)
| 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:597)
| at junit.framework.TestCase.runTest(TestCase.java:154)
| at junit.framework.TestCase.runBare(TestCase.java:127)
| 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:118)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| at junit.framework.TestSuite.run(TestSuite.java:203)
| at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.extensions.TestSetup.run(TestSetup.java:23)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
| 15:54:24,203 DEBUG [DefaultSPIProvider] provide SPI 'class org.jboss.wsf.spi.management.ServerConfigFactory'
| 15:54:24,203 DEBUG [DefaultSPIProvider] class org.jboss.wsf.spi.management.ServerConfigFactory Implementation: org.jboss.wsf.framework.management.ServerConfigFactoryImpl@c08593
| 15:54:24,515 TRACE [MessageTrace] Outgoing Request Message
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <ns1:order xmlns:ns1='http://jbpm.org/examples/trip' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
| <items>
| <flight airline='AM' number='637'/>
| <hotel name='Maria Isabel'/>
| <rentalCar company='Alamo'/>
| </items>
| <date>2008-11-01T15:53:45.343+08:00</date>
| </ns1:order>
| </env:Body>
| </env:Envelope>
| 15:54:24,718 TRACE [MessageTrace] Incoming Response Message
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <env:Fault xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <faultcode>env:Server</faultcode>
| <faultstring>java.lang.NullPointerException</faultstring>
| </env:Fault>
| </env:Body>
| </env:Envelope>
| 15:54:24,718 ERROR [CallImpl] Call invocation failed
| javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
| at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
| at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.throwFaultException(SOAP11BindingJAXRPC.java:68)
| at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
| at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
| at $Proxy3.purchaseTrip(Unknown Source)
| at org.jbpm.bpel.tutorial.trip.TravelAgentTest.testGetTripDetails(TravelAgentTest.java:80)
| 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:597)
| at junit.framework.TestCase.runTest(TestCase.java:154)
| at junit.framework.TestCase.runBare(TestCase.java:127)
| 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:118)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| at junit.framework.TestSuite.run(TestSuite.java:203)
| at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.extensions.TestSetup.run(TestSetup.java:23)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
| 15:54:24,859 DEBUG [DefaultSPIProvider] provide SPI 'class org.jboss.wsf.spi.management.ServerConfigFactory'
| 15:54:24,859 DEBUG [DefaultSPIProvider] class org.jboss.wsf.spi.management.ServerConfigFactory Implementation: org.jboss.wsf.framework.management.ServerConfigFactoryImpl@1455cf0
| 15:54:25,125 TRACE [MessageTrace] Outgoing Request Message
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <ns1:order xmlns:ns1='http://jbpm.org/examples/trip' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
| <items>
| <flight airline='AM' number='637'/>
| <hotel xsi:nil='1'/>
| <rentalCar company='Alamo'/>
| </items>
| <date>2008-11-01T15:53:45.343+08:00</date>
| </ns1:order>
| </env:Body>
| </env:Envelope>
| 15:54:25,312 TRACE [MessageTrace] Incoming Response Message
| <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <env:Header/>
| <env:Body>
| <env:Fault xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
| <faultcode>env:Server</faultcode>
| <faultstring>java.lang.NullPointerException</faultstring>
| </env:Fault>
| </env:Body>
| </env:Envelope>
| 15:54:25,312 ERROR [CallImpl] Call invocation failed
| javax.xml.rpc.soap.SOAPFaultException: java.lang.NullPointerException
| at org.jboss.ws.core.jaxrpc.SOAPFaultHelperJAXRPC.getSOAPFaultException(SOAPFaultHelperJAXRPC.java:102)
| at org.jboss.ws.core.jaxrpc.SOAP11BindingJAXRPC.throwFaultException(SOAP11BindingJAXRPC.java:68)
| at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:579)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:380)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
| at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:156)
| at $Proxy3.purchaseTrip(Unknown Source)
| at org.jbpm.bpel.tutorial.trip.TravelAgentTest.testCancelTrip(TravelAgentTest.java:104)
| 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:597)
| at junit.framework.TestCase.runTest(TestCase.java:154)
| at junit.framework.TestCase.runBare(TestCase.java:127)
| 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:118)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| at junit.framework.TestSuite.run(TestSuite.java:203)
| at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.extensions.TestSetup.run(TestSetup.java:23)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768)
| ]]></system-out>
| <system-err><![CDATA[]]></system-err>
| </testsuite>
|
Thanksï¼Â
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186163#4186163
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186163
16 years, 6 months
[EJB 3.0] - Re: No container configured with name 'Stateless Bean''
by jaikiran
"nanda_kishore" wrote : Hi i am trying to deploy ejb 3 application un jboss 5.0.0 Beta4.
|
Any specific reason for using JBoss-5 Beta 4? The latest version of JBoss-5 is JBoss-5.0 CR2. There have been a lot of bug fixes in this newer version and many people (including me) have now stopped using Beta-4. So if you run into any issue, i don't think you will get some good feedback on this version.
"nanda_kishore" wrote :
| I removed messaging files under deploy because it is trying to connect messaging services.
|
Just curious - Why not let it deploy the messaging services? Why do you want to disable it?
"nanda_kishore" wrote :
| can any one tell me how to over come this error
|
I haven't done this myself - not on JBoss-5. So i don't know what might have gone wrong. And more over you did not mention the exact files/folders you removed.
"nanda_kishore" wrote :
| and how to disable messaging service.
|
This wiki http://www.jboss.org/community/docs/DOC-10217 has the steps for JBoss-4.x and JBoss-3.x. The steps for JBoss-5 aren't yet there.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186155#4186155
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186155
16 years, 6 months