[jboss-user] [JNDI/Naming/Network] - Re: Exception javax.naming.NameNotFoundException
ganesh.pol
do-not-reply at jboss.com
Mon May 21 12:02:02 EDT 2007
I am using example on roseindia.net to sart the learning
___________________________________________________
i put my ear file in
C:\devTools\jboss-4.0.1\jboss-4.0.1\server\default\deploy
with name mfsc.ear
___________________________________________________
following is o/p of console
==============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\devTools\jboss-4.0.1\jboss-4.0.1\bin\\..
JAVA: C:\devTools\jdk-1_5_0_11\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
CLASSPATH: C:\devTools\jdk-1_5_0_11\lib\tools.jar;C:\devTools\jboss-4.0.1\jboss-4.0.1\bin\\run.jar
==============================================================================
1:09:05,978 INFO [Server] Starting JBoss (MX MicroKernel)...
1:09:05,978 INFO [Server] Release ID: JBoss [Zion] 4.0.1 (build: CVSTag=JBoss_4_0_1 date=200412230944)
1:09:05,978 INFO [Server] Home Dir: C:\devTools\jboss-4.0.1\jboss-4.0.1
1:09:05,978 INFO [Server] Home URL: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/
1:09:05,978 INFO [Server] Library URL: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/lib/
1:09:05,978 INFO [Server] Patch URL: null
1:09:05,978 INFO [Server] Server Name: default
1:09:05,978 INFO [Server] Server Home Dir: C:\devTools\jboss-4.0.1\jboss-4.0.1\server\default
1:09:05,978 INFO [Server] Server Home URL: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/
1:09:05,994 INFO [Server] Server Data Dir: C:\devTools\jboss-4.0.1\jboss-4.0.1\server\default\data
1:09:05,994 INFO [Server] Server Temp Dir: C:\devTools\jboss-4.0.1\jboss-4.0.1\server\default\tmp
1:09:05,994 INFO [Server] Server Config URL: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/conf/
1:09:05,994 INFO [Server] Server Library URL: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/lib/
1:09:05,994 INFO [Server] Root Deployment Filename: jboss-service.xml
1:09:05,994 INFO [Server] Starting General Purpose Architecture (GPA)...
1:09:06,260 INFO [ServerInfo] Java version: 1.5.0_11,Sun Microsystems Inc.
1:09:06,260 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_11-b03,Sun Microsystems Inc.
1:09:06,260 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
1:09:06,605 INFO [Server] Core system initialized
1:09:07,733 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
1:09:07,795 INFO [WebService] Using RMI server codebase: http://ps4701:8083/
1:09:08,046 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null
Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory at ad093076
1:09:13,950 INFO [Embedded] Catalina naming disabled
1:09:14,342 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
1:09:14,467 INFO [Catalina] Initialization processed in 454 ms
1:09:14,467 INFO [StandardService] Starting service jboss.web
1:09:14,483 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.28
1:09:14,499 INFO [StandardHost] XML validation disabled
1:09:14,514 INFO [Catalina] Server startup in 47 ms
1:09:14,624 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/deploy/http-invoker
sar/invoker.war/
1:09:15,203 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/tmp/deploy/tmp987jbos
-ws4ee-exp.war/
1:09:15,313 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/deploy/jbossweb-tomcat50.s
r/ROOT.war/
1:09:15,485 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/deploy/jms/j
ossmq-httpil.sar/jbossmq-httpil.war/
1:09:17,365 INFO [MailService] Mail Service bound to java:/Mail
1:09:17,756 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/defaul
/deploy/jboss-local-jdbc.rar
1:09:17,882 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/defaul
/deploy/jboss-xa-jdbc.rar
1:09:18,069 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/defaul
/deploy/jms/jms-ra.rar
1:09:18,179 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/defaul
/deploy/mail-ra.rar
1:09:18,931 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBi
ding,name=DefaultDS to JNDI name 'java:DefaultDS'
1:09:18,947 WARN [ConfiguredIdentityLoginModule] Creating LoginModule with no configured password!
1:09:19,166 INFO [A] Bound to JNDI name: queue/A
1:09:19,166 INFO [B] Bound to JNDI name: queue/B
1:09:19,166 INFO [C] Bound to JNDI name: queue/C
1:09:19,166 INFO [D] Bound to JNDI name: queue/D
1:09:19,166 INFO [ex] Bound to JNDI name: queue/ex
1:09:19,181 INFO [testTopic] Bound to JNDI name: topic/testTopic
1:09:19,181 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
1:09:19,181 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
1:09:19,181 INFO [testQueue] Bound to JNDI name: queue/testQueue
1:09:19,228 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
1:09:19,260 INFO [DLQ] Bound to JNDI name: queue/DLQ
1:09:19,401 INFO [ConnectionFactoryBindingService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=Conne
tionFactoryBinding,name=JmsXA to JNDI name 'java:JmsXA'
1:09:19,432 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/deploy/jmx-cons
le.war/
1:09:19,604 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/deploy/manageme
t/web-console.war/
1:09:20,106 INFO [EARDeployer] Init J2EE application: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/deploy/example.ear
1:09:20,513 INFO [EjbModule] Deploying test/MyTestSession
1:09:20,560 INFO [EjbModule] Deploying ejb/CalculatorSessionBean
1:09:20,622 INFO [EJBDeployer] Deployed: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/tmp/deploy/tmp1038example.ear-contents/exampl
.jar
1:09:20,920 INFO [TomcatDeployer] deploy, ctxPath=/example, warUrl=file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/tmp/deploy/tmp1038e
ample.ear-contents/example-exp.war/
1:09:21,014 INFO [EARDeployer] Started J2EE application: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/deploy/example.ear
1:09:21,045 INFO [EARDeployer] Init J2EE application: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/deploy/example2.ear
1:09:21,077 INFO [TomcatDeployer] deploy, ctxPath=/example2, warUrl=file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/tmp/deploy/tmp1039
xample2.ear-contents/example2-exp.war/
1:09:21,186 INFO [EARDeployer] Started J2EE application: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/deploy/example2.ear
1:09:21,202 INFO [EARDeployer] Init J2EE application: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/deploy/mfsc.ear
1:09:21,358 INFO [TomcatDeployer] deploy, ctxPath=/mfsc, warUrl=file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/tmp/deploy/tmp1040mfsc
ear-contents/mfsc-exp.war/
1:09:21,452 INFO [EARDeployer] Started J2EE application: file:/C:/devTools/jboss-4.0.1/jboss-4.0.1/server/default/deploy/mfsc.ear
1:09:21,593 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
1:09:21,656 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
1:09:21,656 INFO [JkMain] Jk running ID=0 time=0/16 config=null
1:09:21,672 INFO [Server] JBoss (MX MicroKernel) [4.0.1 (build: CVSTag=JBoss_4_0_1 date=200412230944)] Started in 15s:568ms
1:29:46,763 INFO [STDOUT] mode isnull
1:29:59,399 INFO [STDOUT] mode isprocess
1:29:59,399 INFO [STDOUT] looking for JNDI nameejb/UserSession
1:29:59,415 INFO [STDOUT] naming Exception occured
1:29:59,415 INFO [STDOUT] javax.naming.NameNotFoundException: UserSession not bound
1:29:59,415 INFO [STDOUT] at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
1:29:59,415 INFO [STDOUT] at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
1:29:59,415 INFO [STDOUT] at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
1:29:59,415 INFO [STDOUT] at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
1:29:59,415 INFO [STDOUT] at org.jnp.server.NamingServer.lookup(NamingServer.java:252)
1:29:59,415 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:544)
1:29:59,415 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
1:29:59,415 INFO [STDOUT] at javax.naming.InitialContext.lookup(InitialContext.java:351)
1:29:59,415 INFO [STDOUT] at com.pspl.common.delegate.CommonDelegate.getUserRemoteObject(CommonDelegate.java:32)
1:29:59,415 INFO [STDOUT] at com.pspl.common.delegate.CommonDelegate.authenticateUser(CommonDelegate.java:54)
1:29:59,415 INFO [STDOUT] at com.pspl.common.admin.user.web.LoginServlet.isValidUser(LoginServlet.java:66)
1:29:59,415 INFO [STDOUT] at com.pspl.common.admin.user.web.LoginServlet.processRequest(LoginServlet.java:48)
1:29:59,415 INFO [STDOUT] at com.pspl.common.admin.user.web.LoginServlet.doPost(LoginServlet.java:39)
1:29:59,415 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
1:29:59,415 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
1:29:59,415 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
1:29:59,415 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
1:29:59,415 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
1:29:59,415 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
1:29:59,415 INFO [STDOUT] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
1:29:59,415 INFO [STDOUT] at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
1:29:59,415 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
1:29:59,415 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
1:29:59,415 INFO [STDOUT] at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
1:29:59,415 INFO [STDOUT] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
1:29:59,415 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
1:29:59,415 ERROR [Engine] StandardWrapperValve[LoginServlet]: Servlet.service() for servlet LoginServlet threw exception
ava.lang.NullPointerException
at com.pspl.common.delegate.CommonDelegate.getUserRemoteObject(CommonDelegate.java:40)
at com.pspl.common.delegate.CommonDelegate.authenticateUser(CommonDelegate.java:54)
at com.pspl.common.admin.user.web.LoginServlet.isValidUser(LoginServlet.java:66)
at com.pspl.common.admin.user.web.LoginServlet.processRequest(LoginServlet.java:48)
at com.pspl.common.admin.user.web.LoginServlet.doPost(LoginServlet.java:39)
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:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:54)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047298#4047298
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047298
More information about the jboss-user
mailing list