Hi,

I'm trying to run a java .ejb project with jboss. I have deployed my .ear in the jboss/server/default/deploy location. when i run it and try to access the LoginServlet, I get this exception. pls help.

exception
 
javax.servlet.ServletException: Error instantiating servlet class UserHandling.LoginServlet
	org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
	org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
	org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
	org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
	org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	java.lang.Thread.run(Unknown Source)
root cause
 
java.lang.RuntimeException: Unable to inject jndi dependency: env/UserHandling.LoginServlet/userHandlingSessionLocal into property UserHandling.LoginServlet.userHandlingSessionLocal: WHIMS not bound
	org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:82)
	org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:99)
	org.jboss.web.tomcat.service.TomcatInjectionContainer.processInjectors(TomcatInjectionContainer.java:380)
	org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:259)
	org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
	org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
	org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
	org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
	org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	java.lang.Thread.run(Unknown Source)
root cause
 
javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: WHIMS not bound]
	org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1348)
	org.jnp.interfaces.NamingContext.lookup(NamingContext.java:813)
	org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)
	org.jboss.ejb3.JndiUtil.lookup(JndiUtil.java:44)
	org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:75)
	org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:99)
	org.jboss.web.tomcat.service.TomcatInjectionContainer.processInjectors(TomcatInjectionContainer.java:380)
	org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:259)
	org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
	org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
	org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
	org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
	org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	java.lang.Thread.run(Unknown Source)
root cause
 
javax.naming.NameNotFoundException: WHIMS not bound
	org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
	org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
	org.jnp.server.NamingServer.getObject(NamingServer.java:785)
	org.jnp.server.NamingServer.lookup(NamingServer.java:396)
	org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
	org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)
	javax.naming.InitialContext.lookup(Unknown Source)
	org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1342)
	org.jnp.interfaces.NamingContext.lookup(NamingContext.java:813)
	org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)
	org.jboss.ejb3.JndiUtil.lookup(JndiUtil.java:44)
	org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:75)
	org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:99)
	org.jboss.web.tomcat.service.TomcatInjectionContainer.processInjectors(TomcatInjectionContainer.java:380)
	org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:259)
	org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
	org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
	org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
	org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
	org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	java.lang.Thread.run(Unknown Source)

thanks
jessie