Re: Stopping and starting Tomcat
Do you perhaps mean context rather than port? If you're running Tomcat behind Apache, I'd imagine your users aren't specifying the port (eg 8080) directly. Individual Tomcat run on their own ports (default 8080, visible through Apache's port 80). Shutting down one shouldn't affect the others. If you do mean context, then no, it can't be done with 3.x, short of having a Tomcat dedicated to each context. Use 4.0 instead, where apps can be restarted individually. --Jeff On Tue, Sep 18, 2001 at 04:49:04PM -0400, Jurrius, Mark wrote: Is there a way that I can stop and start Tomcat without affecting all of the different applications running on different ports on the same box? We are having problems with our QA machine and our testers are constantly getting booted off the application in development which they are using now each time I stop and start Tomcat after making changes. I am hoping to find a way to stop and start Tomcat for just one port. Thanks. Windows NT 4.0 Tomcat 3.1 Apache 1.3 JDK 1.3 Mark
Getting resource in WEB-INF
Hi. I have a problem when using a InitalContextFactory from Oracle in a jsp-page on a stand-alone Tomcat. Problem is that the oracle-class tries to get hold of a resource as: classLoader.getResource(META-INF/application-client.xml), which don?t work unless I create a .jar with this specific META-INF and edit the tomcat.bat so this .jar is the first one in the classpath. This feels like a dirty workaround, is there a better way to solve the problem? thanks in advance. /Svante
RE: IIS Virtual hosting
Hola David: How is the best way to achieve the same configuration with IIS? I think what I need is to be able to specify the host name in uriworkermap.properties: cisweb2k/spweb/servlet/*=ajp13_1 cisweb2k2/spweb/servlet/*=ajp13_2 :) This syntax sugar for uriworkermap.properties has been added a week ago, in addition to the change named by Larry, so yo can do exactly what you propose right now .. :) The Tomcat 3.3 Version have this capacity, out of the box.. Saludos , Ignacio J. Ortega
how to avoid restart tomcat when there is any change in servlet
Hi All, I am using tomcat 3.2.1 for running servlets on linux. whenever i make changes in servlets, I have to restart tomcat. Please tell me how i can avoid to restart tomcat. thanks __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
Tomcat vs. Apache
Hi ! Apache is faster then Tomcat, and in some documents I have also found information that Tomcat should be less robust then Apache. I am running Tomcat locally on my computer and so far I have not noticed any performance problems, I am developing an intranet application that use alot of JSP and applets, but the number of users is pretty low, say maybe 5-10 active users. So, is it ok to use Tomcat for a solution like this ?, it would be interesting to know a little of where the bottlenecks are in Tomcat..., at the moment I don't have any possibility to try it out in a realistic environment, so it would be nice to have a clue if I should go for a solution with Tomcat and a separate HTTP server or use Tomcat alone. Mikael
Using JNI from a servlet (solution)
Hi, There has been quite a bit of discussion on this mailing list (and others) concerning the use of JNI from within a servlet. If you are experiencing the UnsatisfiedLinkError when trying to run your servlet, check the following (I'm assuimg a Unix environment here, but the same general principles should apply to Windows. I'm also assuming that you're deploying everything directly under Tomcat's directory and not using a Context entry for your app): 1. Ensure your .class and .jar files are deployed in the correct place within your Tomcat directory: All .class files go in $TOMCAT_HOME/webapps/myapplication/WEB-INF/classes All .jar files go in $TOMCAT_HOME/webapps/myapplication/WEB-INF/lib 2. Set your LD_LIBRARY_PATH environment variable so that it points to the directory containing the .so file (the native code)/ The .so file can be anywhere, the main point is that it is in your LD_LIBRARY_PATH I had a great deal of difficulty trying to get things working until I copied the files into the correct place as described in step 1 above. I originally had my .jar file (that calls the native code) in a different location and then set my CLASSPATH variable to point to it but this didn't work.
reloadable servlets
Hi Can a servelt be made reloadable from within a web.xml file? The only way I know how to do this is by adding a new context in the tomcat_home/config/server.xml file and declaring that a servlet is reloadable. Thanks Peter
Question on conf
Hi, I'm a new tomcat user. I need to move the location of the webroot. Now it points to ROOT, I want change this in ROOT/gundam I've tried changing file server.xml Context path= docBase=ROOT/gundam debug=0/ but it doesn't work, why ? Bye, Ste
RE: Question on conf
try this: context path=/gundam docbase=/webapps/gundam crossContext=false debug=0 reloadable=true /context this assumes your gundam web app directory is under webapps, not ROOT - the usual way to do it. you would then access this app through the URL http://your_domain:8080/gundam/ If you want to access it with http://your_domain:8080/ set it up like this: context path=/ docbase=/webapps/gundam crossContext=false debug=0 reloadable=true /context The only change from the first one is the 'path' entry. Is there any particular reason you need your app below ROOT? Usually you would create a new directory below webapps for an app. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 10:59 To: [EMAIL PROTECTED] Subject: Question on conf Hi, I'm a new tomcat user. I need to move the location of the webroot. Now it points to ROOT, I want change this in ROOT/gundam I've tried changing file server.xml Context path= docBase=ROOT/gundam debug=0/ but it doesn't work, why ? Bye, Ste
RE: Question on conf
it still doesn't work now it points to index.html in ROOT I've moved my gundam dir at the same level of root in webapps Bye, Ste Paul Foxton paul@network- To: '[EMAIL PROTECTED]' sol.com [EMAIL PROTECTED] cc: 09/19/2001 Subject: RE: Question on conf 11:55 AM Please respond to tomcat-user try this: context path=/gundam docbase=/webapps/gundam crossContext=false debug=0 reloadable=true /context this assumes your gundam web app directory is under webapps, not ROOT - the usual way to do it. you would then access this app through the URL http://your_domain:8080/gundam/ If you want to access it with http://your_domain:8080/ set it up like this: context path=/ docbase=/webapps/gundam crossContext=false debug=0 reloadable=true /context The only change from the first one is the 'path' entry. Is there any particular reason you need your app below ROOT? Usually you would create a new directory below webapps for an app. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 10:59 To: [EMAIL PROTECTED] Subject: Question on conf Hi, I'm a new tomcat user. I need to move the location of the webroot. Now it points to ROOT, I want change this in ROOT/gundam I've tried changing file server.xml Context path= docBase=ROOT/gundam debug=0/ but it doesn't work, why ? Bye, Ste
RE: Question on conf
hmmm. bit more info might help: what do you have now in server.xml? what URL are you using to access the app? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 11:54 To: [EMAIL PROTECTED] Subject: RE: Question on conf it still doesn't work now it points to index.html in ROOT I've moved my gundam dir at the same level of root in webapps Bye, Ste Paul Foxton paul@network- To: '[EMAIL PROTECTED]' sol.com [EMAIL PROTECTED] cc: 09/19/2001 Subject: RE: Question on conf 11:55 AM Please respond to tomcat-user try this: context path=/gundam docbase=/webapps/gundam crossContext=false debug=0 reloadable=true /context this assumes your gundam web app directory is under webapps, not ROOT - the usual way to do it. you would then access this app through the URL http://your_domain:8080/gundam/ If you want to access it with http://your_domain:8080/ set it up like this: context path=/ docbase=/webapps/gundam crossContext=false debug=0 reloadable=true /context The only change from the first one is the 'path' entry. Is there any particular reason you need your app below ROOT? Usually you would create a new directory below webapps for an app. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 10:59 To: [EMAIL PROTECTED] Subject: Question on conf Hi, I'm a new tomcat user. I need to move the location of the webroot. Now it points to ROOT, I want change this in ROOT/gundam I've tried changing file server.xml Context path= docBase=ROOT/gundam debug=0/ but it doesn't work, why ? Bye, Ste
Cannot handle 403 status with error page
Hi. I try to access to protected page, but login page and login error pages work if I entered incorrect username or password. If I entered correct username and password but that has no required role, I accepted only html page with message : 'HTTP Status 403 - Access to the requested resource has been denied' . How to avoid it ? I mean go to login page again or how to catch it with error-page . Error pafe works fine for 404 status, for example, but doesn't work for 403 code . Thanks .
EJB help
Dear All, Can anyone help me in running EJBs from tomcat 4.0 , initially i was using tomcat 3.1 and was able to access EJBs by Context ctx= new InitialContext(); obj= ctx.lookup(MyBean); But now the same code is giving me problem. And it's saying unable to compile class. thanks in advance.. regards asheesh
Re: JSP page to Oracle with Tomcat all files
Hi Huaxin, what has UserId and password to do withthe URL? for example if you take a datasource: String strURL = jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:ORCL String strPassword = String strUserID = xxx oraDs = new OracleConnectionPoolDataSource(); oraDs.setURL(strURL); oraDs.setPassword(strPassword); oraDs.setUser(strUserID); now you're ready to get a connection. Oracle Database needs the port and the DB-name in the URL I think!? Peter Huaxin wrote: Just curious on the URL you've mentioned, how can you append the userid and passwd after the jdbc:oracle:thin:@xxx.x things? i know the format for cloud DB, i am wondering it for oracle only On Tue, 18 Sep 2001, P.Miller wrote: Hi Peter, I put the IP-Adress after the '@' and use the 'thin' driver instead of the 'oci8'. Also you have to put the port# on which the Listener waits for calls. In most cases it's the 1521. And the name of your Database ORCL or something else So the string should look like : jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:ORCL plus userid and password. Hth Peter
RE: EJB help
which EJB container are you using ? -Original Message- From: asheesh [mailto:[EMAIL PROTECTED]] Sent: 19. september 2001 11:21 To: [EMAIL PROTECTED] Subject: EJB help Dear All, Can anyone help me in running EJBs from tomcat 4.0 , initially i was using tomcat 3.1 and was able to access EJBs by Context ctx= new InitialContext(); obj= ctx.lookup(MyBean); But now the same code is giving me problem. And it's saying unable to compile class. thanks in advance.. regards asheesh
Tomcat OSX
Hi there, I've just installed tomcat on a G4 Cube running (the only spare machine I have) OS X 10.04. I haven't installed a JDK because this is already in place with the OS build. TOMCAT_HOME CATALINA_HOME have the same path, which I am assuming is correct, Tomcat seems to startup shutdown correctly with bin/command.sh. The only thing that I can not get to work is the examples, I get a 503 error, is this due to the examples simply being in the wrong directory or have I made a more fundamental error? Is there anyone with experience of building tomcat on OS X out there. Should we start a new discussion? Many thanks
A newbie question about Tomcat and Webalizer
Hello, At the moment I am running an tomcat in combination with Apache. However there is no reason to use Apache, except that I use webalizer to generate web site stats. My question is: is it possible to configure Tomcat (3.2 and 4.0) in such a way that I can continue to use webalizer? Thank you, Marcel
Re: EJB help
On Wednesday, 19. September 2001 13:21, you wrote: Dear All, Can anyone help me in running EJBs from tomcat 4.0 , initially i was using tomcat 3.1 and was able to access EJBs by Context ctx= new InitialContext(); obj= ctx.lookup(MyBean); But now the same code is giving me problem. And it's saying unable to compile class. thanks in advance.. regards asheesh Try to start tomcat with the option -nonaming
RE: Tomcat OSX
maybe you´re missing servlets.jar in tomcat´s classapth... ? just wondering, nerver done anything with macs. -r -Original Message- From: jason lane [mailto:[EMAIL PROTECTED]] Sent: 19. september 2001 12:37 To: [EMAIL PROTECTED] Subject: Tomcat OSX Hi there, I've just installed tomcat on a G4 Cube running (the only spare machine I have) OS X 10.04. I haven't installed a JDK because this is already in place with the OS build. TOMCAT_HOME CATALINA_HOME have the same path, which I am assuming is correct, Tomcat seems to startup shutdown correctly with bin/command.sh. The only thing that I can not get to work is the examples, I get a 503 error, is this due to the examples simply being in the wrong directory or have I made a more fundamental error? Is there anyone with experience of building tomcat on OS X out there. Should we start a new discussion? Many thanks
RE: Question on conf
(Embedded image moved to file: pic08205.pcx)http://nameofmyserver Paul Foxton paul@network- To: '[EMAIL PROTECTED]' sol.com [EMAIL PROTECTED] cc: 09/19/2001 Subject: RE: Question on conf 12:38 PM Please respond to tomcat-user hmmm. bit more info might help: what do you have now in server.xml? what URL are you using to access the app? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 11:54 To: [EMAIL PROTECTED] Subject: RE: Question on conf it still doesn't work now it points to index.html in ROOT I've moved my gundam dir at the same level of root in webapps Bye, Ste Paul Foxton paul@network- To: '[EMAIL PROTECTED]' sol.com [EMAIL PROTECTED] cc: 09/19/2001 Subject: RE: Question on conf 11:55 AM Please respond to tomcat-user try this: context path=/gundam docbase=/webapps/gundam crossContext=false debug=0 reloadable=true /context this assumes your gundam web app directory is under webapps, not ROOT - the usual way to do it. you would then access this app through the URL http://your_domain:8080/gundam/ If you want to access it with http://your_domain:8080/ set it up like this: context path=/ docbase=/webapps/gundam crossContext=false debug=0 reloadable=true /context The only change from the first one is the 'path' entry. Is there any particular reason you need your app below ROOT? Usually you would create a new directory below webapps for an app. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 10:59 To: [EMAIL PROTECTED] Subject: Question on conf Hi, I'm a new tomcat user. I need to move the location of the webroot. Now it points to ROOT, I want change this in ROOT/gundam I've tried changing file server.xml Context path= docBase=ROOT/gundam debug=0/ but it doesn't work, why ? Bye, Ste pic08205.pcx
RE: Question on conf
hiya Ste you just posted an image of your server.xml icon looks nice but doesn't tell us much ;¬D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 12:58 To: [EMAIL PROTECTED] Subject: RE: Question on conf (Embedded image moved to file: pic08205.pcx)http://nameofmyserver Paul Foxton paul@network- To: '[EMAIL PROTECTED]' sol.com [EMAIL PROTECTED] cc: 09/19/2001 Subject: RE: Question on conf 12:38 PM Please respond to tomcat-user hmmm. bit more info might help: what do you have now in server.xml? what URL are you using to access the app? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 11:54 To: [EMAIL PROTECTED] Subject: RE: Question on conf it still doesn't work now it points to index.html in ROOT I've moved my gundam dir at the same level of root in webapps Bye, Ste Paul Foxton paul@network- To: '[EMAIL PROTECTED]' sol.com [EMAIL PROTECTED] cc: 09/19/2001 Subject: RE: Question on conf 11:55 AM Please respond to tomcat-user try this: context path=/gundam docbase=/webapps/gundam crossContext=false debug=0 reloadable=true /context this assumes your gundam web app directory is under webapps, not ROOT - the usual way to do it. you would then access this app through the URL http://your_domain:8080/gundam/ If you want to access it with http://your_domain:8080/ set it up like this: context path=/ docbase=/webapps/gundam crossContext=false debug=0 reloadable=true /context The only change from the first one is the 'path' entry. Is there any particular reason you need your app below ROOT? Usually you would create a new directory below webapps for an app. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 10:59 To: [EMAIL PROTECTED] Subject: Question on conf Hi, I'm a new tomcat user. I need to move the location of the webroot. Now it points to ROOT, I want change this in ROOT/gundam I've tried changing file server.xml Context path= docBase=ROOT/gundam debug=0/ but it doesn't work, why ? Bye, Ste
Re: Link to JSR-000053 JavaTM Servlet 2.3 and JavaServer PagesTM 1.2 Specifications broken?
It seems tht it's still not working. The page at Sun's site dowloads a index.html file for both specs. - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat User List [EMAIL PROTECTED] Sent: Tuesday, September 18, 2001 2:00 PM Subject: Re: Link to JSR-53 JavaTM Servlet 2.3 and JavaServer PagesTM 1.2 Specifications broken? The problem has been reported to the web site administrators, and it's in the process of being fixed. Craig On Tue, 18 Sep 2001, Jonathan Eric Miller wrote: Date: Tue, 18 Sep 2001 10:17:09 -0500 From: Jonathan Eric Miller [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat User List [EMAIL PROTECTED] Subject: Link to JSR-53 JavaTM Servlet 2.3 and JavaServer PagesTM 1.2 Specifications broken? This isn't really Tomcat specific, but, I'm guessing that some of the Tomcat developers might be able to fix it if it's broken. I tried downloading the final Servlet spec at the following link which I found off of java.sun.com. http://www.jcp.org/aboutJava/communityprocess/final/jsr053/ But, when I click on the PDF link, it goes to the following link which seems to be broken? http://webwork.eng/Download5 Jon
RE: Tomcat 4.0 - Setting Working dir ?
Hi again, I'll give it one more try ;-) Help wanted, see problem below. BR Joacim -Original Message- From: Järkeborn Joacim [mailto:[EMAIL PROTECTED]] Sent: den 18 september 2001 11:57 To: '[EMAIL PROTECTED]' Subject: RE: Tomcat 4.0 - Setting Working dir ? I need to set '%CATALINA_HOME%\work' to 'C:\Temp\work'. I found the setting in '%CATALINA_HOME%\conf\web.xml' servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namelogVerbosityLevel/param-name param-valueWARNING/param-value /init-param init-param param-namescratchdir/param-name param-valueC:\Temp\Impact\work/param-value /init-param load-on-startup3/load-on-startup /servlet It's placing all generated code there BUT when starting Tomcat it creates a '%CATALINA_HOME%\work' directory containing some empty directories. I can't have this since Tomcat will be on a CD later on. Any suggestions? BR Joacim
Re: Getting a Verisign certificate
Wednesday, September 19, 2001, 3:42:33 PM, Alex Colic [EMAIL PROTECTED] wrote: Hi, I am trying to get a verisign certificate for tomcat. The wizard is asking for a (CSR) Certificate Signing Request. Do you know where I can get one of those for tomcat? I'm guessing those generate by openssl are just as good, unless you really need an oficial cert. See http://www.openssl.org/ . --Ciprian
RE: Question on conf
Paul Foxton paul@network- To: '[EMAIL PROTECTED]' sol.com [EMAIL PROTECTED] cc: 09/19/2001 Subject: RE: Question on conf 01:50 PM Please respond to tomcat-user hiya Ste you just posted an image of your server.xml icon looks nice but doesn't tell us much ;¬D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 12:58 To: [EMAIL PROTECTED] Subject: RE: Question on conf (Embedded image moved to file: pic08205.pcx)http://nameofmyserver Paul Foxton paul@network- To: '[EMAIL PROTECTED]' sol.com [EMAIL PROTECTED] cc: 09/19/2001 Subject: RE: Question on conf 12:38 PM Please respond to tomcat-user hmmm. bit more info might help: what do you have now in server.xml? what URL are you using to access the app? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 11:54 To: [EMAIL PROTECTED] Subject: RE: Question on conf it still doesn't work now it points to index.html in ROOT I've moved my gundam dir at the same level of root in webapps Bye, Ste Paul Foxton paul@network- To: '[EMAIL PROTECTED]' sol.com [EMAIL PROTECTED] cc: 09/19/2001 Subject: RE: Question on conf 11:55 AM Please respond to tomcat-user try this: context path=/gundam docbase=/webapps/gundam crossContext=false debug=0 reloadable=true /context this assumes your gundam web app directory is under webapps, not ROOT - the usual way to do it. you would then access this app through the URL http://your_domain:8080/gundam/ If you want to access it with http://your_domain:8080/ set it up like this: context path=/ docbase=/webapps/gundam crossContext=false debug=0 reloadable=true /context The only change from the first one is the 'path' entry. Is there any particular reason you need your app below ROOT? Usually you would create a new directory below webapps for an app. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 10:59 To: [EMAIL PROTECTED] Subject: Question on conf Hi, I'm a new tomcat user. I need to move the location of the webroot. Now it points to ROOT, I want change this in ROOT/gundam I've tried changing file server.xml Context path= docBase=ROOT/gundam debug=0/ but it doesn't work, why ? Bye, Ste
RE: Question on conf
!-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps: * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Edit $JAVA_HOME/jre/lib/security/java.security and add security.provider.2=com.sun.net.ssl.internal.ssl.Provider * Execute: keytool -genkey -alias tomcat -keyalg RSA with a password value of changeit. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. -- !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=80 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define an SSL HTTP/1.1 Connector on port 8443 -- !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS/ /Connector -- !-- Define a Proxied HTTP/1.1 Connector on port 8081 -- !-- See proxy documentation for more information about using this. -- !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8081 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=6 proxyPort=80/ -- !-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 -- !-- Connector className =org.apache.catalina.connector.http10.HttpConnector port=8082 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0/ -- !-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). -- !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 !-- The request dumper valve dumps useful debugging information about the request headers and cookies that were received, and the response headers and cookies that were sent, for all requests received by this instance of Tomcat. If you care only about requests to a particular virtual host, or a particular application, nest this element inside the corresponding Host or Context entry instead. For a similar mechanism that is portable to all Servlet 2.3 containers, check out the RequestDumperFilter Filter in the example application (the source for this filter may be found in $CATALINA_HOME/webapps/examples/WEB-INF/classes/filters). Request dumping is
Re: Getting resource in WEB-INF
Put the oracle library in WEB-INF/lib instead of tomcat/lib - I assume thats where it is? sounds like a similar thing to the way struts works, Craig explained it when I asked a few weeks ago - you might find the mail by seraching for struts and classloader and dim (o: cheers dim On Wed, 19 Sep 2001, Svante Berglund wrote: Hi. I have a problem when using a InitalContextFactory from Oracle in a jsp-page on a stand-alone Tomcat. Problem is that the oracle-class tries to get hold of a resource as: classLoader.getResource(META-INF/application-client.xml), which don?t work unless I create a .jar with this specific META-INF and edit the tomcat.bat so this .jar is the first one in the classpath. This feels like a dirty workaround, is there a better way to solve the problem? thanks in advance. /Svante
Logout with basic autorization
Hi. How to do really logout using basic authorization ? I mean to get authorization prompt again by using tomcat engine ? , i.e. tomcat should care about it . To send smth. in response ? If yes, so what to send ? Thanks. Alex.
Insert special chars in stringbuffer
Hi! I have a StringBuffer object and want to append a character how do I do?
Re: Tomcat OSX
Ok thanks, I'll give that a try. I logged onto the Manager and I see that WebDAV the manager are running but examples are not. Anyway thanks, I'll let you know the result. J. On Wednesday, September 19, 2001, at 11:48 AM, Reynir Hubener wrote: maybe you´re missing servlets.jar in tomcat´s classapth... ? just wondering, nerver done anything with macs. -r -Original Message- From: jason lane [mailto:[EMAIL PROTECTED]] Sent: 19. september 2001 12:37 To: [EMAIL PROTECTED] Subject: Tomcat OSX Hi there, I've just installed tomcat on a G4 Cube running (the only spare machine I have) OS X 10.04. I haven't installed a JDK because this is already in place with the OS build. TOMCAT_HOME CATALINA_HOME have the same path, which I am assuming is correct, Tomcat seems to startup shutdown correctly with bin/command.sh. The only thing that I can not get to work is the examples, I get a 503 error, is this due to the examples simply being in the wrong directory or have I made a more fundamental error? Is there anyone with experience of building tomcat on OS X out there. Should we start a new discussion? Many thanks
Re: Logout with basic autorization
call session.invalidate() - should do the trick. cheers dim On Wed, 19 Sep 2001, Oleksandr Fedorenko wrote: Hi. How to do really logout using basic authorization ? I mean to get authorization prompt again by using tomcat engine ? , i.e. tomcat should care about it . To send smth. in response ? If yes, so what to send ? Thanks. Alex.
Re: Insert special chars in stringbuffer
StringBuffer buf = new StringBuffer(); buf.append('\'); hth, dim On Wed, 19 Sep 2001, Magnus Jansson wrote: Hi! I have a StringBuffer object and want to append a character how do I do?
Re: Logout with basic autorization
Hi Oleksandr, you can 'logout' with session.invalidate(). You have to login again afterwards. Hth Peter Oleksandr Fedorenko wrote: Hi. How to do really logout using basic authorization ? I mean to get authorization prompt again by using tomcat engine ? , i.e. tomcat should care about it . To send smth. in response ? If yes, so what to send ? Thanks. Alex.
RE: Insert special chars in stringbuffer
\ -Original Message- From: Magnus Jansson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 8:15 AM To: [EMAIL PROTECTED] Subject: Insert special chars in stringbuffer Hi! I have a StringBuffer object and want to append a character how do I do?
RE: nonroot standalone tomcat 4? how?
Connectors - Refactored the startup code so that Catalina can run on port 80 (without being root) when started by JavaService or equivalent service managers. I'm wondering if there is further documentation on this somewhere? It's in CVS, repository jakarta-tomcat-4.0 under /service/... The sources run perfectly on Solaris 8 and Darwin, we wanted to get also a Windows integration before starting to build binaries (and that might involve also some mergers with JSR-096). Thanks, I have got jsvc and its examples running (downloaded it from cvs). Now, what is the proper way of running catalina using jsvc? with very best wishes, Taavi
Re: Tomcat 4.0
That you're on your own on, haven't tried that. ;-) Jon - Original Message - From: Ricardo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 1:10 AM Subject: Re: Tomcat 4.0 And how must be configured the CA public key certificate in tomcat to perform client authentication ?? Thanks, Ricardo Borillo Domenech Programació - Servei d'Informàtica Universitat Jaume I - Original Message - From: Jonathan Eric Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 18, 2001 9:37 PM Subject: Re: Tomcat 4.0 I haven't tried it with a Verisign cert yet, but, I've been able to import certs signed by my test CA no problem. Have a look at the tools documentation that comes with the JDK for the keytool command. After you have the tomcat key in there, you do a -certreq, give that certificate request to Verisign, get back the signed certificate, then do a -import and that's it. Jon - Original Message - From: Nick Torenvliet [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 17, 2001 3:21 PM Subject: Tomcat 4.0 Thanks to the Tomcat docs I've managed to get sssl working on my tomcat4.0 w/ Java sdk1.4 installation. I've been going through the mailing list archives looking to see if anyone has had any success using a verisign certificate with Tomcat. I've seen lots of questions about it but not too many responses. Has anyone been able to get a stand alone Tomcat working with a verisign certificate yet? Nick
Re: Using JNI from a servlet (solution)
There's another problem to look out for as well with regard to servlet reloading and where you place your .jar files that use JNI. See the latest release notes regarding that. Jon - Original Message - From: Les Parkin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 4:22 AM Subject: Using JNI from a servlet (solution) Hi, There has been quite a bit of discussion on this mailing list (and others) concerning the use of JNI from within a servlet. If you are experiencing the UnsatisfiedLinkError when trying to run your servlet, check the following (I'm assuimg a Unix environment here, but the same general principles should apply to Windows. I'm also assuming that you're deploying everything directly under Tomcat's directory and not using a Context entry for your app): 1. Ensure your .class and .jar files are deployed in the correct place within your Tomcat directory: All .class files go in $TOMCAT_HOME/webapps/myapplication/WEB-INF/classes All .jar files go in $TOMCAT_HOME/webapps/myapplication/WEB-INF/lib 2. Set your LD_LIBRARY_PATH environment variable so that it points to the directory containing the .so file (the native code)/ The .so file can be anywhere, the main point is that it is in your LD_LIBRARY_PATH I had a great deal of difficulty trying to get things working until I copied the files into the correct place as described in step 1 above. I originally had my .jar file (that calls the native code) in a different location and then set my CLASSPATH variable to point to it but this didn't work.
RE: Question on conf
my mistake. you currently have: context path=/ docbase=/webapps/gundam crossContext=false debug=0 reloadable=true /context should be: context path=/ docbase=webapps/gundam crossContext=false debug=0 reloadable=true /context - remove the first forward slash in the docbase entry. hope this sorts it out : ) cheers, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 13:58 To: [EMAIL PROTECTED] Subject: RE: Question on conf !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps: * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Edit $JAVA_HOME/jre/lib/security/java.security and add security.provider.2=com.sun.net.ssl.internal.ssl.Provider * Execute: keytool -genkey -alias tomcat -keyalg RSA with a password value of changeit. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. -- !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=80 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define an SSL HTTP/1.1 Connector on port 8443 -- !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS/ /Connector -- !-- Define a Proxied HTTP/1.1 Connector on port 8081 -- !-- See proxy documentation for more information about using this. -- !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8081 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=6 proxyPort=80/ -- !-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 -- !-- Connector className =org.apache.catalina.connector.http10.HttpConnector port=8082 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0/ -- !-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). -- !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 !-- The request
Ang: Re: Insert special chars in stringbuffer
Thanks [EMAIL PROTECTED] 2001-09-19 15:23:13 StringBuffer buf = new StringBuffer(); buf.append('\'); hth, dim On Wed, 19 Sep 2001, Magnus Jansson wrote: Hi! I have a StringBuffer object and want to append a character how do I do?
Session expiring(?) on UNIX platform. Help!!!!
Hi: We are working on an application which stores successful userid in a session and used for subsequent user requests. On NT platform the app runs fine. However on UNIX platform, the values stored in session are not found (or the session not found?). Every time a request comes from user it appears to be looking for a new session. Checked application code and it works perfectly fine on NT. Seems something to do with Tomcat on UNIX platform. Appreciate if anyone can help... Thanks in Advance Bala Nemani
Re: Logout with basic autorization
P.Miller wrote: Hi Oleksandr, you can 'logout' with session.invalidate(). You have to login again afterwards. I do it exactly. But Browser already contains information for authentication, and when I want to access protected page ( I want to get auth prompt ) , it pass it by. Hth Peter Oleksandr Fedorenko wrote: Hi. How to do really logout using basic authorization ? I mean to get authorization prompt again by using tomcat engine ? , i.e. tomcat should care about it . To send smth. in response ? If yes, so what to send ? Thanks. Alex.
SV: Getting resource in WEB-INF
Hi! Thanks for the suggestion, but it didn?t work out for me. I AM still able to use the oracle class (when moved from 'tomcat/lib' to 'tomcat/webapps/app/WEB-INF') but that oracle-class is not able to find my application-client.xml file (located in 'tomcat/webapps/app/META-INF'). I will search the archive though as you recomeded. Halsar Svante -Ursprungligt meddelande- Fran: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Skickat: den 19 september 2001 15:01 Till: [EMAIL PROTECTED] Amne: Re: Getting resource in WEB-INF Put the oracle library in WEB-INF/lib instead of tomcat/lib - I assume thats where it is? sounds like a similar thing to the way struts works, Craig explained it when I asked a few weeks ago - you might find the mail by seraching for struts and classloader and dim (o: cheers dim On Wed, 19 Sep 2001, Svante Berglund wrote: Hi. I have a problem when using a InitalContextFactory from Oracle in a jsp-page on a stand-alone Tomcat. Problem is that the oracle-class tries to get hold of a resource as: classLoader.getResource(META-INF/application-client.xml), which don?t work unless I create a .jar with this specific META-INF and edit the tomcat.bat so this .jar is the first one in the classpath. This feels like a dirty workaround, is there a better way to solve the problem? thanks in advance. /Svante
Re: Getting a Verisign certificate
Hi, we need an official certificate. Any idea where I can get one for Tomcat? Alex --- Wednesday, September 19, 2001, 3:42:33 PM, Alex Colic [EMAIL PROTECTED] wrote: Hi, I am trying to get a verisign certificate for tomcat. The wizard is asking for a (CSR) Certificate Signing Request. Do you know where I can get one of those for tomcat? I'm guessing those generate by openssl are just as good, unless you really need an oficial cert. See http://www.openssl.org/ . --Ciprian
Tomcat 4 with IIS
Hi All I have not been able to locate documentation on setting Tomcat 4 on IIS. Can someone pls point me to the right direction. Thanks Fred __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
problem in init parameter .. SAXParseException
Hi all i have to set the following in my web.xml for my servlet init-param param-nameUrl/param-name param-valuehttp://120.20.203.1/q?s=asad=t/param-value /init-param when i startup tomcat .. i get the following error ERROR reading D:\Tomcat\jakarta-tomcat-3.2.1\webapps\test\WEB-INF\web.xml org.xml.sax.SAXParseException: Next character must be ; terminating reference to entity d. at com.sun.xml.parser.Parser.fatal(Parser.java:2817) at com.sun.xml.parser.Parser.fatal(Parser.java:2811) at com.sun.xml.parser.Parser.nextChar(Parser.java:2735) at com.sun.xml.parser.Parser.maybeReferenceInContent(Parser.java:2089) at com.sun.xml.parser.Parser.content(Parser.java:1549) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:126) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214) at org.apache.tomcat.context.WebXmlReader.processWebXmlFile(WebXmlReader .java:202) at org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java: 109) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java :491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) any soultion ? thanks in advance sibi
Tomcat and Ultradev produced pages. response.sendRedirect problem.
Hi, We have several customers using Ultradev to produce jsp for their site, everything seems fine, especially if you use non IE browsers. However for response.redirect we get either, the original page after a submission then some garbled cache type data and then the correct destination page. Or for simple links you occasionally get the strange cache data. It looks like this: HTTP/1.1 200 Date: Tue, 11 Sep 2001 16:31:26 GMT Server: Apache Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1 a4e I know how to massage to the jsp to stop this, with the original line commented out: response.setStatus( 301 ); response.setHeader( Location, MM_editRedirectUrl ); response.flushBuffer(); //response.sendRedirect(response.encodeRedirectURL(MM_editRedirectUrl)); However massaging UltraDevs code all the time is not really practical! :) My question is what causes this behaviour? I presume the other browsers never display it, or display correctly because they don't show anything until the html or Content-Type: label. So seeing as we cannot alter Ultradevs behaviour and we definately cant alter IE's how do I get tomcat stop this? With our previous servlet runners i never experienced this. *phew* Long post Thanks if you made it this far. Paul
RE: Getting a Verisign certificate
I believe you can get one from verisign. zlin -Original Message- From: Alex Colic [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 9:04 AM To: Tomcat-User Subject: Re: Getting a Verisign certificate Hi, we need an official certificate. Any idea where I can get one for Tomcat? Alex -- -- --- Wednesday, September 19, 2001, 3:42:33 PM, Alex Colic [EMAIL PROTECTED] wrote: Hi, I am trying to get a verisign certificate for tomcat. The wizard is asking for a (CSR) Certificate Signing Request. Do you know where I can get one of those for tomcat? I'm guessing those generate by openssl are just as good, unless you really need an oficial cert. See http://www.openssl.org/ . --Ciprian
Re: problem in init parameter .. SAXParseException
try encoding it as CDATA init-param param-nameUrl/param-name param-value![CDATA[http://120.20.203.1/q?s=asad=t]]/param-value /init-param cheesr dim On Wed, 19 Sep 2001, Sibi Joseph wrote: Hi all i have to set the following in my web.xml for my servlet init-param param-nameUrl/param-name param-valuehttp://120.20.203.1/q?s=asad=t/param-value /init-param when i startup tomcat .. i get the following error ERROR reading D:\Tomcat\jakarta-tomcat-3.2.1\webapps\test\WEB-INF\web.xml org.xml.sax.SAXParseException: Next character must be ; terminating reference to entity d. at com.sun.xml.parser.Parser.fatal(Parser.java:2817) at com.sun.xml.parser.Parser.fatal(Parser.java:2811) at com.sun.xml.parser.Parser.nextChar(Parser.java:2735) at com.sun.xml.parser.Parser.maybeReferenceInContent(Parser.java:2089) at com.sun.xml.parser.Parser.content(Parser.java:1549) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:126) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214) at org.apache.tomcat.context.WebXmlReader.processWebXmlFile(WebXmlReader .java:202) at org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java: 109) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java :491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) any soultion ? thanks in advance sibi
Big problem migrating to 4.0 final! generateEndComment error???
I'm trying to migrate an application that works perfectly well under previous tomcat releases, e.g. 3.2.1, 3.2.2 etc.. to Tomcat 4.0 but I'm getting this incomprehensible error for the attached page. (Basically, the welcome page once logged in) I could really do with some help here as i've gone over the file and can't seem to pick out anything at all. I've run it a xzillion times under 3.2.2 and no probs. What's up??? P.S. Please do not be shocked by the atrocious state of the jsp (and don't blame me I didn' write it). ;) Exception Report: org.apache.jasper.JasperException: No se puede compilar la clase para JSP at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unkno wn Source) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source) at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) Root Cause: java.lang.NullPointerException at org.apache.jasper.compiler.JakartaCommentGenerator.generateEndComment(Unknow n Source) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(U nknown Source) at org.apache.jasper.compiler.JspParseEventListener.generateAll(Unknown Source) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(Unknown Source) at org.apache.jasper.compiler.Compiler.compile(Unknown Source) at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unkno wn Source) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at
Re: A newbie question about Tomcat and Webalizer
At Wednesday 9/19/01 07:45 AM , you wrote: At the moment I am running an tomcat in combination with Apache. However there is no reason to use Apache, except that I use webalizer to generate web site stats. My question is: is it possible to configure Tomcat (3.2 and 4.0) in such a way that I can continue to use webalizer? As to 4.0, I think that the answer is, Probably. You would have to edit the file server.xml (the primary Tomcat config file) to add a Logger component (if not already in your server.xml file) for each container for which you wanted logging. Tomcat 4.0 includes an optional Valve implementation (which would involve more changes server.xml) that can create access logs in the same standard format created by web servers, or in any custom format desired. In order to have still more information written to the log, you could try adjusting the value of the attribute debug in the relevant component tag. The higher the debug level, the more information would be written to the log. The default debugging level is zero, and it can be set as high as nine. The documentation for 4.0 has a great deal on logging, and that's the source of my knowledge of this topic. -- Paul Bain
Re: Getting a Verisign certificate
Why don't you get a verisign certificate from verisign from http://www.verisign.com/ . ;) Elm -Original Message- From: Alex Colic [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 9:04 AM To: Tomcat-User Subject: Re: Getting a Verisign certificate Hi, we need an official certificate. Any idea where I can get one for Tomcat? Alex -- -- --- Wednesday, September 19, 2001, 3:42:33 PM, Alex Colic [EMAIL PROTECTED] wrote: Hi, I am trying to get a verisign certificate for tomcat. The wizard is asking for a (CSR) Certificate Signing Request. Do you know where I can get one of those for tomcat? I'm guessing those generate by openssl are just as good, unless you really need an oficial cert. See http://www.openssl.org/ . --Ciprian
RE: Getting a Verisign certificate
-BEGIN PGP MESSAGE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com qANQR1DBwU4DmdiwY0SOCJsQB/9AzkQbYFbwdN4Ysx6WLS6/FC+HOa+LaUE+uufW se8IJ93Hg9ev+pIaF8TNVudhq/uE5RUcNyQRzovIfYRQ5Co6h7glU1KjpMRS829w H5aHcY+ADF2C52aIRfCNkJ8RGKfbCImB+qydXW6KFjhgsSQ0Kh9AXpUhGR+VFHlq KCHlyL8dy7T2a+8Qztcyefrql72StDUOLD1MOuY5tWHPVjoFn8RACRU++OENg7Fj lHvR1Y66pprr2OyKZ+vyEnm4uixbXz9uMPkYtIuuYcmsNLf/MemctlQH4olA4myb Bqn5nb2cWR6Sn9CSPJiMy4Mg2TqiaatgRBlCoJq4/MWkq1hoCAD2CVc0hv030I1K ByyIcVcvPzwGSxqr5T6X75nmJCyjW4mDzkoDrlIrYDO5Ppp6xg0D9cDk+BD4IgSV DN6SrSIU+o9dytqxNv4gepmREcpaLJci2DxueL5mYVrmF4Qb4frCs1pPToE7Bfh9 gscv1DnI1kWfTT1F/dao+ms30Z8GyMzSfAd669jyoUHsw+tW8xlYOC9Fj4Ot0twf iuXUX52hc8FlnIk17mTTbitXw5fPigSAUALdmrRKfzEDTH5axmlJq0Gy9rnypwlt 6x541BIcod4fm9XApuqY/iyiRkTZl3AwnTExYFwKsk5GFa45Kp7rW5MNQ3eLSweS 0tf9ayFmycIfoRxEC4HpM9sqoLVe/ZW1LNu5Wl3NTqEbBWociJ2Xs+6VIWYHEpuj CXInj+vSKjNsomq2a2QBPBcgr9Zs3TqRhOVU5WMBIOZOk0sw8zhXLUKXBejMlZfa FuUWuTs4/QPwhhaZCU+jbPVJBwqhdNwxZlWMRueBQ/TE+ROh4PgbATjzstTkQpL2 E/soedMdW+APGD3NsR/mZxVhDc06nfK2mkD3xVwPcX+WFORX84EM1uIr0w+z9b3Y dnrj8T3G2f0rRAIg/yO7Xn8rR//yCQ8j09jCVdbNRUgJpJTnu0wNCzifOw0Nrh+b gT6en70u1ee0kYVjAFsxxTteHptrNiRKRRAMUjPkSklfwTcklF5ywaVHj1BkDIS+ oNC1MfdvXoepHICHX12SjzIJdKEAYFER/SsRZ3AbolLgPOfcaVFnMCwRiCr/wo3P VXAOJM1UzTBXNuXCeFhiAXCWDvD1t6sLBMDuM+L3d0m7hAGh1chRnGg4+yTYu4MC ebAvDVXV0HN3G5LVnrxAdwOZl+okYhshhDqisxi5GbGlli6ougOQNjllSFBQtEdj dfYdSypKRo8fvY591Y41q1AWq4W3SjPKjqpaG8KY2ORYAtQ64Jw5ykwbotjiv0Nx ZUDhNJ4dFGBeLlTn4uNeSVFgwPiadq3OYhcXY713HToqs9QfYTnaDXVtUs3jTUrl bxmBrwGEXB70FKjw/sV0SU3+NB1E8vmPxJ1QRIuXmcwmAkqPeLqSDwh9Z1oHxox7 1J6PBWGwWpMh1JJqIgKZls1vf/xvibht5r1+V/bh/9LDTcYVB30pUOoNSAbwBp3v l6yAWCJPysJT8SPLMG5Tzmikv74afBGFmBhkB3vvroM7z7cePQVop20TPieCM/H8 nniHIZcUptmYr11rLMmi8gV0Sv9PaLhwUsszmMbSzrNJZuklWXeVvFrafmsRZQaE Cm6Pv5qrGXeB8dGTW0IQcLSS1RSDmkzb =YAw1 -END PGP MESSAGE-
RE: Tomcat and Ultradev produced pages. response.sendRedirect problem.
Actually you can alter and wildly extend the behaviour (and develop plug-in type new functionality) from that which ships with Ultradev, I suggest you look in on http://www.macromedia.com/support/dreamweaver/extend/form/ where you can sign up for a closed news group where you'll get good advice, also look at the extending ultradev manual. -Original Message- From: Paul Downs [mailto:[EMAIL PROTECTED]] Hi, We have several customers using Ultradev everything seems fine However you occasionally get strange data.
RE: Question on conf
nothing, it still address to index in ROOT :- other ideas ? Bye, Ste
RE: CTLX
yep it works alright... -r -Original Message- From: Christoph Rooms [mailto:[EMAIL PROTECTED]] Sent: 19. september 2001 14:45 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: CTLX Hi, Anyone could get the CTLX dreamweaver integration working with Tomcat 4 ? I don't get any exceptions ... When I execute this url within a browser I get the content of a tld : http://localhost/TLDParser/servlet/TLDParser?mode=ultradevprefix=struts -htm l But he doesn't give a list of available taglibs in the usetaglib window :( thanks ! Christoph
Re: A newbie question about Tomcat and Webalizer
When you run Tomcat 4.0 stand alone, it generates webserver-style access logs by default, in the logs directory. The default filenames will be of the form localhost_access_log.-MM-DD.txt, and will switch over automatically each midnight without having to be restarted. Craig McClanahan On Wed, 19 Sep 2001, Paul D. Bain wrote: Date: Wed, 19 Sep 2001 11:03:38 -0400 From: Paul D. Bain [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: A newbie question about Tomcat and Webalizer At Wednesday 9/19/01 07:45 AM , you wrote: At the moment I am running an tomcat in combination with Apache. However there is no reason to use Apache, except that I use webalizer to generate web site stats. My question is: is it possible to configure Tomcat (3.2 and 4.0) in such a way that I can continue to use webalizer? As to 4.0, I think that the answer is, Probably. You would have to edit the file server.xml (the primary Tomcat config file) to add a Logger component (if not already in your server.xml file) for each container for which you wanted logging. Tomcat 4.0 includes an optional Valve implementation (which would involve more changes server.xml) that can create access logs in the same standard format created by web servers, or in any custom format desired. In order to have still more information written to the log, you could try adjusting the value of the attribute debug in the relevant component tag. The higher the debug level, the more information would be written to the log. The default debugging level is zero, and it can be set as high as nine. The documentation for 4.0 has a great deal on logging, and that's the source of my knowledge of this topic. -- Paul Bain
Tomcat 4 Tyrex DataSource Problems
I'm having some difficulty creating a DataSource using the default Tyrex factory provided in Tomcat 4. In the DefaultContext, I have: ResourceParams name=jdbc/SomeDB parameter nameuser/name valueusername/value /parameter parameter namepassword/name valuepass/value /parameter parameter namedriverClassName/name valuecom.jnetdirect.jsql.JSQLDriver/value /parameter parameter namedriverName/name valuejdbc:JSQLConnect://dbhost/database=somedata/value /parameter /ResourceParams And in my code I: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource) envCtx.lookup(jdbc/SomeDB); Connection conn = ds.getConnection(); However, at runtime, I get the following error on the third line of the above code fragment: java.lang.ClassCastException: tyrex.jdbc.xa.EnabledDataSource I do not have the Tyrex jar in my classpath at compile time, and I don't believe I should have to. Is this a problem with Tomcat, Tyrex, or something I'm doing? Thanks for your help, in advance, -- J. Daniel Powell Sr. Systems Architect Wellogic, Inc.
Re: CTLX
First, you talking about Dan Mandell's Struts CTLX? Second, I am not using Tomcat 4. I'm still using Tomcat 3.2.3. I have gotten it working though. I had one issue because my http server was not running on the same machine as Ultradev. So I had to change Macromedia\Macromedia Ultradev 4\Configuration\Commands\customTags\useTagLibs.js (line 84) to reflect the name of my server instead of localhost. I created a TLDParser.war file with a tlds subdirectory directory with the Struts .tld files in it. If you'd like, I could send you the .war. I also put the .tld files in my application .war file in the WEB-INF directory. I am also using JBoss and am so using the hot deploy feature. There are some other interesting issues that come up. Hope this helps. Fred. At 10:45 AM 9/19/2001, you wrote: Hi, Anyone could get the CTLX dreamweaver integration working with Tomcat 4 ? I don't get any exceptions ... When I execute this url within a browser I get the content of a tld : http://localhost/TLDParser/servlet/TLDParser?mode=ultradevprefix=struts-htm l But he doesn't give a list of available taglibs in the usetaglib window :( thanks ! Christoph
RE: Question on conf
are you restarting tomcat when you change server.xml? other than this I can't think what it could be. you're using version 4 right? I'm using 3.2 but I can't see there being a difference in the set up contexts in server.xml. sorry. Anyone else..? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 16:30 To: [EMAIL PROTECTED] Subject: RE: Question on conf nothing, it still address to index in ROOT :- other ideas ? Bye, Ste
RE: Tomcat and Ultradev produced pages. response.sendRedirectproblem.
Hi, suggest you look in on http://www.macromedia.com/support/dreamweaver/extend/form/ where The problem with that is we are a hosting company and they are customers. In their eyes it should work out of the box and I can agree with that, as the code looks fine. I have had this sort of code working before under resin and a few other servlet environments. However the more recent (3.2.x) tomcat engines don't like it. I am inclined to lay blame at tomcats door or one of the supporting jars or jsdk classes. Paul Paul
TC3.3-b2 Upgrade Issue
We tried upgrading to TC3.3-b2 from TC 3.3-b1 today and had a very strange problem, which forced us to revert back to b1. Unsecured pages worked just fine, but when accessing the secured pages (secured using form-based login), we were unable to get our custom authenticator to work. It seems like our authenticator was never being called and was never instantiated (adding log and System.out.println statements to the constructor and getCredentials method lead to this assumption). In the apps-APP.xml file we have the RequestInterceptor tag with our class in the class name attribute and the class itself extends RealmBase. Our platform is RedHat 7.1 using Sun's JDK1.3.1. Any thoughts? Randy
Tomcat port configuration
I've run into a small problem using tomcat-3.2.3 in that the secure port 8443 that it uses for https is blocked by a firewall and is not allowed. However the port 443 is allowed, that I'm told apache uses. So the question is how do I switch which port tomcat listens on for https? and can I? I'm running win2k server edition and downloaded a binary version of tomcat-3.2.3 thanks for the help in advance. -Pete
RE: Tomcat and Ultradev produced pages. response.sendRedirect problem.
The code that Ultradev produces has a couple of problems. First, there is a CR-LF which is taken as HTML between the first and second lines. Emitting HTML will most likely cause default HTML headers to be issued. Second, there is NO return; after the redirect, so the program continues on its merry way producing the HTML that is supposed to be stopped. Add return; after the redirect. Close up the CR-LFs between % and %, putting the spaces in the java where they are relatively harmless. Otherwise you have a race condition between the headers and the HTML with unreliable results, not even reliable failure. EXAMPLE: %@page contentType=text/html; charset=iso-8859-1 language=java import=java.sql.*% % ... response.sendRedirect(response.encodeRedirectURL(MM_authFailedURL)); } % // no return;, so code here is executed. -Original Message- From: Paul Downs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 9:38 AM To: tomcat Subject: Tomcat and Ultradev produced pages. response.sendRedirect problem. Hi, We have several customers using Ultradev to produce jsp for their site, everything seems fine, especially if you use non IE browsers. However for response.redirect we get either, the original page after a submission then some garbled cache type data and then the correct destination page. Or for simple links you occasionally get the strange cache data. It looks like this: HTTP/1.1 200 Date: Tue, 11 Sep 2001 16:31:26 GMT Server: Apache Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1 a4e I know how to massage to the jsp to stop this, with the original line commented out: response.setStatus( 301 ); response.setHeader( Location, MM_editRedirectUrl ); response.flushBuffer(); //response.sendRedirect(response.encodeRedirectURL(MM_editRedirectUrl)); However massaging UltraDevs code all the time is not really practical! :) My question is what causes this behaviour? I presume the other browsers never display it, or display correctly because they don't show anything until the html or Content-Type: label. So seeing as we cannot alter Ultradevs behaviour and we definately cant alter IE's how do I get tomcat stop this? With our previous servlet runners i never experienced this. *phew* Long post Thanks if you made it this far. Paul
RE: IIS Virtual hosting
It's in CVS. Or wait until RC1 gets built (Don't know when that is happening though). Dave [EMAIL PROTECTED] -Original Message- From: Kar YEOW [mailto:[EMAIL PROTECTED]] Sent: 19 September 2001 04:27 To: [EMAIL PROTECTED] Subject: Re: IIS Virtual hosting where can I get a copy of the patched isapi_redirect.dll? TIA. kar - Original Message - From: Larry Isaacs [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 13, 2001 3:42 AM Subject: RE: IIS Virtual hosting Hi David, Multiple virtual hosts on IIS is something I have not found time to try to do, yet. However, it is something I hope to support in Tomcat 3.3. Tim Whittington has submitted a patch to the isapi_redirect.dll that should be included soon. It adds a feature where the isapi_redirect dll queries its actual file name and uses that name to read a dll name.properties file from the same directory. If that file exists, those properties are used. If not, it reverts to the old behavior of getting the properties file location from the registry. This properties file would specify where to get the uriworkermap file. This implies that you get multiple isapi_redirector instances, each using different settings, by having multiple copies of the isapi_redirector with different names. Each virtual host would use the appropriately named copy. Not elegant, but I'm not sure there is a better way. Cheers, Larry -Original Message- From: David Oxley [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 9:40 AM To: [EMAIL PROTECTED] Subject: IIS Virtual hosting Hi all, I need to set up IIS with each virtual host routing to a different worker in Tomcat. Each virtual host has the same web application under it and therefore must all be the same context. i.e. Under Apache I set up the following: NameVirtualHost 128.100.2.23 VirtualHost 128.100.2.23 ServerName cisweb2k JkMount /spweb/servlet/* ajp13_1 /VirtualHost VirtualHost 128.100.2.23 ServerName cisweb2k2 JkMount /spweb/servlet/* ajp13_2 /VirtualHost How is the best way to achieve the same configuration with IIS? I think what I need is to be able to specify the host name in uriworkermap.properties: cisweb2k/spweb/servlet/*=ajp13_1 cisweb2k2/spweb/servlet/*=ajp13_2 Thanks. Dave.
Re: Getting a Verisign certificate
I am trying to get a certificate from Verisign. I am trying to get a demo certificate and it is asking me for a (CSR) Certificate Signing Request. Alex
RE: Getting a Verisign certificate
first generate a local certificate (see http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html). after you have this, generate a CSR using: keytool -certreq -alias tomcat -file whateveryouthink the generate file (whateveryouthink) contains the csr. -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 7:57 PM To: Tomcat-User Subject: Re: Getting a Verisign certificate I am trying to get a certificate from Verisign. I am trying to get a demo certificate and it is asking me for a (CSR) Certificate Signing Request. Alex
mod_webapp / mod_proxy and Tomcat 4.0
I'm currently running Apache 1.3.19 on my gateway (www)and Tomcat 4.0 on an internal machine (caffeine). I was previously running Tomcat 3.2.3 and using mod_jk to connect the two. Everything was hunky-dory. Tomcat 4.0 documentation doesn't mention mod_jk anywhere, so I followed the directions int the Proxy HOWTO included with the Tomcat 4.0 docs. However, what I really want is a connector like mod_jk so Apache continues to serve the static content. For some reason, the proxy setup is working but takes about 30 seconds to service a request. I checked the CPU on both machines and load was under 1%. The Proxy HOWTO mentiones mod_webapp, which I assume is the replacement for mod_jk, sorta. Where do I get it? Are there any docs for configuring it? www is running OpenBSD 2.8 caffeine is running SlackWare 8.1 with linux kernel 2.4.5 and Sun jdk 1.3_1 TIA and great work to the entire Apache and Jakarta teams. __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
RE: Tomcat Spontaneously Restarting System
I suspect your class... They may be trying to trick you into lower the protection around the class computers in an attempt to gain unauthorized access. I have never seen TOMCAT spontansouly do anything that couldn't be tracked back to humna error. my-2-cents cd -Original Message- From: C. Schlegelmilch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 2:23 PM To: [EMAIL PROTECTED] Subject: Tomcat Spontaneously Restarting System Hello all, I'm teaching a web development class and have the class develop their apps with Tomcat v3.2.3 Stand-alone on win2k and have been having problems with it restarting the odd system with the first request to localhost:8080 after startup (I've had the same problem with 4.0b7 as well). There have been no problems with running on win98. I've shutdown all personal firewall software as well as any anti-virus software running in the background. This seems to reduce the frequency of these spontaneous restarts but it still seems to happen on the odd machine. Has anybody else had this problem? I'm hoping there is an obvious solution that I've been too oblivious to see. Thanks, Craig Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
Changing the Servlets Directory
After I installed Tomcat 3.2.3, my servlet directory is C:\Program Files\Apache Group\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes. Now I want to change it to, or add the directory C:\public_html\myServlets. I've tried and tried and I cannot figure this out. How is this done? -Matt
Tomcat 4.0 Final and Xerces 1.4.3 Error
Hi, I am trying to use Tomcat 4.0 Final and my web application requires Xerces 1.4.3 (for soap and cocoon1 ). Previously I was using Tomcat 4.0-b7 with no problems, but this problem started happening when I moved to 4.0Final. Here is the error that I am getting: java.lang.ClassCastException: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFact ory.java:152) My line of code which is producing this error is: javax.xml.parsers.DocumentBuilderFactory documentBuilderFactory = javax.xml.parsers.DocumentBuilderFactory.newInstance(); It looks to me like crimson is being loaded instead of my xerces.jar in my web app. Could this be related to the jaxp classloading problem found in the tomcat4 faq? Does anyone know of the solution to this problem? Thanks Paul Dumais [EMAIL PROTECTED]
sun/tools/javac/Main not found while running Tomcat 4 as a service on Windows 2000
I'm having the following problem only on Windows 2000 with Sun's JDK 1.4. It works with Windows NT 4.0 and Sun's JDK 1.3.1. My JAVA_HOME and CATALINA_HOME environment variables are properly set. While running Tomcat 4 as a service on Windows 2000 I get the following error when accessing any JSP page that isn't already compiled: java.lang.NoClassDefFoundError: sun/tools/javac/Main I believe sun.tools.javac.Main is called while the JSP page is compiled, and is containted in C:\jdk1.4\lib\tools.jar. For testing, delete all the files and folders in the Apache Tomcat 4.0\work directory to force a recompile of the JSP pages. When I run Tomcat 4 from the command line with startup.bat it tells me that C:\jdk1.4\lib\tools.jar is included in the CLASSPATH and JSP pages compile and work as expected. If I start Tomcat 4 as a service it doesn't seem to be using the same CLASSPATH or isn't finding C:\jdk1.4\lib\tools.jar.
RE: Tomcat Spontaneously Restarting System
Thanks Chris, I thought the class was doing something odd, but it has happened to me from time-to-time without warning. I must admit to not having seen stuff like this before, although this is the first time using win2k. I'm pretty sure the problem lies in a conflict with some software on the lab machines. It could be anything... Craig --- Curtis Dougherty [EMAIL PROTECTED] wrote: I suspect your class... They may be trying to trick you into lower the protection around the class computers in an attempt to gain unauthorized access. I have never seen TOMCAT spontansouly do anything that couldn't be tracked back to humna error. my-2-cents cd -Original Message- From: C. Schlegelmilch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 2:23 PM To: [EMAIL PROTECTED] Subject: Tomcat Spontaneously Restarting System Hello all, I'm teaching a web development class and have the class develop their apps with Tomcat v3.2.3 Stand-alone on win2k and have been having problems with it restarting the odd system with the first request to localhost:8080 after startup (I've had the same problem with 4.0b7 as well). There have been no problems with running on win98. I've shutdown all personal firewall software as well as any anti-virus software running in the background. This seems to reduce the frequency of these spontaneous restarts but it still seems to happen on the odd machine. Has anybody else had this problem? I'm hoping there is an obvious solution that I've been too oblivious to see. Thanks, Craig Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
[TC4] Decreasing Startup Times
Hello All, A quick question. I'm trying to decrease startup times for my own debugging Tomcat copy by not using the Secure Random Generator and using my own entropy. Here's a snippet of what I have for each context in server.xml: Context path= docBase=ROOT debug=0 reloadable=false Manager randomClass=java.util.Random entropy=test/ /Context Based upon my startup times, obviously I'm doing something wrong. :) Any suggestions would be greatly appreciated. [I'm using TC 4 Release Build] Thanks! -Mike
Re: Tomcat OSX
on 9/19/01 7:15 AM, jason lane at [EMAIL PROTECTED] wrote: Ok thanks, I'll give that a try. I logged onto the Manager and I see that WebDAV the manager are running but examples are not. Anyway thanks, I'll let you know the result. How did you decompress and unpack the archive? I'm running Tomcat successfully, and found that if I used StuffIt Expander to untar the archive, then files with names longer than the HFS filename limit had their names truncated, and that kept some of the examples from running. However, using tar from the command line works great. Roderick Mann rmann @ latencyzero.com.sansspam
Re: JSP compiles with -g?
Well, my interceptor class gets called and it looks to me like the Handler's initArgs get set with a 'classdebuginfo' entry. That also seems to be the right parameter name in EmbededServletOptions which is what the SunJavaCompiler seems to be looking at. Not sure how the Options gets it from the Handler. However, it's still not working for me. I'm going to try 3.3 and if that fails, I'll roll my own Tomcat and force the -g... Thanks, Chris Larry Isaacs wrote: The Removing duplicate messages are normal and not an indication of an error. Internally, the JspServlet and *.jsp mapping are added by default, which is why you don't have to have it in your web.xml. Your web.xml update is causing those defaults to be replaced. I believe you could put the interceptor class under TOMCAT_HOME/classes and it will automatically be included on the classpath. I forgot to mention that you will need to add this interceptor to your server.xml. You can add: ContextInterceptor className=your fully qualified classname / after the one for WebXmlReader. Larry -Original Message- From: Chris Lamey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 3:25 PM To: [EMAIL PROTECTED] Subject: Re: JSP compiles with -g? Thanks for the info, but I'm still having a problem getting it working. I'm using the example number guesser as a test for this. Here's what I did: - Add the following XML to webapps/examples/WEB-INF/web.xml servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-nameclassdebuginfo/param-name param-valuetrue/param-value /init-param init-param param-namekeepgenerated/param-name param-valuetrue/param-value /init-param init-param param-namesendErrToClient/param-name param-valuetrue/param-value /init-param /servlet servlet-mapping servlet-namejsp/servlet-name url-pattern*.jsp/url-pattern /servlet-mapping - Start Tomcat in jdb.exe - Here's the output from startup: VM Started: Starting tomcat. Check logs/tomcat.log for error messages 2001-09-19 13:09:02 - Ctx( /examples ): Set debug to 1 2001-09-19 13:09:02 - ContextManager: Adding context Ctx( /examples ) 2001-09-19 13:09:02 - ContextManager: Adding context Ctx( /admin ) 2001-09-19 13:09:02 - ContextManager: Adding context Ctx( ) 2001-09-19 13:09:02 - ContextManager: Adding context Ctx( /test ) 2001-09-19 13:09:02 - Ctx( /examples ): XmlReader - init /examples webapps/examples 2001-09-19 13:09:02 - Ctx( /examples ): Reading C:\tomcat\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\web.xml 2001-09-19 13:09:02 - Ctx( /examples ): Removing duplicate servlet jsp jsp(org.apache.jasper.servlet.JspServlet/null) 2001-09-19 13:09:02 - Ctx( /examples ): Removing duplicate *.jsp - jsp(org.apache.jasper.servlet.JspServlet/null) 2001-09-19 13:09:03 - Ctx( /examples ): Add user tomcat tomcat tomcat 2001-09-19 13:09:03 - Ctx( /examples ): Add user role1 tomcat role1 2001-09-19 13:09:03 - Ctx( /examples ): Add user both tomcat tomcat,role1 2001-09-19 13:09:04 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-09-19 13:09:04 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 Which says that it's removing a duplicate jsp entry. But there isn't one in that web.xml...must be a default? As for you second suggestion, I created a class the extends BaseInterceptor and included that method. But it didn't do the trick. Where should that class go? I just have it in my $CLASSPATH It looks to me like the 'jsp' servlet doesn't recognize that init param. Or I'm just not doing something correct... Thanks for the help, Chris Larry Isaacs wrote: Hi Chris, There is support for this in Tomcat 3.2.3 (as well as 3.3), but it isn't widely known. For 3.2.3, the following methods should work. Method 1. Update the web.xml to explicitly configure Jasper's JspServlet. This is documented in the last question in the faq document found in TOMCAT_HOME/doc. You will want to set the classdebuginfo init parameter true. Method 2. To enable -g for all contexts without modifying web.xml's, implement a custom interceptor that sets JspServlet's classdebuginfo init parameter true. Write a class that imports org.apache.tomcat.core.*, extends BaseInterceptor, and includes the following method: public void contextInit(Context ctx) throws TomcatException { ServletWrapper jasper=ctx.getServletByName( jsp ); jasper.addInitParam(classdebuginfo, true ); } You may enhance this by adding code to make it configurable. Hope this helps. Larry P.S. For Tomcat 3.3 users, add: classDebugInfo=true to the JspInterceptor in server.xml. -Original Message- From: Chris Lamey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 1:45 PM To: [EMAIL PROTECTED] Subject: JSP compiles with -g? Hi all, I'm trying to debug some JSPs, and I'd like to be able to browse the local variables on the stack. However,
Re: Tomcat OSX
I used StuffIt Expander as well, works well. Now that's interesting that that you say it could be truncating names, will look into that. I've been busy on other stuff today (stuff there paying me for, not this...heheh) so I haven't really made much headway, I shall continue tomorrow and I shall keep you informed. Must go home now, the office is wont keep me any longer. Thanks. On Wednesday, September 19, 2001, at 09:10 PM, Rick Mann wrote: on 9/19/01 7:15 AM, jason lane at [EMAIL PROTECTED] wrote: Ok thanks, I'll give that a try. I logged onto the Manager and I see that WebDAV the manager are running but examples are not. Anyway thanks, I'll let you know the result. How did you decompress and unpack the archive? I'm running Tomcat successfully, and found that if I used StuffIt Expander to untar the archive, then files with names longer than the HFS filename limit had their names truncated, and that kept some of the examples from running. However, using tar from the command line works great. Roderick Mann rmann @ latencyzero.com.sansspam
Class java.util.Collection not found in type declaration
Hi all. I have a problem with a JSP page.I am not sure if this is tomcat or jboss. The classes work with a servlet but not with JSP which makes me think it is tomcat. I am trying to use a collection class from an entity bean, Collection findAll(). I am using a jbean between ejb and JSP. I keep getting this error Class java.util.Collection not found in type declaration.(full dump below). I package jsp and jbeans in a war file then drop it into the webapps folder under tomcat, My entity beans are in jar file under jboss/deploy. I have a servlet that uses the ebean to output the same Collection,Iterator classes on the screen(html) so I know these classes exist.Why cant the JSP find the java.util.package? I have java version 1.3.1 Hotspot vm Please help! THANKS!! Here is the code: %@page contentType=text/htmlimport=java.util.*% jsp:useBean id=usersecurity scope=session class=UserSecurityDataBean / html headtitleJSP Page/title/head body %java.util.Collection sec=usersecurity.home.findAll();//this is my jbean which references ebean home java.util.HashSet hs=new java.util.HashSet(sec); java.util.Iterator i=hs.iterator(); //THIS CODE WORKS IN A SERVLET! while (i.hasNext()){% h2%=usersecurity.getWING()%//THIS IS JUST FOR TESTING, I REALLY NEED TO POPULATE AN OPTION BOX WITH COLLECTION %}%/h2 /body /html //HERE IS THE DUMP Error: 500 Location: /adapts/Try.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPD:\Apache\tomcat\work\localhost_8080%2Fadapts\_0002fTry_0002ejspTry_jsp_5 .java:89: Class java.util.Collection not found in type declaration. java.util.Collection sec=usersecurity.home.findAll(); ^ D:\Apache\tomcat\work\localhost_8080%2Fadapts\_0002fTry_0002ejspTry_jsp_5.ja va:90: Class java.util.HashSet not found in type declaration. java.util.HashSet hs=new java.util.HashSet(sec); ^ D:\Apache\tomcat\work\localhost_8080%2Fadapts\_0002fTry_0002ejspTry_jsp_5.ja va:90: Class java.util.HashSet not found in type declaration. java.util.HashSet hs=new java.util.HashSet(sec); ^ 3 errors 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(JspSe rvlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va: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:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.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(Unknown Source)
RE: Changing the Servlets Directory
Can anyone help me with this? -Original Message- From: Hoggatt Matt - mahogg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 2:46 PM To: '[EMAIL PROTECTED]' Subject: Changing the Servlets Directory After I installed Tomcat 3.2.3, my servlet directory is C:\Program Files\Apache Group\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes. Now I want to change it to, or add the directory C:\public_html\myServlets. I've tried and tried and I cannot figure this out. How is this done? -Matt
Re: Tomcat 4.0 Session Timeout
I'm new to Tomcat 4.0 too, but in my server.xml, there is a connector area as follows. Connector className=org.apache.catalina.connector.http.HttpConnector port=8081 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=6 / try that connectionTimeout setting there. --- Jim Urban [EMAIL PROTECTED] wrote: OK, I've spent the last 30 minutes browsing the Tomcat 4.0 documentation and I can't find it. How do I set the session time out for a context in Tomcat 4.0. The session time out is defaulting to 18000 seconds (5 hours?). I have tried adding the following to both my context's WEB-INF/web.xml file and the $CATALINA_HOME/conf/web.xml file but both are ignored. session-config session-timeout300/session-timeout /session-config How do I go about setting the time out to 5 minutes? Thanks, Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046 PS: Love Tomcat 4.0, it seems really solid! __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
Re: Tomcat 4.0 Session Timeout
Ignore my previous email. My brain's not working today. You're looking for session timeout and that was connection timeout! --- Jim Urban [EMAIL PROTECTED] wrote: OK, I've spent the last 30 minutes browsing the Tomcat 4.0 documentation and I can't find it. How do I set the session time out for a context in Tomcat 4.0. The session time out is defaulting to 18000 seconds (5 hours?). I have tried adding the following to both my context's WEB-INF/web.xml file and the $CATALINA_HOME/conf/web.xml file but both are ignored. session-config session-timeout300/session-timeout /session-config How do I go about setting the time out to 5 minutes? Thanks, Jim Urban Product Manager Netsteps Inc. Suite 505E 1 Pierce Pl. Itasca, IL 60143 Voice: (630) 250-3045 x2164 Fax: (630) 250-3046 PS: Love Tomcat 4.0, it seems really solid! __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
Re: JSP compiles with -g?
Just in case anyone wants to know... Tomcat 3.3-b2 with the classDebugInfo='true' in the JspInterceptor in server.xml worked for me. It generates classes with debugging info so it's possible to play with local variables on the current stack. I never managed to get 3.2.3 to work, doesn't anyone know if this feature made it to 4.0? -- Chris
tomcat 3.2.3 apache 1.3.20
hi, i'm using tomcat version 3.2.3, apache 1.3.20 with mod_jk-noeapi.so and mysql 3.x on a Linux Redhat 7. i'm using Dreamweaver UltraDev 4 to create my insert page which I could insert my records into the mysql server successfully. However, when I configured TomCat to use the Apache 1.3.20 server with the plugin mod_jk-noeapi.so, I got the following error: HTTP/1.1 200 OK Date: Wed, 19 Sep 2001 23:21:08 GMT Server: Apache/1.3.20 (Unix) mod_jk Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java 1.1.8; Linux 2.2.16-22 i686; java.vendor=IBM Corporation) Keep-Alive: timeout=15, max=98 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html;charset=ISO-8859-1 d5 Insert completes! 0 When I refresh my browser, the above error message went away and I got the valid message saying thank you for submitting! Even I got the above error, my record successfully inserted my database. I was using IE 5.0 and Netscape 6.0 and I got the same error message. If I used Netscape 4.75, I did not get the error. Can anyone pls help? thanks -minh
distinguish version between WAR file
When i deploy web application, I will create a WAR file. Any way I can distinguish versions between different WAR file ( without extracting the WAR file and take a look at the manifest /META-INF/manifest.mf ) Basically, I want to know what version is it before installing / extracting. __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
Re: Changing the Servlets Directory
Tomcat is very difficult for user to change it's defualt setting... I want to change the directory of servlet before, but now i already give up. And I still cant resolve Tomcat cache problem. Everytime I edit my servlet, I need to restart tomcat to get the latest result. I already added reloadable = true in server.xml. I like Jserv more. Why stop develop Jserv ??? After I installed Tomcat 3.2.3, my servlet directory is C:\Program Files\Apache Group\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes. Now I want to change it to, or add the directory C:\public_html\myServlets. I've tried and tried and I cannot figure this out. How is this done? -Matt /* Kenny Ma [EMAIL PROTECTED] */
Re: sun/tools/javac/Main not found while running Tomcat 4 as a service on Windows 2000
Same problem with me, when i upgraded my tomcat 3.1 to tomcat 4.0 , and my tomcat 3.1 stoped compiling all the new JSP pages, where as all pages work fine with tomcat4.0 I hope some one can help us in this. cheers asheesh - Original Message - From: Beem Rickey L (Rick) CNIN [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 4:21 AM Subject: sun/tools/javac/Main not found while running Tomcat 4 as a service on Windows 2000 I'm having the following problem only on Windows 2000 with Sun's JDK 1.4. It works with Windows NT 4.0 and Sun's JDK 1.3.1. My JAVA_HOME and CATALINA_HOME environment variables are properly set. While running Tomcat 4 as a service on Windows 2000 I get the following error when accessing any JSP page that isn't already compiled: java.lang.NoClassDefFoundError: sun/tools/javac/Main I believe sun.tools.javac.Main is called while the JSP page is compiled, and is containted in C:\jdk1.4\lib\tools.jar. For testing, delete all the files and folders in the Apache Tomcat 4.0\work directory to force a recompile of the JSP pages. When I run Tomcat 4 from the command line with startup.bat it tells me that C:\jdk1.4\lib\tools.jar is included in the CLASSPATH and JSP pages compile and work as expected. If I start Tomcat 4 as a service it doesn't seem to be using the same CLASSPATH or isn't finding C:\jdk1.4\lib\tools.jar.
Re: Question on conf
I noticed the following in the default server.xml. !-- Tomcat Root Context -- !-- Context path= docBase=ROOT debug=0/ -- Maybe you need to set a blank context path for that? i.e. not /? Jon - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 10:30 AM Subject: RE: Question on conf nothing, it still address to index in ROOT :- other ideas ? Bye, Ste
Re: Changing the Servlets Directory
Tomcat is a servlet container - it adheres to the servlet specification (see http://java.sun.com/products/servlet). If you also adhere to that specification, then you will be able to deploy your application across any number of different products, not just tomcat. as for jserv... if you want to continue using it, then feel free. but afaik there is little or no support for it these days, and you certainly wont see the functionality expanding like servlets... cheers dim On Thu, 20 Sep 2001, Kenny Ma wrote: Tomcat is very difficult for user to change it's defualt setting... I want to change the directory of servlet before, but now i already give up. And I still cant resolve Tomcat cache problem. Everytime I edit my servlet, I need to restart tomcat to get the latest result. I already added reloadable = true in server.xml. I like Jserv more. Why stop develop Jserv ??? After I installed Tomcat 3.2.3, my servlet directory is C:\Program Files\Apache Group\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes. Now I want to change it to, or add the directory C:\public_html\myServlets. I've tried and tried and I cannot figure this out. How is this done? -Matt /* Kenny Ma [EMAIL PROTECTED] */
Re: Getting a Verisign certificate
Also, checkout the documentation on the keytool command in the Tools section in Sun's JDK documentation. Jon - Original Message - From: pero [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 1:16 PM Subject: RE: Getting a Verisign certificate first generate a local certificate (see http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html). after you have this, generate a CSR using: keytool -certreq -alias tomcat -file whateveryouthink the generate file (whateveryouthink) contains the csr. -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 7:57 PM To: Tomcat-User Subject: Re: Getting a Verisign certificate I am trying to get a certificate from Verisign. I am trying to get a demo certificate and it is asking me for a (CSR) Certificate Signing Request. Alex
Re: Logout with basic autorization
The only way to logout with basic authentication is to close the Web browser. Otherwise, you may want to do form-based authentication. Jon - Original Message - From: Oleksandr Fedorenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 8:43 AM Subject: Re: Logout with basic autorization P.Miller wrote: Hi Oleksandr, you can 'logout' with session.invalidate(). You have to login again afterwards. I do it exactly. But Browser already contains information for authentication, and when I want to access protected page ( I want to get auth prompt ) , it pass it by. Hth Peter Oleksandr Fedorenko wrote: Hi. How to do really logout using basic authorization ? I mean to get authorization prompt again by using tomcat engine ? , i.e. tomcat should care about it . To send smth. in response ? If yes, so what to send ? Thanks. Alex.
Tomcat security questions
I'm wondering if anyone has any suggestions on how to best setup Tomcat for maximum security? Currently, I'm running Tomcat in a chrooted environment. I see that there is also a way to run Tomcat as a non-root user. I'm wondering what the best configuration is. It seems like running it chrooted is probably the best way to go. Also, I'm wondering how much of an issue buffer overflows are for Tomcat considering it's written in Java which as far as I know makes them close to impossible. You would have to basically find an over flow in the JVM, right? Any other suggestions on how Tomcat should be configured for security? i.e. removing sample applications, etc. Jon
Re: Tomcat port configuration
It's been awhile since I've looked at Tomcat 3.x, but, if it's like 4.0, it's just a setting in conf/server.xml. Do a search in that file for 8443. Basically, just changes all the values of 8443 in that file to 443. Jon - Original Message - From: Peter L. Markowsky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Paul Downs [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 11:37 AM Subject: Tomcat port configuration I've run into a small problem using tomcat-3.2.3 in that the secure port 8443 that it uses for https is blocked by a firewall and is not allowed. However the port 443 is allowed, that I'm told apache uses. So the question is how do I switch which port tomcat listens on for https? and can I? I'm running win2k server edition and downloaded a binary version of tomcat-3.2.3 thanks for the help in advance. -Pete
Where is Mod_webapp?
Where is Mod_webapp?
tomcat not compiling JSPs
Dear All, All of sudden tomcat 3.1 stoped compiling any of the JSPs. This started when i installed tomcat 3.2.x . Then i installed tomcat 4.0 , tomcat 4.0 is compiling those JSP's but may be because of some configuration all of the JSPs not working there.The especially the JSPs which are trying to lookup for EJBs. I am using Borland App.Server as an EJB container. All of them were working fine with tomcat 3.1, except SSL support. Thus is tried to upgrade it and now am in fix. --- this is the exception which i am getting as i am trying to run new JSP on tomcat 3.1 --- org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.compiler.Compiler.compile(Compiler.java:247) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:149) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:161) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:160) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338 ) at java.lang.Thread.run(Thread.java:484) thanks !!! asheesh
Re: Problem with Tomcat
Haven't seen any reply on this, since my post. Basically, I installed tomcat 3.2.3 in $TOMCAT_HOME/tomcat-3.2.3. I have RedHat Linux 7.1 running, and this installation included Tomcat's startup and shutdown scripts, which an RPM version I have on a different machine did not. Not sure that's relevant, but thought I'd throw it out. Also, the RH 7.1 box is a completely clean install. I followed the installation and getting this thing running steps in the user guide, setting $JAVA_HOME, $TOMCAT_HOME and other config options. I also have running the 1.3 JDK (not only the JRE, the entire JDK was downloaded and installed). Now the problem. The servlet examples work fine. However, stack trace I included below is what I see whenever I try running the JSP examples. I've double checked to make sure that the java command is working properly, and the version which does work on a RH 6.1 (Linux 2.2 kernel) is working with the same version of Tomcat, although installation was done through RPM instead of tar. Any ideas? - Original Message - From: Charles Webber [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 17, 2001 8:51 PM Subject: Re: Problem with Tomcat It is the JDK. - Original Message - From: Dmitri Colebatch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 17, 2001 7:56 PM Subject: Re: Problem with Tomcat You need to have the jdk - not the jre. btw - someone with access to the site - I'm constantly amazed that this answer is not in the faq (unless I missed it)... perhaps its somewhere else, but I would have thought it should be there. cheesr dim On Mon, 17 Sep 2001, Charles Webber wrote: I'm running into a strange problem with a new installation of Tomcat. I have 3.2.3 installed. I can use the startup script to start Tomcat and everything looks fine until I try to execute a JSP. When I try the JS P examples supplied with Tomcat, I get the following errors - which is a partial stack trace. I have set the CLASSPATH, TOMCAT_HOME and JAVA_HOME environment variables, even though the startup script should do that for me. What is wrong? Thanks Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508) 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:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.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) 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:273) 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(JspSe rvlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va: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.ContextManag