2 Replies Latest reply: Dec 13, 2005 3:31 PM by F D RSS

RE: naming look up issue with ejb3.0 in jboss

henry fan Newbie

after deploying ejb3.0 and my ejb3.0 application into jboss4.0.3 , i got following logs in jboss startup console:

......
16:09:56,982 INFO [JaccHelper] com.comcom.test.ShoppingCartBean has no @SecurityDomain - skipping JACC configuration
16:09:56,982 INFO [JaccHelper] JACC Policy Configuration for deployment has been put in service
16:09:56,982 INFO [Ejb3Deployment] EJB3 deployment time took: 343
16:09:57,045 INFO [ProxyDeployer] no declared remote bindings for : com.comcom.test.ShoppingCartBean
16:09:57,045 INFO [ProxyDeployer] there is remote interfaces for com.comcom.test.ShoppingCartBean
16:09:57,045 INFO [ProxyDeployer] default remote binding has jndiName of com.comcom.test.ShoppingCart
16:09:57,092 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.0.3/server/default/deploy/pz3Server.ejb3

But i can not find the name of remote interface when runing a web client located a seperate tomcat server. the naming lookup codes and the error logs as following. Does someone have idea on it?


......code......
InitialContext ctx = new InitialContext();
ShoppingCart cart = (ShoppingCart) ctx.lookupShoppingCart.class.getName());

......error logs......
javax.naming.NameNotFoundException: Name com.comcom.test.ShoppingCart is not bou
nd in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.comcom.login.LoginAction.execute(LoginAction.java:48)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:116
4)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
526)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:595)

  • 1. Re: RE: naming look up issue with ejb3.0 in jboss
    Murtuza Vohra Newbie

    I have the message when deploying but the application at the server and client seems to working fine.

    INFO [ProxyDeployer] no declared remote bindings for : com.kt.session.account.AccountManagerBean
    20:20:35,086 INFO [ProxyDeployer] there is remote interfaces for com.kt.session.account.AccountManagerBean
    20:20:35,086 INFO [ProxyDeployer] default remote binding has jndiName of com.kt.session.account.AccountManager
    20:20:35,352 INFO [ProxyDeployer] no declared remote bindings for : com.kt.session.common.TableKeysManagerBean
    20:20:35,352 INFO [ProxyDeployer] there is remote interfaces for com.kt.session.common.TableKeysManagerBean
    20:20:35,352 INFO [ProxyDeployer] default remote binding has jndiName of com.kt.session.common.TableKeysManager



    Is this critical error

    Murtuza

  • 2. Re: RE: naming look up issue with ejb3.0 in jboss
    F D Newbie

    I have an application with the same error. I am trying to solve it - but not successulf yet. Please let me know your findings.
    Thanks