[JBossWS] - javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://mtn/
by priyanjan
I am using Jrun4 server and some web services deployed on it.Client application,that accessing these services is deployed on JBoss 4.0.4.GA server.both servers are on same machine.JBoss server url is SSL secured.I wish to migrate web services from JRun server to JBoss 4.0.5.GA(same server on which client application is running).I have created web services for jboss(java classes are same as deployed on jrun server) and deployed on same server.Client application retrieves web service url from a property file.i have configured this property file with my new web service url(url of web services that are deployed on Jboss).But when i try to access these services from client application, an exception is thrown.This is as follows:
javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://mtn/jaws}WebServiceRegistrationPort does not contain operation meta data for: {http://soapinterop.org/}webUserRegistration
at org.jboss.ws.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:181)
at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:107)
at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
WebServiceRegistration is a web service that is deployed on JBoss server.
Please help me to sort out this problem.
waiting for your suggestions
-- priyanjan
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217537#4217537
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217537
15 years, 9 months
[JBossWS] - have interceptors fire when calling web service method from
by teraryan
I posted this in EJB3, but maybe JBossWS is a better forum.
It's easiest to explain by giving an example. I have an EJB3 stateless session / web method annotated with interceptors:
| @Interceptors({a.class, b.class})
| @WebMethod
| public String processService(String request)
|
Now I need to create another method that, instead of returning a String, returns a more complex object, ie. But the more complex Object can be created using a String from calling processService(), ie.
| @WebMethod
| public ComplexObject processServiceComplex(String request) {
| return new ComplexObject(processService(request));
| }
|
But when I do this (implementing processServiceComplex in the same class as processService), the interceptors for processService don't fire. Is there any way I can get them to fire? I can't use all the interceptors on processServiceComplex, because some of them expect a String as the return value. I also want both methods to be available in the same web services interface, although they don't necessarily need to be in the same class. Basically, I want to re-use the interceptors if possible. Is there any way to do this?
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217456#4217456
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217456
15 years, 9 months
SOAP/JMS topic with multiple service instance
by tanmay pradhan
Hi,
I need a help for the following configuration.
I need to define a web service (with SOAP over JMS).
For scalability purpose I need to deploy multiple instances of the same web
service.
But all the instances of the service are subscriber to a single topic ( name
is 'testTopic').
How do I specify that the message should be removed from the topic after
read by one subscriber?
I guess by this load balancing can be done.
Default configuration for testTopic in destinations-service.xml is extracted
below:
<mbean code="org.jboss.jms.server.destination.TopicService"
name="jboss.messaging.destination:service=Topic,name=testTopic"
xmbean-dd="xmdesc/Topic-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss
.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
<attribute name="SecurityConfig">
<security>
<role name="guest" read="true" write="true"/>
<role name="publisher" read="true" write="true" create="false"/>
<role name="durpublisher" read="true" write="true" create="true"
/>
</security>
</attribute>
</mbean>
Where can I get the explanation for all possible attributes/tags used to
configure a topic in destinations-service.xml?
Please correct me if my approach for achieving scalability by deploying
multiple instance of same web service (war files) listening on a single
topic is wrong.
The versions I am using are:
-----------------------------------------
JBoss AS 4.2.3.GA
jbossws-3.0.1-native-2.0.4.GA
jboss-messaging-1.4.2.GA
regards,
Tanmay
15 years, 9 months
[JBossWS] - Problem of getting asynchronous response
by zzuli
Hi,everyone:
I'm getting started with JAX-WS, and get stuck with getting the asynchronous message response.
The code:
private void getStudentList(JAXWS ws) throws Exception{
GetStudentListRequest request= new GetStudentListRequest();
request.setDepId(1);
ws.getStuListAsync(request, new GetStudentListCallBack() );
System.out.println("print immediately after call ws.");
try {
Thread.sleep(20000);
} catch (InterruptedException e) {
}
}
private class GetStudentListCallBack implements javax.xml.ws.AsyncHandler{
public void handleResponse(Response res) { System.out.println("test1"); try{
System.out.println("test2");
System.out.println(res.get());
}catch (Exception e) {
}
}
}
When i run the code, i get "test1" and "test2" printed, but there's no result of res.get(), it seems that the "get()" method-call is blocked, but there's no exception.
If i try "res.isDone()", i can get "true".
I use jboss5.0.1
Could anyone help me? Thanks a lot.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217102#4217102
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217102
15 years, 9 months