pcalcado 17 de jun. de 2005
wooddz 17 de jun. de 2005
Pois é… cadê o erro?? Esqueci! Mal… mas aí vai…:
JBException in method : public abstract eplaq . EplaqSessionFacade eplaq . EplaqSessionFacadeHome . create () throws javax . ejb . CreateException , java . rmi . RemoteException
javax . ejb . EJBException : Invalid invocation , check your deployment packaging , method = public abstract eplaq . EplaqSessionFacade eplaq . EplaqSessionFacadeHome . create () throws javax . ejb . CreateException , java . rmi . RemoteException
E aproveitando… o JBoss é versão 3.2.6
wooddz 17 de jun. de 2005
é… acho que ninguém sabe o que tem de errado
wooddz 17 de jun. de 2005
StackTrace completo:
ERROR [ LogInterceptor ] EJBException in method : public abstract eplaq . EplaqSessionFacade eplaq . EplaqSessionFacadeHome . create () throws javax . ejb . CreateException , java . rmi . RemoteException
javax . ejb . EJBException : Invalid invocation , check your deployment packaging , method = public abstract eplaq . EplaqSessionFacade eplaq . EplaqSessionFacadeHome . create () throws javax . ejb . CreateException , java . rmi . RemoteException
at org . jboss . ejb . StatelessSessionContainer $ ContainerInterceptor . invokeHome ( StatelessSessionContainer . java : 632 )
at org . jboss . resource . connectionmanager . CachedConnectionInterceptor . invokeHome ( CachedConnectionInterceptor . java : 206 )
at org . jboss . ejb . plugins . StatelessSessionInstanceInterceptor . invokeHome ( StatelessSessionInstanceInterceptor . java : 51 )
at org . jboss . ejb . plugins . AbstractTxInterceptor . invokeNext ( AbstractTxInterceptor . java : 88 )
at org . jboss . ejb . plugins . TxInterceptorCMT . runWithTransactions ( TxInterceptorCMT . java : 315 )
at org . jboss . ejb . plugins . TxInterceptorCMT . invokeHome ( TxInterceptorCMT . java : 128 )
at org . jboss . ejb . plugins . SecurityInterceptor . invokeHome ( SecurityInterceptor . java : 85 )
at org . jboss . ejb . plugins . LogInterceptor . invokeHome ( LogInterceptor . java : 120 )
at org . jboss . ejb . plugins . ProxyFactoryFinderInterceptor . invokeHome ( ProxyFactoryFinderInterceptor . java : 93 )
at org . jboss . ejb . StatelessSessionContainer . internalInvokeHome ( StatelessSessionContainer . java : 319 )
at org . jboss . ejb . Container . invoke ( Container . java : 729 )
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 : 324 )
at org . jboss . mx . server . ReflectedDispatcher . dispatch ( ReflectedDispatcher . java : 60 )
at org . jboss . mx . server . Invocation . dispatch ( Invocation . java : 62 )
at org . jboss . mx . server . Invocation . dispatch ( Invocation . java : 54 )
at org . jboss . mx . server . Invocation . invoke ( Invocation . java : 82 )
at org . jboss . mx . server . AbstractMBeanInvoker . invoke ( AbstractMBeanInvoker . java : 197 )
at org . jboss . mx . server . MBeanServerImpl . invoke ( MBeanServerImpl . java : 473 )
at org . jboss . invocation . local . LocalInvoker . invoke ( LocalInvoker . java : 97 )
at org . jboss . invocation . InvokerInterceptor . invoke ( InvokerInterceptor . java : 90 )
at org . jboss . proxy . TransactionInterceptor . invoke ( TransactionInterceptor . java : 46 )
at org . jboss . proxy . SecurityInterceptor . invoke ( SecurityInterceptor . java : 55 )
at org . jboss . proxy . ejb . HomeInterceptor . invoke ( HomeInterceptor . java : 173 )
at org . jboss . proxy . ClientContainer . invoke ( ClientContainer . java : 85 )
at $ Proxy130 . create ( Unknown Source )
at eplaq . CrudDelegate . & lt ; init & gt ;( CrudDelegate . java : 10 )
at org . apache . jsp . crud_jsp . _jspService ( crud_jsp . java : 114 )
at org . apache . jasper . runtime . HttpJspBase . service ( HttpJspBase . java : 94 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 810 )
at org . apache . jasper . servlet . JspServletWrapper . service ( JspServletWrapper . java : 324 )
at org . apache . jasper . servlet . JspServlet . serviceJspFile ( JspServlet . java : 292 )
at org . apache . jasper . servlet . JspServlet . service ( JspServlet . java : 236 )
at javax . servlet . http . HttpServlet . service ( HttpServlet . java : 810 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 237 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 157 )
at org . jboss . web . tomcat . filters . ReplyHeaderFilter . doFilter ( ReplyHeaderFilter . java : 75 )
at org . apache . catalina . core . ApplicationFilterChain . internalDoFilter ( ApplicationFilterChain . java : 186 )
at org . apache . catalina . core . ApplicationFilterChain . doFilter ( ApplicationFilterChain . java : 157 )
at org . apache . catalina . core . StandardWrapperValve . invoke ( StandardWrapperValve . java : 214 )
at org . apache . catalina . core . StandardValveContext . invokeNext ( StandardValveContext . java : 104 )
at org . apache . catalina . core . StandardPipeline . invoke ( StandardPipeline . java : 520 )
at org . apache . catalina . core . StandardContextValve . invokeInternal ( StandardContextValve . java : 198 )
at org . apache . catalina . core . StandardContextValve . invoke ( StandardContextValve . java : 152 )
at org . apache . catalina . core . StandardValveContext . invokeNext ( StandardValveContext . java : 104 )
at org . jboss . web . tomcat . security . CustomPrincipalValve . invoke ( CustomPrincipalValve . java : 66 )
at org . apache . catalina . core . StandardValveContext . invokeNext ( StandardValveContext . java : 102 )
at org . jboss . web . tomcat . security . SecurityAssociationValve . invoke ( SecurityAssociationValve . java : 158 )
at org . apache . catalina . core . StandardValveContext . invokeNext ( StandardValveContext . java : 102 )
at org . apache . catalina . core . StandardPipeline . invoke ( StandardPipeline . java : 520 )
at org . apache . catalina . core . StandardHostValve . invoke ( StandardHostValve . java : 137 )
at org . apache . catalina . core . StandardValveContext . invokeNext ( StandardValveContext . java : 104 )
at org . apache . catalina . valves . ErrorReportValve . invoke ( ErrorReportValve . java : 118 )
at org . apache . catalina . core . StandardValveContext . invokeNext ( StandardValveContext . java : 102 )
at org . apache . catalina . core . StandardPipeline . invoke ( StandardPipeline . java : 520 )
at org . apache . catalina . core . StandardEngineValve . invoke ( StandardEngineValve . java : 109 )
at org . apache . catalina . core . StandardValveContext . invokeNext ( StandardValveContext . java : 104 )
at org . apache . catalina . core . StandardPipeline . invoke ( StandardPipeline . java : 520 )
at org . apache . catalina . core . ContainerBase . invoke ( ContainerBase . java : 929 )
at org . apache . coyote . tomcat5 . CoyoteAdapter . service ( CoyoteAdapter . java : 160 )
at org . apache . coyote . http11 . Http11Processor . process ( Http11Processor . java : 799 )
at org . apache . coyote . http11 . Http11Protocol $ Http11ConnectionHandler . processConnection ( Http11Protocol . java : 705 )
at org . apache . tomcat . util . net . TcpWorkerThread . runIt ( PoolTcpEndpoint . java : 577 )
at org . apache . tomcat . util . threads . ThreadPool $ ControlRunnable . run ( ThreadPool . java : 683 )
at java . lang . Thread . run ( Thread . java : 534 )
Diogenes 17 de jun. de 2005
Já deu uma verificada no teu SessionFacade?Pelo visto ele nao estah conseguindo cria-lo.
Como estah sua classe EplaqSessionFacadeHome???
wooddz 17 de jun. de 2005
Diogenes, o SessionFacade me parece não conter nada de errado… e a classe EplaqSessionFacadeHome é a seguinte:
package eplaq ;
import javax.ejb.EJBHome ;
import javax.ejb.CreateException ;
import java.rmi.RemoteException ;
public interface EplaqSessionFacadeHome extends EJBHome {
public EplaqSessionFacade create () throws CreateException , RemoteException ;
}
Diogenes 17 de jun. de 2005
Já verificou se Deployment descriptor neh?!
wooddz 17 de jun. de 2005
Sou iniciante em J2EE… deployment descriptor seria o ejb-jar.xml?? Se for o caso, que configurações devem ser feitas nele?
Diogenes 17 de jun. de 2005
Olha, achei uma coisinha que pode se relacionar com teu erro.
http://jboss.com/?module=bb&op=viewtopic&t=63844
Make sure that no class is deployed more than once in an EAR. For example, if your servlet is calling an ejb, make sure only to deploy the ejb classes in the ejb jar, do not deploy them in your WAR.
Diogenes 17 de jun. de 2005
wooddz 17 de jun. de 2005
Valeu Diogenes! Vou dar uma boa olhada nos exemplos ;o]~