RE: Directory Checksum Error?
thanks for the help..that worked! -Original Message- From: sharath [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 10:51 PM To: Tomcat Users List Subject: Re: Directory Checksum Error? The Solaris tar has problems when extracting long filenames...moreover the tomcat.tar would be created from GNU tar...so use that... - Original Message - From: Joel Hainley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 3:23 AM Subject: Directory Checksum Error? I keep getting checksum errors when i try to extract the jakarta-tomcat-4.0.4.tar.gz package in solaris. I am running an ultra 10 with solaris 8. I tried opening the same archive on my windows workstation and I don't get this error. Anyone else have this problem? HOw did you get around it? Thanks. Joel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
unable start tomcat3.2.3 with jsdk1.4.1b
Hello all, I've been using tomcat3.2.3, jdk1.2.22,Apache1.3.22, ApacheSoap2.2 and IBM wstk-2.4 for the web service. Now I changed JDK to jsdk1.2.1b. But I couldn't start tomcat server. Why? Can't start tomcat 3.2.3 with Jdk1.4.1b? Is anyone knows about this? Please advice me. The error message is as follows: case 1:( I've been using this command. It was no problem) F:\Tomcat\jakarta-tomcat-3.2.3\bintomcat run Including all jars in F:\Tomcat\jakarta-tomcat-3.2.3\lib in your CLASSPATH. Using CLASSPATH: wstk-2.4;.;F:\Teikade1.9R1.3\teikade\classes.zip;F:\HarcV2. 0\ha rc;F:\wstk-2.4\soap\lib\activation.jar;F:\wstk-2.4\soap\lib\mail.jar;F:\wstk -2.4 \lib\xerces.jar;F:\wstk-2.4\uddi4j\lib\uddi4j.jar;F:\apacheSoap\soap-2_2\lib \soa p.jar;F:\wstk-2.4\lib\ibmjsse.jar;F:\wstk-2.4\lib\wstk.jar;F:\Tomcat\jakarta -tom cat-3.2.3\classes;F:\Tomcat\jakarta-tomcat-3.2.3\lib\ant.jar;F:\Tomcat\jakar ta-t omcat-3.2.3\lib\jasper.jar;F:\Tomcat\jakarta-tomcat-3.2.3\lib\jaxp.jar;F:\To mcat \jakarta-tomcat-3.2.3\lib\parser.jar;F:\Tomcat\jakarta-tomcat-3.2.3\lib\serv let. jar;F:\Tomcat\jakarta-tomcat-3.2.3\lib\webserver.jar can't find the specified path case2: F:\Tomcat\jakarta-tomcat-3.2.3\binstartup.bat Including all jars in F:\Tomcat\jakarta-tomcat-3.2.3\lib in your CLASSPATH. Using CLASSPATH: wstk-2.4;.;F:\Teikade1.9R1.3\teikade\classes.zip;F:\HarcV2. 0\ha rc;F:\wstk-2.4\soap\lib\activation.jar;F:\wstk-2.4\soap\lib\mail.jar;F:\wstk -2.4 \lib\xerces.jar;F:\wstk-2.4\uddi4j\lib\uddi4j.jar;F:\apacheSoap\soap-2_2\lib \soa p.jar;F:\wstk-2.4\lib\ibmjsse.jar;F:\wstk-2.4\lib\wstk.jar;F:\Tomcat\jakarta -tom cat-3.2.3\classes;F:\Tomcat\jakarta-tomcat-3.2.3\lib\ant.jar;F:\Tomcat\jakar ta-t omcat-3.2.3\lib\jasper.jar;F:\Tomcat\jakarta-tomcat-3.2.3\lib\jaxp.jar;F:\To mcat \jakarta-tomcat-3.2.3\lib\parser.jar;F:\Tomcat\jakarta-tomcat-3.2.3\lib\serv let. jar;F:\Tomcat\jakarta-tomcat-3.2.3\lib\webserver.jar File j2sdk1.4.1\bin\java is not found [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Directory Checksum Error?
Oh really!!! This is the first time I can give someone help!!! Thanks to give me chance to help u! - Original Message - From: Joel Hainley [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED]; 'sharath' [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 7:28 AM Subject: RE: Directory Checksum Error? thanks for the help..that worked! -Original Message- From: sharath [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 10:51 PM To: Tomcat Users List Subject: Re: Directory Checksum Error? The Solaris tar has problems when extracting long filenames...moreover the tomcat.tar would be created from GNU tar...so use that... - Original Message - From: Joel Hainley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 3:23 AM Subject: Directory Checksum Error? I keep getting checksum errors when i try to extract the jakarta-tomcat-4.0.4.tar.gz package in solaris. I am running an ultra 10 with solaris 8. I tried opening the same archive on my windows workstation and I don't get this error. Anyone else have this problem? HOw did you get around it? Thanks. Joel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Realm reuse howto!
Thank you very much! It worked, so now can make any queries! Wohoo, Java Rules! ÷ ÐÉÓØÍÅ ÏÔ 31 éÀÌØ 2002 22:27 Craig R. McClanahan ÎÁÐÉÓÁÌ(Á): On Wed, 31 Jul 2002, Meder Bakirov wrote: Date: Wed, 31 Jul 2002 16:25:57 +0600 From: Meder Bakirov [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Realm reuse howto! Hello mighty all! I just wanted to ask: is it possible to reuse realms in my own jsps or servlets? I have configured form-based authentication, using JDBCRealm. I have a login.jsp with necessary fields. After an authorization, can I reuse (e.g. call them using getParameter() or by another way) j_username and j_password fields in my own index.jsp (or other jsp files)? Here is, what I want to do: I have a SQL table users with columns (username, password, id). JDBCRealm checks user in this table. So, when authorization is succesfull, I want to get these values(username, password) and use them in my query (SELECT id FROM users WHERE username='j_username_value' AND password='j_password') and show some statistics info for that user, without reasking him to identify himself again. Thank you very much! Once a user has been authenticated (by requesting a protected URL), you can call request.getRemoteUser() to get the username. The password isn't visible, however -- but you really shouldn't be building queries based on it anyway. Rgrds. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Apache + mod_jk + Tomcat + Internet
You can setup a SSL Tunnel between the machines. (Keywords for further search: ssh, tunnel, ssl, port forwarding) E.G.: http://www.oreillynet.com/pub/a/wireless/2001/02/23/wep.html -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 00:23 An: [EMAIL PROTECTED] Betreff: Apache + mod_jk + Tomcat + Internet I have a Apache (1.3.26) web server on Linux and a tomcat (4.04) on Windows XP which communicates via the mod_jk module. At present they are on the LAN but due to exceptional reasons I need to separate them and the only way I will be able to connect them is over the internet. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Denying GET request for a JSP page howto!
Hi all! I want to deny any GET requests to my JSP pages, only POST, where can I strict this? Thanks... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problems using multiple Sendmail daemons on same machine
Hi, I have a machine that is running 2 instances of Sendmail, one on the normal SMTP port 25, and another on port 2121. Now most of the JSP pages that send off email use the normal Sendmail on port 25, but some use the other on port 2121 (don't ask me why, long story). In the pages that use port 2121, I set the property mail.smtp.port to 2121 (ie. props.put(mail.smtp.port, 2121); ) and in the others, I leave them to default to port 25. The strange thing is, if I first visit a page that sends off an email on the normal port 25, it works fine (I know so because I turn off the Sendmail instance that is running on port 2121) and the email is delivered. Then when I start up the Sendmail that listens on 2121 and visit a page that sends an email throught this 2121 port, it too works fine and the email is delivered. But, when I kill the Sendmail process that's listening on port 2121 and revisit the same page that should send email on the normal SMTP port 25, it throws an exception saying it can't connect to port 2121. I thought it might be because when I retrieve the default javax.mail.Session object instance using Session.getDefaultInstance() it keeps returning me the same instance of that Session object for the life of the Tomcat container but when I tried using Session.getInstance() instead to get a new Session object, it still does the same thing. What's going on? Did anybody understand what I just said :) I'm completely puzzled and out of ideas. HELP!! Oh yeah, Tomcat v3.2.24, JavaMail 1.2, JDK1.3.1. Thanks, Nathan. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection between TOMCAT and DB2 ???
On Wed, Jul 31, 2002 at 03:11:03PM -0400, [EMAIL PROTECTED] wrote: Thanks Richard for your help, Yes, just now I managed to connect DB2 to Tomcat and using simple java file able to retrieve the values from sample database. But I have a question for you. while defining my Connection URL I never specified a port number. String url = jdbc:db2://100.3.13.34/sample; If you see above I just gave IP address of my machine and not port number. In past cases I have used port number given to me by the DBA. I would like to know what is the importance of port number and which service is running on this port. DB2 usually listens on 5 port (the server). You use it in 'catalog tcpip node' command on client, then you execute 'catalog database...as...at node ...' on the client machine and then use the new database name and ip of the client machine. You don't need the port number, DB2 client knows it. Richard. -- First they ignore you. Then they laugh at you. Then they fight you. Then you win. - Mohandas Gandhi. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat4 on Debian Woody : /etc/init.d/tomcat4 stop won't unload apps properly
Hello, I use tomcat + apache on a debian box (woody): apache 1.3.26 j2sdk1.31.3.1 tomcat4 4.0.4 I have noticed the following problem in /etc/init.d/tomcat4: when called with the stop argument, it will kill the JVM before the shutdown of tomcat is correctly ended. This means that tomcat applications will not be ended correctly: for instance servlets destroy() methods are not called. stop) echo -n Stopping $DESC: if start-stop-daemon --test --start --pidfile $PIDFILE \ --user $TOMCAT4_USER --startas $JAVA_HOME/bin/java \ /dev/null; then echo (not running). else su -p $TOMCAT4_USER -c \$DAEMON\ stop \ /dev/null 21 || true # Fallback to kill the JVM process in case stopping didn't work sleep 2 HERE # DOD 31.07.2002 : JVM must not be killed before the tomcat apps are unloaded properly HERE #start-stop-daemon --stop --oknodo --quiet \ HERE # --pidfile $PIDFILE --user $TOMCAT4_USER rm -f $PIDFILE echo $NAME. fi ;; Is there a way to keep the fallback to kill JVM in case of problem, but allowing tomcat to stop correctly. I also could modify the sleep instruction to wait 30s, but... Should I report a bug to the package maintainer? Thanks for any help. Cheers, -- Dominique Deleris http://potatoworld.tuxfamily.org -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Denying GET request for a JSP page howto!
Depends a bit on which action you want to execute if that happens. This might be a start: (Havn't tried it) web.xml: security-constraint web-resource-collection web-resource-nameEntire Application/web-resource-name url-pattern/*/url-pattern http-methodGET/http-method /web-resource-collection auth-contraint role-namerole-name /auth-contraint /security-constraint Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: Meder Bakirov [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 10:12 An: Tomcat Users List Betreff: Denying GET request for a JSP page howto! Hi all! I want to deny any GET requests to my JSP pages, only POST, where can I strict this? Thanks... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Fw: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux?
- Original Message - From: Prudence Leung [EMAIL PROTECTED] To: Charles Trader [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 5:11 PM Subject: Re: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? Thx Thx Thx charles... I've changed the mistake... but the other problem again See below -- [root@localhost /]# tomcat4 run Using CATALINA_BASE: /var/tomcat4 Using CATALINA_HOME: /var/tomcat4 Using CATALINA_TMPDIR: /var/tomcat4/temp Using JAVA_HOME: /usr/java/jdk1.3.1_04 /usr/java/jdk1.3.1_04/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory [root@localhost /]# --- 10 thanks PRudence - Original Message - From: Charles Trader [EMAIL PROTECTED] To: 'Prudence Leung' [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 5:13 PM Subject: RE: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? have you installed jdk? in what folder? is it in /usr/java/jdk1.3_04? Thx charles. and the output is like --- [root@localhost tomcat4]# tomcat4 run Using CATALINA_BASE: /var/tomcat4 Using CATALINA_HOME: /var/tomcat4 Using CATALINA_TMPDIR: /var/tomcat4/temp Using JAVA_HOME: /usr/java/jdk1.3_04 /usr/bin/dtomcat4: /usr/java/jdk1.3_04/bin/java: No such file or directory /usr/bin/dtomcat4: exec: /usr/java/jdk1.3_04/bin/java: cannot execute: No such file or directory [root@localhost tomcat4]# --- - Original Message - From: Charles Trader [EMAIL PROTECTED] To: 'Prudence Leung' [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 5:08 PM Subject: RE: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? try 'tomcat4 run', is there any error? -Original Message- From: Prudence Leung [mailto:[EMAIL PROTECTED]] Sent: Thursday, 1 August 2002 16:54 To: Charles Trader Subject: Re: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? I've changed it and tomcat4 start but still not ok. =( - Original Message - From: Charles Trader [EMAIL PROTECTED] To: 'Prudence Leung' [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 4:53 PM Subject: RE: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? have you tried 8180? I can't tell you anything before I see the server.xml file (not that I guarantee I will know what the problem is) Charles -Original Message- From: Prudence Leung [mailto:[EMAIL PROTECTED]] Sent: Thursday, 1 August 2002 16:38 To: Charles Trader Subject: Re: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? hi Charles, See here - Output Message - [root@localhost home]# netstat -an | grep 80 tcp0 0 0.0.0.0:80 0.0.0.0:* LISTEN [root@localhost home]# netstat -an | grep 8080 [root@localhost home]# tomcat4 start Using CATALINA_BASE: /var/tomcat4 Using CATALINA_HOME: /var/tomcat4 Using CATALINA_TMPDIR: /var/tomcat4/temp Using JAVA_HOME: /usr/java/jdk1.3_04 [root@localhost home]# netstat -an | grep 8080 [root@localhost home]# - 8080 port is still not opened??? so what's the problem?? Thanks for youhelp Prudence - Original Message - From: Charles Trader [EMAIL PROTECTED] To: 'Prudence Leung' [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 12:07 PM Subject: RE: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? Can you send me the server.xml in the conf directory? I believe I also met the problem you have here. Try port 8180 or something like that. I'm not suggesting you not to use rpm, it's just I found that the zip file is more 'compliant' to the 'general' tomcat, that is, it has the startup.sh :) That's why I switch to the zip file. I guess it's the same, you can still use your rpm one. About the zip or targz installer, it's also easy to install. Just extract it, configure the JAVA_HOME environment variable, and it should be running after you run startup.sh. Charles
AW: Tomcat4 on Debian Woody : /etc/init.d/tomcat4 stop won't unload apps properly
If you don't like the 'sleep 30' because most time it's wasted time, you can loop with a sleep 2 around the result of a netstat on one of the tomcat ports or a kill 0 to the vm pid. Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: Dominique Deleris [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 11:16 An: tomcat-user-list Betreff: Tomcat4 on Debian Woody : /etc/init.d/tomcat4 stop won't unload apps properly I have noticed the following problem in /etc/init.d/tomcat4: when called with the stop argument, it will kill the JVM before the shutdown of tomcat is correctly ended. snip/ Is there a way to keep the fallback to kill JVM in case of problem, but allowing tomcat to stop correctly. I also could modify the sleep instruction to wait 30s, but... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
error while loading when tomcat4 start
Thx Thx Thx charles... I've changed the mistake... but the other problem again See below -- [root@localhost /]# tomcat4 run Using CATALINA_BASE: /var/tomcat4 Using CATALINA_HOME: /var/tomcat4 Using CATALINA_TMPDIR: /var/tomcat4/temp Using JAVA_HOME: /usr/java/jdk1.3.1_04 /usr/java/jdk1.3.1_04/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory [root@localhost /]# --- 10 thanks PRudence - Original Message - From: Charles Trader [EMAIL PROTECTED] To: 'Prudence Leung' [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 5:13 PM Subject: RE: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? have you installed jdk? in what folder? is it in /usr/java/jdk1.3_04? Thx charles. and the output is like --- [root@localhost tomcat4]# tomcat4 run Using CATALINA_BASE: /var/tomcat4 Using CATALINA_HOME: /var/tomcat4 Using CATALINA_TMPDIR: /var/tomcat4/temp Using JAVA_HOME: /usr/java/jdk1.3_04 /usr/bin/dtomcat4: /usr/java/jdk1.3_04/bin/java: No such file or directory /usr/bin/dtomcat4: exec: /usr/java/jdk1.3_04/bin/java: cannot execute: No such file or directory [root@localhost tomcat4]# --- - Original Message - From: Charles Trader [EMAIL PROTECTED] To: 'Prudence Leung' [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 5:08 PM Subject: RE: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? try 'tomcat4 run', is there any error? -Original Message- From: Prudence Leung [mailto:[EMAIL PROTECTED]] Sent: Thursday, 1 August 2002 16:54 To: Charles Trader Subject: Re: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? I've changed it and tomcat4 start but still not ok. =( - Original Message - From: Charles Trader [EMAIL PROTECTED] To: 'Prudence Leung' [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 4:53 PM Subject: RE: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? have you tried 8180? I can't tell you anything before I see the server.xml file (not that I guarantee I will know what the problem is) Charles -Original Message- From: Prudence Leung [mailto:[EMAIL PROTECTED]] Sent: Thursday, 1 August 2002 16:38 To: Charles Trader Subject: Re: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? hi Charles, See here - Output Message - [root@localhost home]# netstat -an | grep 80 tcp0 0 0.0.0.0:80 0.0.0.0:* LISTEN [root@localhost home]# netstat -an | grep 8080 [root@localhost home]# tomcat4 start Using CATALINA_BASE: /var/tomcat4 Using CATALINA_HOME: /var/tomcat4 Using CATALINA_TMPDIR: /var/tomcat4/temp Using JAVA_HOME: /usr/java/jdk1.3_04 [root@localhost home]# netstat -an | grep 8080 [root@localhost home]# - 8080 port is still not opened??? so what's the problem?? Thanks for youhelp Prudence - Original Message - From: Charles Trader [EMAIL PROTECTED] To: 'Prudence Leung' [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 12:07 PM Subject: RE: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? Can you send me the server.xml in the conf directory? I believe I also met the problem you have here. Try port 8180 or something like that. I'm not suggesting you not to use rpm, it's just I found that the zip file is more 'compliant' to the 'general' tomcat, that is, it has the startup.sh :) That's why I switch to the zip file. I guess it's the same, you can still use your rpm one. About the zip or targz installer, it's also easy to install. Just extract it, configure the JAVA_HOME environment variable, and it should be running after you run startup.sh. Charles -Original Message- From: Prudence Leung [mailto:[EMAIL PROTECTED]] Sent: Thursday, 1
RE: Solaris and Tomcat 4.0.4
Have you checked to see that Tomcat is listening on the appropriate ports? i.e. ours is configured to interface with apache on port 8007, doing a netstat command should show you this listening at least: $ netstat -a | grep 8007 tcp0 0 *.8007 *.*LISTEN Obviously though if you have configured a different port or have it listed in /etc/services then grep for the appropriate port or description. Would be interested to know how you get on though as I'm considering moving over to Solaris 8. Regards John B -Original Message- From: Joel Hainley [mailto:[EMAIL PROTECTED]] Sent: 31 July 2002 17:00 To: [EMAIL PROTECTED] Subject: Solaris and Tomcat 4.0.4 I've been battling with this for a few days..and I keep finding people asking this question on deja ( now known as google groups ), but I haven't found an answer. I'm using solaris 8 on an ultra 10 the 1.4.0_01 jdk tomcat 4.0.4 i've set the environment variables CATALINA_HOME JAVA_HOME I run tomcat with startup.sh..and I get Using CATALINA_BASE: /usr/jakarta-tomcat-4.0.4 Using CATALINA_HOME: /usr/jakarta-tomcat-4.0.4 Using CATALINA_TMPDIR: /usr/jakarta-tomcat-4.0.4/temp Using JAVA_HOME : /usr/j2se then i get my command prompt again..no other windows pop up or anything. The server does not appear to be running because if i browse to local host I get a connection has been refuse thing. So i'm pretty sure it's not running. So I looked in CATALINA_HOME/logs and withing the catalina.out file there was the following information... Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap So i'm guessing that i'm doing something horribly wrong...but I'm not sure what it is... help? thanks Joel -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com _ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre. For further information visit http://www.star.net.uk/stats.asp This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache-tomcat integration
Sorry for the delay, I have been busy. Ok, I have a mandrake system with Apache 1.3 and tomcat 4.01. I have a copy of mod_jk from tomcat 3.x and was thinking that I could reuse the same lib. I started configuring apache and tomcat but it does not seem to work so I am including the content of my config files in this letter. If someone could look at these settings and tell me what I did wrong, that would be great. Thanks. Last line in httpd.conf: Include /etc/tomcat4/conf/mod_jk.conf contents of /etc/tomcat4/conf/mod_jk.conf: LoadModule jk_module libexec/mod_jk.so JkWorkersFile /etc/tomcat4/conf/jk/workers.properties JkLogFile /var/tomcat4/logs/mod_jk.log JkLogLevel info AddModule mod_env.c JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /admin ajp13 JkMount /admin/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /examples/servlet/* ajp13 JkMount /examples/jsp/* ajp13 #IfModule !mod_jk.c #/IfModule contents of /etc/tomcat4/conf/jk/workers.properties: workers.tomcat_home=/etc/tomcat4 workers.java_home=/usr/java/current ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 contents of /etc/tomcat4/conf/tomcat4.conf: JAVA_HOME=/usr/java/current CATALINA_HOME=/var/tomcat4 JASPER_HOME=/var/tomcat4 TOMCAT_USER=tomcat On Friday, July 26, 2002, at 09:39 PM, tomcat-user-digest- [EMAIL PROTECTED] wrote: From: Turner, John [EMAIL PROTECTED] Date: Fri Jul 26, 2002 04:24:52 PM US/Eastern To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Apache-tomcat integration It would help if you could give us more information, such as target operating system, etc. In general, there are all sorts of resources available, such as this one from the tomcat site: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html and this one, also from the tomcat site: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html Some people have found the resources here to be helpful: http://www.galatea.com/flashguides/index John Turner [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Apache-tomcat integration
Yes it's possible to use mod_jk from 3.3. Zhis informatin is better than your previous post, but I'm missing an description of the error(s). - Is apache running at all. (ps aux | grep bin/apache) - Is tomcat running at all. (ps aux | grep tomcat) - Is apache listening on the ports you expect (netstat -a) - Is tomcat listening on the ports you expect (netstat -a) - can you get static resources - can you get dynamic resources through port 8080 (Use the port from the settings for the HttpConnector in server.xml) -Ursprüngliche Nachricht- Von: Thomas Cherry [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 12:05 An: [EMAIL PROTECTED] Betreff: RE: Apache-tomcat integration Ok, I have a mandrake system with Apache 1.3 and tomcat 4.01. I have a copy of mod_jk from tomcat 3.x and was thinking that I could reuse the same lib. I started configuring apache and tomcat but it does not seem to work so I am including the content of my config files in this letter. contents of /etc/tomcat4/conf/tomcat4.conf: JAVA_HOME=/usr/java/current CATALINA_HOME=/var/tomcat4 JASPER_HOME=/var/tomcat4 TOMCAT_USER=tomcat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
About mod_jk.
Hi ya, I am working on mod_jk. After I set the setting, the jsp page take no effect (The bowser just shows all jsp codes). The setting is as follows, In server.xml, Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig / Host name=localhost debug=0 appbase=webapps Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / In httpd.conf, LoadModulejk_module modules/mod_jk.so . . . IfDefine HAVE_SSL AddModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLeveldebug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Environment Redhat 7.3, Apache 1.3.23-9(bundle with RH), Tomcat4.0.3(RPM) Tony -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
dynamic urls
Hi I want my URLs as http://localhost:8080/webapp/MyServlet/2345 http://localhost:8080/webapp/MyServlet/23349 http://localhost:8080/webapp/MyServlet/345 all mapped to the same servlet, none are static. Note that I do not want: http://localhost:8080/webapp/MyServlet?23349 which is straightforward, but http://localhost:8080/webapp/MyServlet/23349 How can I do it? thanks --st -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: About mod_jk.
Are you shure that IfDefine HAVE_SSL is true ? -Ursprungliche Nachricht- Von: Tony Mak [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 12:24 An: [EMAIL PROTECTED] Betreff: About mod_jk. LoadModulejk_module modules/mod_jk.so IfDefine HAVE_SSL AddModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLeveldebug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
failed to enable SSL on Tomcat 4.04
Subject: failed to enable SSL on Tomcat 4.04 From: tom [EMAIL PROTECTED] === I tried to enable SSL for 2 days but did not ever success. Environment: Windows 2000 Server JDK1.4.0.01 Tomcat 4.04 1 signed digital certificate Steps 1. run keytool -import -alias wisdom -file wisdom.crt -keystore c:\mydoc\.keystore to generate the .keystore file 2. modify server.xml as below 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 keystoreFile=c:\mydoc\.keystore keystorePass=changeit/ /Connector 3. run startup 4. load http://localhost:8443 The browser displays 4 strange squares, and no error message ever appears in the console Alternatively, I tried to following the doc http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html exactly. but still failed to enable SSL. 1. run keytool -genkey -alias tomcat -keyalg RSA -keystore c:\mydoc2\.keystore 2. modify the server.xml as below 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 keystoreFile=c:\mydoc2\.keystore keystorePass=changeit/ /Connector 3. run startup 4. load http://localhost:8443 The browser displays 3 strange symbols, and no error message ever appears in the console Help please. Tom mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Webapp - WebappServer interaction
Just curious, Can a webapp know what appserver it is running on? The very purpose of an appserver is to keep the webapp free from the mundane housekeeping stuff like session management and secure access. The webapp is completely unaware of these issues. Instead, is it possible for a webapp to provide its own or possibly override appserver's session management - or say inherit these from the app server thus extending it? --st -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: no-cache where to set?
In your jsp page, add the following code at the top. % response.setHeader(Cache-Control,no-cache); response.setHeader(Pragma,no-cache); response.setDateHeader (Expires, 0); % for more info on no-cache, jguru has some useful stuff http://www.jguru.com/faq/view.jsp?EID=377 peter slickdev wrote: pardon my naivete', but where do i set pages for 'no-cache'? i hope it's not just a browser setting... unknown number of browsers to set. - Original Message - From: peter lin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, July 26, 2002 1:31 PM Subject: Re: Can Tomcat 4.03 expire web pages set your pages to no-cache, which forces the browser to always get it from the server. Is that what you're looking for? peter Steve Russell wrote: Hi; My boss wants to expire our jsp pages. In other words, if a user hits backspace, instead of getting the jsp page s/he just left s/he would see a notice that the page expired. I've seen snippets of code to do this on google, but I haven't been able to get them to work. Can Tomcat 4.03 expire web pages or do I need a webserver with Tomcat to do this? Also if someone could show me an example of how do this, with the example of being a whole html/jsp page I would appreciate it. Thanks in advance Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: failed to enable SSL on Tomcat 4.04
Tom, I think you make one mistake you have to load https://localhost:8443, with https as your conection protocol not http. That will do I think, I had the same problem.If you load the url over http you only see 4 squares. Jurjan Subject: failed to enable SSL on Tomcat 4.04 From: tom [EMAIL PROTECTED] === I tried to enable SSL for 2 days but did not ever success. Environment: Windows 2000 Server JDK1.4.0.01 Tomcat 4.04 1 signed digital certificate Steps 1. run keytool -import -alias wisdom -file wisdom.crt -keystore c:\mydoc\.keystore to generate the .keystore file 2. modify server.xml as below 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 keystoreFile=c:\mydoc\.keystore keystorePass=changeit/ /Connector 3. run startup 4. load http://localhost:8443 The browser displays 4 strange squares, and no error message ever appears in the console Alternatively, I tried to following the doc http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html exactly. but still failed to enable SSL. 1. run keytool -genkey -alias tomcat -keyalg RSA -keystore c:\mydoc2\.keystore 2. modify the server.xml as below 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 keystoreFile=c:\mydoc2\.keystore keystorePass=changeit/ /Connector 3. run startup 4. load http://localhost:8443 The browser displays 3 strange symbols, and no error message ever appears in the console Help please. Tom mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux?
You can try the HOWTO that I posted yesterday. You can find it here: http://www.johnturner.com/howto/apache-tomcat-howto.html Note that it deals with using apache with tomcat, but there is a section that is devoted to only installing and configuring tomcat. If you don't have startup.sh, you got an incomplete package somehow. Did you install from RPM or something? I only use the binary installs of tomcat, and I can guarantee that the binary install of tomcat (full version, not the one that has LE in the name) has a startup.sh and shutdown.sh. You can get the binary here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/bin/ You want the file named: jakarta-tomcat-4.0.4.tar.gz John Turner [EMAIL PROTECTED] -Original Message- From: Prudence Leung [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 11:33 PM To: Tomcat Users List Subject: Re: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? Thx John, I've followed the instruction, but to the tomcat starting, I haven't found the startup.sh there, once again, I am now using redhat linux. in the tomcat4/bin , I can only find bootstrap.jar there. So what can I do now? Many thanks Prudence - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, July 31, 2002 7:51 PM Subject: RE: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? The Tomcat website is usually a good place to check: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html John Turner [EMAIL PROTECTED] -Original Message- From: Prudence Leung [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 3:48 AM To: Tomcat Users List Subject: Urgent: Where can I get a full document on install, config and set Tomcat on redhat Linux? Hi, all, Can anyone tell me Where can I get a full docuement on install,config and set Tomcat4.0.4 on redhat linux 7.2!! Many Thanks!!! Prudence -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: About mod_jk.
Well, as Ralph already said, if HAVE_SSL is false, your JkMount directives will not be included and apache will just spit out a JSP page as text/html. If you have the two Listener directives in server.xml as you posted, you don't need to put any mod_jk statements whatsoever in httpd.conf. With those two Listener directives, all you have to put in httpd.conf is a line that says: Include /some/path/to/tomcat/conf/auto/mod_jk.conf Obviously, you will have to make sure your Context elements in server.xml make sense, and match what apache is expecting. Things I would check are whether ServerName in httpd.conf matches Host name= in server.xml, and whether you have a workers.properties file with the same hostname as ServerName and the Host name= parameter. The apache logs should tell you exactly (or nearly so) what's happening...if you are getting a 200 in the logs for the URL in question, that means that apache isn't even trying to send things to tomcat. John Turner [EMAIL PROTECTED] -Original Message- From: Tony Mak [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 6:24 AM To: [EMAIL PROTECTED] Subject: About mod_jk. Hi ya, I am working on mod_jk. After I set the setting, the jsp page take no effect (The bowser just shows all jsp codes). The setting is as follows, In server.xml, Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig / Host name=localhost debug=0 appbase=webapps Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / In httpd.conf, LoadModulejk_module modules/mod_jk.so . . . IfDefine HAVE_SSL AddModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLeveldebug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Environment Redhat 7.3, Apache 1.3.23-9(bundle with RH), Tomcat4.0.3(RPM) Tony -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache-tomcat integration
Sorry, there isn't enough info here to really tell. 1) does apache work on it's own? 2) do the tomcat examples work on port 8080: http://your.host.com:8080/examples ? If both one and two are true, I would make sure things like apache ServerName in httpd.conf match the Host name in server.xml. Also, I notice that your workers.properties file looks incomplete...there should be a host name there as well. I posted a HOWTO for a RH Linux system, it may help even though you are running on Mandrake. Nothing in my HOWTO is OS-specific, as far as I know: http://www.johnturner.com/howto/apache-tomcat-howto.html John Turner [EMAIL PROTECTED] -Original Message- From: Thomas Cherry [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 6:05 AM To: [EMAIL PROTECTED] Subject: RE: Apache-tomcat integration Sorry for the delay, I have been busy. Ok, I have a mandrake system with Apache 1.3 and tomcat 4.01. I have a copy of mod_jk from tomcat 3.x and was thinking that I could reuse the same lib. I started configuring apache and tomcat but it does not seem to work so I am including the content of my config files in this letter. If someone could look at these settings and tell me what I did wrong, that would be great. Thanks. Last line in httpd.conf: Include /etc/tomcat4/conf/mod_jk.conf contents of /etc/tomcat4/conf/mod_jk.conf: LoadModule jk_module libexec/mod_jk.so JkWorkersFile /etc/tomcat4/conf/jk/workers.properties JkLogFile /var/tomcat4/logs/mod_jk.log JkLogLevel info AddModule mod_env.c JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /admin ajp13 JkMount /admin/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /examples/servlet/* ajp13 JkMount /examples/jsp/* ajp13 #IfModule !mod_jk.c #/IfModule contents of /etc/tomcat4/conf/jk/workers.properties: workers.tomcat_home=/etc/tomcat4 workers.java_home=/usr/java/current ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 contents of /etc/tomcat4/conf/tomcat4.conf: JAVA_HOME=/usr/java/current CATALINA_HOME=/var/tomcat4 JASPER_HOME=/var/tomcat4 TOMCAT_USER=tomcat On Friday, July 26, 2002, at 09:39 PM, tomcat-user-digest- [EMAIL PROTECTED] wrote: From: Turner, John [EMAIL PROTECTED] Date: Fri Jul 26, 2002 04:24:52 PM US/Eastern To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Apache-tomcat integration It would help if you could give us more information, such as target operating system, etc. In general, there are all sorts of resources available, such as this one from the tomcat site: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html and this one, also from the tomcat site: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html Some people have found the resources here to be helpful: http://www.galatea.com/flashguides/index John Turner [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Coyote Instructions
Title: Coyote Instructions All We've got Tomcat 4.1.7 Beta and Apache 2.1.39 on separate Solaris servers. Does anyone have a simple step by step guide to connect these together using Coyote JK2 Thanks Damian O'Gara -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: dynamic urls
On Thu, 1 Aug 2002, SB wrote: Hi I want my URLs as http://localhost:8080/webapp/MyServlet/2345 http://localhost:8080/webapp/MyServlet/23349 http://localhost:8080/webapp/MyServlet/345 all mapped to the same servlet, none are static. Note that I do not want: http://localhost:8080/webapp/MyServlet?23349 which is straightforward, but http://localhost:8080/webapp/MyServlet/23349 How can I do it? You want path mapping. Something like: servlet-mapping servlet-namemyservlet/servlet-name url-pattern/MyServlet/*/url-pattern /servlet-mapping This will forward all requests matching /webapps/MyServlet/* to myservlet. The Request object will break this URL down like this: requestURI = contextPath + servletPath + pathInfo http://localhost:8080/webapp/MyServlet/23349 = /webapp + /MyServlet + /23349 later. Bill -- William G. Thompson, Jr. Chief Japple Evangelist | www.japple.org Saucon Technologies [EMAIL PROTECTED] | +1 908 947 7145 | www.saucontech.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JINtegra-tomcat-servlets
hi, i am using JIntegra to communicate between Vb and java. when i request for data from a perticular method in vb,the vb server method calls a java class, which in turn calls a servlet running on tomcat4.1, this servlet will call another servlet running on a similar setup in another machine. using url connection. Now my problem is , instead of the data i am getting an exception on tomcat console telling HTTP 500 error. what might be the reason./. any help in this regard will be appreciated thanks Sudhir -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat and jspsmartupload -- getparameter doesn't work
Has anyone used Tomcat with jspsmartupload? I have a question about using jspsmartupload with Tomcat 4.0.4 in development and having the jspsmartupload getparameter work. I have created a jar file with all the jspsmartupload components and put it into the Tomcat lib directory. I then created two small JSP pages. Now the upload works perfectly, but the text fields returns a null on trying to parse it. Please look at the simple code below if you have used both products, and tell me what I am doing wrong. --- test1.html - I enter the following 1. Word test in first text box 2. Browse to file d:/zipped/answer.txt -- I go to test1.jsp and get the following results jspSmartUpload : Sample 1 File 1 is: null 1 file(s) uploaded. ...OLE_Obj... Bottom of Form 1 -- test1.html HTML script LANGUAGE=JavaScript // Begin function file1Value(thisvalue) { thisvalue.form.file1name.value = thisvalue.form.FILE1.value.toString(); return true; } // End -- /script BODY BGCOLOR=white H1jspSmartUpload : Sample 1/H1 HR FORM METHOD=POST ACTION=/jspsmartupload/jsp/test1.jsp ENCTYPE=multipart/form-data INPUT type=text name=filenameBR INPUT TYPE=FILE NAME=FILE1 SIZE=50BR INPUT TYPE=FILE NAME=FILE2 SIZE=50BR INPUT TYPE=FILE NAME=FILE3 SIZE=50BR INPUT TYPE=FILE NAME=FILE4 SIZE=50BR INPUT TYPE=SUBMIT VALUE=UploadBR /FORM /BODY /HTML test1.jsp %@ page language=java import=com.jspsmart.upload.*, java.util.*, com.oreilly.servlet.multipart.* % jsp:useBean id=mySmartUpload scope=page class=com.jspsmart.upload.SmartUpload / HTML BODY BGCOLOR=white H1jspSmartUpload : Sample 1/H1 HR % // Variables int count=0; // Initialization mySmartUpload.initialize(pageContext); mySmartUpload.setTotalMaxFileSize(100); // Upload mySmartUpload.upload(); out.println(File 1 is: + mySmartUpload.getRequest().getParameter(filename) + br); try { // Save the files with their original names in the virtual path /upload // if it doesn't exist try to save in the physical path /upload count = mySmartUpload.save(D:/zipped/upfilessmart); // Save the files with their original names in the virtual path /upload // count = mySmartUpload.save(/upload, mySmartUpload.SAVE_VIRTUAL); // Display the number of files uploaded out.println(count + file(s) uploaded.); } catch (Exception e) { out.println(e.toString()); } % /BODY /HTML -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Context.getResource( ) problem
Hi Faisal, It may have been just me, but I got four copies of your message. Please post only once. As to your question: the technical cause for the exception is obvious ;) You can't form a URL to a java.io.ByteArrayInputStream. My guess is something (the TemplateServlet? Is that your servlet or a JBoss one? If it's yours, you'll need to post its code so we can help more) is trying to de-serialize your xml file, while something else is trying to read that same XML file through a URL. I've never seen a URLMappingsXmlDAO error in tomcat before ;) Is it a JBoss internal thing? If so, the JBoss forums might be a better place to post this question. It may also help if you could change the layout pattern for the log file so that you see the class and method where the exceptions occur. Add %m %n to your layout pattern if using log4j... Yoav Shapira Millennium ChemInformatics -Original Message- From: faisal [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 7:39 AM To: [EMAIL PROTECTED] Subject: Context.getResource( ) problem Hi all Recently I run into a problem reguarding Tomcat4.04 and the Context.getResource( ) .I have two XML files in WEB-INF screendefinition_en_US.xml screendefinition_ja_JA.xml .When I try to deploy my application on JbossTomcat the TemplateServlet which is supposed to init and load the screens can't find the XML files and this exactly what I get in Jboss console: 04:26:01,241 INFO [Engine] invoker: init 04:26:01,271 ERROR [STDERR] 4 URLMappingsXmlDAO error: java.net.MalformedURLException: no protocol: java.io.ByteArrayInputStream@4a0ac5 04:26:01,271 ERROR [STDERR] java.net.MalformedURLException: no protocol: java.io.ByteArr Any clue or suggestion please thank u Faisal -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Ttomcat 4.0.4 Configuration
Hi, A couple of comments, hopefully helpful ;) - You should package your classes. If you don't, it'll look for them in the default package of org.apache.jsp, where they aren't, hence they error ;) - It would be insecure, and bad style, to not import all and only the classes you need in a given java program (servlet, jsp, whatever). I've seen so many problems arise from setups where people try to make classes in some directory automatically imported. It's really not worth your time and effort to have something (a custom ClassLoader? a watchdog thread?) automatically load any class in WEB-INF/classes into memory. Instead, make it a strict policy that all the files must import precisely what they need. A tool like import scrubber (on sourceforge) can help with this in an automated fashion as well. - What you call JRun does not have that problem, I call (and have seen exploited!) a serious security risk in JRun. I believe it's fixed now, by the way, and you have to declare classes in precisely in JRun as well. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mushtaq, Hassan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 6:53 PM To: 'Tomcat Users List' Subject: RE: Ttomcat 4.0.4 Configuration Thanks for your reply. But in question one, I meant what to do with user defined classes? The tomcat does not pick user defined classes from classes folder, I get an error if i dont import even a class written by me, like for example I have a class MyClass, I put it under classes folder, then still I have to write %@ page import=MyClass% to make it work, otherwise it says that org.apache.jsp.MyClass cannot be found. While I have used JRun server before, it does not have that problem, it picks from lib folder or classes folder as well. Thanks. Hassan Mushtaq UHCL -Original Message- From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 5:34 PM To: 'Tomcat Users List' Subject: RE: Ttomcat 4.0.4 Configuration -Original Message- From: Mushtaq, Hassan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 5:34 PM To: '[EMAIL PROTECTED]' Subject: Ttomcat 4.0.4 Configuration Hi, I have two questions: 1. Can I configure tomcat somehow that if we put some class file in WEB-INF/classes folder we do not have to write page import staement? whatever in the classes should be visible to jsp page directly. the page import statements can be thought of as declaring a namespace. For example, instead of using %@ page import = java.util.ArrayList % % ArrayList al = new ArrayList(); % You could not use the page import and just do % java.util.ArrayList al = new java.util.ArrayList(); % Tomcat really has nothing to do with this, it's just how java works. 2. How can I configure tomcat in such a was that WEB-INF/classes folder should be for servlets only and user classes and beans should go to WEB-INF/lib folder? When someone puts a class in classes folder that is not servlet and tries to run it, the tomcat should give 404 (page not found) error. tomcat will throw an internal error (maybe a 404) if someone trys to do this, unless the class extends HttpServlet ( hence making it a servlet), because tomcat is looking for that interface on the class. That will keep non-servlets out of the classes directory. As far as keeping servlets out of the lib directory, i don't think there is any way to do that. If you do not let them change the web.xml file for the webapp, they will not be able to get at their servlet anyways. This is probably the only way to restrict something like that. Thanks. Hassan Mushtaq Research Assisstant at University of Houston Clearlake -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection between TOMCAT and DB2 ???
Richard Correct me if I am undertanding it correctly. If the DB2 server is running on (default port 5) cline tmachine then in my client application, I need not specify the port number. But I may or maynot use the port number (5) in my Connection URL string. Now When I use String url = jdbc:db2://100.3.13.34:5/sample; /** with port number , it doesnot work ***/ String url = jdbc:db2://100.3.13.34/sample; /** without it works ***/ There are two things that are bugging me: 1. Why specifying portnumber doesnot work (though I understand it is not necessary) 2. In my earlier experience, I need to specify the port number that is not 5 but some other number...Is it because it is not the default port number that I need to specify it in my Connection string. Please reply me if you think I have a point... Thanks Nishant Awasthi Corporate Systems Development Progressive Insurance Ryszard Lach [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] 08/01/2002 cc: (bcc: Nishant Awasthi) 04:47 AM Subject: Re: Connection between TOMCAT and Please DB2 ??? respond to Tomcat Users List On Wed, Jul 31, 2002 at 03:11:03PM -0400, [EMAIL PROTECTED] wrote: Thanks Richard for your help, Yes, just now I managed to connect DB2 to Tomcat and using simple java file able to retrieve the values from sample database. But I have a question for you. while defining my Connection URL I never specified a port number. String url = jdbc:db2://100.3.13.34/sample; If you see above I just gave IP address of my machine and not port number. In past cases I have used port number given to me by the DBA. I would like to know what is the importance of port number and which service is running on this port. DB2 usually listens on 5 port (the server). You use it in 'catalog tcpip node' command on client, then you execute 'catalog database...as...at node ...' on the client machine and then use the new database name and ip of the client machine. You don't need the port number, DB2 client knows it. Richard. -- First they ignore you. Then they laugh at you. Then they fight you. Then you win. - Mohandas Gandhi. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache-tomcat integration
I saw at the end of your reply this block: contents of /etc/tomcat4/conf/tomcat4.conf: JAVA_HOME=/usr/java/current CATALINA_HOME=/var/tomcat4 JASPER_HOME=/var/tomcat4 TOMCAT_USER=tomcat Why are you using tomcat4.conf? I mean I have not used a .conf for tomcat and I guess my cluster of 3 tomcats 4.0.4 and apache2.0.39 with mod_jk are working fine. What is the use of using tomcat.conf? Thank you in advance. --- Thomas Cherry [EMAIL PROTECTED] wrote: Sorry for the delay, I have been busy. Ok, I have a mandrake system with Apache 1.3 and tomcat 4.01. I have a copy of mod_jk from tomcat 3.x and was thinking that I could reuse the same lib. I started configuring apache and tomcat but it does not seem to work so I am including the content of my config files in this letter. If someone could look at these settings and tell me what I did wrong, that would be great. Thanks. Last line in httpd.conf: Include /etc/tomcat4/conf/mod_jk.conf contents of /etc/tomcat4/conf/mod_jk.conf: LoadModule jk_module libexec/mod_jk.so JkWorkersFile /etc/tomcat4/conf/jk/workers.properties JkLogFile /var/tomcat4/logs/mod_jk.log JkLogLevel info AddModule mod_env.c JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /admin ajp13 JkMount /admin/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /examples/servlet/* ajp13 JkMount /examples/jsp/* ajp13 #IfModule !mod_jk.c #/IfModule contents of /etc/tomcat4/conf/jk/workers.properties: workers.tomcat_home=/etc/tomcat4 workers.java_home=/usr/java/current ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 contents of /etc/tomcat4/conf/tomcat4.conf: JAVA_HOME=/usr/java/current CATALINA_HOME=/var/tomcat4 JASPER_HOME=/var/tomcat4 TOMCAT_USER=tomcat On Friday, July 26, 2002, at 09:39 PM, tomcat-user-digest- [EMAIL PROTECTED] wrote: From: Turner, John [EMAIL PROTECTED] Date: Fri Jul 26, 2002 04:24:52 PM US/Eastern To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Apache-tomcat integration It would help if you could give us more information, such as target operating system, etc. In general, there are all sorts of resources available, such as this one from the tomcat site: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html and this one, also from the tomcat site: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html Some people have found the resources here to be helpful: http://www.galatea.com/flashguides/index John Turner [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: i can't acces absolute symbolic link created with ln -s command on LINUX
-Message d'origine- De: Irina Lishchenko [SMTP:[EMAIL PROTECTED]] Date: mercredi 31 juillet 2002 09:59 A: Tomcat Users List Objet: Re: i can't acces absolute symbolic link created with ln -s command on LINUX A new Idea for resolving this problem ? Thanks Philippe I have reproduced this situation and have the same problem here I have made a link to Tomcat examples directory. ln -s /path/to/tomcat/webapps/examples example So with FollowSymLinks and Indexes options I see the direcory context, see static files, but as soon as I try to get jsp page I have the same 404 error [GET /examples/jsp/snp/snoop.jsp HTTP/1.1 404 687] And the similar error with servlet examplesThe requested URL /examples/servlet/RequestParamExample was not found on this server. Although I just have noticed that I use TC 4.0.4 where you seem don't have this issue On Wednesday 31 July 2002 08:04, you wrote: -Message d'origine- De: Irina Lishchenko [SMTP:[EMAIL PROTECTED]] Date: mercredi 31 juillet 2002 07:47 A:Tomcat Users List Objet:Re: i can't acces absolute symbolic link created with ln -s command on LINUX I use Tomcat 4.1.7 Standalone my link is ln -s /appli appli and Tomcat is in /usr/bin Directory. I have exactly same problem with AIX I think there is as security parameter somewhere Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Reading properties file from ClassPath (ServletContextListener)
Hi, I currently dont understand the following: I have a registered class as a ServletContextListener. At application start I want to read a Properties file from the classpath, doing the following: myProps = new Properties(); try { URL url = ClassLoader.getSystemResource(com/foo/My.properties); InputStream istream = url.openStream(); myProps.load(istream); } catch (Exception exp) { } _ Mit MSN Fotos können Sie kinderleicht Ihre Fotos ausdrucken und Freunden zur Verfügung stellen: http://photos.msn.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache Authentication for Tomcat
Milt, Let me lay out the setup here: Apache is setup to host multiple Virtual Hosts. Such that... http://intranet1/ Has a docbase of /drives/a/webapps/intranet1 -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 12:01 AM To: Tomcat Users List Subject: Apache Authentication for Tomcat This is an addition to a thread from a day or two ago. I didn't pay much attention to it then, because it wasn't something I needed to worry about -- but things change quickly, and now I do need to worry about it :-). Anyway, it was a thread started by Josh Landin, with contributions from Jacob Kjome and John Turner (and others). Josh was having some trouble trying to get Apache to handle authentication on some resources that were to be handled by Tomcat. Here is one of the later messages in the thread from Jacob Kjome: http://marc.theaimsgroup.com/?l=tomcat-userm=102805925323917w=2 I'm not sure Josh fully appreciated what Jacob was getting at in it. Basically, Directory and Location directives can be used similarly, but Directory is used for actual directories in the filesystem, while Location is used for URLs (URL prefixes, i.e. virtual directories, I guess). I had to do something similar, and I got it working, but it took playing around with the URL specified in the Location directive to do so. So anyone, my main reason for posting this is to suggest to Josh that he try using a Location directive, but play around with the URL in it to get the behavior he desires. It'd be helpful to consider what URLs he wants to have the Location directive applied to. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Reading properties file from ClassPath (ServletContextListener)
Sorry for the uncomplete first email...my mailer was just to fast for me... :-) Again... Hi, I currently dont understand the following: I have a registered class as a ServletContextListener. At application start I want to read a Properties file from the classpath, doing the following: myProps = new Properties(); try { URL url = ClassLoader.getSystemResource(com/foo/My.properties); InputStream istream = url.openStream(); myProps.load(istream); } catch (Exception exp) { // do something } Unfortunately, the routine never finds the Properties file and give back url==null... If I create a main class in the same package, doing exactly the same, it works. It seems to have to do with the ServletContextListener... Is this a ClassLoader effect or am I doing something wrong? Can someone explain me what is going on? Thanks a lot! _ Mit MSN Fotos können Sie kinderleicht Ihre Fotos ausdrucken und Freunden zur Verfügung stellen: http://photos.msn.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache Authentication for Tomcat
Milt, Let me lay out the setup here -- Apache is setup to host multiple Virtual Hosts. Such that... http://intranet1/ Has a docbase of /drives/a/webapps/intranet1 http://intranet2/ Has a docbase of /drives/a/webapps/intranet2 etc... So how could I use the Location tag and not affect the other Virtual hosts. I simply want to force authentication for the virtual host intranet1 only. I figured adding a Directory tag for /drives/a/webapps/intranet1 would do it, but it doesn't. Suggestions? -- Josh -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 12:01 AM To: Tomcat Users List Subject: Apache Authentication for Tomcat This is an addition to a thread from a day or two ago. I didn't pay much attention to it then, because it wasn't something I needed to worry about -- but things change quickly, and now I do need to worry about it :-). Anyway, it was a thread started by Josh Landin, with contributions from Jacob Kjome and John Turner (and others). Josh was having some trouble trying to get Apache to handle authentication on some resources that were to be handled by Tomcat. Here is one of the later messages in the thread from Jacob Kjome: http://marc.theaimsgroup.com/?l=tomcat-userm=102805925323917w=2 I'm not sure Josh fully appreciated what Jacob was getting at in it. Basically, Directory and Location directives can be used similarly, but Directory is used for actual directories in the filesystem, while Location is used for URLs (URL prefixes, i.e. virtual directories, I guess). I had to do something similar, and I got it working, but it took playing around with the URL specified in the Location directive to do so. So anyone, my main reason for posting this is to suggest to Josh that he try using a Location directive, but play around with the URL in it to get the behavior he desires. It'd be helpful to consider what URLs he wants to have the Location directive applied to. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Reading properties file from ClassPath (ServletContextListener)
What do you mean with 'classpath'? Tomcat ignores the classpath environment variable. So your property file has to reside in a directory that is known to tomcat. Even using the SystemClassLoader (which is done when you use getSystemResource()) won't help because the classpath is cleared in the startsrcipt of tomcat. So the file has to one of these: * webapps/{Context}/WEB-INF/classes/com/foo/My.properties * $CATALINA_BASE/common/classes/com/foo/My.properties * $CATALINA_BASE/classes/com/foo/My.properties To read more about this: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html BTW: Is there any reason why you use getSystemResource() instead of getSystemResourceAsStream() ? Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: petra staub [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 16:05 An: [EMAIL PROTECTED] Betreff: Reading properties file from ClassPath (ServletContextListener) I have a registered class as a ServletContextListener. At application start I want to read a Properties file from the classpath, doing the following: myProps = new Properties(); try { URL url = ClassLoader.getSystemResource(com/foo/My.properties); InputStream istream = url.openStream(); myProps.load(istream); } catch (Exception exp) { } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache-tomcat integration
Apache runs just fine and I find it on the port I expect however tomcat does not run as I expect. http://my.host.com:8080/examples dose not respond. I do find a lot of java apps running when I do ps -U tomcat. Here are my error files: Apache_log.date.txt: 2002-07-31 17:21:06 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343) at java.net.ServerSocket.implAccept(ServerSocket.java:438) at java.net.ServerSocket.accept(ServerSocket.java:409) at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java) at java.lang.Thread.run(Thread.java:536) Catalina_log.date.txt: 2002-07-31 17:23:16 HttpConnector Opening server socket on all host IP addresses 2002-07-31 17:23:28 HttpConnector[8180] Starting background thread 2002-07-31 17:23:28 HttpProcessor[8180][0] Starting background thread 2002-07-31 17:23:28 Ajp13Connector[8109] Opening server socket on all host IP addresses 2002-07-31 17:23:28 Ajp13Connector[8109] Starting background thread 2002-07-31 17:23:28 Ajp13Processor[8109][0] Starting background thread Localhost_examples_log.date.txt: 2002-07-31 17:23:22 WebappLoader[/examples]: Deploying class repositories to work directory /var/tomcat4/work/localhost/examples 2002-07-31 17:23:22 WebappLoader[/examples]: Reloading checks are enabled for this Context 2002-07-31 17:23:22 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom 2002-07-31 17:23:22 StandardManager[/examples]: Seeding of random number generator has been completed 2002-07-31 17:23:24 ContextConfig[/examples]: Added certificates - request attribute Valve 2002-07-31 17:23:24 ContextConfig[/examples]: Configured an authenticator for method FORM 2002-07-31 17:23:24 ContextListener: contextInitialized() 2002-07-31 17:23:24 SessionListener: contextInitialized() 2002-07-31 17:23:24 ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@385660') 2002-07-31 17:23:24 StandardWrapper[/examples:default]: Loading container servlet default 2002-07-31 17:23:24 default: init 2002-07-31 17:23:24 StandardWrapper[/examples:invoker]: Loading container servlet invoker 2002-07-31 17:23:24 invoker: init 2002-07-31 17:23:24 jsp: init Localhost_log.date.txt: 2002-07-31 17:23:27 StandardHost[localhost]: Installing web application at context path /webdav from URL file:/var/tomcat4/webapps/webdav 2002-07-31 17:23:27 WebappLoader[/webdav]: Deploying class repositories to work directory /var/tomcat4/work/localhost/webdav 2002-07-31 17:23:27 StandardManager[/webdav]: Seeding random number generator class java.security.SecureRandom 2002-07-31 17:23:27 StandardManager[/webdav]: Seeding of random number generator has been completed 2002-07-31 17:23:27 ContextConfig[/webdav]: Added certificates - request attribute Valve 2002-07-31 17:23:27 StandardWrapper[/webdav:default]: Loading container servlet default 2002-07-31 17:23:27 default: init 2002-07-31 17:23:27 StandardWrapper[/webdav:invoker]: Loading container servlet invoker 2002-07-31 17:23:27 invoker: init 2002-07-31 17:23:27 jsp: init Mod_jk.log: [jk_uri_worker_map.c (430)]: In jk_uri_worker_map_t::map_uri_to_worker, wrong parameters on 08/01/2002 9:31 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: From: Ralph Einfeldt [EMAIL PROTECTED] Date: Thu, 1 Aug 2002 12:17:13 +0200 To: Tomcat Users List [EMAIL PROTECTED] Subject: AW: Apache-tomcat integration Yes it's possible to use mod_jk from 3.3. Zhis informatin is better than your previous post, but I'm missing an description of the error(s). - Is apache running at all. (ps aux | grep bin/apache) - Is tomcat running at all. (ps aux | grep tomcat) - Is apache listening on the ports you expect (netstat -a) - Is tomcat listening on the ports you expect (netstat -a) - can you get static resources - can you get dynamic resources through port 8080 (Use the port from the settings for the HttpConnector in server.xml) From: Turner, John [EMAIL PROTECTED] Date: Thu, 1 Aug 2002 08:13:43 -0400 To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Apache-tomcat integration Sorry, there isn't enough info here to really tell. 1) does apache work on it's own? 2) do the tomcat examples work on port 8080: http://your.host.com:8080/examples ? If both one and two are true, I would make sure things like apache ServerName in httpd.conf match the Host name in server.xml. Also, I notice that your workers.properties file looks incomplete...there should be a host name there as well. I posted a HOWTO for a RH Linux system, it may help even though you are running on Mandrake. Nothing in my HOWTO is OS-specific, as far as I know: http://www.johnturner.com/howto/apache-tomcat-howto.html John Turner [EMAIL PROTECTED] -- To unsubscribe, e-mail:
RE: Apache-tomcat integration
The WARP connector can't bind to its socket. The default WARP connector socket is 8008. Is there something else on that socket? Another connector? Which connector do you want to use? Tomcat binds up both the AJP and WARP socket by default, but which connector have you chosen to use with apache? You might want to post your server.xml, looks like something isn't happy in there. John Turner [EMAIL PROTECTED] -Original Message- From: Thomas Cherry [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 10:28 AM To: [EMAIL PROTECTED] Subject: Re: Apache-tomcat integration Apache runs just fine and I find it on the port I expect however tomcat does not run as I expect. http://my.host.com:8080/examples dose not respond. I do find a lot of java apps running when I do ps -U tomcat. Here are my error files: Apache_log.date.txt: 2002-07-31 17:21:06 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343) at java.net.ServerSocket.implAccept(ServerSocket.java:438) at java.net.ServerSocket.accept(ServerSocket.java:409) at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java) at java.lang.Thread.run(Thread.java:536) Catalina_log.date.txt: 2002-07-31 17:23:16 HttpConnector Opening server socket on all host IP addresses 2002-07-31 17:23:28 HttpConnector[8180] Starting background thread 2002-07-31 17:23:28 HttpProcessor[8180][0] Starting background thread 2002-07-31 17:23:28 Ajp13Connector[8109] Opening server socket on all host IP addresses 2002-07-31 17:23:28 Ajp13Connector[8109] Starting background thread 2002-07-31 17:23:28 Ajp13Processor[8109][0] Starting background thread Localhost_examples_log.date.txt: 2002-07-31 17:23:22 WebappLoader[/examples]: Deploying class repositories to work directory /var/tomcat4/work/localhost/examples 2002-07-31 17:23:22 WebappLoader[/examples]: Reloading checks are enabled for this Context 2002-07-31 17:23:22 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom 2002-07-31 17:23:22 StandardManager[/examples]: Seeding of random number generator has been completed 2002-07-31 17:23:24 ContextConfig[/examples]: Added certificates - request attribute Valve 2002-07-31 17:23:24 ContextConfig[/examples]: Configured an authenticator for method FORM 2002-07-31 17:23:24 ContextListener: contextInitialized() 2002-07-31 17:23:24 SessionListener: contextInitialized() 2002-07-31 17:23:24 ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@385660') 2002-07-31 17:23:24 StandardWrapper[/examples:default]: Loading container servlet default 2002-07-31 17:23:24 default: init 2002-07-31 17:23:24 StandardWrapper[/examples:invoker]: Loading container servlet invoker 2002-07-31 17:23:24 invoker: init 2002-07-31 17:23:24 jsp: init Localhost_log.date.txt: 2002-07-31 17:23:27 StandardHost[localhost]: Installing web application at context path /webdav from URL file:/var/tomcat4/webapps/webdav 2002-07-31 17:23:27 WebappLoader[/webdav]: Deploying class repositories to work directory /var/tomcat4/work/localhost/webdav 2002-07-31 17:23:27 StandardManager[/webdav]: Seeding random number generator class java.security.SecureRandom 2002-07-31 17:23:27 StandardManager[/webdav]: Seeding of random number generator has been completed 2002-07-31 17:23:27 ContextConfig[/webdav]: Added certificates - request attribute Valve 2002-07-31 17:23:27 StandardWrapper[/webdav:default]: Loading container servlet default 2002-07-31 17:23:27 default: init 2002-07-31 17:23:27 StandardWrapper[/webdav:invoker]: Loading container servlet invoker 2002-07-31 17:23:27 invoker: init 2002-07-31 17:23:27 jsp: init Mod_jk.log: [jk_uri_worker_map.c (430)]: In jk_uri_worker_map_t::map_uri_to_worker, wrong parameters on 08/01/2002 9:31 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: From: Ralph Einfeldt [EMAIL PROTECTED] Date: Thu, 1 Aug 2002 12:17:13 +0200 To: Tomcat Users List [EMAIL PROTECTED] Subject: AW: Apache-tomcat integration Yes it's possible to use mod_jk from 3.3. Zhis informatin is better than your previous post, but I'm missing an description of the error(s). - Is apache running at all. (ps aux | grep bin/apache) - Is tomcat running at all. (ps aux | grep tomcat) - Is apache listening on the ports you expect (netstat -a) - Is tomcat listening on the ports you expect (netstat -a) - can you get static resources - can you get dynamic resources through port 8080 (Use the port from the settings for the HttpConnector in server.xml) From: Turner, John [EMAIL PROTECTED] Date: Thu, 1 Aug 2002 08:13:43 -0400 To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Apache-tomcat integration Sorry, there isn't enough info here to really tell. 1) does apache work on it's own? 2) do the
Re: AW: Reading properties file from ClassPath (ServletContextListener)
hi ralph, thanks for your quick reply. with classpath i mean somewhere in the package of my web application (context). this would match the first path you pointed out in your answer (webapps/{Context}/WEB-INF/classes/com/foo/My.properties). actually i have no special reason i choose getSystemResource instead of getSystemResourceAsStream. what whould be the benefit of doing do (maybe buffering related aspects?)? From: Ralph Einfeldt [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: AW: Reading properties file from ClassPath (ServletContextListener) Date: Thu, 1 Aug 2002 16:27:02 +0200 What do you mean with 'classpath'? Tomcat ignores the classpath environment variable. So your property file has to reside in a directory that is known to tomcat. Even using the SystemClassLoader (which is done when you use getSystemResource()) won't help because the classpath is cleared in the startsrcipt of tomcat. So the file has to one of these: * webapps/{Context}/WEB-INF/classes/com/foo/My.properties * $CATALINA_BASE/common/classes/com/foo/My.properties * $CATALINA_BASE/classes/com/foo/My.properties To read more about this: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html BTW: Is there any reason why you use getSystemResource() instead of getSystemResourceAsStream() ? Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: petra staub [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 16:05 An: [EMAIL PROTECTED] Betreff: Reading properties file from ClassPath (ServletContextListener) I have a registered class as a ServletContextListener. At application start I want to read a Properties file from the classpath, doing the following: myProps = new Properties(); try { URL url = ClassLoader.getSystemResource(com/foo/My.properties); InputStream istream = url.openStream(); myProps.load(istream); } catch (Exception exp) { } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Mit MSN Fotos können Sie kinderleicht Ihre Fotos ausdrucken und Freunden zur Verfügung stellen: http://photos.msn.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Apache-tomcat integration
The fir error message comes because you didn't disable the warp connector. If 8080 doesn't responds it because it uses port 8180. (See the log message for the HttpConnector) If all is running you should diable the HttpConnector. Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: Thomas Cherry [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 16:28 An: [EMAIL PROTECTED] Betreff: Re: Apache-tomcat integration Apache runs just fine and I find it on the port I expect however tomcat does not run as I expect. http://my.host.com:8080/examples dose not respond. Apache_log.date.txt: 2002-07-31 17:21:06 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343) at java.net.ServerSocket.implAccept(ServerSocket.java:438) at java.net.ServerSocket.accept(ServerSocket.java:409) at snip/ 2002-07-31 17:23:16 HttpConnector Opening server socket on all host IP addresses 2002-07-31 17:23:28 HttpConnector[8180] Starting background thread 2002-07-31 17:23:28 HttpProcessor[8180][0] Starting background thread snip/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache-tomcat integration
I'm using mod_jk in my setup, and I didn't disable the WARP connector. It's still enabled, and everything seems to be working. Can only one connector be defined at a time in server.xml? John Turner [EMAIL PROTECTED] -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 10:48 AM To: Tomcat Users List Subject: AW: Apache-tomcat integration The fir error message comes because you didn't disable the warp connector. If 8080 doesn't responds it because it uses port 8180. (See the log message for the HttpConnector) If all is running you should diable the HttpConnector. Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: Thomas Cherry [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 16:28 An: [EMAIL PROTECTED] Betreff: Re: Apache-tomcat integration Apache runs just fine and I find it on the port I expect however tomcat does not run as I expect. http://my.host.com:8080/examples dose not respond. Apache_log.date.txt: 2002-07-31 17:21:06 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343) at java.net.ServerSocket.implAccept(ServerSocket.java:438) at java.net.ServerSocket.accept(ServerSocket.java:409) at snip/ 2002-07-31 17:23:16 HttpConnector Opening server socket on all host IP addresses 2002-07-31 17:23:28 HttpConnector[8180] Starting background thread 2002-07-31 17:23:28 HttpProcessor[8180][0] Starting background thread snip/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: AW: Reading properties file from ClassPath (ServletContextListener)
To read a property from /WEB-INF/classes/com/foo/My.properties you shouldn't use getSystemResource*() as it uses the Systemclassloader which doesn't know anything about the tomcat directories. So you have use getResource*() which uses the classloader that loaded you current class. To the use of getResource() against getResourceAsStream(): AFAIK the only benefit is that you save one line of code. Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: petra staub [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 16:45 An: [EMAIL PROTECTED] Betreff: Re: AW: Reading properties file from ClassPath (ServletContextListener) with classpath i mean somewhere in the package of my web application (context). this would match the first path you pointed out in your answer (webapps/{Context}/WEB-INF/classes/com/foo/My.properties). actually i have no special reason i choose getSystemResource instead of getSystemResourceAsStream. what whould be the benefit of doing do (maybe buffering related aspects?)? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache Authentication for Tomcat
On Thu, 1 Aug 2002, Josh Landin wrote: Milt, Let me lay out the setup here -- Apache is setup to host multiple Virtual Hosts. Such that... http://intranet1/ Has a docbase of /drives/a/webapps/intranet1 http://intranet2/ Has a docbase of /drives/a/webapps/intranet2 etc... So how could I use the Location tag and not affect the other Virtual hosts. I simply want to force authentication for the virtual host intranet1 only. I figured adding a Directory tag for /drives/a/webapps/intranet1 would do it, but it doesn't. Suggestions? I'd try something with either Location /intranet1 Directory /drives/a/webapps/intranet1 You might have to play around with a few different similar values and where the lines are placed in your httpd.conf file. Also, is there any kind of rewriting, or aliasing going on? That might change what values you have to use in the above directives. (That was true in my situation, and I had to try a few different things before I found something that worked.) Also, in your Connector tag in tomcat's server.xml, you may need to add the attribute tomcatAuthentication=false, e.g.: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 tomcatAuthentication=false/ I needed to add that in order to have Tomcat use the authenticated user value from Apache (and then it showed up in the logs -- in one of your earlier messages, you showed some lines from the logs where the user showed up on one line but not another). You might try this first, actually, that could be your problem. -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 12:01 AM To: Tomcat Users List Subject: Apache Authentication for Tomcat This is an addition to a thread from a day or two ago. I didn't pay much attention to it then, because it wasn't something I needed to worry about -- but things change quickly, and now I do need to worry about it :-). Anyway, it was a thread started by Josh Landin, with contributions from Jacob Kjome and John Turner (and others). Josh was having some trouble trying to get Apache to handle authentication on some resources that were to be handled by Tomcat. Here is one of the later messages in the thread from Jacob Kjome: http://marc.theaimsgroup.com/?l=tomcat-userm=102805925323917w=2 I'm not sure Josh fully appreciated what Jacob was getting at in it. Basically, Directory and Location directives can be used similarly, but Directory is used for actual directories in the filesystem, while Location is used for URLs (URL prefixes, i.e. virtual directories, I guess). I had to do something similar, and I got it working, but it took playing around with the URL specified in the Location directive to do so. So anyone, my main reason for posting this is to suggest to Josh that he try using a Location directive, but play around with the URL in it to get the behavior he desires. It'd be helpful to consider what URLs he wants to have the Location directive applied to. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Apache-tomcat integration
I think you can define more than one connector in server.xml (but I havn't tried it). But i tend to strip the configuration down to the minimal set, so it's easier to find problems. Especially if you search an error every error message and config entry that doesn't exist is one cause less for confusion. Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: Turner, John [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 17:01 An: 'Tomcat Users List' Betreff: RE: Apache-tomcat integration I'm using mod_jk in my setup, and I didn't disable the WARP connector. It's still enabled, and everything seems to be working. Can only one connector be defined at a time in server.xml? John Turner [EMAIL PROTECTED] -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 10:48 AM To: Tomcat Users List Subject: AW: Apache-tomcat integration The fir error message comes because you didn't disable the warp connector. If 8080 doesn't responds it because it uses port 8180. (See the log message for the HttpConnector) If all is running you should diable the HttpConnector. Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: Thomas Cherry [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 16:28 An: [EMAIL PROTECTED] Betreff: Re: Apache-tomcat integration Apache runs just fine and I find it on the port I expect however tomcat does not run as I expect. http://my.host.com:8080/examples dose not respond. Apache_log.date.txt: 2002-07-31 17:21:06 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343) at java.net.ServerSocket.implAccept(ServerSocket.java:438) at java.net.ServerSocket.accept(ServerSocket.java:409) at snip/ 2002-07-31 17:23:16 HttpConnector Opening server socket on all host IP addresses 2002-07-31 17:23:28 HttpConnector[8180] Starting background thread 2002-07-31 17:23:28 HttpProcessor[8180][0] Starting background thread snip/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: failed to enable SSL on Tomcat 4.04
Subject: Re: failed to enable SSL on Tomcat 4.04 From: tom [EMAIL PROTECTED] === Jurjan, Thanks for your reply, I got it, but it is only validate if using a dummy keystore created by the keytool. My problem is I have a signed certification issued by my univerity's ca, I tried to get the .keystore file but it seems that tomcat does not recognise it. Here is my implementation C:\jakarta-tomcat-4.0.4\binkeytool -import -alias root -keystore wisdom\.keystore -trustcacerts -file caroot.cer C:\jakarta-tomcat-4.0.4\binkeytool -import -alias wisdom -keystore wisdom\.keystore -trustcacerts -file 1061.crt server.xml configuration Connector className=org.apache.catalina.connector.http.HttpConnector port=443 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 keystoreFile=c:\temp\wisdom\.keystore keystorePass=changeit/ /Connector Thank you very much. Tom [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Tom, I think you make one mistake you have to load https://localhost:8443, with https as your conection protocol not http. That will do I think, I had the same problem.If you load the url over http you only see 4 squares. Jurjan Subject: failed to enable SSL on Tomcat 4.04 From: tom [EMAIL PROTECTED] === I tried to enable SSL for 2 days but did not ever success. Environment: Windows 2000 Server JDK1.4.0.01 Tomcat 4.04 1 signed digital certificate Steps 1. run keytool -import -alias wisdom -file wisdom.crt -keystore c:\mydoc\.keystore to generate the .keystore file 2. modify server.xml as below 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 keystoreFile=c:\mydoc\.keystore keystorePass=changeit/ /Connector 3. run startup 4. load http://localhost:8443 The browser displays 4 strange squares, and no error message ever appears in the console Alternatively, I tried to following the doc http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html exactly. but still failed to enable SSL. 1. run keytool -genkey -alias tomcat -keyalg RSA -keystore c:\mydoc2\.keystore 2. modify the server.xml as below 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 keystoreFile=c:\mydoc2\.keystore keystorePass=changeit/ /Connector 3. run startup 4. load http://localhost:8443 The browser displays 3 strange symbols, and no error message ever appears in the console Help please. Tom mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: Apache-tomcat integration
Yes you can define two connectors as long as they are listening on different ports. I have both the AJP as well the the WARP connector enabled. RS Ralph Einfeldt ralph.einfeldt@uptTo: Tomcat Users List ime-isc.de [EMAIL PROTECTED] cc: 08/01/02 10:21 AM Subject: AW: Apache-tomcat integration Please respond to Tomcat Users List I think you can define more than one connector in server.xml (but I havn't tried it). But i tend to strip the configuration down to the minimal set, so it's easier to find problems. Especially if you search an error every error message and config entry that doesn't exist is one cause less for confusion. Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: Turner, John [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 17:01 An: 'Tomcat Users List' Betreff: RE: Apache-tomcat integration I'm using mod_jk in my setup, and I didn't disable the WARP connector. It's still enabled, and everything seems to be working. Can only one connector be defined at a time in server.xml? John Turner [EMAIL PROTECTED] -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 10:48 AM To: Tomcat Users List Subject: AW: Apache-tomcat integration The fir error message comes because you didn't disable the warp connector. If 8080 doesn't responds it because it uses port 8180. (See the log message for the HttpConnector) If all is running you should diable the HttpConnector. Ralph Einfeldt Uptime Internet Solution Center GmbH Hamburg, Germany Hosting, Content Management, Java Consulting http://www.uptime-isc.de -Ursprüngliche Nachricht- Von: Thomas Cherry [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 1. August 2002 16:28 An: [EMAIL PROTECTED] Betreff: Re: Apache-tomcat integration Apache runs just fine and I find it on the port I expect however tomcat does not run as I expect. http://my.host.com:8080/examples dose not respond. Apache_log.date.txt: 2002-07-31 17:21:06 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343) at java.net.ServerSocket.implAccept(ServerSocket.java:438) at java.net.ServerSocket.accept(ServerSocket.java:409) at snip/ 2002-07-31 17:23:16 HttpConnector Opening server socket on all host IP addresses 2002-07-31 17:23:28 HttpConnector[8180] Starting background thread 2002-07-31 17:23:28 HttpProcessor[8180][0] Starting background thread snip/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Webapp - WebappServer interaction
On Thu, 1 Aug 2002, SB wrote: Date: Thu, 1 Aug 2002 07:14:08 -0400 From: SB [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Webapp - WebappServer interaction Just curious, Can a webapp know what appserver it is running on? See ServletContext.getServerInfo(). The very purpose of an appserver is to keep the webapp free from the mundane housekeeping stuff like session management and secure access. The webapp is completely unaware of these issues. Instead, is it possible for a webapp to provide its own or possibly override appserver's session management - or say inherit these from the app server thus extending it? That's totally dependent on the appserver's architecture and organization. Tomcat has mechanisms to plug replacements for things like valves, realms, and so on -- including, as it happens, the session manager. You wwould need to become very familiar with the internal architecture (you can download the sources from the Jakarta web site), and in particular understand how all of the class loaders work, before you'll be very successful. At least for Tomcat, and most likely for any other container, a webapp cannot do this kind of thing at runtime -- it takes modifications to server.xml to pull this off. --st Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem in Confiure Tomcat with SSL
Sir, I downloaded JSSE and i installed as given in the SSL Configuration HOW-TO. I created the Certificate Store by using keytool as givien in that HOW-TO. I uncomment the SSL HTTP/1.1 Connector entry in the Server.xml file. I restarted the Webserver. It is giving the following errors. Please tell me the way to configure it properly. initProxy: java.security.UnrecoverableKeyException: Cannot recover key java.security.UnrecoverableKeyException: Cannot recover key at sun.security.provider.KeyProtector.recover(KeyProtector.java:304) Catalina.start: LifecycleException: null.open: java.io.IOException: java.secur ity.UnrecoverableKeyException: Cannot recover key LifecycleException: null.open: java.io.IOException: java.security.Unrecoverabl eKeyException: Cannot recover key and few more. Please tell me the way to rectify it. Thanking you Sir. - Do You Yahoo!? Yahoo! Health - Feel better, live better
OT: howto avoid overuse of session object?
This is sort of off-topic, but I don't know of a better forum targeting Java web/servlet programming. If anyone does know of one, could you let me know? I'm basically wondering if others have found effective ways to avoid the tempting but bad practice of loading up the session with all sorts of attributes. I often find myself needing some Bean or other object for maybe 2 or 3 requests, and, rack my brains as I may for an elegant way of passing the object along without putting it in the session, I usually end up with nothing more than a headache and 1 more attribute in my session. :( I'm developing with an MVC approach, with Struts for more recently developed apps and a similar custom framework for our older apps, but I just can't seem to see a way to get around this problem. I would love it if there were an object like a thisRequestAndTheNextOne object, where attributes would stick around for the current request and subsequent request, and then the controller could get objects from the previous request and determine if it should put them in the new thisRequestAndTheNextOne object for the current request. I don't know if that makes sense to anyone else, but, nevertheless, does anyone have any ideas to do what I'm trying to do? Does anyone else feel my pain? ;) Thanks, -Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: OT: howto avoid overuse of session object?
what about writing a central controller, which is initiated when tomcat starts up? if you write a class that implements ServletContextListener and add it to your web.xml, it will load your application. You can then set it in the application context. Each request can then get to the application by doing pageContext.findAttribute(string). the ServletContextListener simply listens for contextInitialized(ServletContextEvent). From the event, you get a handle to the serveltcontext. once your controller is created, you simply call servletcontext.setAttribute(). peter lin [EMAIL PROTECTED] wrote: This is sort of off-topic, but I don't know of a better forum targeting Java web/servlet programming. If anyone does know of one, could you let me know? I'm basically wondering if others have found effective ways to avoid the tempting but bad practice of loading up the session with all sorts of attributes. I often find myself needing some Bean or other object for maybe 2 or 3 requests, and, rack my brains as I may for an elegant way of passing the object along without putting it in the session, I usually end up with nothing more than a headache and 1 more attribute in my session. :( I'm developing with an MVC approach, with Struts for more recently developed apps and a similar custom framework for our older apps, but I just can't seem to see a way to get around this problem. I would love it if there were an object like a thisRequestAndTheNextOne object, where attributes would stick around for the current request and subsequent request, and then the controller could get objects from the previous request and determine if it should put them in the new thisRequestAndTheNextOne object for the current request. I don't know if that makes sense to anyone else, but, nevertheless, does anyone have any ideas to do what I'm trying to do? Does anyone else feel my pain? ;) Thanks, -Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: howto avoid overuse of session object?
Hi, FIRST For non-specific Tomcat questions, it exists : [EMAIL PROTECTED] There's also an other one wich is JSP oriented. SECOND All best practice i know says that you must minimize the ammount of data stored in the session. So, the traditional approach of this problem is to only store the user-id (simple type) in the session. All over session informations (a class containing all required informations) are stored in the servlet context. Praticaly, on the request you get the user id from the user session. Next you use this Id to get the user information obect from the servlet context. This is certainly deceiving, but this is the way ... Maybe someone knows better practice ? Regards, Cédric - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 6:13 PM Subject: OT: howto avoid overuse of session object? This is sort of off-topic, but I don't know of a better forum targeting Java web/servlet programming. If anyone does know of one, could you let me know? I'm basically wondering if others have found effective ways to avoid the tempting but bad practice of loading up the session with all sorts of attributes. I often find myself needing some Bean or other object for maybe 2 or 3 requests, and, rack my brains as I may for an elegant way of passing the object along without putting it in the session, I usually end up with nothing more than a headache and 1 more attribute in my session. :( I'm developing with an MVC approach, with Struts for more recently developed apps and a similar custom framework for our older apps, but I just can't seem to see a way to get around this problem. I would love it if there were an object like a thisRequestAndTheNextOne object, where attributes would stick around for the current request and subsequent request, and then the controller could get objects from the previous request and determine if it should put them in the new thisRequestAndTheNextOne object for the current request. I don't know if that makes sense to anyone else, but, nevertheless, does anyone have any ideas to do what I'm trying to do? Does anyone else feel my pain? ;) Thanks, -Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to communicate with Tomcat?
Hi, I hope this is the right place for this question. I need some help with the following situation: I've got two devices (Dev A and Dev B) both running Jakarta Tomcat 4.0.4. Dev A is supposed to be listening for any messages coming in on port 80 every x secs and for each time, it listens for a duration of y secs. Dev B is supposed to send out an XML file to Dev A at any random time. So how do I get my Java application on DevA to monitor what Tomcat's receiving every x secs? And also for the Java application running on client side, Dev B, how do I get the application to send an XML file to the Tomcat server running on Dev B and send it to Dev A? So in other words, how do I get my Java application to communicate with Tomcat? Are there any examples I could look at? Is this the right way to do what I want to do? Or is there a better way of doing this? Thanks! Supriyo __ Do You Yahoo!? Win a DV camera, join our 30 Seconds of Fame contest http://sg.movies.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: howto avoid overuse of session object?
try forums.java.sun.com there's a jsp/servlet forum -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 11:14 AM To: [EMAIL PROTECTED] Subject: OT: howto avoid overuse of session object? This is sort of off-topic, but I don't know of a better forum targeting Java web/servlet programming. If anyone does know of one, could you let me know? I'm basically wondering if others have found effective ways to avoid the tempting but bad practice of loading up the session with all sorts of attributes. I often find myself needing some Bean or other object for maybe 2 or 3 requests, and, rack my brains as I may for an elegant way of passing the object along without putting it in the session, I usually end up with nothing more than a headache and 1 more attribute in my session. :( I'm developing with an MVC approach, with Struts for more recently developed apps and a similar custom framework for our older apps, but I just can't seem to see a way to get around this problem. I would love it if there were an object like a thisRequestAndTheNextOne object, where attributes would stick around for the current request and subsequent request, and then the controller could get objects from the previous request and determine if it should put them in the new thisRequestAndTheNextOne object for the current request. I don't know if that makes sense to anyone else, but, nevertheless, does anyone have any ideas to do what I'm trying to do? Does anyone else feel my pain? ;) Thanks, -Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
problem whit applets
hello! I'm new in tomcat, I want use some applets as front-enf for my servlets but I had some problems: I put the class files into the directory: /usr/local/tomcat/webapps/proyect/applets and in my html file i put this line: applet codebase=./applets code=client.class /applet but it did not work in my browser i had the error client class not found where i must put my class files and how I must do reference to this in the html file? francisco _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: OT: howto avoid overuse of session object?
Hello jeff, The Barracuda project contains classes that allow for exactly this ability: to allow an object to be passed from one request to the next without the use of the session. Check it out at: http://barracuda.enhydra.org/ The classes that you should specifically concern yourself with are ObjectRepository.java and ObjectRepositoryAssembler.java in the org.enhydra.barracuda.core.util.data package. Note that you are not required to use Barracuda in order to use this. the core.util.* package of Barracuda is built into a separate .jar file called plankton.jar which can be used as general utility classes for any project. There are also some other mechanisms that allow you to do stuff like this, but depend on using Barracuda's event model (which can also be used separately from the component and view models). The best documentation for ObjectRepository is in the javadoc and here: http://barracuda.enhydra.org/cvs_source/Barracuda/docs/SimpleLoginApp/simple_login_app.html#Passing_State Also, look at the following messages in the Barracuda list archive: Primary emails to read explaining the ObjectRepository: http://barracuda.enhydra.org/project/mailingLists/barracuda/msg03113.html http://barracuda.enhydra.org/project/mailingLists/barracuda/msg03250.html all emails discussing the ObjectRepository: http://barracuda.enhydra.org/project/mailingLists/barracuda/list.search?q=objectrepositorySearch=+Search%21+t=barracudaul=%2Fproject%2FmailingLists Note that the server hosting barracuda.enhydra.org has been a bit flaky this morning. If you get a Server Error, just try again a bit later. Jake Thursday, August 01, 2002, 11:13:30 AM, you wrote: jgac This is sort of off-topic, but I don't know of a better forum targeting Java jgac web/servlet programming. If anyone does know of one, could you let me know? jgac I'm basically wondering if others have found effective ways to avoid the jgac tempting but bad practice of loading up the session with all sorts of jgac attributes. I often find myself needing some Bean or other object for maybe 2 jgac or 3 requests, and, rack my brains as I may for an elegant way of passing the jgac object along without putting it in the session, I usually end up with nothing jgac more than a headache and 1 more attribute in my session. :( I'm developing jgac with an MVC approach, with Struts for more recently developed apps and a jgac similar custom framework for our older apps, but I just can't seem to see a jgac way to get around this problem. I would love it if there were an object like jgac a thisRequestAndTheNextOne object, where attributes would stick around for the jgac current request and subsequent request, and then the controller could get jgac objects from the previous request and determine if it should put them in the jgac new thisRequestAndTheNextOne object for the current request. I don't know if jgac that makes sense to anyone else, but, nevertheless, does anyone have any ideas jgac to do what I'm trying to do? jgac Does anyone else feel my pain? ;) jgac Thanks, jgac -Jeff jgac -- jgac To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] jgac For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache/Tomcat Connectors List
Where can I find the list and the description of each connector for Apache on the one hand and for Tomcat on the other hand ? Thanks a lot. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4 Suse 8
I gave up on trying to get Tomcat 4 to work with Suse 7.2 Has anyone gotten tomcat 4.* to work on suse 8? Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache/Tomcat Connectors List
They are one and the same...there aren't separate connectors for apache and separate connectors for tomcat. There is an HTTP connector that is tomcat-only, but that just allows tomcat to serve static content. http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html Look on the left-hand side under connectors. John Turner [EMAIL PROTECTED] -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:29 PM To: '[EMAIL PROTECTED]' Subject: Apache/Tomcat Connectors List Where can I find the list and the description of each connector for Apache on the one hand and for Tomcat on the other hand ? Thanks a lot. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: Apache + mod_jk + Tomcat + Internet
Firstly I am aware that their will be a perfomance hit but hopefully it will be a short term thing (approx 6 months. Secondly I have been looking at ssh (openssh) I have set it up on apache but is it available for a windows environment too? or do i need to have a openssh gateway (made from linux) which then tunnels into the windows machine? Regards Amran -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
web.xml tags extensible?
Can the tags in web.xml file be extensible? We want to define some new tags to carry more info about the servlets. Thanks! --Zhenxin Wang DoCoMo Labs USA
RE: DB2 and servlet ??? Help !!!
Is firstnme the name of your column? Or should it be firstname? If that's an error, there should be a SQLException thrown, but I don't know the behavior fo DB2...it may just be that you get null back. In any case, besides printing a stack trace, I would output something to the browser on a SQLException just so you can see what's going on. John Turner [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:47 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: DB2 and servlet ??? Help !!! Hello everyone... I am trying to connect the run a simple servlet to retrieve the query results from DB2 database. 1. Before writing a servlet, I wrote a simple java file and was successful in retrieving the contents from DB2 UDB. 2. Then I just converted the same JAVA file into servlet by adding Servlet API and syntax in it. 3. It compiles fine. 4. Then from a web page I try to pass one parameter to my servlet. 5. The servlet doesnot retrieve any records from the database which initially it was bringing when I wrote simple java file. Code of my servlet is as: -- import java.sql.*; import java.lang.*; import java.io.*; public class Ndb2Tomcat{ public static void main(String args[]) { try{ Class.forName(COM.ibm.db2.jdbc.net.DB2Driver); } catch( ClassNotFoundException e2) { System.out.println(\nJDBC Driver class not found exception); } catch( Exception e) { System.out.println(\nDriver class not found exception); } try{ Connection con = null; String url = jdbc:db2://100.3.13.34/SAMPLE; con = DriverManager.getConnection(url,db2admin, db2pwd); // retrieve data from the database System.out.println(Retrieve some data from the database...); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(SELECT * from db2admin.employee order by firstnme); System.out.println(Received results:); while (rs.next()) { String a = rs.getString(1); String str = rs.getString(2); System.out.print( empno= + a); System.out.print( firstname= + str); System.out.print(\n); } rs.close(); stmt.close(); con.close(); } catch (SQLException e1) { e1.printStackTrace(); } } Nishant Awasthi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DB2 and servlet ??? Help !!!
Hello John firstnme is the correct column name... What bugs me is if you see my servlet code which I am again attaching... I try to put try and ctach every where possible so that I can at least printStackTrace() . But to my surprise...I am not getting any exception...or stack trace... instead I am getting simple HTML output ... I am attaching what 1. I see in browser 2. servlet code BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help --SERVLET CODE- import java.sql.*; import java.lang.*; import java.io.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Ndb2Websphere extends HttpServlet { Statement stmt; ResultSet rs; int count =0; public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/html); ServletOutputStream out = res.getOutputStream(); String emp = req.getParameter(empnumber); out.println(paramater passed is +emp + BR); out.println(BRBRCount is+ count); try{ Class.forName(COM.ibm.db2.jdbc.net.DB2Driver); out.println(BRFound the JDBC driver BR); } catch( Exception e) { //e.printStackTrace(); out.println(\nDriver class not found exception); } finally { out.println(BRDriver is properly loaded and registered ); } try{ Connection con = null; String url; out.println(BRConnection URL is good); try{ con = DriverManager.getConnection (jdbc:db2://10.3.13.34/SAMPLE,db2admin,db2pwd); } catch( Exception e4) { e4.getMessage(); e4.printStackTrace(); } // retrieve data from the database out.println(BRRetrieve some data from the database...); try{ stmt = con.createStatement(); rs = stmt.executeQuery(SELECT empno from db2admin.employee); } catch( Exception e5) { e5.getMessage(); e5.printStackTrace(); } out.println(BRReceived results:); try{ if(!rs.next()) { count = count +1; String a = rs.getString(1); out.println( empno is + a ); out.println(BRBRWhile Count is+ count); } } catch( Exception e6) { e6.printStackTrace(); } out.println(BRBRCount is+ count); rs.close(); stmt.close(); con.close(); } catch (SQLException e1) { e1.getMessage(); e1.printStackTrace(); } catch( Exception e) { e.getMessage(); e.printStackTrace(); } finally { out.println(BRGod Please help); } } public void doPost (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { doGet(req,res); } } Nishant Awasthi Turner, JohnTo: 'Tomcat Users List' JTurner@AAS.[EMAIL PROTECTED] com cc: (bcc: Nishant Awasthi) Subject: RE: DB2 and servlet ??? Help !!! 08/01/2002
encrypt passwords for JNDI Resources (Datasource specifically)
Seems to me someone wrote about this before, but I can't find it. I'm wondering if passwords can be digested in JNDI Resource configuration just like one can in the Realm configurations? I'd rather not store the password for my database in cleartext. The Resource docs don't seem to mention anything about digesting passwords. Is it not possible? If not now, is this feature planned? I'm using Tomcat-4.1.8. Jake -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DB2 and servlet ??? Help !!!
I think you are attempting to output the value if there is nothing in the result set. if(!rs.next()) The .next() method will return true if it was able to fetch a row. You are saying, if there is no row then... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:57 PM To: Tomcat Users List Subject: RE: DB2 and servlet ??? Help !!! Hello John firstnme is the correct column name... What bugs me is if you see my servlet code which I am again attaching... I try to put try and ctach every where possible so that I can at least printStackTrace() . But to my surprise...I am not getting any exception...or stack trace... instead I am getting simple HTML output ... I am attaching what 1. I see in browser 2. servlet code BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help --SERVLET CODE- import java.sql.*; import java.lang.*; import java.io.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Ndb2Websphere extends HttpServlet { Statement stmt; ResultSet rs; int count =0; public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/html); ServletOutputStream out = res.getOutputStream(); String emp = req.getParameter(empnumber); out.println(paramater passed is +emp + BR); out.println(BRBRCount is+ count); try{ Class.forName(COM.ibm.db2.jdbc.net.DB2Driver); out.println(BRFound the JDBC driver BR); } catch( Exception e) { //e.printStackTrace(); out.println(\nDriver class not found exception); } finally { out.println(BRDriver is properly loaded and registered ); } try{ Connection con = null; String url; out.println(BRConnection URL is good); try{ con = DriverManager.getConnection (jdbc:db2://10.3.13.34/SAMPLE,db2admin,db2pwd); } catch( Exception e4) { e4.getMessage(); e4.printStackTrace(); } // retrieve data from the database out.println(BRRetrieve some data from the database...); try{ stmt = con.createStatement(); rs = stmt.executeQuery(SELECT empno from db2admin.employee); } catch( Exception e5) { e5.getMessage(); e5.printStackTrace(); } out.println(BRReceived results:); try{ if(!rs.next()) { count = count +1; String a = rs.getString(1); out.println( empno is + a ); out.println(BRBRWhile Count is+ count); } } catch( Exception e6) { e6.printStackTrace(); } out.println(BRBRCount is+ count); rs.close(); stmt.close(); con.close(); } catch (SQLException e1) { e1.getMessage(); e1.printStackTrace(); } catch( Exception e) { e.getMessage(); e.printStackTrace(); } finally { out.println(BRGod Please help); } } public void doPost (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { doGet(req,res); } } Nishant Awasthi Turner, JohnTo: 'Tomcat Users List' JTurner@AAS.[EMAIL PROTECTED] com cc: (bcc: Nishant
RE: Apache/Tomcat Connectors List
On Thu, 1 Aug 2002, Turner, John wrote: They are one and the same...there aren't separate connectors for apache and separate connectors for tomcat. There is an HTTP connector that is tomcat-only, but that just allows tomcat to serve static content. Well, I'd say that makes them separate. Especially since some of them come with the Tomcat distrib and some of them don't. That is, there are two kinds of connectors, those for Tomcat standalone and those for integrating Tomcat with Apache (or some other web server). The ones for Tomcat standalone and the Tomcat side of those for integrating Tomcat with Apache come with Tomcat, while the Apache side of those for integrating Tomcat with Apache don't. They have to be gotten separately, perhaps via the connectors distribution (which I think includes all sides of all connectors). http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html Look on the left-hand side under connectors. John Turner [EMAIL PROTECTED] -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:29 PM To: '[EMAIL PROTECTED]' Subject: Apache/Tomcat Connectors List Where can I find the list and the description of each connector for Apache on the one hand and for Tomcat on the other hand ? Thanks a lot. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DB2 and servlet ??? Help !!!
Nice catch! You are right. It should be if(rs.next()) Or better yet... while(rs.next()) John Turner [EMAIL PROTECTED] -Original Message- From: Wagoner, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:02 PM To: 'Tomcat Users List' Subject: RE: DB2 and servlet ??? Help !!! I think you are attempting to output the value if there is nothing in the result set. if(!rs.next()) The .next() method will return true if it was able to fetch a row. You are saying, if there is no row then... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:57 PM To: Tomcat Users List Subject: RE: DB2 and servlet ??? Help !!! Hello John firstnme is the correct column name... What bugs me is if you see my servlet code which I am again attaching... I try to put try and ctach every where possible so that I can at least printStackTrace() . But to my surprise...I am not getting any exception...or stack trace... instead I am getting simple HTML output ... I am attaching what 1. I see in browser 2. servlet code BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help --SERVLET CODE- import java.sql.*; import java.lang.*; import java.io.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Ndb2Websphere extends HttpServlet { Statement stmt; ResultSet rs; int count =0; public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/html); ServletOutputStream out = res.getOutputStream(); String emp = req.getParameter(empnumber); out.println(paramater passed is +emp + BR); out.println(BRBRCount is+ count); try{ Class.forName(COM.ibm.db2.jdbc.net.DB2Driver); out.println(BRFound the JDBC driver BR); } catch( Exception e) { //e.printStackTrace(); out.println(\nDriver class not found exception); } finally { out.println(BRDriver is properly loaded and registered ); } try{ Connection con = null; String url; out.println(BRConnection URL is good); try{ con = DriverManager.getConnection (jdbc:db2://10.3.13.34/SAMPLE,db2admin,db2pwd); } catch( Exception e4) { e4.getMessage(); e4.printStackTrace(); } // retrieve data from the database out.println(BRRetrieve some data from the database...); try{ stmt = con.createStatement(); rs = stmt.executeQuery(SELECT empno from db2admin.employee); } catch( Exception e5) { e5.getMessage(); e5.printStackTrace(); } out.println(BRReceived results:); try{ if(!rs.next()) { count = count +1; String a = rs.getString(1); out.println( empno is + a ); out.println(BRBRWhile Count is+ count); } } catch( Exception e6) { e6.printStackTrace(); } out.println(BRBRCount is+ count); rs.close(); stmt.close(); con.close(); } catch (SQLException e1) { e1.getMessage(); e1.printStackTrace(); } catch( Exception e) { e.getMessage(); e.printStackTrace(); } finally { out.println(BRGod Please help); } } public void doPost (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { doGet(req,res); } }
RE: DB2 and servlet ??? Help !!!
Hello Mark, Believe me there are rows in the table when I run the simple JAVA-DB2 file it retrieve Received results: empno= 000150 firstname= BRUCE empno= 10 firstname= CHRISTINE empno= 000250 firstname= DANIEL empno= 000200 firstname= DAVID empno= 000130 firstname= DOLORES empno= 90 firstname= EILEEN empno= 000160 firstname= ELIZABETH empno= 000280 firstname= ETHEL empno= 70 firstname= EVA empno= 000140 firstname= HEATHER empno= 60 firstname= IRVING empno= 000190 firstname= JAMES empno= 000230 firstname= JAMES empno= 000340 firstname= JASON empno= 000220 firstname= JENNIFER empno= 50 firstname= JOHN empno= 000290 firstname= JOHN empno= 000270 firstname= MARIA empno= 000180 firstname= MARILYN empno= 000170 firstname= MASATOSHI empno= 000310 firstname= MAUDE empno= 20 firstname= MICHAEL empno= 000300 firstname= PHILIP empno= 000320 firstname= RAMLAL empno= 30 firstname= SALLY empno= 000240 firstname= SALVATORE empno= 000120 firstname= SEAN empno= 000260 firstname= SYBIL empno= 000100 firstname= THEODORE empno= 000110 firstname= VINCENZO empno= 000210 firstname= WILLIAM empno= 000330 firstname= WING But When I write the same thing in a servlet it brings nothing... Is there a problem with Connection URL or Connection String... well I am using the same things in my simple java file Thanks Nishant Awasthi Wagoner, Mark MWagoner@wildflTo: 'Tomcat Users List' avors.com [EMAIL PROTECTED] cc: (bcc: Nishant Awasthi) 08/01/2002 02:02Subject: RE: DB2 and servlet ??? Help !!! PM Please respond to Tomcat Users List I think you are attempting to output the value if there is nothing in the result set. if(!rs.next()) The .next() method will return true if it was able to fetch a row. You are saying, if there is no row then... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:57 PM To: Tomcat Users List Subject: RE: DB2 and servlet ??? Help !!! Hello John firstnme is the correct column name... What bugs me is if you see my servlet code which I am again attaching... I try to put try and ctach every where possible so that I can at least printStackTrace() . But to my surprise...I am not getting any exception...or stack trace... instead I am getting simple HTML output ... I am attaching what 1. I see in browser 2. servlet code BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help --SERVLET CODE- import java.sql.*; import java.lang.*; import java.io.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Ndb2Websphere extends HttpServlet { Statement stmt; ResultSet rs; int count =0; public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/html); ServletOutputStream out = res.getOutputStream(); String emp = req.getParameter(empnumber); out.println(paramater passed is +emp + BR); out.println(BRBRCount is+ count); try{ Class.forName(COM.ibm.db2.jdbc.net.DB2Driver); out.println(BRFound the JDBC driver BR); } catch( Exception e) { //e.printStackTrace(); out.println(\nDriver class not found exception); } finally { out.println(BRDriver is properly loaded and registered ); } try{ Connection con = null; String url;
RE: DB2 and servlet ??? Help !!!
I tried both ways while(rs.next()) and if(!rs.next()) both gives the same web browser output Nishant Awasthi Corporate Systems Development Progressive Insurance Turner, JohnTo: 'Tomcat Users List' JTurner@AAS.[EMAIL PROTECTED] com cc: (bcc: Nishant Awasthi) Subject: RE: DB2 and servlet ??? Help !!! 08/01/2002 02:07 PM Please respond to Tomcat Users List Nice catch! You are right. It should be if(rs.next()) Or better yet... while(rs.next()) John Turner [EMAIL PROTECTED] -Original Message- From: Wagoner, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:02 PM To: 'Tomcat Users List' Subject: RE: DB2 and servlet ??? Help !!! I think you are attempting to output the value if there is nothing in the result set. if(!rs.next()) The .next() method will return true if it was able to fetch a row. You are saying, if there is no row then... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:57 PM To: Tomcat Users List Subject: RE: DB2 and servlet ??? Help !!! Hello John firstnme is the correct column name... What bugs me is if you see my servlet code which I am again attaching... I try to put try and ctach every where possible so that I can at least printStackTrace() . But to my surprise...I am not getting any exception...or stack trace... instead I am getting simple HTML output ... I am attaching what 1. I see in browser 2. servlet code BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help --SERVLET CODE- import java.sql.*; import java.lang.*; import java.io.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Ndb2Websphere extends HttpServlet { Statement stmt; ResultSet rs; int count =0; public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/html); ServletOutputStream out = res.getOutputStream(); String emp = req.getParameter(empnumber); out.println(paramater passed is +emp + BR); out.println(BRBRCount is+ count); try{ Class.forName(COM.ibm.db2.jdbc.net.DB2Driver); out.println(BRFound the JDBC driver BR); } catch( Exception e) { //e.printStackTrace(); out.println(\nDriver class not found exception); } finally { out.println(BRDriver is properly loaded and registered ); } try{ Connection con = null; String url; out.println(BRConnection URL is good); try{ con = DriverManager.getConnection (jdbc:db2://10.3.13.34/SAMPLE,db2admin,db2pwd); } catch( Exception e4) { e4.getMessage(); e4.printStackTrace(); } // retrieve data from the database out.println(BRRetrieve some data from the database...); try{ stmt = con.createStatement(); rs = stmt.executeQuery(SELECT empno from db2admin.employee); } catch( Exception e5)
Re: DB2 and servlet ??? Help !!!
Hi, Assuming this is the SQL you want to submit: try{ stmt = con.createStatement(); rs = stmt.executeQuery(SELECT empno from db2admin.employee); shouldn't it be if( rs.next() ){ do{ count++; out.println( empno is +rs.getString( 1 ) ); }while( rs.next() ); } or something along those lines? (rather than the !rs.next() ) try{ if(!rs.next()) { count = count +1; String a = rs.getString(1); out.println( empno is + a ); out.println(BRBRWhile Count is+ count); } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache/Tomcat Connectors List
Semantics, I guess. There's one connectors distribution, and it has everything in it. They're even separate projects from both apache and tomcat. There aren't any apache packages that have tomcat connectors, nor is there any apache documentation that says this is how you use the apache connector to connect to tomcat. In any case, the URL I posted has information on all of them, as far as I know. John Turner [EMAIL PROTECTED] -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:08 PM To: Tomcat Users List Subject: RE: Apache/Tomcat Connectors List On Thu, 1 Aug 2002, Turner, John wrote: They are one and the same...there aren't separate connectors for apache and separate connectors for tomcat. There is an HTTP connector that is tomcat-only, but that just allows tomcat to serve static content. Well, I'd say that makes them separate. Especially since some of them come with the Tomcat distrib and some of them don't. That is, there are two kinds of connectors, those for Tomcat standalone and those for integrating Tomcat with Apache (or some other web server). The ones for Tomcat standalone and the Tomcat side of those for integrating Tomcat with Apache come with Tomcat, while the Apache side of those for integrating Tomcat with Apache don't. They have to be gotten separately, perhaps via the connectors distribution (which I think includes all sides of all connectors). http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html Look on the left-hand side under connectors. John Turner [EMAIL PROTECTED] -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:29 PM To: '[EMAIL PROTECTED]' Subject: Apache/Tomcat Connectors List Where can I find the list and the description of each connector for Apache on the one hand and for Tomcat on the other hand ? Thanks a lot. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DB2 and servlet ??? Help !!!
Hi, Your parameter is '012', while it appears that the employeenumbers in your database are more like: empno= 000150 quote BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help /quote Regards, Michael - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 2:10 PM Subject: RE: DB2 and servlet ??? Help !!! I tried both ways while(rs.next()) and if(!rs.next()) both gives the same web browser output Nishant Awasthi Corporate Systems Development Progressive Insurance Turner, JohnTo: 'Tomcat Users List' JTurner@AAS. [EMAIL PROTECTED] com cc: (bcc: Nishant Awasthi) Subject: RE: DB2 and servlet ??? Help !!! 08/01/2002 02:07 PM Please respond to Tomcat Users List Nice catch! You are right. It should be if(rs.next()) Or better yet... while(rs.next()) John Turner [EMAIL PROTECTED] -Original Message- From: Wagoner, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:02 PM To: 'Tomcat Users List' Subject: RE: DB2 and servlet ??? Help !!! I think you are attempting to output the value if there is nothing in the result set. if(!rs.next()) The .next() method will return true if it was able to fetch a row. You are saying, if there is no row then... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:57 PM To: Tomcat Users List Subject: RE: DB2 and servlet ??? Help !!! Hello John firstnme is the correct column name... What bugs me is if you see my servlet code which I am again attaching... I try to put try and ctach every where possible so that I can at least printStackTrace() . But to my surprise...I am not getting any exception...or stack trace... instead I am getting simple HTML output ... I am attaching what 1. I see in browser 2. servlet code BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help --SERVLET CODE- import java.sql.*; import java.lang.*; import java.io.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Ndb2Websphere extends HttpServlet { Statement stmt; ResultSet rs; int count =0; public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/html); ServletOutputStream out = res.getOutputStream(); String emp = req.getParameter(empnumber); out.println(paramater passed is +emp + BR); out.println(BRBRCount is+ count); try{ Class.forName(COM.ibm.db2.jdbc.net.DB2Driver); out.println(BRFound the JDBC driver BR); } catch( Exception e) { //e.printStackTrace(); out.println(\nDriver class not found exception); } finally { out.println(BRDriver is properly loaded and registered ); } try{ Connection con = null; String url; out.println(BRConnection URL is good); try{ con = DriverManager.getConnection (jdbc:db2://10.3.13.34/SAMPLE,db2admin,db2pwd); } catch( Exception e4) { e4.getMessage(); e4.printStackTrace(); } // retrieve data from the database out.println(BRRetrieve some data from the database...); try{ stmt = con.createStatement(); rs = stmt.executeQuery(SELECT empno from db2admin.employee); } catch( Exception e5) { e5.getMessage();
RE: DB2 and servlet ??? Help !!!
brings nothing?? There is no SQLException, or nullpointer or something like that?? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:08 PM To: Tomcat Users List Subject: RE: DB2 and servlet ??? Help !!! Hello Mark, Believe me there are rows in the table when I run the simple JAVA-DB2 file it retrieve Received results: empno= 000150 firstname= BRUCE empno= 10 firstname= CHRISTINE empno= 000250 firstname= DANIEL empno= 000200 firstname= DAVID empno= 000130 firstname= DOLORES empno= 90 firstname= EILEEN empno= 000160 firstname= ELIZABETH empno= 000280 firstname= ETHEL empno= 70 firstname= EVA empno= 000140 firstname= HEATHER empno= 60 firstname= IRVING empno= 000190 firstname= JAMES empno= 000230 firstname= JAMES empno= 000340 firstname= JASON empno= 000220 firstname= JENNIFER empno= 50 firstname= JOHN empno= 000290 firstname= JOHN empno= 000270 firstname= MARIA empno= 000180 firstname= MARILYN empno= 000170 firstname= MASATOSHI empno= 000310 firstname= MAUDE empno= 20 firstname= MICHAEL empno= 000300 firstname= PHILIP empno= 000320 firstname= RAMLAL empno= 30 firstname= SALLY empno= 000240 firstname= SALVATORE empno= 000120 firstname= SEAN empno= 000260 firstname= SYBIL empno= 000100 firstname= THEODORE empno= 000110 firstname= VINCENZO empno= 000210 firstname= WILLIAM empno= 000330 firstname= WING But When I write the same thing in a servlet it brings nothing... Is there a problem with Connection URL or Connection String... well I am using the same things in my simple java file Thanks -- -- Nishant Awasthi Wagoner, Mark MWagoner@wildflTo: 'Tomcat Users List' avors.com [EMAIL PROTECTED] cc: (bcc: Nishant Awasthi) 08/01/2002 02:02Subject: RE: DB2 and servlet ??? Help !!! PM Please respond to Tomcat Users List I think you are attempting to output the value if there is nothing in the result set. if(!rs.next()) The .next() method will return true if it was able to fetch a row. You are saying, if there is no row then... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:57 PM To: Tomcat Users List Subject: RE: DB2 and servlet ??? Help !!! Hello John firstnme is the correct column name... What bugs me is if you see my servlet code which I am again attaching... I try to put try and ctach every where possible so that I can at least printStackTrace() . But to my surprise...I am not getting any exception...or stack trace... instead I am getting simple HTML output ... I am attaching what 1. I see in browser 2. servlet code BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help --SERVLET CODE- import java.sql.*; import java.lang.*; import java.io.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Ndb2Websphere extends HttpServlet { Statement stmt; ResultSet rs; int count =0; public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/html); ServletOutputStream out = res.getOutputStream(); String emp = req.getParameter(empnumber); out.println(paramater passed is +emp + BR); out.println(BRBRCount is+ count); try{ Class.forName(COM.ibm.db2.jdbc.net.DB2Driver); out.println(BRFound the JDBC driver BR); } catch( Exception e)
Re: DB2 and servlet ??? Help !!!
...and I'm an idiot, because the SQL statement doesn't filter by them, so it's quite inconsequential, really. :) rs = stmt.executeQuery(SELECT empno from db2admin.employee); Michael - Original Message - From: Michael Locasto [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 2:16 PM Subject: Re: DB2 and servlet ??? Help !!! Hi, Your parameter is '012', while it appears that the employeenumbers in your database are more like: empno= 000150 quote BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help /quote Regards, Michael - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 2:10 PM Subject: RE: DB2 and servlet ??? Help !!! I tried both ways while(rs.next()) and if(!rs.next()) both gives the same web browser output Nishant Awasthi Corporate Systems Development Progressive Insurance Turner, JohnTo: 'Tomcat Users List' JTurner@AAS. [EMAIL PROTECTED] com cc: (bcc: Nishant Awasthi) Subject: RE: DB2 and servlet ??? Help !!! 08/01/2002 02:07 PM Please respond to Tomcat Users List Nice catch! You are right. It should be if(rs.next()) Or better yet... while(rs.next()) John Turner [EMAIL PROTECTED] -Original Message- From: Wagoner, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:02 PM To: 'Tomcat Users List' Subject: RE: DB2 and servlet ??? Help !!! I think you are attempting to output the value if there is nothing in the result set. if(!rs.next()) The .next() method will return true if it was able to fetch a row. You are saying, if there is no row then... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:57 PM To: Tomcat Users List Subject: RE: DB2 and servlet ??? Help !!! Hello John firstnme is the correct column name... What bugs me is if you see my servlet code which I am again attaching... I try to put try and ctach every where possible so that I can at least printStackTrace() . But to my surprise...I am not getting any exception...or stack trace... instead I am getting simple HTML output ... I am attaching what 1. I see in browser 2. servlet code BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help --SERVLET CODE- import java.sql.*; import java.lang.*; import java.io.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Ndb2Websphere extends HttpServlet { Statement stmt; ResultSet rs; int count =0; public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/html); ServletOutputStream out = res.getOutputStream(); String emp = req.getParameter(empnumber); out.println(paramater passed is +emp + BR); out.println(BRBRCount is+ count); try{ Class.forName(COM.ibm.db2.jdbc.net.DB2Driver); out.println(BRFound the JDBC driver BR); } catch( Exception e) { //e.printStackTrace(); out.println(\nDriver class not found exception); } finally { out.println(BRDriver is properly loaded and registered ); } try{ Connection con = null; String url; out.println(BRConnection URL is good); try{ con = DriverManager.getConnection (jdbc:db2://10.3.13.34/SAMPLE,db2admin,db2pwd); } catch( Exception e4) {
Re: DB2 and servlet ??? Help !!!
Please don't look at the parameters As I am not using parameter in my query... Right now I am just trying to run a very simple query... Parameter has been output just for testing if servlet is taking wirte parameter vvalues or not... Parameters are not being used anywhere in the whole servlet code.. Thanks Nishant Awasthi Corporate Systems Development Progressive Insurance Michael Locasto To: Tomcat Users List [EMAIL PROTECTED][EMAIL PROTECTED] umbia.edu cc: (bcc: Nishant Awasthi) Subject: Re: DB2 and servlet ??? Help !!! 08/01/2002 02:16 PM Please respond to Tomcat Users List Hi, Your parameter is '012', while it appears that the employeenumbers in your database are more like: empno= 000150 quote BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help /quote Regards, Michael - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 2:10 PM Subject: RE: DB2 and servlet ??? Help !!! I tried both ways while(rs.next()) and if(!rs.next()) both gives the same web browser output Nishant Awasthi Corporate Systems Development Progressive Insurance Turner, JohnTo: 'Tomcat Users List' JTurner@AAS. [EMAIL PROTECTED] com cc: (bcc: Nishant Awasthi) Subject: RE: DB2 and servlet ??? Help !!! 08/01/2002 02:07 PM Please respond to Tomcat Users List Nice catch! You are right. It should be if(rs.next()) Or better yet... while(rs.next()) John Turner [EMAIL PROTECTED] -Original Message- From: Wagoner, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:02 PM To: 'Tomcat Users List' Subject: RE: DB2 and servlet ??? Help !!! I think you are attempting to output the value if there is nothing in the result set. if(!rs.next()) The .next() method will return true if it was able to fetch a row. You are saying, if there is no row then... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:57 PM To: Tomcat Users List Subject: RE: DB2 and servlet ??? Help !!! Hello John firstnme is the correct column name... What bugs me is if you see my servlet code which I am again attaching... I try to put try and ctach every where possible so that I can at least printStackTrace() . But to my surprise...I am not getting any exception...or stack trace... instead I am getting simple HTML output ... I am attaching what 1. I see in browser 2. servlet code BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help --SERVLET CODE- import java.sql.*; import java.lang.*; import java.io.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Ndb2Websphere extends HttpServlet { Statement stmt; ResultSet rs; int count =0; public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/html); ServletOutputStream out = res.getOutputStream();
RE: Apache/Tomcat Connectors List
On Thu, 1 Aug 2002, Turner, John wrote: Semantics, I guess. There's one connectors distribution, and it has everything in it. They're even separate projects from both apache and tomcat. There aren't any apache packages that have tomcat connectors, nor is there any apache documentation that says this is how you use the apache connector to connect to tomcat. True. But I think the distinction is not unimportant. For example, if you're going to run Tomcat standalone, the Tomcat distrib has everything you need, including the connectors. And my impression is that most people who get the connectors distrib do so mostly/only to get/build the Apache side of one of the Tomcat-Apache connectors, and they don't replace what's in the Tomcat distrib. (So, maybe no Apache package has connectors, but the Tomcat package does. So the connectors project is more separate from Apache than it is from Tomcat :-). In any case, the URL I posted has information on all of them, as far as I know. I think it does. But the info on what's included in what distrib and where to find them is also useful. -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:08 PM To: Tomcat Users List Subject: RE: Apache/Tomcat Connectors List On Thu, 1 Aug 2002, Turner, John wrote: They are one and the same...there aren't separate connectors for apache and separate connectors for tomcat. There is an HTTP connector that is tomcat-only, but that just allows tomcat to serve static content. Well, I'd say that makes them separate. Especially since some of them come with the Tomcat distrib and some of them don't. That is, there are two kinds of connectors, those for Tomcat standalone and those for integrating Tomcat with Apache (or some other web server). The ones for Tomcat standalone and the Tomcat side of those for integrating Tomcat with Apache come with Tomcat, while the Apache side of those for integrating Tomcat with Apache don't. They have to be gotten separately, perhaps via the connectors distribution (which I think includes all sides of all connectors). http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html Look on the left-hand side under connectors. John Turner [EMAIL PROTECTED] -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 1:29 PM To: '[EMAIL PROTECTED]' Subject: Apache/Tomcat Connectors List Where can I find the list and the description of each connector for Apache on the one hand and for Tomcat on the other hand ? Thanks a lot. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DB2 and servlet ??? Help !!!
Hello I think I found where the problem is When I try to print e4.getmessage() while opening my conenction as given below: try{ con = DriverManager.getConnection (jdbc:db2://10.3.13.34/SAMPLE,db2admin,db2pwd); } catch( Exception e4) { out.println( connection +e4.getMessage ()); e4.printStackTrace(); } I got something different in the web browser output: It now says WEB BROWSER OUTPUT - [paramater passed is 10 Count is0 Found the JDBC driver Driver is properly loaded and registered connection [IBM][JDBC Driver] CLI0621E Unsupported JDBC Server configuration. Connection URL is good Retrieve some data from the database... stmt and rs null Received results: Count is0 God Please help Now at least I know that there is some problem with JDBC Driver... But I don't know why this is hapenning though while compiling simple java file it never gave this error... Nishant Awasthi Corporate Systems Development Progressive Insurance Nishant_Awasthi@progr essive.com To: Tomcat Users List [EMAIL PROTECTED] 08/01/2002 02:25 PM cc: (bcc: Nishant Awasthi) Please respond toSubject: Re: DB2 and servlet ??? Help !!! Tomcat Users List Please don't look at the parameters As I am not using parameter in my query... Right now I am just trying to run a very simple query... Parameter has been output just for testing if servlet is taking wirte parameter vvalues or not... Parameters are not being used anywhere in the whole servlet code.. Thanks Nishant Awasthi Corporate Systems Development Progressive Insurance Michael Locasto To: Tomcat Users List [EMAIL PROTECTED][EMAIL PROTECTED] umbia.edu cc: (bcc: Nishant Awasthi) Subject: Re: DB2 and servlet ??? Help !!! 08/01/2002 02:16 PM Please respond to Tomcat Users List Hi, Your parameter is '012', while it appears that the employeenumbers in your database are more like: empno= 000150 quote BROWSER OUTPUT --- paramater passed is 012 Count is0 Found the JDBC driver Driver is properly loaded and registered Connection URL is good Retrieve some data from the database... Received results: Count is0 God Please help /quote Regards, Michael - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 2:10 PM Subject: RE: DB2 and servlet ??? Help !!! I tried both ways while(rs.next()) and if(!rs.next()) both gives the same web browser output Nishant Awasthi Corporate Systems Development Progressive Insurance Turner, JohnTo: 'Tomcat Users List' JTurner@AAS. [EMAIL PROTECTED] com cc: (bcc: Nishant Awasthi) Subject: RE: DB2 and servlet ??? Help !!! 08/01/2002 02:07 PM Please respond to Tomcat Users List Nice catch! You are right. It should be if(rs.next()) Or better yet... while(rs.next()) John Turner [EMAIL PROTECTED] -Original Message- From: Wagoner, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:02 PM To: 'Tomcat Users List' Subject: RE: DB2 and servlet ??? Help !!! I think you are attempting to output the value if there is nothing in the result set. if(!rs.next()) The .next() method will return true if it was able to fetch a row. You are saying, if there is no row
MaxProcesses in Server.xml
Hi, I am setting the value of MaxProcessors in server.xml to 500. Is it possible that tomcat can handle 500 simultaneous connections. I am generating 150 simultaneous requests. These requests are for a servlet called ReadServlet. This servlet sleeps for 10 secs and returns back with a respose Done. Once I have generated my 150 requests, I should be getting the response from the tomcat server in 10 secs as the servlet does nothing but sleep for 10 secs. But I am observing a strange behaviour. The first 100 responses come in 10 secs and the next 50 come in 13secs. Moreover this observation is not strict. some times first 75 responses come in 10 secs and the next 75 in 13 secs. Since I have set the value of MaxProcessors to 500, all the responses should come in 10 secs. Can anyone please tell me as to what the problem is ? Thanks, Venkatesh. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: MaxProcesses in Server.xml
If you set MinProcessors to be 500 also, see if there is any diff. -- Zhenxin Wang DoCoMo labs USA - Original Message - From: Venkatesh Sangam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 11:41 AM Subject: MaxProcesses in Server.xml Hi, I am setting the value of MaxProcessors in server.xml to 500. Is it possible that tomcat can handle 500 simultaneous connections. I am generating 150 simultaneous requests. These requests are for a servlet called ReadServlet. This servlet sleeps for 10 secs and returns back with a respose Done. Once I have generated my 150 requests, I should be getting the response from the tomcat server in 10 secs as the servlet does nothing but sleep for 10 secs. But I am observing a strange behaviour. The first 100 responses come in 10 secs and the next 50 come in 13secs. Moreover this observation is not strict. some times first 75 responses come in 10 secs and the next 75 in 13 secs. Since I have set the value of MaxProcessors to 500, all the responses should come in 10 secs. Can anyone please tell me as to what the problem is ? Thanks, Venkatesh. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: MaxProcesses in Server.xml
I set MinProcessors also to a high value, but I dont observe any difference. The problem is I dont observe any strict behaviour. The number of responses that come in 10 secs only, varies from 70-150. But according to me, I should be getting all the responses in 10 secs. Thanks, Venkatesh. Original Message Follows From: Zhenxin wang [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: MaxProcesses in Server.xml Date: Thu, 1 Aug 2002 11:52:14 -0700 If you set MinProcessors to be 500 also, see if there is any diff. -- Zhenxin Wang DoCoMo labs USA - Original Message - From: Venkatesh Sangam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 11:41 AM Subject: MaxProcesses in Server.xml Hi, I am setting the value of MaxProcessors in server.xml to 500. Is it possible that tomcat can handle 500 simultaneous connections. I am generating 150 simultaneous requests. These requests are for a servlet called ReadServlet. This servlet sleeps for 10 secs and returns back with a respose Done. Once I have generated my 150 requests, I should be getting the response from the tomcat server in 10 secs as the servlet does nothing but sleep for 10 secs. But I am observing a strange behaviour. The first 100 responses come in 10 secs and the next 50 come in 13secs. Moreover this observation is not strict. some times first 75 responses come in 10 secs and the next 75 in 13 secs. Since I have set the value of MaxProcessors to 500, all the responses should come in 10 secs. Can anyone please tell me as to what the problem is ? Thanks, Venkatesh. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ...Phir Bhi Dil Hai Hindustani Venkatesh Sangam, 1207, E 8th Street, Apt #114, Tempe, AZ, 85281 Ph:480-736-9392 _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache - Tomcat blues...
Hi all, I am kind new to tomcat, so any help would be appreciated. I have problems with the communication between apache and tomcat. I am using apache 1.3.26 compiled from sources, tomcat 4.0.4 from binaries and connectors 4.0.4 compiled from sources, all running on Linux Redhat 7.2. Tomcat and apache run very well as standalones. Problem: I experience major headaches trying to redirect jsp pages from apache to tomcat. Initially I got Web application not yet deployed. Following the archives I fixed the virtual host in server.xml so that I no longer get the previous error, the connection just hangs indefinitely. I am trying to load http://www.test1.gr/jsp/hello.jsp (location: /www/test1/htdocs/jsp/hello.jsp Logs show: 2002-08-01 21:31:29 WarpEngine[Apache]: Mapping request 2002-08-01 21:31:29 [org.apache.catalina.connector.warp.WarpConnector] Connection from localhost/127.0.0.1:33342 to localhost/127.0.0.1:8008 Nothing is shown in Apache logs. Any ideas would be appreciated, I have wasted allready a whole day on this. Thanks, Nick (Configuration files) httpd.conf: [...] LoadModule webapp_modulelibexec/mod_webapp.so [...] VirtualHost 10.0.0.30 ServerAdmin root@localhost DocumentRoot /www/test1/htdocs ServerName www.test1.gr ServerAlias www.test1-test.gr WebAppConnection warpConnection warp 127.0.0.1:8008 WebAppDeploy jsp warpConnection /jsp/ WebAppInfo /webapp-info Directory /www/test1/htdocs Options FollowSymLinks /Directory ScriptAlias /cgi-bin/ /www/test1/cgi-bin/ ErrorLog /www/test1/logs/test1-error.log CustomLog /www/test1/logs/test1-access.log combined /VirtualHost server.xml: [...] !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=false appBase=webapps acceptCount=10 debug=1/ !-- Replace localhost with what your Apache ServerName is set to -- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache defaultHost=localhost debug=1 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.MemoryRealm / Host name=www.test1.gr debug=1 appBase=/www/test1/htdocs unpackWARs=true Context path=/jsp docBase=/www/test1/htdocs/jsp crossContext=false debug=1 reloadable=false /Context /Host /Engine /Service -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Please help me... URGENT
Please help me . My requirements are to serve JSP, Servlets, static pages and SSL(not important). NO CGI, PERL, PHP etc. I am using a WINDOWS 2000 Server.*I want anyone to tell me whether i should use APACHE+TOMCAT+SSL or TOMCAT+SSL. Please reply me fast , i am banking on you guys for a good answer. Thanks in advance Sujith Mathew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Please help me... URGENT
Hi There, I would go with Tomcat+SSL, the setup is much easier than your other alternative. The only thing you really lose by not using apache is the ability to use virtual hosts. Mike On Fri, 2 Aug 2002, Sujith Mathew wrote: Please help me . My requirements are to serve JSP, Servlets, static pages and SSL(not important). NO CGI, PERL, PHP etc. I am using a WINDOWS 2000 Server.*I want anyone to tell me whether i should use APACHE+TOMCAT+SSL or TOMCAT+SSL. Please reply me fast , i am banking on you guys for a good answer. Thanks in advance Sujith Mathew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: MaxProcesses in Server.xml
Hi, You will always have some variance in your responses. It's never going to be exactly 10sec for all requests. This variance is due to network issues, I/O, a bit of thread contention and locking, etc. It's up to you to decide what variance is acceptable, and profile your application to ensure that with the desired number of users (peak, average, simultaneous peak, whatever criterion is the proper one for you) the application responds within the acceptable variance. As an aside, how are you measuring this respond time? Yoav Shapira Millennium ChemInformatics -Original Message- From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 3:12 PM To: [EMAIL PROTECTED] Subject: Re: MaxProcesses in Server.xml I set MinProcessors also to a high value, but I dont observe any difference. The problem is I dont observe any strict behaviour. The number of responses that come in 10 secs only, varies from 70-150. But according to me, I should be getting all the responses in 10 secs. Thanks, Venkatesh. Original Message Follows From: Zhenxin wang [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: MaxProcesses in Server.xml Date: Thu, 1 Aug 2002 11:52:14 -0700 If you set MinProcessors to be 500 also, see if there is any diff. -- Zhenxin Wang DoCoMo labs USA - Original Message - From: Venkatesh Sangam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 11:41 AM Subject: MaxProcesses in Server.xml Hi, I am setting the value of MaxProcessors in server.xml to 500. Is it possible that tomcat can handle 500 simultaneous connections. I am generating 150 simultaneous requests. These requests are for a servlet called ReadServlet. This servlet sleeps for 10 secs and returns back with a respose Done. Once I have generated my 150 requests, I should be getting the response from the tomcat server in 10 secs as the servlet does nothing but sleep for 10 secs. But I am observing a strange behaviour. The first 100 responses come in 10 secs and the next 50 come in 13secs. Moreover this observation is not strict. some times first 75 responses come in 10 secs and the next 75 in 13 secs. Since I have set the value of MaxProcessors to 500, all the responses should come in 10 secs. Can anyone please tell me as to what the problem is ? Thanks, Venkatesh. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ...Phir Bhi Dil Hai Hindustani Venkatesh Sangam, 1207, E 8th Street, Apt #114, Tempe, AZ, 85281 Ph:480-736-9392 _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: RE: Apache-tomcat integration
Here is my server.xml file. As far as I know it's stock. For bandwidth reasons I striped all the comments and included it as an attachment. As an update, I do get tomcat on port 8180. on 08/01/2002 1:41 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: The WARP connector can't bind to its socket. The default WARP connector socket is 8008. Is there something else on that socket? Another connector? Which connector do you want to use? Tomcat binds up both the AJP and WARP socket by default, but which connector have you chosen to use with apache? You might want to post your server.xml, looks like something isn't happy in there. John Turner [EMAIL PROTECTED] server.xml Description: application/applefile Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Standalone Connector className=org.apache.catalina.connector.http.HttpConnector port=8180 minProcessors=1 maxProcessors=5 enableLookups=true redirectPort=8543 acceptCount=10 debug=0 connectionTimeout=6/ Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8109 minProcessors=1 maxProcessors=5 acceptCount=10 debug=0/ Engine name=Standalone defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=localhost debug=0 appBase=webapps unpackWARs=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Context path=/manager docBase=manager debug=0 privileged=true/ Context path=/examples docBase=examples debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/EmployeeAppDb auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/EmployeeAppDb parameternameuser/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valueorg.hsql.jdbcDriver/value/parameter parameternamedriverName/name valuejdbc:HypersonicSQL:database/value/parameter /ResourceParams Resource name=mail/Session auth=Container type=javax.mail.Session/ ResourceParams name=mail/Session parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams /Context /Host /Engine /Service Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=1 maxProcessors=5 enableLookups=true acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Please help me... URGENT
One option is to use IIS + SSL + Tomcat -Original Message- From: Sujith Mathew [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: Please help me... URGENT Please help me . My requirements are to serve JSP, Servlets, static pages and SSL(not important). NO CGI, PERL, PHP etc. I am using a WINDOWS 2000 Server.*I want anyone to tell me whether i should use APACHE+TOMCAT+SSL or TOMCAT+SSL. Please reply me fast , i am banking on you guys for a good answer. Thanks in advance Sujith Mathew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache-tomcat integration
Here is my server.xml file. As far as I know it's stock. For bandwidth reasons I striped all the comments. As an update, I do get tomcat on port 8180. Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Standalone Connector className=org.apache.catalina.connector.http.HttpConnector port=8180 minProcessors=1 maxProcessors=5 enableLookups=true redirectPort=8543 acceptCount=10 debug=0 connectionTimeout=6/ Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8109 minProcessors=1 maxProcessors=5 acceptCount=10 debug=0/ Engine name=Standalone defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=localhost debug=0 appBase=webapps unpackWARs=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Context path=/manager docBase=manager debug=0 privileged=true/ Context path=/examples docBase=examples debug=0 reloadable=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord/ Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/EmployeeAppDb auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/EmployeeAppDb parameternameuser/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valueorg.hsql.jdbcDriver/value/parameter parameternamedriverName/name valuejdbc:HypersonicSQL:database/value/parameter /ResourceParams Resource name=mail/Session auth=Container type=javax.mail.Session/ ResourceParams name=mail/Session parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams /Context /Host /Engine /Service Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=1 maxProcessors=5 enableLookups=true acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 appBase=webapps Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server on 08/01/2002 1:41 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: The WARP connector can't bind to its socket. The default WARP connector socket is 8008. Is there something else on that socket? Another connector? Which connector do you want to use? Tomcat binds up both the AJP and WARP socket by default, but which connector have you chosen to use with apache? You might want to post your server.xml, looks like something isn't happy in there. John Turner [EMAIL PROTECTED] -- End of Forwarded Message server.xml Description: application/applefile -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Please help me... URGENT
I wouldn't use IIS, especially if you're interested in having a secure server. IIS is historically unsecure. SSL won't mean much if someone can break into your system via your web server. On Thu, 1 Aug 2002, Durham David Cntr 805CSS/SCBE wrote: One option is to use IIS + SSL + Tomcat -Original Message- From: Sujith Mathew [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: Please help me... URGENT Please help me . My requirements are to serve JSP, Servlets, static pages and SSL(not important). NO CGI, PERL, PHP etc. I am using a WINDOWS 2000 Server.*I want anyone to tell me whether i should use APACHE+TOMCAT+SSL or TOMCAT+SSL. Please reply me fast , i am banking on you guys for a good answer. Thanks in advance Sujith Mathew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: RE: Apache-tomcat integration
Which connector did you choose to use? AJP or WARP? Your server.xml shows some changes on the port numbers. For example, the AJP connector is showing 8109 instead of 8009 (the default). Did you carry that change through the other configuration files, like workers.properties (if you chose AJP)? John Turner [EMAIL PROTECTED] -Original Message- From: Thomas Cherry [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 3:33 PM To: [EMAIL PROTECTED] Subject: Re: RE: Apache-tomcat integration Here is my server.xml file. As far as I know it's stock. For bandwidth reasons I striped all the comments and included it as an attachment. As an update, I do get tomcat on port 8180. on 08/01/2002 1:41 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: The WARP connector can't bind to its socket. The default WARP connector socket is 8008. Is there something else on that socket? Another connector? Which connector do you want to use? Tomcat binds up both the AJP and WARP socket by default, but which connector have you chosen to use with apache? You might want to post your server.xml, looks like something isn't happy in there. John Turner [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Please help me... URGENT
Hi, If you need to get it up and running fast, just use Tomcat with SSL. You can always add Apache later if you think it will boost performance. Setting up an Apache+SSL+Tomcat server can be tricky if you are a newbie (and even if you aren't). A lot of this depends on what you are running and how heavy the demands on the server will be. If you have a lot of static pages (and maybe even if you don't) Apache with SSL and Tomcat may be faster. In that setup you use Apache to do the SSL, which is theoretically faster because it is a binary on the server. In reality the extra overhead of the transfer from Apache to Tomcat of dynamic pages may nullify any speed advantages. - Original Message - Please help me . My requirements are to serve JSP, Servlets, static pages and SSL(not important). NO CGI, PERL, PHP etc. I am using a WINDOWS 2000 Server.*I want anyone to tell me whether i should use APACHE+TOMCAT+SSL or TOMCAT+SSL. Please reply me fast , i am banking on you guys for a good answer. Thanks in advance Sujith Mathew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSPC Precompiling Issues and a handy utility
Rick == Rick Fincher [EMAIL PROTECTED] writes: Rick Hi All, Rick There has been some discussion on here and on the TAGLIBS list about Rick precompiling JSP's in Tomcat. Rick To avoid confusion, before I go on I want to point out that there has been a Rick change in Tomcat 4.1.8 in the naming conventions of servlets generated from Rick JSP's. Rick In 4.1.8 a JSP file CATALINA_HOME/webapps/myApp/main.jsp gets compiled into Rick a servlet CATALINA_HOME/work/Standalone/localhost/myApp/main_jsp.java. Rick Prior to 4.1.8 the servlet created was called main$jsp.java. So they Rick changed the name convention from $jsp.java to _jsp.java. Rick I'll use the 4.1.8 names in this post. Rick Anyway, when I use jspc to precompile I get all the .java files in , but no Rick class files. Does jspc only generate the servlet java files? The whole Rick point of precompiling was to prevent javac from being called to compile Rick those servlets to work around the javac memory leak and speed up page Rick loading. The Tomcat JspC process only generates the servlet code. You have to compile the code yourself. It's easy enough to set that up as part of your build process. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Please help me... URGENT
Why are we worried about securing a Windows 2000 server?? I thought they just wanted it set up and running. -Original Message- From: Michael B Sebetich [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:42 PM To: Tomcat Users List Subject: RE: Please help me... URGENT I wouldn't use IIS, especially if you're interested in having a secure server. IIS is historically unsecure. SSL won't mean much if someone can break into your system via your web server. On Thu, 1 Aug 2002, Durham David Cntr 805CSS/SCBE wrote: One option is to use IIS + SSL + Tomcat -Original Message- From: Sujith Mathew [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: Please help me... URGENT Please help me . My requirements are to serve JSP, Servlets, static pages and SSL(not important). NO CGI, PERL, PHP etc. I am using a WINDOWS 2000 Server.*I want anyone to tell me whether i should use APACHE+TOMCAT+SSL or TOMCAT+SSL. Please reply me fast , i am banking on you guys for a good answer. Thanks in advance Sujith Mathew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Please help me... URGENT
I would assume that the use of SSL implies sensitive data being handled by the Win 2k server. Why risk compromising that data by using IIS? On Thu, 1 Aug 2002, Durham David Cntr 805CSS/SCBE wrote: Why are we worried about securing a Windows 2000 server?? I thought they just wanted it set up and running. -Original Message- From: Michael B Sebetich [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:42 PM To: Tomcat Users List Subject: RE: Please help me... URGENT I wouldn't use IIS, especially if you're interested in having a secure server. IIS is historically unsecure. SSL won't mean much if someone can break into your system via your web server. On Thu, 1 Aug 2002, Durham David Cntr 805CSS/SCBE wrote: One option is to use IIS + SSL + Tomcat -Original Message- From: Sujith Mathew [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: Please help me... URGENT Please help me . My requirements are to serve JSP, Servlets, static pages and SSL(not important). NO CGI, PERL, PHP etc. I am using a WINDOWS 2000 Server.*I want anyone to tell me whether i should use APACHE+TOMCAT+SSL or TOMCAT+SSL. Please reply me fast , i am banking on you guys for a good answer. Thanks in advance Sujith Mathew -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JSPC Precompiling Issues and a handy utility
Hi David, Thanks for the response. I'm using an IDE and all it does is spit out a war file with the JSP sources and WEB-INF. I guess it can't use class files because it has no knowlege of the container environment it will be deployed in. So it looks like what I need to do is write an ant script (or somethin similar) to take the webapp name as an argument and: 1. Call jspc.sh with the appropriate parameters to compile the servlets into the work directory. 2. Pull the common/lib jars and common/classes into the classpath. 3. Pull the WEB-INF/lib jars and WEB-INF/classes of the webapp into the class path 4. Call javac with that classpath and compile all the .java files in the work directory. A shell script won't work because the classpath is too long for 1024 character limit, unless I use a shell without that restriction. Rick - Original Message - snip The Tomcat JspC process only generates the servlet code. You have to compile the code yourself. It's easy enough to set that up as part of your build process. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: howto avoid overuse of session object?
Thanks, Cédric and Peter Lin, for your responses. Both of you seem to be saying that, instead of storing large objects in the session object, I should be storing them in the application object (ServletContext). I find this to be rather confusing. It seems like the overhead involved in storing things in the application object would be much greater than storing things in the session object. At least the session objects would eventually die when sessions time out or they are invalidated by the web app, and the space they were using could then be garbage collected. But the application objects would live as long as the server is up, and I would think would eventually consume memory moreso than using the session would. Also, there would be a extra level of complexity involved with maintaining the association between the objects in the application object and their respective sessions. Am I unclear on the concept, or is there something else that I'm not understanding? Thanks, -Jeff Cédric Viaud cedric.viaud@matraTo: Tomcat Users List [EMAIL PROTECTED] si-tls.fr cc: Subject: Re: howto avoid overuse of session object? 08/01/02 11:30 AM Please respond to Tomcat Users List Hi, FIRST For non-specific Tomcat questions, it exists : [EMAIL PROTECTED] There's also an other one wich is JSP oriented. SECOND All best practice i know says that you must minimize the ammount of data stored in the session. So, the traditional approach of this problem is to only store the user-id (simple type) in the session. All over session informations (a class containing all required informations) are stored in the servlet context. Praticaly, on the request you get the user id from the user session. Next you use this Id to get the user information obect from the servlet context. This is certainly deceiving, but this is the way ... Maybe someone knows better practice ? Regards, Cédric - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 6:13 PM Subject: OT: howto avoid overuse of session object? This is sort of off-topic, but I don't know of a better forum targeting Java web/servlet programming. If anyone does know of one, could you let me know? I'm basically wondering if others have found effective ways to avoid the tempting but bad practice of loading up the session with all sorts of attributes. I often find myself needing some Bean or other object for maybe 2 or 3 requests, and, rack my brains as I may for an elegant way of passing the object along without putting it in the session, I usually end up with nothing more than a headache and 1 more attribute in my session. :( I'm developing with an MVC approach, with Struts for more recently developed apps and a similar custom framework for our older apps, but I just can't seem to see a way to get around this problem. I would love it if there were an object like a thisRequestAndTheNextOne object, where attributes would stick around for the current request and subsequent request, and then the controller could get objects from the previous request and determine if it should put them in the new thisRequestAndTheNextOne object for the current request. I don't know if that makes sense to anyone else, but, nevertheless, does anyone have any ideas to do what I'm trying to do? Does anyone else feel my pain? ;) Thanks, -Jeff -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Context.getResource( ) problem
Thanks for the reply Shapira I apologize for sending the same email four times As you noted out it is a Jboss problem not Tomcat's. I got the same error with Jetty . Respect - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 6:11 AM Subject: RE: Context.getResource( ) problem Hi Faisal, It may have been just me, but I got four copies of your message. Please post only once. As to your question: the technical cause for the exception is obvious ;) You can't form a URL to a java.io.ByteArrayInputStream. My guess is something (the TemplateServlet? Is that your servlet or a JBoss one? If it's yours, you'll need to post its code so we can help more) is trying to de-serialize your xml file, while something else is trying to read that same XML file through a URL. I've never seen a URLMappingsXmlDAO error in tomcat before ;) Is it a JBoss internal thing? If so, the JBoss forums might be a better place to post this question. It may also help if you could change the layout pattern for the log file so that you see the class and method where the exceptions occur. Add %m %n to your layout pattern if using log4j... Yoav Shapira Millennium ChemInformatics -Original Message- From: faisal [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 7:39 AM To: [EMAIL PROTECTED] Subject: Context.getResource( ) problem Hi all Recently I run into a problem reguarding Tomcat4.04 and the Context.getResource( ) .I have two XML files in WEB-INF screendefinition_en_US.xml screendefinition_ja_JA.xml .When I try to deploy my application on JbossTomcat the TemplateServlet which is supposed to init and load the screens can't find the XML files and this exactly what I get in Jboss console: 04:26:01,241 INFO [Engine] invoker: init 04:26:01,271 ERROR [STDERR] 4 URLMappingsXmlDAO error: java.net.MalformedURLException: no protocol: java.io.ByteArrayInputStream@4a0ac5 04:26:01,271 ERROR [STDERR] java.net.MalformedURLException: no protocol: java.io.ByteArr Any clue or suggestion please thank u Faisal -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: web.xml tags extensible?
On Thu, 1 Aug 2002, Zhenxin wang wrote: Date: Thu, 1 Aug 2002 10:42:15 -0700 From: Zhenxin wang [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: web.xml tags extensible? Can the tags in web.xml file be extensible? In Servlet 2.3 and earlier, the web application deployment descriptor is not extensible. In Servlet 2.4, validation of the deployment descriptor will be based on XML Schema, so an extensibillity element was defined for precisely the kind of thing your are describing. We want to define some new tags to carry more info about the servlets. See the public draft of the Servlet 2.4 spec for details, particularly Chapter 13. http://www.jcp.org/jsr/detail/154.jsp Thanks! --Zhenxin Wang DoCoMo Labs USA Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]