[jboss-user] [EJB 3.0] - EJB3/Jboss - binding issue.

heedree do-not-reply at jboss.com
Sun Sep 3 22:41:16 EDT 2006


Hi, I'm pretty new to EJB3 and I started doing this simple forum tutorial (http://www.informit.com/guides/content.asp?g=java&seqNum=239&rl=1) 

I created an EAR and put the EJBs in the EJB module and the test servlet in the Web module. It deploys without errors, but when I invoke the getForums command I get an error. 

I've been trying to fix this for about 5 days now. I hope someone can help me out here. 

I know that the problem has to do with the ForumManager session bean. 

I'm using MyEclipse 5/Eclipse 3.2 / Jboss 404 / MySQL 

-Thanks in advance 

stacktrace 
anonymous wrote : 
  | 21:59:31,197 ERROR [STDERR] javax.naming.NameNotFoundException: com.javasrc.forums.business.ForumManager not bound 
  | 21:59:31,197 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) 
  | 21:59:31,197 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) 
  | 21:59:31,217 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543) 
  | 21:59:31,217 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:296) 
  | 21:59:31,217 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
  | 21:59:31,217 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
  | 21:59:31,227 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
  | 21:59:31,227 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 
  | 21:59:31,227 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) 
  | 21:59:31,227 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Transport.java:153) 
  | 21:59:31,227 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method) 
  | 21:59:31,227 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Transport.java:149) 
  | 21:59:31,227 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) 
  | 21:59:31,227 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) 
  | 21:59:31,227 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595) 
  | 21:59:31,227 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) 
  | 21:59:31,227 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) 
  | 21:59:31,227 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) 
  | 21:59:31,227 ERROR [STDERR] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) 
  | 21:59:31,227 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625) 
  | 21:59:31,227 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) 
  | 21:59:31,227 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351) 
  | 21:59:31,227 ERROR [STDERR] at com.javasrc.forums.web.ForumServlet.init(ForumServlet.java:39) 
  | 21:59:31,227 ERROR [STDERR] at javax.servlet.GenericServlet.init(GenericServlet.java:211) 
  | 21:59:31,227 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) 
  | 21:59:31,227 ERROR [STDERR] at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757) 
  | 21:59:31,227 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130) 
  | 21:59:31,227 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 
  | 21:59:31,227 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) 
  | 21:59:31,227 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) 
  | 21:59:31,227 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 
  | 21:59:31,227 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
  | 21:59:31,227 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 
  | 21:59:31,227 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
  | 21:59:31,227 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) 
  | 21:59:31,227 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 
  | 21:59:31,227 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) 
  | 21:59:31,227 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) 
  | 21:59:31,227 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595) 
  | 
  | 21:59:31,237 ERROR [[ForumServlet]] Servlet.service() for servlet ForumServlet threw exception 
  | java.lang.NullPointerException 
  | at com.javasrc.forums.web.ForumServlet.service(ForumServlet.java:57) 
  | 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:595) 
  |  


ForumServlet.java:
http://72.232.109.90/devtest/ForumServlet.java

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969142#3969142

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969142



More information about the jboss-user mailing list