Hello, when I try to do this operation, I have this error :

11:41:53,843 ERROR [LogInterceptor] EJBException:
javax.ejb.EJBException: Invalid invocation, check your deployment packaging, 
method=public abstract de.danet.an.workflow.ejbs.WorkflowEngine 
de.danet.an.workflow.ejbs.WorkflowEngineHome.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:205)
        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:94)
        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:743)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at ...


Why???


The java code is this:

....

Hashtable props = new Hashtable();
props.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
props.put(Context.PROVIDER_URL,"jnp://localhost:1099");

initialContext = new InitialContext(props);
objref = initialContext.lookup(homeName);
Object narrowObj = PortableRemoteObject.narrow(objref, 
WorkflowEngineHome.class);
                                
WorkflowEngineHome wfeh = (WorkflowEngineHome) narrowObj;
WorkflowEngine wfe = wfeh.create();

....


Why ??? 

Thank you




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867579#3867579

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867579


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to