You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Samantha Kine <sa...@ivillage.com> on 2001/10/29 17:16:32 UTC

Unable to use a WAR file in Tomcat 3.2.3 on RedHat Linux that works on Windows with the same version of Tomcat and JDK.

I have a web application that is deployed as a WAR file.
It is installed on RedHat Linux 7.1, 6.2, and Windows 2000.
All machines have Tomcat 3.2.3 as a standalone, and are using Sun JDK 1.3.1
JAVA_HOME and  TOMCAT_HOME are set correctly on all.
The  Tomcat JSP and Servlet examples do work.
On Win 2000 the WAR file is expanded when I run Tomcat, and I can access the JSP pages contained therein.
On RedHat 7.1 my results are not so fortunate.
I have installed Tomcat on 3 separate Linux boxes, two running RedHat Linux 7.1, one running RedHat Linux 6.2, with the same errors.

Are there additional configuration steps for Tomcat on Linux? JDK 1.3.1 issues? I didn't see any in the docs.

For troubleshooting purposes I have been logging in as root.
When starting Tomcat 3.2.3 my WAR file is expanded correctly (I compared the directory structure and number of files on each machine) but on Linux I get the error:
Cannot load servlet name: MyServlet: com.[dirname].[dirname].web.initServlet

When attempting to access pages for my web application (using the same URI that I access successfully on the Windows install "http:.//localhost:8080/[appname]) my error message seem to indicate that it cannot find the compiler.
Other applications using this same JDK do function correctly.
The messages are as follows
(the errors when using Sun JDK 1.2.2 are comparable as well):

Error: 500
Location: /StarTeam/Default.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSP/opt/jakarta-tomcat-3.2.3/work/localhost_8080%2F[MyApp]/_0002fDefault_0002ejspDefault_jsp_0.java:13: Package com.[dirname].[dirname].web not found in import.
import com.[dirname].[dirname].web.*;
       ^
1 error

	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
	at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
	at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)

_________________________________________________________________
iVillage.com: Solutions for Your Life 
Check out the most exciting women's community on the Web   
http://www.ivillage.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>