BTW, I can't understand why there is a client.jar even if all these
classes are in tomcat-test.jar as well. Is it because we need only the
interfaces to run the client? but still why is this duplication, I can't
imagine having this kind of a solution for a reasonably big
application...

Thanks, this is what I was looking for
Abhishek

Shahar Solomianik wrote:
> 
> Hi.
> Look at the tomcat-test.ear example that comes in /deploy with
> jboss_final.
> it has a client.jar containing all files neccessary for the ejb
> clients(i.e.
> your servlets) and the manifest.mf of the war contains a classpath
> extension
> pointing to the client.jar
> 
> Shahar.
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Abhishek Balaria
> Sent: Monday, January 08, 2001 3:41 PM
> To: jBoss
> Subject: Re: [jBoss-User] please help...I am stuck..ear classpath...not
> found in import error
> 
> Thanks Ken, but it doesn't solve the problem..
> 
> > Yes and the answer is in the error message :-)
> >
> > >Package org.infohazard.ejb.einstein not found in import.
> > Make sure it's in the classpath.
> 
> Of course, the problem is that it's not in the classpath. But my
> question is "If I have the bean JAR in the EAR file and importing a bean
> Home/Remote interfaces in a WAR (a servlet or jsp) which is also in the
> EAR, why and where do I need these classes to be in CLASSPATH?
> 
> >
> > >import org.infohazard.ejb.einstein.*
> >
> 
> Import is correct. BTW, all I am trying is to run JUnitEE examples with
> JBoss. JUnitEE is the Unit testing framework for testing EJBs.
> 
> Anyone else know more abt the classpath for an EAR file please?
> 
> Thanks anyway
> Abhishek
> >
> > -----Original Message-----
> > From: Abhishek Balaria [mailto:[EMAIL PROTECTED]]
> > Sent: 08 January 2001 13:25
> > To: jBoss
> > Subject: [jBoss-User] please help...I am stuck..ear classpath...not
> > found in import error
> >
> > Hi,
> >   I have packaged my application in an ear(following are the contents)
> >
> >     22 Mon Jan 08 12:04:00 GMT+01:00 2001 META-INF/MANIFEST.MF
> >    844 Mon Jan 08 12:04:00 GMT+01:00 2001 META-INF/application.xml
> >   2683 Mon Jan 08 12:04:00 GMT+01:00 2001 junitee-example-ejb.jar
> >   2073 Mon Jan 08 12:04:00 GMT+01:00 2001 junitee-example-web.war
> >   3344 Mon Jan 08 12:04:00 GMT+01:00 2001 junitee-example-test-web.war
> >
> > now a .jsp imports the bean classes(which are in .jar) and I get the
> > exception:
> >
> > org.apache.jasper.JasperException: Unable to compile class for
> >
> JSP/home/abhishek/jboss_tomcat/tomcat-3.2-b7/work/localhost_8080%2Fexamp
> > le/_0002fresult_0002ejspresult_jsp_0.java:13:
> > Package org.infohazard.ejb.einstein not found in import.
> > import org.infohazard.ejb.einstein.*;
> >        ^
> > 1 error
> >
> >         at
> > org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
> >         at
> > org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
> >         at
> >
> org.apache.jasper.servlet.JasperLoader12$1.run(JasperLoader12.java:160)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at
> >
> org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:156
> > )
> >         at
> > org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
> >         at
> >
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J
> > spServlet.java:152)
> >         at
> >
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
> > t.java:164)
> >         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:840)
> >         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.jav
> > a:799)
> >         at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:745)
> >         at
> >
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
> > ttpConnectionHandler.java:210)
> >         at
> >
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407
> > )
> >         at
> >
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
> > 8)
> >         at java.lang.Thread.run(Thread.java:484)
> >
> > does anyone know how to resolve it.
> >
> > Thanks
> > Abhishek
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > List Help?:          [EMAIL PROTECTED]
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > List Help?:          [EMAIL PROTECTED]
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > List Help?:          [EMAIL PROTECTED]
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to