Ejb

Olá

Estou com dificuldade em chamar um EJB que está em uma diferente máquina da que estou trabalhando, tenho o seguinte código do lado cliente:

[code]
try {
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, “org.jnp.interfaces.NamingContextFactory”);
properties.put(Context.URL_PKG_PREFIXES, “org.jboss.naming:org.jnp.interfaces”);
properties.put(Context.PROVIDER_URL, “jnp://10.160.16.29:1099”);
Context ctx = new InitialContext(properties);

Object ref = ctx.lookup("CorporativoEJB/CorporativoEJB/home");
Object object = PortableRemoteObject.narrow(ref, CorporativoHome.class);

CorporativoHome corporativoHome = (CorporativoHome) object;
		
c = corporativoHome.create();
List<UF> temp = c.carregaUFS();
this.ufList = c.carregaUFS(temp);

} catch (Exception ex) {
ex.printStackTrace();
}[/code]

Este cliente é uma aplicação WEB.

Daí executo consigo o lookup mas quando executa a linha abaixo do lookup lança a exeção:

12:22:15,348 ERROR [STDERR] javax.naming.NamingException: Could not dereference object [Root excepti
on is java.lang.reflect.UndeclaredThrowableException]
12:22:15,348 ERROR [STDERR] 	at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(Naming
Context.java:1463)
12:22:15,348 ERROR [STDERR] 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:809)
12:22:15,348 ERROR [STDERR] 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
12:22:15,348 ERROR [STDERR] 	at javax.naming.InitialContext.lookup(Unknown Source)
12:22:15,364 ERROR [STDERR] 	at demo.CorporativoCodebehind.getUfList(CorporativoCodebehind.java:51)
12:22:15,364 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:22:15,364 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
12:22:15,364 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
12:22:15,379 ERROR [STDERR] 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELR
esolver.java:72)
12:22:15,379 ERROR [STDERR] 	at org.apache.el.parser.AstValue.getValue(AstValue.java:118)
12:22:15,379 ERROR [STDERR] 	at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:
186)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.
java:101)
12:22:15,379 ERROR [STDERR] 	at javax.faces.component.UISelectItems.getValue(UISelectItems.java:141)

12:22:15,379 ERROR [STDERR] 	at com.sun.faces.renderkit.RenderKitUtils.getSelectItems(RenderKitUtils
.java:289)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRen
derer.java:814)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRender
er.java:280)
12:22:15,379 ERROR [STDERR] 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java
:861)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive
(HtmlBasicRenderer.java:242)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRender
er.java:180)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridR
enderer.java:127)
12:22:15,379 ERROR [STDERR] 	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase
.java:837)
12:22:15,379 ERROR [STDERR] 	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
12:22:15,379 ERROR [STDERR] 	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerIm
pl.java:266)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl
.java:197)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePh
ase.java:110)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

12:22:15,379 ERROR [STDERR] 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
licationFilterChain.java:290)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
FilterChain.java:206)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDis
patcher.java:638)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applic
ationDispatcher.java:444)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationDispatcher.doForward(Application
Dispatcher.java:382)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDi
spatcher.java:310)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.
java:696)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.ja
va:667)
12:22:15,379 ERROR [STDERR] 	at org.apache.jsp.index_jsp._jspService(index_jsp.java:63)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
12:22:15,379 ERROR [STDERR] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrappe
r.java:369)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
322)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
12:22:15,379 ERROR [STDERR] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
licationFilterChain.java:290)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
FilterChain.java:206)
12:22:15,379 ERROR [STDERR] 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderF
ilter.java:96)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
licationFilterChain.java:235)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
FilterChain.java:206)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
Valve.java:235)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContext
Valve.java:191)
12:22:15,379 ERROR [STDERR] 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securi
tyAssociationValve.java:190)
12:22:15,379 ERROR [STDERR] 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextVal
ve.java:92)
12:22:15,379 ERROR [STDERR] 	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proc
ess(SecurityContextEstablishmentValve.java:126)
12:22:15,379 ERROR [STDERR] 	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invo
ke(SecurityContextEstablishmentValve.java:70)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
java:127)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
java:102)
12:22:15,379 ERROR [STDERR] 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(Cached
ConnectionValve.java:158)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
lve.java:109)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
va:330)
12:22:15,379 ERROR [STDERR] 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav
a:828)
12:22:15,379 ERROR [STDERR] 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc
ess(Http11Protocol.java:601)
12:22:15,379 ERROR [STDERR] 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:4
47)
12:22:15,379 ERROR [STDERR] 	at java.lang.Thread.run(Unknown Source)
12:22:15,379 ERROR [STDERR] Caused by: java.lang.reflect.UndeclaredThrowableException
12:22:15,379 ERROR [STDERR] 	at $Proxy96.createProxyHome(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at org.jboss.ejb3.proxy.objectfactory.session.SessionProxyObjectFactory
.createProxy(SessionProxyObjectFactory.java:101)
12:22:15,379 ERROR [STDERR] 	at org.jboss.ejb3.proxy.objectfactory.session.stateless.StatelessSessio
nProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)
12:22:15,379 ERROR [STDERR] 	at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.getObjectInsta
nce(ProxyObjectFactory.java:156)
12:22:15,379 ERROR [STDERR] 	at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.jav
a:1438)
12:22:15,379 ERROR [STDERR] 	at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(Naming
Context.java:1455)
12:22:15,379 ERROR [STDERR] 	... 66 more
12:22:15,379 ERROR [STDERR] Caused by: java.lang.ClassNotFoundException: br.gov.es.sefaz.corporativo
.ejb.CorporativoHome
12:22:15,379 ERROR [STDERR] 	at org.jboss.remoting.serialization.ClassLoaderUtility.loadClass(ClassL
oaderUtility.java:103)
12:22:15,379 ERROR [STDERR] 	at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingCla
ssLoader.java:86)
12:22:15,379 ERROR [STDERR] 	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.lang.Class.forName0(Native Method)
12:22:15,379 ERROR [STDERR] 	at java.lang.Class.forName(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveP
roxyClass(ObjectInputStreamWithClassLoader.java:250)
12:22:15,379 ERROR [STDERR] 	at java.io.ObjectInputStream.readProxyDesc(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.io.ObjectInputStream.readClassDesc(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.io.ObjectInputStream.readObject0(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.io.ObjectInputStream.readObject(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationRe
sponse.java:119)
12:22:15,379 ERROR [STDERR] 	at java.io.ObjectInputStream.readExternalData(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.io.ObjectInputStream.readObject0(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.io.ObjectInputStream.readSerialData(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.io.ObjectInputStream.readObject0(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.io.ObjectInputStream.readObject(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.
receiveObjectVersion2_2(JavaSerializationManager.java:238)
12:22:15,379 ERROR [STDERR] 	at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.
receiveObject(JavaSerializationManager.java:138)
12:22:15,379 ERROR [STDERR] 	at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.rea
d(SerializableUnMarshaller.java:123)
12:22:15,379 ERROR [STDERR] 	at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.version
edRead(MicroSocketClientInvoker.java:1215)
12:22:15,379 ERROR [STDERR] 	at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transpo
rt(MicroSocketClientInvoker.java:845)
12:22:15,379 ERROR [STDERR] 	at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClient
Invoker.java:160)
12:22:15,379 ERROR [STDERR] 	at org.jboss.remoting.Client.invoke(Client.java:1708)
12:22:15,379 ERROR [STDERR] 	at org.jboss.remoting.Client.invoke(Client.java:612)
12:22:15,379 ERROR [STDERR] 	at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemo
teInterceptor.java:60)
12:22:15,379 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation
.java:102)
12:22:15,379 ERROR [STDERR] 	at org.jboss.ejb3.proxy.remoting.IsLocalProxyFactoryInterceptor.invoke(
IsLocalProxyFactoryInterceptor.java:72)
12:22:15,379 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation
.java:102)
12:22:15,379 ERROR [STDERR] 	at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
12:22:15,379 ERROR [STDERR] 	at $Proxy96.createProxyHome(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at org.jboss.ejb3.proxy.objectfactory.session.SessionProxyObjectFactory
.createProxy(SessionProxyObjectFactory.java:101)
12:22:15,379 ERROR [STDERR] 	at org.jboss.ejb3.proxy.objectfactory.session.stateless.StatelessSessio
nProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)
12:22:15,379 ERROR [STDERR] 	at org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory.getObjectInsta
nce(ProxyObjectFactory.java:156)
12:22:15,379 ERROR [STDERR] 	at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.jav
a:1438)
12:22:15,379 ERROR [STDERR] 	at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(Naming
Context.java:1455)
12:22:15,379 ERROR [STDERR] 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:809)
12:22:15,379 ERROR [STDERR] 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
12:22:15,379 ERROR [STDERR] 	at javax.naming.InitialContext.lookup(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at demo.CorporativoCodebehind.getUfList(CorporativoCodebehind.java:51)
12:22:15,379 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:22:15,379 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
12:22:15,379 ERROR [STDERR] 	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELR
esolver.java:72)
12:22:15,379 ERROR [STDERR] 	at org.apache.el.parser.AstValue.getValue(AstValue.java:118)
12:22:15,379 ERROR [STDERR] 	at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:
186)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.
java:101)
12:22:15,379 ERROR [STDERR] 	at javax.faces.component.UISelectItems.getValue(UISelectItems.java:141)

12:22:15,379 ERROR [STDERR] 	at com.sun.faces.renderkit.RenderKitUtils.getSelectItems(RenderKitUtils
.java:289)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRen
derer.java:814)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRender
er.java:280)
12:22:15,379 ERROR [STDERR] 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java
:861)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive
(HtmlBasicRenderer.java:242)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRender
er.java:180)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridR
enderer.java:127)
12:22:15,379 ERROR [STDERR] 	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase
.java:837)
12:22:15,379 ERROR [STDERR] 	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
12:22:15,379 ERROR [STDERR] 	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerIm
pl.java:266)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl
.java:197)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePh
ase.java:110)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
12:22:15,379 ERROR [STDERR] 	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

12:22:15,379 ERROR [STDERR] 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
licationFilterChain.java:290)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
FilterChain.java:206)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDis
patcher.java:638)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applic
ationDispatcher.java:444)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationDispatcher.doForward(Application
Dispatcher.java:382)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDi
spatcher.java:310)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.
java:696)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.ja
va:667)
12:22:15,379 ERROR [STDERR] 	at org.apache.jsp.index_jsp._jspService(index_jsp.java:63)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
12:22:15,379 ERROR [STDERR] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrappe
r.java:369)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
322)
12:22:15,379 ERROR [STDERR] 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
12:22:15,379 ERROR [STDERR] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
licationFilterChain.java:290)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
FilterChain.java:206)
12:22:15,379 ERROR [STDERR] 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderF
ilter.java:96)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
licationFilterChain.java:235)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
FilterChain.java:206)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
Valve.java:235)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContext
Valve.java:191)
12:22:15,379 ERROR [STDERR] 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securi
tyAssociationValve.java:190)
12:22:15,379 ERROR [STDERR] 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextVal
ve.java:92)
12:22:15,379 ERROR [STDERR] 	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proc
ess(SecurityContextEstablishmentValve.java:126)
12:22:15,379 ERROR [STDERR] 	at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invo
ke(SecurityContextEstablishmentValve.java:70)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
java:127)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
java:102)
12:22:15,379 ERROR [STDERR] 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(Cached
ConnectionValve.java:158)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
lve.java:109)
12:22:15,379 ERROR [STDERR] 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.ja
va:330)
12:22:15,379 ERROR [STDERR] 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.jav
a:828)
12:22:15,379 ERROR [STDERR] 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proc
ess(Http11Protocol.java:601)
12:22:15,379 ERROR [STDERR] 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:4
47)
12:22:15,379 ERROR [STDERR] 	at java.lang.Thread.run(Unknown Source)
12:22:15,379 ERROR [STDERR] 	at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemo
teInterceptor.java:72)
12:22:15,379 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation
.java:102)
12:22:15,379 ERROR [STDERR] 	at org.jboss.ejb3.proxy.remoting.IsLocalProxyFactoryInterceptor.invoke(
IsLocalProxyFactoryInterceptor.java:72)
12:22:15,379 ERROR [STDERR] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation
.java:102)
12:22:15,379 ERROR [STDERR] 	at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
12:22:15,379 ERROR [STDERR] 	... 73 more

O(s) seu(s) EJB(s) foram implantados com sucesso?

Sim o deploy foi 100%…tanto foi que, eu fiz o seguinte teste:
Criei uma aplicação Java (comum) com uma classe Main e coloquei o mesmo código para chamar o EJB, e adivinha?!?!?!?

Eu consegui utilizar os métodos do EJB. Achei estranho, não achei explicação para isso, se puder me ajudar, agradeço.