[Installation, Configuration & Deployment] - javax.naming.NameNotFoundException
by ccc7919
When I try to run my EJB project using JBuilder and Jboss 4.xx, I've got the error as below;
This happened in the line od code :
Object objRef = initialContext.lookup(jndiName);
===================================================
17:25:25,156 ERROR [[action]] Servlet.service() for servlet action threw exception
javax.naming.NameNotFoundException: rpc not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1061)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:700)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:716)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at rpc.services.promotion.util.PromotionUtil.lookupHome(PromotionUtil.java:38)
at rpc.services.promotion.util.PromotionUtil.getLocalHome(PromotionUtil.java:59)
at rpc.de.web.struts.action.BaseAction.getPromotion(BaseAction.java:69)
at rpc.de.web.struts.action.signon.LoginAction.doExecute(LoginAction.java:41)
at rpc.de.web.struts.action.BaseAction.execute(BaseAction.java:64)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
=======================================================================================
I also debuged why it happened showing all bound names as below:
========================================================================================
17:25:25,000 INFO [STDOUT] JNDI name : java:/comp/env/ejb/PromotionLocal
17:25:25,000 INFO [STDOUT] Name:ChequeDataLocal==> CLASS NAME:$Proxy96
17:25:25,000 INFO [STDOUT] Name:RegionCodeLocal==> CLASS NAME:$Proxy93
17:25:25,000 INFO [STDOUT] Name:ValidateSubscriberLocal==> CLASS NAME:$Proxy102
17:25:25,046 INFO [STDOUT] Name:PricePlanLocal==> CLASS NAME:$Proxy104
17:25:25,046 INFO [STDOUT] Name:QueueConnectionFactory==> CLASS NAME:org.jboss.naming.LinkRefPair
17:25:25,046 INFO [STDOUT] javax.naming.Context:::Name:HAPartition==> CLASS NAME:org.jnp.interfaces.NamingContext
17:25:25,046 INFO [STDOUT] Name:CreditAppliedLocal==> CLASS NAME:$Proxy112
17:25:25,046 INFO [STDOUT] Name:ManfDescriptionLocal==> CLASS NAME:$Proxy97
17:25:25,046 INFO [STDOUT] Name:ValidateSubplanLocal==> CLASS NAME:$Proxy105
17:25:25,046 INFO [STDOUT] Name:XAConnectionFactory==> CLASS NAME:org.jboss.mq.SpyXAConnectionFactory
17:25:25,046 INFO [STDOUT] javax.naming.Context:::Name:queue==> CLASS NAME:org.jnp.interfaces.NamingContext
17:25:25,046 INFO [STDOUT] Name:PhoneCodeLocal==> CLASS NAME:$Proxy107
17:25:25,046 INFO [STDOUT] Name:Treo600DataPlanLocal==> CLASS NAME:$Proxy106
17:25:25,062 INFO [STDOUT] Name:UUIDKeyGeneratorFactory==> CLASS NAME:org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory
17:25:25,062 INFO [STDOUT] Name:HiLoKeyGeneratorFactory==> CLASS NAME:org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory
17:25:25,062 INFO [STDOUT] Name:StagingBlackberryLocal==> CLASS NAME:$Proxy92
17:25:25,062 INFO [STDOUT] Name:UIL2ConnectionFactory==> CLASS NAME:javax.naming.LinkRef
17:25:25,062 INFO [STDOUT] Name:UserTransactionSessionFactory==> CLASS NAME:$Proxy52
17:25:25,062 INFO [STDOUT] Name:CouponsLocal==> CLASS NAME:$Proxy115
17:25:25,062 INFO [STDOUT] Name:UILXAConnectionFactory==> CLASS NAME:javax.naming.LinkRef
17:25:25,062 INFO [STDOUT] Name:PrecustomerLocal==> CLASS NAME:$Proxy101
17:25:25,062 INFO [STDOUT] Name:UndeliverableLocal==> CLASS NAME:$Proxy98
17:25:25,078 INFO [STDOUT] Name:CouponLocal==> CLASS NAME:$Proxy108
17:25:25,078 INFO [STDOUT] javax.naming.Context:::Name:console==> CLASS NAME:org.jnp.interfaces.NamingContext
17:25:25,078 INFO [STDOUT] Name:UpdateLocal==> CLASS NAME:$Proxy95
17:25:25,078 INFO [STDOUT] Name:HTTPXAConnectionFactory==> CLASS NAME:org.jboss.mq.SpyXAConnectionFactory
17:25:25,078 INFO [STDOUT] Name:ValidatorHelperLocal==> CLASS NAME:$Proxy113
17:25:25,078 INFO [STDOUT] javax.naming.Context:::Name:topic==> CLASS NAME:org.jnp.interfaces.NamingContext
17:25:25,078 INFO [STDOUT] Name:StagingLocal==> CLASS NAME:$Proxy110
17:25:25,078 INFO [STDOUT] Name:SequenceSessionLocal==> CLASS NAME:$Proxy114
17:25:25,078 INFO [STDOUT] Name:RogerspriceplanLocal==> CLASS NAME:$Proxy89
17:25:25,078 INFO [STDOUT] Name:RebateMailDateLocal==> CLASS NAME:$Proxy99
17:25:25,078 INFO [STDOUT] Name:ProvinceLocal==> CLASS NAME:$Proxy100
17:25:25,078 INFO [STDOUT] Name:UserTransaction==> CLASS NAME:org.jboss.tm.usertx.client.ClientUserTransaction
17:25:25,078 INFO [STDOUT] Name:HTTPConnectionFactory==> CLASS NAME:org.jboss.mq.SpyConnectionFactory
17:25:25,078 INFO [STDOUT] Name:CustomerLocal==> CLASS NAME:$Proxy103
17:25:25,078 INFO [STDOUT] Name:SequenceLocal==> CLASS NAME:$Proxy94
17:25:25,093 INFO [STDOUT] javax.naming.Context:::Name:HASessionState==> CLASS NAME:org.jnp.interfaces.NamingContext
17:25:25,093 INFO [STDOUT] Name:UIL2XAConnectionFactory==> CLASS NAME:javax.naming.LinkRef
17:25:25,093 INFO [STDOUT] Name:NoteLocal==> CLASS NAME:$Proxy111
17:25:25,093 INFO [STDOUT] Name:PromoCodeLocal==> CLASS NAME:$Proxy109
17:25:25,093 INFO [STDOUT] javax.naming.Context:::Name:invokers==> CLASS NAME:org.jnp.interfaces.NamingContext
17:25:25,093 INFO [STDOUT] Name:EventDispatcher==> CLASS NAME:org.jboss.ws.eventing.mgmt.DispatcherDelegate
17:25:25,093 INFO [STDOUT] Name:UILConnectionFactory==> CLASS NAME:javax.naming.LinkRef
17:25:25,093 INFO [STDOUT] javax.naming.Context:::Name:jmx==> CLASS NAME:org.jnp.interfaces.NamingContext
17:25:25,093 INFO [STDOUT] Name:PromotionLocal==> CLASS NAME:$Proxy116
17:25:25,093 INFO [STDOUT] Name:AccountLocal==> CLASS NAME:$Proxy90
17:25:25,109 INFO [STDOUT] Name:ConnectionFactory==> CLASS NAME:org.jboss.mq.SpyConnectionFactory
17:25:25,109 INFO [STDOUT] Name:TopicConnectionFactory==> CLASS NAME:org.jboss.naming.LinkRefPair
17:25:25,109 INFO [STDOUT] Name:StatusCodeLocal==> CLASS NAME:$Proxy91
=============================================================
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962014#3962014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962014
18 years, 3 months