You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by "Patel, Sanjay" <Sa...@nemours.org> on 2013/07/01 22:29:27 UTC

@Webservice

Using @Webservice annotation for Stateless EJB and accessing webservice
http://localhost:8080/directory/webservices/ws/NemoursDirectoryService gives below output
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>
	No such operation: directory (HTTP GET PATH_INFO: /directory/webservices/ws/NemoursDirectoryServicenull)
</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>

And this is the log
WARNING: Interceptor for {http://impl.service.phonedirectory.nemours.org/}NemoursDirectoryService has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: No such operation: directory (HTTP GET PATH_INFO: /directory/webservices/ws/NemoursDirectoryServicenull)
        at org.apache.cxf.interceptor.URIMappingInterceptor.handleMessage(URIMappingInterceptor.java:93)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:236)
        at org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:74)
        at org.apache.openejb.server.webservices.WsServlet.service(WsServlet.java:98)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)


Before TomEE, when I was using openEJB and Tomcat, I was not getting this error but instead it was giving nice message as below

Hi, this is 'NemoursDirectoryWebService' web service.

Is something needs to be setup to get this nice message?


RE: @Webservice

Posted by Romain Manni-Bucau <rm...@gmail.com>.
I think cxf removed it for security reasons (would need to check) but it
doesnt affect the webservice itself
Le 1 juil. 2013 22:48, "Patel, Sanjay" <Sa...@nemours.org> a écrit :

> No. ?wsdl will give detail wsdl but in past with tomcat+openejb, without
> ?wsdl it was displaying one line message about webservice.
>
> -----Original Message-----
> From: Romain Manni-Bucau [mailto:rmannibucau@gmail.com]
> Sent: Monday, July 01, 2013 4:41 PM
> To: users@tomee.apache.org
> Subject: Re: @Webservice
>
> Hi,
>
> Didnt you forget ?wsdl ?
>
> Can you reproduce it in a sample?
> Le 1 juil. 2013 22:29, "Patel, Sanjay" <Sa...@nemours.org> a écrit
> :
>
> > Using @Webservice annotation for Stateless EJB and accessing
> > webservice
> > http://localhost:8080/directory/webservices/ws/NemoursDirectoryService
> > gives below output <soap:Envelope
> > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> > <soap:Body>
> > <soap:Fault>
> > <faultcode>soap:Server</faultcode>
> > <faultstring>
> >         No such operation: directory (HTTP GET PATH_INFO:
> > /directory/webservices/ws/NemoursDirectoryServicenull)
> > </faultstring>
> > </soap:Fault>
> > </soap:Body>
> > </soap:Envelope>
> >
> > And this is the log
> > WARNING: Interceptor for {
> > http://impl.service.phonedirectory.nemours.org/}NemoursDirectoryServic
> > ehas thrown exception, unwinding now
> > org.apache.cxf.interceptor.Fault: No such operation: directory (HTTP
> > GET
> > PATH_INFO: /directory/webservices/ws/NemoursDirectoryServicenull)
> >         at
> >
> org.apache.cxf.interceptor.URIMappingInterceptor.handleMessage(URIMappingInterceptor.java:93)
> >         at
> >
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
> >         at
> >
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> >         at
> >
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:236)
> >         at
> >
> org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:74)
> >         at
> >
> org.apache.openejb.server.webservices.WsServlet.service(WsServlet.java:98)
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> >         at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> >         at
> >
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
> >         at
> >
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
> >         at
> >
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
> >         at
> > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> > oFilter(FilterChainProxy.java:342)
> >
> >
> > Before TomEE, when I was using openEJB and Tomcat, I was not getting
> > this error but instead it was giving nice message as below
> >
> > Hi, this is 'NemoursDirectoryWebService' web service.
> >
> > Is something needs to be setup to get this nice message?
> >
> >
>

RE: @Webservice

Posted by "Patel, Sanjay" <Sa...@nemours.org>.
No. ?wsdl will give detail wsdl but in past with tomcat+openejb, without ?wsdl it was displaying one line message about webservice.

-----Original Message-----
From: Romain Manni-Bucau [mailto:rmannibucau@gmail.com] 
Sent: Monday, July 01, 2013 4:41 PM
To: users@tomee.apache.org
Subject: Re: @Webservice

Hi,

Didnt you forget ?wsdl ?

Can you reproduce it in a sample?
Le 1 juil. 2013 22:29, "Patel, Sanjay" <Sa...@nemours.org> a écrit :

> Using @Webservice annotation for Stateless EJB and accessing 
> webservice 
> http://localhost:8080/directory/webservices/ws/NemoursDirectoryService
> gives below output <soap:Envelope 
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>
>         No such operation: directory (HTTP GET PATH_INFO:
> /directory/webservices/ws/NemoursDirectoryServicenull)
> </faultstring>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
>
> And this is the log
> WARNING: Interceptor for {
> http://impl.service.phonedirectory.nemours.org/}NemoursDirectoryServic
> ehas thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: No such operation: directory (HTTP 
> GET
> PATH_INFO: /directory/webservices/ws/NemoursDirectoryServicenull)
>         at
> org.apache.cxf.interceptor.URIMappingInterceptor.handleMessage(URIMappingInterceptor.java:93)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
>         at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>         at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:236)
>         at
> org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:74)
>         at
> org.apache.openejb.server.webservices.WsServlet.service(WsServlet.java:98)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>         at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>         at
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
>         at
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
>         at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilter(FilterChainProxy.java:342)
>
>
> Before TomEE, when I was using openEJB and Tomcat, I was not getting 
> this error but instead it was giving nice message as below
>
> Hi, this is 'NemoursDirectoryWebService' web service.
>
> Is something needs to be setup to get this nice message?
>
>

Re: @Webservice

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

Didnt you forget ?wsdl ?

Can you reproduce it in a sample?
Le 1 juil. 2013 22:29, "Patel, Sanjay" <Sa...@nemours.org> a écrit :

> Using @Webservice annotation for Stateless EJB and accessing webservice
> http://localhost:8080/directory/webservices/ws/NemoursDirectoryServicegives below output
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>
>         No such operation: directory (HTTP GET PATH_INFO:
> /directory/webservices/ws/NemoursDirectoryServicenull)
> </faultstring>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
>
> And this is the log
> WARNING: Interceptor for {
> http://impl.service.phonedirectory.nemours.org/}NemoursDirectoryServicehas thrown exception, unwinding now
> org.apache.cxf.interceptor.Fault: No such operation: directory (HTTP GET
> PATH_INFO: /directory/webservices/ws/NemoursDirectoryServicenull)
>         at
> org.apache.cxf.interceptor.URIMappingInterceptor.handleMessage(URIMappingInterceptor.java:93)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
>         at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>         at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:236)
>         at
> org.apache.openejb.server.cxf.CxfWsContainer.onMessage(CxfWsContainer.java:74)
>         at
> org.apache.openejb.server.webservices.WsServlet.service(WsServlet.java:98)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>         at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>         at
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
>         at
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
>         at
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
>
>
> Before TomEE, when I was using openEJB and Tomcat, I was not getting this
> error but instead it was giving nice message as below
>
> Hi, this is 'NemoursDirectoryWebService' web service.
>
> Is something needs to be setup to get this nice message?
>
>