Compatibilty question
Hello, I read in the Apache website's pages that Tomcat 3.1 was tested with RedHat Linux 6.0 . I have RedHat Linux 6.1 installed. Can I use it? Do I have to get binaries or source? Thanx, Bogdan
RE: Tomcat Dreamweaver UltraDev
I would like to remind you that ultra dev only use jsp 1.0, while Tomcat serve jsp 1.1. the tag jsp:include / or jsp:forward / are not identifed correctly by Utra dev, and at least can not be use via the interface, but through the text code itself. __ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one Place. http://shopping.yahoo.com/
RE: Compatibilty question
i'm using TOmcat with RH6.2. No problem detected ... -Original Message- From: Bogdan Paduraru [mailto:[EMAIL PROTECTED]] Sent: mercredi 8 novembre 2000 16:12 To: [EMAIL PROTECTED] Subject: Compatibilty question Hello, I read in the Apache website's pages that Tomcat 3.1 was tested with RedHat Linux 6.0 . I have RedHat Linux 6.1 installed. Can I use it? Do I have to get binaries or source? Thanx, Bogdan
Re: Compatibilty question
I installed Tomcat 3.1 from source and when I tried to run a test like $ ./tomcat.sh ant -buildfile conf/test.tomcat.xml I received Can't find class org.apache.tools.ant.Main I don't know where to find that. Bogdan [EMAIL PROTECTED] wrote: i'm using TOmcat with RH6.2. No problem detected ... -Original Message- From: Bogdan Paduraru [mailto:[EMAIL PROTECTED]] Sent: mercredi 8 novembre 2000 16:12 To: [EMAIL PROTECTED] Subject: Compatibilty question Hello, I read in the Apache website's pages that Tomcat 3.1 was tested with RedHat Linux 6.0 . I have RedHat Linux 6.1 installed. Can I use it? Do I have to get binaries or source? Thanx, Bogdan
I: Tomcat + IIS
Hello, all I'm a new user of Tomcat With IIS I've seen that someone uses Tomcat + IIS. I have problem (i suppose that it's a common problem for new users...): The red arrow of Isapi filter (isapi_redirector.dll) I've make all the instructions of document "HOW TO ..." but the arrow is always red. I've checked the setup a lot of times and it seems ok. Tomcat seems OK (if I call on 8080 port the examples look very well) My configuration is: NT Server 4.0 IIS 4.0 Tomcat 3.1 isapi_redirector.dll v 3.1 Jdk 1.3 I haven't other software for IIS. Can someone help me ? Thanks for attention Lorenzo Vaccari
Re: CAN'T UNSUBSCRIBE
Please do this with my address also and stop me from flooding. -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, November 08, 2000 4:18 AM Subject: RE: CAN'T UNSUBSCRIBE I got a feeling you're stuck because I tried to as well and I'm stuck. I'm might just put a block on the e-mail address. -Original Message- From: Ruben Kleiman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 07, 2000 12:31 PM To: [EMAIL PROTECTED] Subject: CAN'T UNSUBSCRIBE I've tried to unsubscribe multiple times, to no avail. If you are the sys admin for this list, please unsubscribe me! Thanks.
starting tomcat at booting
How can i set up my computer under RH6.2 to start and stop Tomcat at booting ?
RE: JK_NT_SERVICE
Hi Marc, Those lines in wrapper.properties cause servlet stdout and stderr to be redirected the files jvm.stdout and jvm.stderr in the directory specified by wrapper.tomcat_home. The default behaviour should be just what you want. Ah! Thank you. I didn't even think of looking for files called jvm.stderr/out since I assumed that the behaviour would send output to those streams to the default out/err streams of the JVM, d'oh! Thanks again, Raj. -- Rajnish Bhaskar [EMAIL PROTECTED], http://i.am/rajy IT Education Unit, University of Glasgow http://www.iteu.gla.ac.uk/ -- Fear leads to anger. Anger leads to hate. Hate leads to suffering. -- Yoda, Star Wars Episode 1: The Phantom Menace
Where can Obtain Jserv Module (mod_jserv)
I am the first time install Tomcat in the linux machine. According to the installation guide, I need to download the Jserv Module (mod_jserv). However I follow the link in the page provided, I can't find any Module. Pls. help me!!! Would you pls tell me where can i download the mod_jserv. Chris
RE: CAN'T UNSUBSCRIBE READ
This is not how you unsubscribe. You should have gotten instructions for unsubscribing as your first email when you subscribed. If you don't have that, the instructions are, I beleive, in that email entitled "READ THIS FIRST", that shows up regularly. -Original Message- From: Mangalmurti [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 07, 2000 10:29 PM To: [EMAIL PROTECTED] Subject: Re: CAN'T UNSUBSCRIBE Please do this with my address also and stop me from flooding. -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, November 08, 2000 4:18 AM Subject: RE: CAN'T UNSUBSCRIBE I got a feeling you're stuck because I tried to as well and I'm stuck. I'm might just put a block on the e-mail address. -Original Message- From: Ruben Kleiman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 07, 2000 12:31 PM To: [EMAIL PROTECTED] Subject: CAN'T UNSUBSCRIBE I've tried to unsubscribe multiple times, to no avail. If you are the sys admin for this list, please unsubscribe me! Thanks.
RE: [ANNOUNCE] Tomcat 4.0 Milestone 4
Does M4 have the connector to work with Apache or does it still only work in standalone mode? Thanks. Steve Buroff -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2000 11:37 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [ANNOUNCE] Tomcat 4.0 Milestone 4 We're pleased to announce the availabililty of milestone 4 of the Tomcat 4.0 servlet container and JSP engine. Compared to milestone 3, this release reflects the following changes: * Implementation of all the changes between "public draft" and "proposed final draft" of the Servlet 2.3 and JSP 1.2 specifications. * Implementation of all remaining 2.3 / 1.2 features -- Tomcat 4.0 is now a feature complete implementation of the new specs! * Many bug fixes (see RELEASE-NOTES-4.0-M4.txt in the top level directory). Binary distributions of the new release are available from: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-m4 and source releases can be downloaded from: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-m4/sr c If you are planning on building Tomcat 4.0-m4 from source, you will want to pick up the corresponding distribution of the servlet API classes, found in the same directory. Users of the binary distribution need not do this -- a servlet.jar file containing the most current version of the servlet API classes is included in the "bin" directory of the binary release. Come and get it! Craig McClanahan
Re: Skills Challenge - off topic
Got it! I left in the page directive %@ page contentType="text/html;charset=utf-8"% and I surrounded response.setContentType("text/html;charset=8859_1"); with the test for a debug flag. Works great. --- Wyn Easton [EMAIL PROTECTED] wrote: Hi All, I just changed several JSPs to support language translations. I added %@ page contentType="text/html;charset=utf-8"% to the beginning of all of my JSPs. This is great for NLS, but the Netscape JavaScript Debugger only understands US ASCII and will not work with utf-8 (bummer). Now the challenge... How can I somehow set a debug flag in my JSPs to use US ASCII if the flag is set and UTF-8 if not? I've tried surrounding the "page" JSP tag with an "if", but the page directive is processed first and moved to the beginning of the generated java file. I've tried replacing the String "text/html;charset=utf-8" with a String variable, no luck. Hmmm... = Wyn Easton [EMAIL PROTECTED] __ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one Place. http://shopping.yahoo.com/ = Wyn Easton [EMAIL PROTECTED] __ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one Place. http://shopping.yahoo.com/
Re: Where is the webdav support for jakarta-tomcat-4.0-20001103.tar.gz
Ray Allis wrote: (Which BTW is the last real dev snapshot. 1104 on are 1k.) Yah, there's a bug in the build process that will be addressed as soon as we put the 3.2 release issue to bed. webdav/index.html says: "Tomcat 4.0 includes built-in support for WebDAV level 2, which enables remote authoring of the website. You can test these capabilities using a WebDAV client like MS WebFolders (included with IE 4.0 and up), MS Office 2000, DAV Explorer (others are listed on the webpages linked below), and point to the /webdav path of the server. This test context is DAV enabled, but has been set up in read-only mode for safety reasons. It can be put in read-write mode by editing the web application descriptor file (WEB-INF/web.xml)." Is webdav in the dev queue? No harassment meant, just curious. :-) It's actually present in the Tomcat 4.0 milestone 4 release. If you start up Tomcat and point your browser at http://localhost:8080, you will see a hyperlink to a webdav enabled context. By default, this is read only but can be adjusted by parameters in the web.xml file to become read-write. Ray Allis Craig McClanahan
Re: starting tomcat at booting
[EMAIL PROTECTED] wrote: How can i set up my computer under RH6.2 to start and stop Tomcat at booting stick this in your /etc/rc.d/rc.local file: su -l user -c 'path_to_startup.sh -f path_toserver.xml' hope this helps tien duc
3.2b6 mod_jserv.so mod_jk.so garbled API module structure...
I'm attempting to install a 3.2 version of tomcat in order to achieve virtual hosts in a single JVM. When I try to start apache I get this: "Starting httpd: Syntax error on line 1 of /opt/apache/conf/tomcat-apache.conf: API module structure `jserv_module' in file /opt/apache/libexec/mod_jserv.so is garbled - perhaps this is not an Apache module DSO?" I thought it might be my installation of apache (which was previously working with the old mod_jserv.so with DSO). I downloaded 1.3.14 and built it, just in case. These are were my exact parameters to the apache build process: ./configure --prefix=/opt/apache --enable-rule=SHARED_CORE --enable-module=so make make install The first mod_jserv.so I tried was the one I downloaded from the 3.2b6 bin/linux/i386/ download directory. Since it didn't work, I feared that it might be the netscape save-file problem, so I downloaded the source for 3.2b6 and built it in the src/native/apache/jserv directory with the following command: /opt/apache/bin/apxs -c *.c -o mod_jserv.so That built a mod_jserv.so file that I put into the /opt/apache/libexec/ directory, and tried again, but no luck. I got the same 'garbled' message again. So I diffed the file I had just built and the one I got from jakarta.apache.org, and they were the same. I went to the user mailing list archive hosted on mikal.org and did some looking around. Someone said to use ld to create the mod_jserv.so file manually from the .o files that are created from the apxs compile. I did that too, and got a mod_jserv.so file that did differ from the one on jakarta.apache.org, but it still provided the exact same error message when I try to start apache. I've debugged as far as I know how without reading through the code and attempting to find a bug. Does anyone have any ideas that would save me the time of scrutinizing the source? :) Any and all help is greatly appreciated! Paul Tiemann
Re: Session Close
Pablo Trujillo wrote: I need to execute a procedure when a session closes. Is this possible? How it is made? Make a class that is a HttpSessionBindingListener - attach an object of this class to the session. When the session is destroyed your object will get a call to the valueUnbound method. -- WBB - [EMAIL PROTECTED] Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2
Using special characters in servlet parameters
Hi, how can I use special characters such as '' in servlet parameters? -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017
Context Interceptor gets fired multiple times (3.2b6)
I have a class which implements both ContextInterceptor and RequestInterceptor. The ContextInterceptor.addContext() gets fired twice. ContextInterceptor className="com.peacetech.webtools.tomcat.JndiContextInterceptor"/ RequestInterceptor className="com.peacetech.webtools.tomcat.JndiContextInterceptor" debug="99"/
Re: FW: How to connect JDBC-ODBC in Tomcat
Hi Maurice, In web.xml, I replaced following param names. What do you meant by param-value? init-param param-namesun.jdbc.odbc.JdbcOdbcDriver/paramName //This is the driver class param-valuemy.driver.ClassName/param-value //??? /init-param init-param param-namejdbc:odbc:TrainDatabase/paramName // This is my database name (url) param-valuejdbc:my_url/param-value //?? /init-param In my Java servlet program, I declared my drive and url as followed: private String dbDriver = "sun.jdbc.odbc.JdbcOdbcDriver"; private String dbURL = "jdbc:odbc:TrainDatabase"; Thanks, -Original Message- From: Maurice le Rutte [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, November 07, 2000 3:07 PM To: [EMAIL PROTECTED] Subject:Re: How to connect JDBC-ODBC in Tomcat -Oorspronkelijk bericht- Hi All, I have an Applet-Servlet application that work on Java Web Server engine and can access the Access database through JDBC-ODBC (System DSN). When I placed my application on Tomcat and run it, it does not know where to look for the database. How I do setup this connection so that my application will run as is it run on Java Web Server? Just specify the init params in your web.xml. For example: In web.xml: init-param param-namejdbc.driverclass/paramName param-valuemy.driver.ClassName/param-value /init-param init-param param-namejdbc.url/paramName param-valuejdbc:my_url/param-value /init-param init-param param-namejdbc.username/paramName param-valueme/param-value /init-param init-param param-namejdbc.password/paramName param-valuesecret/param-value /init-param For access you use the sun.jdbc.JdbcOdbcBridge class and the url is jdbc:odbc:DSN. You donut need a user/password. Maurice le Rutte. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
Re: Re: Where is the webdav support ... (PARTIAL puzzling SUCCESS!)
"Craig R. McClanahan" wrote: Ray Allis wrote: (Which BTW is the last real dev snapshot. 1104 on are 1k.) Yah, there's a bug in the build process that will be addressed as soon as we put the 3.2 release issue to bed. Cool. Is webdav in the dev queue? No harassment meant, just curious. :-) It's actually present in the Tomcat 4.0 milestone 4 release. If you start up Tomcat and point your browser at http://localhost:8080, you will see a hyperlink to a webdav enabled context. By default, this is read only but can be adjusted by parameters in the web.xml file to become read-write. O.K., I can see /webdav with a browser, but I can't see it using the cadaver or DAV Explorer. Which obvious thing am I missing? ;) 183 memes /site/ray:gzip -dc jakarta-tomcat-4.0-m4.tar.gz | gtar xvf - jakarta-tomcat-4.0-m4/ [ ... ] jakarta-tomcat-4.0-m4/webapps/webdav/ jakarta-tomcat-4.0-m4/webapps/webdav/tomcat.gif jakarta-tomcat-4.0-m4/webapps/webdav/tomcat-power.gif jakarta-tomcat-4.0-m4/webapps/webdav/index.html jakarta-tomcat-4.0-m4/webapps/webdav/WEB-INF/ jakarta-tomcat-4.0-m4/webapps/webdav/WEB-INF/web.xml [ ... ] 186 memes /site/ray:TOMCAT_HOME=/site/ray/jakarta-tomcat-4.0-m4;export TOMCAT_HOME 187 memes /site/ray:cd $TOMCAT_HOME 188 memes /site/ray/jakarta-tomcat-4.0-m4:bin/startup.sh Using CLASSPATH: /site/ray/jakarta-tomcat-4.0-m4/bin/bootstrap.jar:/site/ray/jakarta-tomcat-4.0-m4/bin/servlet.jar:/usr/java/lib/tools.jar 189 memes /site/ray/jakarta-tomcat-4.0-m4:ps -ef | grep java ray 2863 1 0 12:36:51 pts/50:15 /usr/java/bin/../bin/sparc/native_threads/java -classpath /site/ray/jakarta-tom ray 2883 2813 0 12:40:45 pts/50:00 grep java 190 memes /site/ray/jakarta-tomcat-4.0-m4:cadaver memes.sea.boeing.com:8080 Looking up hostname... Connecting to server... connected. Could not contact server: Could not read response body: connection timed out. dav:! open memes.sea.boeing.com:80 Looking up hostname... Connecting to server... connected. Could not access / (not WebDAV-enabled?): 400 Bad Request Connection to `memes.sea.boeing.com' closed. dav:! open localhost:80 Looking up hostname... Connecting to server... connected. Could not access / (not WebDAV-enabled?): 400 Bad Request Connection to `localhost' closed. dav:! open localhost:8080 Looking up hostname... Connecting to server... connected. Could not contact server: Could not read response body: connection timed out. dav:! open memes.sea.boeing.com:8080/webdav/ Looking up hostname... Connecting to server... connected. Could not contact server: Could not read response body: connection timed out. dav:! ... and so on. Oh, shoot! I just tried IE5 from an NT box and it worked! I opened a web folder at http://memes.sea.boeing.com:8080/webdav/. Even dragged some html files to it. (On my tomcat 'readonly' is commented out.) A nearby (supposedly) identical NT box says "Could not open ... as a web folder. ... default?" IE5 on one Win '98 works, another seemingly identical does not. cadaver on memes fails consistently. What the heck? ;) I'm trying to isolate the differences in the Wintel boxes. Ray Allis
RE: Using special characters in servlet parameters
Title: RE: Using special characters in servlet parameters Correct me if I'm wrong, but don't you mean URLEncoder.encode()? encodeURL(), which is a method of the response (not the request), is for session handling via URL-rewriting. Jay -Original Message- From: Phillip C Rhodes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 08, 2000 2:33 PM To: Zsolt Koppany Cc: [EMAIL PROTECTED] Subject: Re: Using special characters in servlet parameters You need to encode your parameters. request.encodeURL(String url) On Wed, 8 Nov 2000, Zsolt Koppany wrote: Hi, how can I use special characters such as '' in servlet parameters? -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Strasse 16 D-70565 Stuttgart Tel: +49-711-7871080 Fax: +49-711-7871017
RE: Session Close
I assume by "close" you mean - session times out - session gets explicitly invalidated by calling .invalidate() This can be trapped by attaching an object which is a javax.servlet.http.HttpSessionBindingListener to the session. This object gets call backs when it is bound and unbound from a session. When a session "closes" all associated objects get unbound. R. -Original Message- From: Pablo Trujillo [mailto:[EMAIL PROTECTED]] Sent: Thursday, 9 November 2000 3:53 To: Java-Linux; Polinux; Tomcat-Linux Subject: Session Close I need to execute a procedure when a session closes. Is this possible? How it is made? - Click here for Free Video!! http://www.gohip.com/free_video/
3.2 Release ?
What is the '3.2 release issue'? Can we expect to see a final version of Tomcat 3.2 any time soon? We're testing with Tomcat 3.2 beta 6, but don't want to ship with it until it's final. Many thanks, Barbara Nelson. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 08, 2000 9:59 AM To: [EMAIL PROTECTED] Subject: Re: Where is the webdav support for jakarta-tomcat-4.0-20001103.tar.gz Ray Allis wrote: (Which BTW is the last real dev snapshot. 1104 on are 1k.) Yah, there's a bug in the build process that will be addressed as soon as we put the 3.2 release issue to bed. webdav/index.html says: "Tomcat 4.0 includes built-in support for WebDAV level 2, which enables remote authoring of the website. You can test these capabilities using a WebDAV client like MS WebFolders (included with IE 4.0 and up), MS Office 2000, DAV Explorer (others are listed on the webpages linked below), and point to the /webdav path of the server. This test context is DAV enabled, but has been set up in read-only mode for safety reasons. It can be put in read-write mode by editing the web application descriptor file (WEB-INF/web.xml)." Is webdav in the dev queue? No harassment meant, just curious. :-) It's actually present in the Tomcat 4.0 milestone 4 release. If you start up Tomcat and point your browser at http://localhost:8080, you will see a hyperlink to a webdav enabled context. By default, this is read only but can be adjusted by parameters in the web.xml file to become read-write. Ray Allis Craig McClanahan
Re: Session Close
On Wed, 8 Nov 2000, William Brogden wrote: Pablo Trujillo wrote: I need to execute a procedure when a session closes. Is this possible? How it is made? Make a class that is a HttpSessionBindingListener - attach an object of this class to the session. When the session is destroyed your object will get a call to the valueUnbound method. this is the clean way of doing it. you could also add some object to the session, and do whatever you want in the finalizer. Dirty, but works. Sloot.
Re: 3.2 Release ?
Barbara Nelson wrote: What is the '3.2 release issue'? Can we expect to see a final version of Tomcat 3.2 any time soon? We're testing with Tomcat 3.2 beta 6, but don't want to ship with it until it's final. The current plan is to create a "3.2 beta 7" release tomorrow, which reflects a large number of bug fixes committed over the last several days. We'll give that a few days for people to try it out, and if no critical bugs are found, it'll be released as "3.2 final". If there are any critical bugs found and fixed, we might need to repeat the cycle one more time. To avoid possibly destabilizing things, non-critical 3.2 bug fixes (and feature enhancements) will be deferred to some possible future maintenance release. Many thanks, Barbara Nelson. Craig McClanahan -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 08, 2000 9:59 AM To: [EMAIL PROTECTED] Subject: Re: Where is the webdav support for jakarta-tomcat-4.0-20001103.tar.gz Ray Allis wrote: (Which BTW is the last real dev snapshot. 1104 on are 1k.) Yah, there's a bug in the build process that will be addressed as soon as we put the 3.2 release issue to bed. webdav/index.html says: "Tomcat 4.0 includes built-in support for WebDAV level 2, which enables remote authoring of the website. You can test these capabilities using a WebDAV client like MS WebFolders (included with IE 4.0 and up), MS Office 2000, DAV Explorer (others are listed on the webpages linked below), and point to the /webdav path of the server. This test context is DAV enabled, but has been set up in read-only mode for safety reasons. It can be put in read-write mode by editing the web application descriptor file (WEB-INF/web.xml)." Is webdav in the dev queue? No harassment meant, just curious. :-) It's actually present in the Tomcat 4.0 milestone 4 release. If you start up Tomcat and point your browser at http://localhost:8080, you will see a hyperlink to a webdav enabled context. By default, this is read only but can be adjusted by parameters in the web.xml file to become read-write. Ray Allis Craig McClanahan
Re: question about RequestDispatcher.forward() in tomcat
What I do in the Struts framework http://jakarta.apache.org/struts, which implements the MVC pattern you are talking about, is map a different extension for the logical actions (normally, these will be the values you use for hyperlinks and form submits). I like to use "*.do" because it implies "go do something". That way, I leave the mappings for the JSP pages set to the JSP servlet, as it normally is. Craig McClanahan "Chen, Kevin" wrote: I am trying to implement a MVC system. the controller will intercept all request for .jsp page, then forward it to the jsp page after some checking. I am using TOMCAT to run the servlet. and using extension rul mapping, i.e.:(in web.xml) servlet-mapping servlet-name controller /servlet-name url-pattern *.jsp /url-pattern /servlet-mapping My test controller just forward the page to another jsp page, the code looks like: RequestDispatcher dis; dis=getServletContext().getRequestDispatcher("/index.jsp"); dis.forward (req, res); //dis.include (req, res); the problem with above approach is that, my controller will intercept the index.jsp too. which will cause the page cannot be displayed. looks like the servlet container resend the index.jsp page to me again and again. Is there anyway around it? Appreciate any help. kevin
ContextInterceptor.removeContext() does not get fired for all contexts (3.2b6) BUG?
Hello, I was struggling with my interceptors trying to figure out why all resources do not get freed up and then I realized that ContextInterceptor.removeContext() does not get consistently fired for every registered context. When I print list of all contexts from ContextManager in engineShutdown() it shows all contexts for which removeContext() was not fired. I suspect they do not get removed somehow. I also noticed that when tomcat shutdowns it prints "Removing context Ctx( /irg )" but not for ALL registered contexts (even without my interceptor) I also attaching my previous message about multiple invocation of a interceptor when the same class implements both RequestInterceptor and ContextInterceptor The ContextInterceptor.addContext() gets fired twice. ContextInterceptor className="com.peacetech.webtools.tomcat.JndiContextInterceptor"/ RequestInterceptor className="com.peacetech.webtools.tomcat.JndiContextInterceptor" debug="99"/
One servlet or multiple servlets?
Hi! I have some functions than can be implemented by one single servlet or multiple servlets. I wonder which method to choose because servlet is like a service on the server side. How will the number of deployed servlets affects the performance of Tomcat? Thanks in advance. Regards, Z Simon Lam Z z z ||| m(_ _)m Simon Lam(Lin Yang) ICQ:33310990 Email: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] ___ _ _ / __(_)_ __ ___ _ _ | | __ _ _ __ \__ \ | ' \/ _ \ ' \ | |__/ _` | ' \ |___/_|_|_|_\___/_||_| |\__,_|_|_|_|
don't know how to compile the servlet program
Hi I can run jsp file in Tomcat server 3.1 but not servlet. Could you tell me how to compile a servlet file to get its class file? My autoexec.bat is like this: {..} SET TOMCAT_HOME=D:\JSPTOOL\TOMCATSET JAVA_HOME=D:\JAVATOOL\JDK1.3SET PATH=D:\JAVATOOL\JDK1.3\BIN;D:\JAVATOOL\JDK1.3\LIB\CLASSES.ZIP; SET CLASSPATH=D:\XML4J-3_1_0\XML4J.JAR;D:\LOTUSXSL_1_0_1\LOTUSXSL.JAR;D:\LOTUSXSL_1_0_1\XALAN.JAR;D:\LOTUSXSL_1_0_1\XERCES.JAR Thanks in advance Simon
RE: don't know how to compile the servlet program
Seems you have missed the servlet.jar Kenneth Kwan -Original Message- From: simon [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 09, 2000 10:50 AM To: [EMAIL PROTECTED] Subject: don't know how to compile the servlet program Hi I can run jsp file in Tomcat server 3.1 but not servlet. Could you tell me how to compile a servlet file to get its class file? My autoexec.bat is like this: {..} SET TOMCAT_HOME=D:\JSPTOOL\TOMCAT SET JAVA_HOME=D:\JAVATOOL\JDK1.3 SET PATH=D:\JAVATOOL\JDK1.3\BIN;D:\JAVATOOL\JDK1.3\LIB\CLASSES.ZIP; SET CLASSPATH=D:\XML4J-3_1_0\XML4J.JAR;D:\LOTUSXSL_1_0_1\LOTUSXSL.JAR;D:\LOTUSXS L_1_0_1\XALAN.JAR;D:\LOTUSXSL_1_0_1\XERCES.JAR Thanks in advance Simon
Re: Session Close
[EMAIL PROTECTED] wrote: On Wed, 8 Nov 2000, William Brogden wrote: Pablo Trujillo wrote: I need to execute a procedure when a session closes. Is this possible? How it is made? Make a class that is a HttpSessionBindingListener - attach an object of this class to the session. When the session is destroyed your object will get a call to the valueUnbound method. this is the clean way of doing it. you could also add some object to the session, and do whatever you want in the finalizer. Dirty, but works. Sloot. The problems there are that 1) you don't have any guarantee as to when the finalizer will run. 2) if there is another reference to that object hanging around, it will never run. -- WBB - [EMAIL PROTECTED] Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2
jdbc driver loading
hi, there, in tomcat 3, I just copy jdbc driver to lib, after I start tomcat , it will load jdbc driver automatically, but in tomcat 4, how to load jdbc driver? thanks. rgds sun
servlets and the refer link
Hi all -- which call do I make to obtain the "refer link" when my servlet is accessed via a doGet()? I want to obtain the last URL that user visited before getting to my servlet. Is that possible? Thanks Betty
make tomcat use apache docroot for jsps?
How can I get tomcat to look in the webserver document root for a JSP? I call a jsp in my apache document root and I get the following error: JSP file "/usr/local/jakarta-tomcat/webapps/ROOT/hello.jsp (No such file or directory)" not found I am running apache 1.3.9, latest tomcat. FreeBSD 3.4 stable, JDK1.2.2 native. Thanks! AddType test/jsp .jspAddHandler jserv-servlet .jsp LoadModule jserv_module libexec/apache/mod_jserv.soIfModule mod_jserv.cApJServManual onApJServDefaultProtocol ajpv12ApJServSecretKey DISABLEDApJServMountCopy onApJServLogLevel noticeApJServLogFile /usr/local/etc/apache/mod_jserv.log ApJServDefaultHost localhostApJServDefaultPort 8007 # 1 Creating an Apache virtual host configurationNameVirtualHost 216.55.177.74 VirtualHost 216.55.177.74DocumentRoot /usr/local/www/rhoderunnerServerName www.rhoderunner.comApJServMount /examples ajpv12://localhost:8007/examples/VirtualHost/IfModule
RE: Tomcat using Apache gives ajpv12 Internal Server Error
Hi, I had met such error before, and Ilater found the reason is that I forgot to startup Tomcat. :) When apache tries connecting to Tomcat through mod_jserv and failes, it will give out that msg. Itmight be the same reason. Liming Xie [EMAIL PROTECTED] -Original Message-From: Hussam Alsawadi [mailto:[EMAIL PROTECTED]]Sent: Wednesday, November 08, 2000 3:08 AMTo: [EMAIL PROTECTED]Subject: Tomcat using Apache gives "ajpv12" Internal Server Error Hi, I'm trying to run Tomcat using Apache but it's not successful. If anyone has suggestion/input about what I did for setup, I'll appreciate it. Browsing http://localhost/test/servlet produce the following error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.12 Server at abc.myserver.com Port 80 The file mod_jserv.log contains the following: [07/11/2000 18:53:56:810] (EMERGENCY) ajp12: can not connect to host 127.0.0.1:8007 [07/11/2000 18:53:56:810] (EMERGENCY) ajp12: connection fail [07/11/2000 18:53:56:810] (ERROR) an error returned handling request via protocol "ajpv12" Any input will be greatly appreciated. hussam Do You Yahoo!?Yahoo! Shopping - Thousands of Stores. Millions of Products. All with one Wallet.
Re: Tomcat using Apache gives ajpv12 Internal Server Error
This happened to me, too. I think the main reason people do not start Tomcat is that the Apache, when it runs, gives a message that it Tomcat 1.0 running (actually this should be mod_jserv, I think). Is this true? If so, then this is really a misleading message! Hany - Original Message - From: Liming Xie To: [EMAIL PROTECTED] Sent: Thursday, November 09, 2000 1:48 AM Subject: RE: Tomcat using Apache gives "ajpv12" Internal Server Error Hi, I had met such error before, and Ilater found the reason is that I forgot to startup Tomcat. :) When apache tries connecting to Tomcat through mod_jserv and failes, it will give out that msg. Itmight be the same reason. Liming Xie [EMAIL PROTECTED] -Original Message-From: Hussam Alsawadi [mailto:[EMAIL PROTECTED]]Sent: Wednesday, November 08, 2000 3:08 AMTo: [EMAIL PROTECTED]Subject: Tomcat using Apache gives "ajpv12" Internal Server Error Hi, I'm trying to run Tomcat using Apache but it's not successful. If anyone has suggestion/input about what I did for setup, I'll appreciate it. Browsing http://localhost/test/servlet produce the following error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.12 Server at abc.myserver.com Port 80 The file mod_jserv.log contains the following: [07/11/2000 18:53:56:810] (EMERGENCY) ajp12: can not connect to host 127.0.0.1:8007 [07/11/2000 18:53:56:810] (EMERGENCY) ajp12: connection fail [07/11/2000 18:53:56:810] (ERROR) an error returned handling request via protocol "ajpv12" Any input will be greatly appreciated. hussam Do You Yahoo!?Yahoo! Shopping - Thousands of Stores. Millions of Products. All with one Wallet.
How many sessions are open?
Hi List, we're heavily using Tomcat for our new service (check out http://www.cardxchange.net for a nice webapp). As we went live monday morning (at 1:30 am - uff), we still have some bugs. We analyzed them fixed them in the code. Now we'd like to "roll them out" in our live system. Unfortunately we don't know wether we can shut it down for this one minute task of copying the fixes JSPs and classes and restarting the tomcat engine. Is there a way to find out how many sessions are open? Thanx for the help, -- Till.
RE: Session Close
Take a look at the javax.servlet.http.HttpSessionBindingListener interface and see if that does what your looking for. -Original Message- From: Pablo Trujillo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 08, 2000 10:53 AM To: Java-Linux; Polinux; Tomcat-Linux Subject: Session Close I need to execute a procedure when a session closes. Is this possible? How it is made? - Click here for Free Video!! http://www.gohip.com/free_video/