geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SergZ <serg...@gmail.com>
Subject how to explain ejb to use special library?
Date Fri, 28 Dec 2007 22:50:55 GMT

in openejb-jar.xml there is description about library to use saaj-impl.jar
            <sys:dependency>
                <sys:groupId>com.sun.xml.messaging.saaj</sys:groupId>
                <sys:artifactId>saaj-impl</sys:artifactId>
                <sys:version>1.6</sys:version>
                <sys:type>jar</sys:type>
            </sys:dependency>
            <sys:dependency>
                <sys:groupId>com.sun.xml.messaging.saaj</sys:groupId>
                <sys:artifactId>saaj-api</sys:artifactId>
                <sys:version>1.6</sys:version>
                <sys:type>jar</sys:type>
            </sys:dependency>

it was installed with "Add Archive to Repository"
but when app is running error appeares:

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.ejb.EJBException: The bean encountered a non-application exception.;
nested exception is: 
	java.lang.ClassCastException: org.apache.axis2.saaj.SOAPMessageImpl cannot
be cast to com.sun.xml.messaging.saaj.soap.MessageImpl

org.apache.openejb.client.EJBInvocationHandler.convertException(EJBInvocationHandler.java:204)

org.apache.openejb.client.EJBObjectHandler._invoke(EJBObjectHandler.java:157)

org.apache.openejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:115)

org.apache.openejb.client.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:52)
	$Proxy21.init(Unknown Source)
	web_servlets.Login.init(Login.java:61)
	web_servlets.Login.processRequest(Login.java:101)
	web_servlets.Login.doPost(Login.java:188)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:806)

root cause

java.lang.ClassCastException: org.apache.axis2.saaj.SOAPMessageImpl cannot
be cast to com.sun.xml.messaging.saaj.soap.MessageImpl
	com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:231)
	com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324)

com.novell.groupwise.ws.GroupWisePortType_Stub.loginRequest(GroupWisePortType_Stub.java:3024)
	ejb_beans.gw_beanBean.login(gw_beanBean.java:81)
	ejb_beans.gw_beanBean.init(gw_beanBean.java:114)
	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.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:146)

org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:129)

org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)

org.apache.openejb.core.stateful.StatefulContainer._invoke(StatefulContainer.java:428)

org.apache.openejb.core.stateful.StatefulContainer.businessMethod(StatefulContainer.java:390)

org.apache.openejb.core.stateful.StatefulContainer.invoke(StatefulContainer.java:247)

org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:212)

org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:120)

org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:164)
	org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:122)
	org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:84)
	org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:60)
	org.apache.openejb.server.ServiceLogger.service(ServiceLogger.java:73)

org.apache.openejb.server.ServiceAccessController.service(ServiceAccessController.java:55)
	org.apache.openejb.server.ServiceDaemon$1.run(ServiceDaemon.java:117)
	java.lang.Thread.run(Thread.java:619)

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0-snapshot logs.
-- 
View this message in context: http://www.nabble.com/how-to-explain-ejb-to-use-special-library--tp14532558s134p14532558.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message