RE: Usage Question

2002-04-17 Thread KC Berg

yes and check netcraft's web site and yes

-Original Message-
From: Mark Raynes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 10:51 AM
To: [EMAIL PROTECTED]
Subject: Usage Question


Hi,

I'm sorry to ask such a question here but I don't know who else to go to.

I have looked through the Apache software license but find it impossible to
cut through the jargon and get a definitive answer to my question.  I am
also afraid that there is some assumed knowledge of which I am not aware and
I will get my company in trouble if I go ahead.

My question is this: Can we use Tomcat on our web server to serve jsp's and
servlets for our own website and those of our clients (commercial, profit
making companies)?

If the answer is yes to the above question can you give me any indication of
the sorts of loads which the server is capable?  ...is it usable for high
traffic sites?

Regards,
Mark Raynes - Dynamic Media Tools Ltd (England).


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Java servlet

2002-03-06 Thread KC Berg

I downloaded the tomcat binary untared it and set JAVA_HOME to the location
of my JDK and it worked right away. I have never tried the rpm but the
binaries worked great. I am running red hat 7.2 with the same version of
tomcat as you. 

-Original Message-
From: Jianping Zhu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 3:27 PM
To: [EMAIL PROTECTED]
Subject: Java servlet 




I have redhat 7.2, I want to run java servelet on it by using the engine
tomcat, I have downloaded tomcat4-4.0.1-1.noarch.rmp,
tomcat4-4.0.1.src.rmp, tomcat4-manual-4.0.1.noarch.rmp and
tomcat4-webapps-4.01-1.noarch.rmp and installed them but I can get them
work.

can anyone give a suggestion.

Thanks


Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Unable to run examples

2002-03-04 Thread KC Berg

Do you have your JAVA_HOME sys var pointed at your JDK or your JRE? It needs
to point at your JDK so that the jsp can get compiled when you request the
page. From the error it looks like your missing the JSP compiler the above
suggestion should work.

KC

-Original Message-
From: RFelipe [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 8:41 AM
To: [EMAIL PROTECTED]
Subject: Unable to run examples


I just installed Tomcat version 4.0.3.  The main page works fine
(http://localhost:8080) but when I run the JSP samples I get the error:

javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:484)


root cause

java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j
ava:202)
at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:345)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
6)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at

RE: invalid https url generates NullPointerException

2002-02-28 Thread KC Berg

did you check your redirectPort in server.xml? 

--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=20
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/

--

What I did to enforce the use of https and eliminate your issue was the
following...


if(request.getServerPort() != 443){
  response.sendRedirect(https://; + request.getServerName() +
request.getServletPath()+?+ request.getQueryString());

}
---

The above code works if you setup tomcat to use the standard ports for http
and https. However you can use the above code in the following manner if you
need to use the default tomcat ports.



if(request.getScheme().equals(http)){
  response.sendRedirect(https://; + request.getServerName() + :8443 +
request.getServletPath()+?+ request.getQueryString());

}




I'm not sure if this is what you were after but it should work :) 

KC

-Original Message-
From: Steve A Drake [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 11:19 AM
To: [EMAIL PROTECTED]
Subject: invalid https url generates NullPointerException



 Hello. I just downloaded and installed Tomcat 4.0.2 and jsse1.0.2 on my
RH 7.2 box. I configured SSL under Tomcat so that the test URLs:
http://localhost:8080/ and https://localhost:8443/ work fine.

 The problem that I am having is that, if I accidentally enter:
https://localhost:8080/ Tomcat bogs down and throws the following
NullPointerException in catalina.out. I know that this address is invalid
but I'm surprised to see this behavior. Did I miss some configuration
detail?
TIA for your advice.

java.lang.NullPointerException
at
org.apache.catalina.connector.http.HttpResponseStream.checkHead(HttpResponse
Stream.java:253)
at
org.apache.catalina.connector.http.HttpResponseStream.init(HttpResponseStr
eam.java:104)
at
org.apache.catalina.connector.http.HttpResponseImpl.createOutputStream(HttpR
esponseImpl.java:220)
at
org.apache.catalina.connector.ResponseBase.getOutputStream(ResponseBase.java
:725)
at
org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:
469)
at
org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBa
se.java:236)
at
org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpRespo
nseImpl.java:288)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1039)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:484)



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: file size limit

2002-02-27 Thread KC Berg

I have never seen JSPC cut off a jsp file but if all the html in your jsp is
not getting to the browser that sounds like you need to check your buffer
size. just a thought :)

-Original Message-
From: Mehmet Ugur Kuzu (LinkPlus) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 6:32 AM
To: 'Tomcat Users List'
Subject: file size limit


Hi,
Is there any file size limit for jsp files in Tomcat,
I am using JRE 1.3.01 and Tomcat 4.0.2 ,
and Tomcat does not produce jsp files more then 35 kb,
I checked and i saw that it produce .java files true but 
somehow it does not send all html codes to client.
sincerely,
Ugur 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




System variables in server.xml?

2002-02-26 Thread KC Berg

Does anybody know if you can use system var's in your server.xml? If so can
someone please point me to an example. 

Thanx 
KC

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: many java processes

2002-02-26 Thread KC Berg

all threads started in java will show up as pid's in Linux. Linux does not
do true threading. it's not a big deal. if you see to many check your code
for opening threads. also check your garbage collection settings.

-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 11:48 AM
To: [EMAIL PROTECTED]
Subject: many java processes


Hello everyone,

   I am running a red hat 6.2 tomcat 4.01 webapp server configured for
virtual host.

   I have noticed that if tomcat stays running it builds up a lot of java
processes.  Has this caused anyone any problems with anyones elses servers?

   I am afraid that if a put a few java domains on the server the java
processes will begin to go through the roof.

 Any information/insites would be greatly appreciated.

-chad  

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: many java processes

2002-02-26 Thread KC Berg

also tomcat will only open as many pid's/thread's as is specified in your
server.xml

maxProcessors=75 part of the connector params. 

the above is the default. Running top may make it look like a lot of stuff
is running but if you look at the memory and CPU utilization of the pid's
you'll notice they are very low. Also the number of pid's will change as the
number of concurrent users to your system increases or decreases.

-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 11:48 AM
To: [EMAIL PROTECTED]
Subject: many java processes


Hello everyone,

   I am running a red hat 6.2 tomcat 4.01 webapp server configured for
virtual host.

   I have noticed that if tomcat stays running it builds up a lot of java
processes.  Has this caused anyone any problems with anyones elses servers?

   I am afraid that if a put a few java domains on the server the java
processes will begin to go through the roof.

 Any information/insites would be greatly appreciated.

-chad  

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: IlligalStateException -- getOutputStream() has already been called for this response.

2002-02-26 Thread KC Berg

How are you doing the includes? Also when you are using a forward in a
servlet you can not print anything to the output buffer before you use the
forward. Because once the output stream has been sent to the browser the
server can no longer forward that stream to another servlet.

KC  

-Original Message-
From: Dmitry Nikelshpur [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 12:40 PM
To: [EMAIL PROTECTED]
Subject: IlligalStateException -- getOutputStream() has already been
called for this response.


Hello everyone.

I had posted a similar message before, but either did not get replies or 
missed them.

I am using a JavaBean in a JSP page. This bean draws charts and graphs 
depending on supplied data...

When I call the JSP page directly from the browser, the graph displays 
properly, and no error messages are dumped to catalina.out.

When I have a servlet forward to the JSP page, the graphs display 
properly, but I get a message in catalina.out: 
java.lang.IlligalStateException: getOutputStream() has already been 
called for this response.

When I have a servlet include the JSP page, I get garbage in the 
browser, and the same message in catalina.out, 
java.lang.IlligalStateException: getOutputStream() has already been 
called for this response.

I had seen posts regarding this error, and believe that I saw something 
in the bug databasee, but still no solution.
Is this behavior 'normal?' for JSPs / Servlets?

The bean that I am using to create the charts is called jspChart, and is 
at:  http://www.javaside.com/u_jspchart.html
This URL contains a sample JSP page, so any servlet that includes / 
forwards this page should produce above results.

I would apprecieate it if you could BCC me in your replies, to make sure 
I get the message.
Also, if you have any other solutions for creating charts/graphs 
dynamically, with the ability to include/forweard from servlets, I'll be 
more than pleased...

Thanks in advance!


Dmitry



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: session timeout

2002-02-20 Thread KC Berg

I'm not sure how to do it in the config file but here it is in code...


  int hour = 60 * 60;
  hour = hour * 4;
  session.setMaxInactiveInterval(hour);


this sets the inactivity timeout which is what I think you want.

-Original Message-
From: Jagan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 9:35 PM
To: Tomcat Users List
Subject: session timeout


hi all!
My session time is presnetly the default tomcat-session time.
how to set session time so that the session will stay for longer?
Regards
Jagan
Unidux Electronics Ltd.
Email : [EMAIL PROTECTED]
TEL   : +65 293 4797
FAX   : +65 293 4920
  



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: How to access a remote file?

2002-02-20 Thread KC Berg

Your instance of tomcat needs to run as a user that has permissions to
access that network drive. In typical cases you want to create a windows
domain user for tomcat and let your server to run as that user. This will
allow you to configure permissions for that instance of tomcat. There are
other ways to do this but this is by far the best because you don't have to
set up explicit machine shares for the system that tomcat is on.

-Original Message-
From: Jack Li [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 8:45 AM
To: '[EMAIL PROTECTED]'
Subject: How to access a remote file?


Hello,

How to access a remote file? I have a network drive F: for a D: driver on
another machine mass. When I try to read a file on in driver F, it denies.

Thanks,
Jack Li

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat initiates new session when linking to different webapp

2002-02-20 Thread KC Berg

I think you should look at the tomcat help that talks about cross context.
The documentation describes how this is done. I think in your server.xml you
can set a parameter in your context tag, which represents your web app, to
give it cross context this should maintain the session across all apps
context's that are defined in the server.xml. Cross context is disabled by
default. Hope that helps.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 9:37 AM
To: [EMAIL PROTECTED]
Subject: Tomcat initiates new session when linking to different webapp


Hi!

I tried to link from a jsp1 of webapp1 to a jsp2 of webapp2. In jsp2 I
tried to access session attributes which are set in jsp1 - but the
attributes were gone! If I try the same within one webapp everything
works fine!

Q: Is it possible to configure Tomcat V3.2.3 so that the session-object
won't
be discarded when switching between different webapps?

Thanks for every useful comment,
Chris.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Error Executing JSPs

2002-02-14 Thread KC Berg

is your JAVA_HOME system var set to piont at the JDK home? it should be.

-Original Message-
From: Arnaldo Riquelme [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 12:51 PM
To: TomcatUser
Subject: Error Executing JSPs



I've just installed Tomcat 4.0.2 binaries rpm on a RedHat 7.2 linux machine
with Sun J2SDK1.4.0.
I installed the following rpms:
regexp-1.2-1.noarch.rpm
servletapi4-4.0.2-1.noarch.rpm
xerces-j-1.4.4-1.noarch.rpm
tomcat4-webapps-4.0.2-1.noarch.rpm
tomcat4-4.0.2-1.noarch.rpm
The installation is pretty straight forward but I'm having problems
executing the JSP examples.
The servlets executed just fine but when I try to run the JSP examples I get
the exeption bellow.

Any help on pointing out what I'm missing will be greatly apreciated.
Thanks


Arnaldo

===
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: sun/tools/javac/Main
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
 at java.lang.Thread.run(Thread.java:484)

root cause
java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

RE: Error Executing JSPs

2002-02-14 Thread KC Berg

One more thing make sure that the JAVA_HOME/lib/tools.jar is in your
CLASSPATH.

-Original Message-
From: Arnaldo Riquelme [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 12:51 PM
To: TomcatUser
Subject: Error Executing JSPs



I've just installed Tomcat 4.0.2 binaries rpm on a RedHat 7.2 linux machine
with Sun J2SDK1.4.0.
I installed the following rpms:
regexp-1.2-1.noarch.rpm
servletapi4-4.0.2-1.noarch.rpm
xerces-j-1.4.4-1.noarch.rpm
tomcat4-webapps-4.0.2-1.noarch.rpm
tomcat4-4.0.2-1.noarch.rpm
The installation is pretty straight forward but I'm having problems
executing the JSP examples.
The servlets executed just fine but when I try to run the JSP examples I get
the exeption bellow.

Any help on pointing out what I'm missing will be greatly apreciated.
Thanks


Arnaldo

===
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: sun/tools/javac/Main
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
 at java.lang.Thread.run(Thread.java:484)

root cause
java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at