This content has been marked as final.
Show 3 replies
-
1. Re: Any good adivce for ejb not bound
darranl Oct 20, 2005 11:43 AM (in response to urswag)Wrap your XML using [ code ][ /code ] tags without the spaces and use the preview button to make sure it displays correctly.
Where is your lookup code that is being executed? Is it part of a session bean or is it code in the web application? Can you show the code.
What type of component is 'PartnerAgencyBean'? -
2. Re: Any good adivce for ejb not bound
urswag Oct 20, 2005 12:07 PM (in response to urswag)Thanks You help me.
I use xdoclet. I thought the PartnerAgency bean lookup does not work. Correctly the Partner bean lookup fails.
I had to add* @ejb.ejb-ref * ejb-name="Partner" * view-type="local" * ref-name="ejb/PartnerLocal"
to generate the necessary ejb-local-ref entry in ejb-jar.xml.
The next error I think has the reason that I have no entry in the database table.
ThanksCaused by: javax.ejb.EJBException: Could not instantiate bean; CausedByException is: createBeanClassInstanceCommand == null at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:191) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:98) at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61) at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28) at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:508) at org.jboss.ejb.Container.invoke(Container.java:894) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:344) at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118) at $Proxy169.findByNickName(Unknown Source) at org.partneragency.ejb.PartnerAgencyBean.login(PartnerAgencyBean.java:56)
-
3. Re: Any good adivce for ejb not bound
rke21 Oct 21, 2005 12:24 PM (in response to urswag)what are you looking up? Are you using the ENC? From the outside, you won't be able to lookup java:/comp. There will be nothing there. you'll have to look up in the global namespace.