[Beginners Corner] - invoking web service throws obscure exception
by jahhaj
I'm using jboss 4.2.2.GA. I have a web service which is wrapped as a stateless session bean
@Stateless
| @WebService
| public class Test
| {
| private static final Logger log = Logger.getLogger(Test.class.getName());
|
| public Test()
| {
| log.info("Test ctor");
| }
|
| @PostConstruct
| public void init()
| {
| log.info("Test init");
| }
|
| @WebMethod
| public String doubleUp(String str)
| {
| log.info("Test doubleUp");
| return str + str;
| }
|
| }
|
Invoking the web method on this service produces the following error in the server log
2008-09-08 05:06:07,652 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/server-test].[Test]] Servlet.service() for servlet Test threw exception
java.lang.NoSuchMethodError: org.jboss.ejb3.stateless.StatelessBeanContext.getWebServiceContextProperty()Lorg/jboss/injection/lang/reflect/BeanProperty;
at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3$CallbackImpl.attached(InvocationHandlerEJB3.java:129)
at org.jboss.ejb3.EJBContainerInvocation.setBeanContext(EJBContainerInvocation.java:77)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:56)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103)
at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
I see the 'Test ctor' and 'Test init' messages in the log but not the 'Test doubleUp' message so presumably the error is happening when jboss is trying to call the web method itself.
I really have no clue what this means or how to fix it. Can anyone help?
Thanks,
John
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174944#4174944
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174944
17 years, 10 months
[JBossWS] - Jar file for org.jboss.ws.core.soap.SAAJMetaFactoryImpl.clas
by thorstenschmid
The class org.jboss.ws.core.soap.SAAJMetaFactoryImpl.class is declared in the file META-INF/services/javax.xml.soap.MetaFactory in jboss-saaj.jar.
Unfortunately I cannot find any jar file where org.jboss.ws.core.soap.SAAJMetaFactoryImpl.class is included.
Does anyone know which jar file or maven artifact includes this class?
Without it I get the following exception when starting a web application using JAX-WS on JBoss 4.3:
Caused by: java.lang.IllegalStateException: Failed to load javax.xml.soap.MetaFactory: org.jboss.ws.core.soap.SAAJMetaFactoryImpl
| at javax.xml.soap.SAAJFactoryLoader.loadFactory(SAAJFactoryLoader.java:131)
| at javax.xml.soap.SAAJMetaFactory.getInstance(SAAJMetaFactory.java:60)
| at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:106)
| at com.sun.xml.ws.api.SOAPVersion.<init>(SOAPVersion.java:178)
| at com.sun.xml.ws.api.SOAPVersion.<clinit>(SOAPVersion.java:83)
| ... 140 more
| Caused by: java.lang.ClassNotFoundException: org.jboss.ws.core.soap.SAAJMetaFactoryImpl
| at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)
| at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
| at javax.xml.soap.SAAJFactoryLoader.loadFactory(SAAJFactoryLoader.java:125)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174938#4174938
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174938
17 years, 10 months