• Post Reply Bookmark Topic Watch Topic
  • New Topic

CommunicationException in TOMCAT/JBOSS

 
Venkat Ammisetty
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends

I got struck up at CommunicationException in JBOSS/TOMCAT.
I am able to deploy the EJB's in JBOSS.
And I placed all of my JSP pages in a folder called netcrm in jsp folder of examples directory in TOMCAT server.
I changed the TOMCAT port to 8000 as mentioned in your PDF.
I followed the steps as mention in PDF.copying ejb.jar,ejb-client.jar to lib folder in TOMCAT.
I started two servers independently( i.e I am not using EMBEDEDTOMCAT).
Now I am calling my Logon JSP page,which will call my LOGON BEAN.
At this stage I getting CommuniactionException.
I guess I did mistake in setting classpath.
I would like to know where I did mistake to get exception.
I am fighting with this error from 2 days,please help me.
As a trail and error method,I did the following.
I set classpath in tomcat.bat as set cp=%cp%;%TOMCAT_HOME%\lib\crmLogon.jar
it is working fine,with one and only one bean.
If I set classpath again in tomcat.bat in addition to logon bean as set cp=%cp%;%TOMCAT_HOME%\lib\crmBrowse.jar
I am getting CommunicationException.
My question is "where do I set the classpath to tomcat to read the jar file in jboss and how"
I am pasting the exception I got.
I hope I explained it clearly,Please help me,I did not found much help regarding this exception exclusively for JBOSS.
waiting for your reply
Thnak's for reading this mail
---Venkat Ammisetty
Error: 500
Location: /examples/jsp/netcrm/BrowseEjb.jsp
Internal Servlet Error:
javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at jsp.netcrm._0002fjsp_0002fnetcrm_0002fBrowseEjb_0002ejspBrowseEjb_jsp_2._jspService(_0002fjsp_0002fnetcrm_0002fBrowseEjb_0002ejspBrowseEjb_jsp_2.java:679)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
Root cause:
javax.naming.CommunicationException. Root exception is java.lang.ClassNotFoundException: crmBrowse.BrowseHome
at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:524)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:183)
at java.io.ObjectInputStream.inputProxyClassDescriptor(ObjectInputStream.java:982)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:299)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at jsp.netcrm._0002fjsp_0002fnetcrm_0002fBrowseEjb_0002ejspBrowseEjb_jsp_2._jspService(_0002fjsp_0002fnetcrm_0002fBrowseEjb_0002ejspBrowseEjb_jsp_2.java:228)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
---Venkat Ammisetty
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!