tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Pyeron <ja...@pyeron.com>
Subject RE: tomcat 3.3.1 - win2k iis- examples
Date Wed, 15 Jan 2003 19:20:07 GMT

I am assuming you are running NT4/2k jdk1.4.x is installed.

are you running tomcat as a service?
do you have any regulations controling how the system is configured?
can you run tomcat 4.1.x (it has a nice installer)

in the meantime, you want to locate servlet.jar and its friends

i belive they are in tomcathome\common\lib

put these in your classpath for SYSTEM  VARIABLES

CLASSPATH=c:\tomcathome\common\lib\servlet.jar;etc;blah;.

this fix is not a proper fix, but something to get it working

-jason pyeron

On Wed, 15 Jan 2003, Schultz, Cecilia wrote:


I tried running the jsp examples that comes with Tomcat and got the error:


==================
Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile F:\i1440root\opt\local\tomcat\work\webapps2\examples\jsp\num\numguess_1.java:0:
Class javax.servlet.http.HttpServlet not found in class org.apache.jasper.runtime.HttpJspBase.
package jsp.num;
^
F:\i1440root\opt\local\tomcat\work\webapps2\examples\jsp\num\numguess_1.java:3: Package javax.servlet
not found in import.
import javax.servlet.*;
       ^
F:\i1440root\opt\local\tomcat\work\webapps2\examples\jsp\num\numguess_1.java:4: Package javax.servlet.http
not found in import.
import javax.servlet.http.*;
       ^
F:\i1440root\opt\local\tomcat\work\webapps2\examples\jsp\num\numguess_1.java:5: Package javax.servlet.jsp
not found in import.
import javax.servlet.jsp.*;
       ^
4 errors

	at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
	at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
	at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
	at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
	at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
	at org.apache.tomcat.core.ContextManager.service(Unknown Source)
	at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown Source)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:479)



=================

what am I missing??

Thanks
Cecilia

>  -----Original Message-----
> From: 	Schultz, Cecilia  
> Sent:	Wednesday, January 15, 2003 10:45 AM
> To:	'Tomcat users list (E-mail)'
> Subject:	RE: tomcat 3.3.1 - win2k iis
> 
> It seems I am missing some path somewhere. I copied a web app 
> that does work in another server (with another container, not 
> tomcat) into the problem server.
> I got a similar error when bringing up the default page:
> 
> Class javax.servlet.http.HttpServlet not found in class 
> org.apache.jasper.runtime.HttpJspBase.
> 
> 
> any help is much appreciated
> Cecilia
> 
> Error: 500
> Location: /ranchodev/web/default.jsp
> Internal Servlet Error:
> org.apache.jasper.JasperException: Unable to compile 
> F:\i1440root\opt\local\tomcat\work\webapps2\ranchodev\web\_def
> ault_1.java:0: Class javax.servlet.http.HttpServlet not found 
> in class org.apache.jasper.runtime.HttpJspBase.
> package web;
> ^
> F:\i1440root\opt\local\tomcat\work\webapps2\ranchodev\web\_def
> ault_1.java:3: Package javax.servlet not found in import.
> import javax.servlet.*;
>        ^
> F:\i1440root\opt\local\tomcat\work\webapps2\ranchodev\web\_def
> ault_1.java:4: Package javax.servlet.http not found in import.
> import javax.servlet.http.*;
>        ^
> F:\i1440root\opt\local\tomcat\work\webapps2\ranchodev\web\_def
> ault_1.java:5: Package javax.servlet.jsp not found in import.
> import javax.servlet.jsp.*;
>        ^
> 4 errors
> 
> 	at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
> 	at 
> org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
> 	at 
> org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
> 	at 
> org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
> 	at 
> org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
> 	at org.apache.tomcat.core.ContextManager.service(Unknown Source)
> 	at 
> org.apache.tomcat.modules.server.Ajp13Interceptor.processConne
> ction(Unknown Source)
> 	at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
> 	at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> Unknown Source)
> 	at java.lang.Thread.run(Thread.java:479
> 
> 
> 
> 
> >  -----Original Message-----
> > From: 	Schultz, Cecilia  
> > Sent:	Wednesday, January 15, 2003 9:56 AM
> > To:	Tomcat users list (E-mail)
> > Subject:	tomcat 3.3.1 - win2k iis
> > 
> > 
> > 
> > Hi,
> > 
> > I installed Tomcat 3.3.1 on win2k with IIS.  Then I installed 
> > an a vendor's web app. 
> > 
> > When I bring up the vendor's login page, I get this error:
> > 
> > 
> > =======================
> > 
> > 2003-01-15 07:43:45 - webapps2:/i1440: Reading 
> > F:\i1440root\opt\i1440\webapps\i1440\WEB-INF\web.xml
> > 2003-01-15 07:43:45 - webapps2:/i1440: Loading 1 InitServlet
> > 2003-01-15 07:45:02 - webapps2:/i1440: Compiling: /login.jsp 
> > to login_0
> > 2003-01-15 07:45:31 - webapps2:/i1440: compile error: req=R( 
> > /i1440 + /login.jsp + null) - 
> > org.apache.jasper.JasperException: Unable to compile 
> > F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java
> > :0: Class javax.servlet.http.HttpServlet not found in class 
> > com.g1440.naf.jdbc.view.ServletView.
> > 
> > import javax.servlet.*;
> > ^
> > F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java
> > :1: Package javax.servlet not found in import.
> > import javax.servlet.*;
> >        ^
> > F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java
> > :2: Package javax.servlet.http not found in import.
> > import javax.servlet.http.*;
> >        ^
> > F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java
> > :3: Package javax.servlet.jsp not found in import.
> > import javax.servlet.jsp.*;
> >        ^
> > 4 errors
> > 
> > 	at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
> > 	at 
> > 
> org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
> > 	at 
> > org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
> > 	at 
> > org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
> > 	at 
> > 
> org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
> > 	at org.apache.tomcat.core.ContextManager.service(Unknown Source)
> > 	at 
> > org.apache.tomcat.modules.server.Ajp13Interceptor.processConne
> > ction(Unknown Source)
> > 	at 
> > org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
> > 	at 
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > Unknown Source)
> > 	at java.lang.Thread.run(Thread.java:479)
> > 
> > 2003-01-15 07:45:31 - webapps2:/i1440: Exception in R( /i1440 
> > + /login.jsp + null) - org.apache.jasper.JasperException: 
> > Unable to compile 
> > F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java
> > :0: Class javax.servlet.http.HttpServlet not found in class 
> > com.g1440.naf.jdbc.view.ServletView.
> > import javax.servlet.*;
> > ^
> > F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java
> > :1: Package javax.servlet not found in import.
> > import javax.servlet.*;
> >        ^
> > F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java
> > :2: Package javax.servlet.http not found in import.
> > import javax.servlet.http.*;
> >        ^
> > F:\i1440root\opt\local\tomcat\work\webapps2\i1440\login_1.java
> > :3: Package javax.servlet.jsp not found in import.
> > import javax.servlet.jsp.*;
> >        ^
> > 4 errors
> > 
> > 	at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
> > 	at 
> > 
> org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
> > 	at 
> > org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
> > 	at 
> > org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
> > 	at 
> > 
> org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
> > 	at org.apache.tomcat.core.ContextManager.service(Unknown Source)
> > 	at 
> > org.apache.tomcat.modules.server.Ajp13Interceptor.processConne
> > ction(Unknown Source)
> > 	at 
> > org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
> > 	at 
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > Unknown Source)
> > 	at java.lang.Thread.run(Thread.java:479)
> > 
> > 
> > =================
> > 
> > (com.g1440.naf.jdbc.view.ServletView is the vendor's class)
> > 
> > 
> > If I bring up a simple test1.jsp page, it comes ok. Does this 
> > mean that tomcat is all ok and this error is a vendor's 
> > specific error? 
> > 
> > 
> > 
> > 
> > Thanks
> > Cecilia
> > 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                   http://www.pyerotechnics.com   -
- Owner & Lead                  Pyerotechnics Development, Inc. -
- +1 410 808 6646 (c)           500 West University Parkway #1S -
- +1 410 467 2266 (f)           Baltimore, Maryland  21210-3253 -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message