1 Reply Latest reply on Jan 31, 2007 10:48 AM by Peter Johnson

    javax.naming.NamingException

    hussain rangwala Newbie

      hi everyone
      i am trying to deploy a struts application as a portlet on JBoss portal 2.4.0.GA.The application gets deployed and also i can see the login page however wen i click on the submit button on the ogin page i get these exceptions.....Please help me out as i am stuck on this for a long time......i am having jdk 1.5 installed and i m using windows xp hope this information helps.....


      49585 WARN [http-0.0.0.0-8080-3] org.springframework.beans.factory.support.CglibSubclassingInstanti
      ationStrategy - Factory method [public java.lang.Object com.infosys.j2ee.subframework.business
      logic.impl.LocalEJBServiceFactory.createService(com.infosys.j2ee.core.config.ServiceConfigType,java.
      util.Map) throws com.infosys.j2ee.core.ServiceException] threw exception
       com.infosys.j2ee.core.ServiceException: Error while creating a local EJB Service using config com.i
      nfosys.j2ee.core.config.jaxb.impl.ServiceConfigVOImpl@246b6d
       at com.infosys.j2ee.subframework.businesslogic.impl.LocalEJBServiceFactory.createService(Unknown So
      urce)
       at com.infosys.j2ee.subframework.businesslogic.impl.LocalEJBServiceFactory.createService(Unknown So
      urce)
       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:585)
       at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstanti
      ationStrategy.java:109)
       at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(Cons
      tructorResolver.java:281)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFac
      toryMethod(AbstractAutowireCapableBeanFactory.java:520)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(Abstract
      AutowireCapableBeanFactory.java:373)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:2
      41)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:1
      52)
       at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContex
      t.java:606)
       at com.infosys.j2ee.core.impl.RadienDIServicesReader.createService(RadienDIServicesReader.java:154)
      
       at com.infosys.j2ee.core.impl.RadienDIServiceManager.createService(RadienDIServiceManager.java:88)
       at com.infosys.j2ee.core.impl.RadienServiceLocator.getService(RadienServiceLocator.java:101)
       at com.infosys.j2ee.setlbank.web.actions.QuickViewAction.execute(QuickViewAction.java:80)
       at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
       at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
       at org.apache.portals.bridges.struts.PortletTilesRequestProcessor.process(PortletTilesRequestProces
      sor.java:50)
       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
       at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
       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(Http11Base
      Protocol.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:595)
      Caused by: com.infosys.j2ee.subframework.businesslogic.impl.JNDIServiceLocatorException: Error while
       looking for the local home stub using the jndi name - java:comp/env/ejb/AccountsInfoEJB
       at com.infosys.j2ee.subframework.businesslogic.impl.JNDIServiceLocator.getLocalHome(JNDIServiceLoca
      tor.java:133)
       ... 42 more
      
      Caused by: javax.naming.NamingException: Could not dereference object [Root exception is javax.namin
       g.NameNotFoundException: ejb not bound]
      
       at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1067)
       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:351)
       at com.infosys.j2ee.subframework.businesslogic.impl.JNDIServiceLocator.getLocalHome(JNDIServiceLoca
      tor.java:126)
       ... 42 more
      
      Caused by: javax.naming.NameNotFoundException: ejb 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:351)
       at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1061)
       ... 47 more
      49585 DEBUG [http-0.0.0.0-8080-3] org.springframework.beans.factory.support.DefaultListableBeanFacto
      ry - Retrieving dependent beans for bean 'setlbank-accountejbservice'
       49616 ERROR [http-0.0.0.0-8080-3] org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/
      SETLAppName].[action] - Servlet.service() for servlet action threw exception
       java.lang.NullPointerException
       at com.infosys.j2ee.setlbank.web.actions.QuickViewAction.execute(QuickViewAction.java:83)
       at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
       at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
       at org.apache.portals.bridges.struts.PortletTilesRequestProcessor.process(PortletTilesRequestProces
      sor.java:50)
       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
       at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
       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(Http11Base
      Protocol.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:595)
      
      
      



      Kindly reply as soon as possible
      Thanks
      Hussain