j2ee.jar not compatible with Tomcat 4.1.18 - HELP
843835Feb 3 2003 — edited Feb 4 2003I am attempting to generate my first web page using EJBs. I have ran into a snag. It seems that Tomcat 4.1.18 is not compatable with j2sdkee1.4. I have tried using j2sdkee1.3.1 and got the same problem.
Ant builds the project just fine therefore I believe this to be a configuration problem - but can not find it. HELP
*** Below is the out put from Tomcat when he is starting up....
Feb 3, 2003 11:50:31 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Feb 3, 2003 11:50:32 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Feb 3, 2003 11:50:32 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Feb 3, 2003 11:50:33 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8181
Starting service Tomcat-Standalone
********** Probjem with Jar ************
Apache Tomcat/4.1.18
WebappClassLoader: validateJarFile(C:\Program Files\Apache Group\Tomcat 4.1\weba
pps\JobEntry\WEB-INF\lib\j2ee.jar) - jar not loaded. See Servlet Spec 2.3, secti
on 9.7.2. Offending class: javax/servlet/Servlet.class
*** Below is the compiler output
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\JobEntry\index_jsp.java:9: package javax.ejb does not exist
import javax.ejb.*;
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\JobEntry\index_jsp.java:23: cannot resolve symbol
symbol : method InitialContext ()
location: class org.apache.jsp.index_jsp
InitialContext initial = InitialContext();
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\JobEntry\index_jsp.java:25: cannot access javax.ejb.EJBObject
file javax\ejb\EJBObject.class not found
siteList = (JobEntry.SiteList) PortableRemoteObject.narrow(objectRef, SiteList.class);
^
C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\JobEntry\index_jsp.java:26: cannot resolve symbol
symbol : variable siteListHome
location: class org.apache.jsp.index_jsp
mySiteList = siteListHome.create();
^
4 errors