users@glassfish.java.net

Calling EB on Glassfish V3 from V2

From: <forums_at_java.net>
Date: Wed, 5 Oct 2011 03:53:08 -0500 (CDT)

Hello.
I can not call a EJB3 installed on Glassfish V3 from a server V2.

Which jar library I include in Glassfih V2?

This is the output error:

javax.naming.NoInitialContextException: Cannot instantiate class:
com.sun.enterprise.naming.impl.SerialInitContextFactory [Root exception is
java.lang.ClassNotFoundException:
com.sun.enterprise.naming.impl.SerialInitContextFactory]
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at
it.organismo.locator.GenericServiceLocator.getRemoteContext(GenericServiceLocator.java:240)
        at
it.organismo.locator.GenericServiceLocator.lookup(GenericServiceLocator.java:63)
        at
it.organismo.locator.GenericServiceLocator.getFacade(GenericServiceLocator.java:132)
        at
it.consob.ejb.session.login.LoginBean.getLoginToken(LoginBean.java:242)
        at
it.consob.ejb.session.login.LoginBean.loginCR(LoginBean.java:375)
        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
com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1011)
        at
com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:175)
        at
com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2920)
        at
com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4011)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:197)
        at
com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:83)
        at $Proxy79.loginCR(Unknown Source)
        at
it.consob.ejb.session.FacadeSessionBean.loginCR(FacadeSessionBean.java:194)
        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
com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1011)
        at
com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:175)
        at
com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2920)
        at
com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4011)
        at
com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
        at
com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:77)
        at $Proxy76.loginCR(Unknown Source)
        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
com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:154)
        at
com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:687)
        at
com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:227)
        at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1846)
        at
com.sun.corba.ee.impl.protocol.SharedCDRClientRequestDispatcherImpl.marshalingComplete(SharedCDRClientRequestDispatcherImpl.java:183)
        at
com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:219)
        at
com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:192)
        at
com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
        at
com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)
        at
it.consob.ejb.session.__FacadeSessionRemote_Remote_DynamicStub.loginCR(it/consob/ejb/session/__FacadeSessionRemote_Remote_DynamicStub.java)
        at
it.consob.ejb.session._FacadeSessionRemote_Wrapper.loginCR(it/consob/ejb/session/_FacadeSessionRemote_Wrapper.java)
        at
it.consob.web.bean.SegnalazioniSession.login(SegnalazioniSession.java:1092)
        at
it.consob.web.page.loginPage.loginButton_action(loginPage.java:153)
        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 com.sun.el.parser.AstValue.invoke(AstValue.java:187)
        at
com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
        at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
        at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
        at
com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
        at
javax.faces.component.UICommand.broadcast(UICommand.java:383)
        at
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
        at
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
        at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
        at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
        at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
        at
com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:94)
        at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
        at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
        at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
        at
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
        at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
        at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
        at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
        at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
        at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
        at com.sun.enterprise.web.co
nnector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
        at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
        at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
        at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
        at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
        at
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Caused by: java.lang.ClassNotFoundException:
com.sun.enterprise.naming.impl.SerialInitContextFactory
        at
com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:715)
        at
com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:628)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
        ... 97 more
 


--
[Message sent by forum member 'erpomata']
View Post: http://forums.java.net/node/850222