performance problem with Tomcat 4 + ISAPI + IIS 5
We encounter a real problem of performances on our server. We were able to determinate that the problem comes from the ISAPI filter (neither the webapp nor the hardware nor the tomcat installation...). A more detailed description of the case is available ( with duke dollars ! ;) ) at : http://forum.java.sun.com/thread.jsp?forum=33thread=244516 Has someone had the same problem or got some info ? Regards. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Apache 2.0 and Tomcat 4.0.3 integration help need
As said in the tutorial : There have been reports, however, of problems compiling mod_webapp under Solaris, specifically the libtool step. The error shows itself as several hundred lines of error messages If this should happen, there could be a problem with the combination of linker and compiler being used. Try putting /usr/ucb, /usr/bin, and /usr/ccs/bin at the front of your PATH to fix it. I am now facing this problem. Trying putting those dir. at the front of my PATH shows not work. Is there anyone having the experience to get pass this problem?? My config is Solaris 8, gcc-3.0.4, FOLLOWED all steps in the tutorial What I need to install before trying?? Thx. and Regards. Steve. -Original Message- From: digital synapse [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 11:06 AM To: [EMAIL PROTECTED] Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need I've tried to follow the tutorial by simon at http://www.pubbitch.org/jboss.html, and it seems very detailed however i've run into a snag. when i add the LoadModule webapp_module modules/mod_webapp.so line into httpd.conf from apache2.035 (no i didn't get any errors while compiling the .so) when i try to do apachectl configtest i get the following error: Cannot load /usr/local/apache2/modules/mod_webapp.so into server: /usr/local/apache2/modules/mod_webapp.so: undefined symbol: wa_pool Any ideas anyone? -digitalsy From: Michael Delamere Reply-To: Tomcat Users List To: Tomcat Users List Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need Date: Tue, 23 Apr 2002 20:41:32 +0200 Hi Brandon, No sorry, I´ve been working on linux to get everything working. The next step will be to extend the how-to with virtual hosts. As far as I know, Simon want´s to include this in his how-to. bye Michael Delamere p.s. I just wanted to thank everyone contributing to this topic because it really does make things easier for people who are new to the scene. - Original Message - From: Boon K. Chee To: Sent: Tuesday, April 23, 2002 6:19 PM Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need Dear Michael, Thanks for the information. Yes, I've found his excellent tutorial and managed to set everything up on my Linux machine. BTW, do you know any good tutorial to set things up on Win 2000 or XP? Thanks. Best regards, Brandon ---Original Message--- From: Tomcat Users List Date: Monday, April 22, 2002 02:09:27 PM To: Tomcat Users List Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need Simon Burr has come up with an excellent mini-tutorial: http://www.pubbitch.org/jboss.html I managed to get it set up in no time (almost) with his how-to. bye Michael Delamere - Original Message - From: Boon K. Chee To: Sent: Monday, April 22, 2002 10:59 PM Subject: Apache 2.0 and Tomcat 4.0.3 integration help need Is there anybody who has managed to integrate Apache 2.0 and Tomcat 4.0.3 successfully? I have tried to follow all the instructions, but fail to integrate them on both Win 2000 and Redhat 7.2. I tried both mod_jk and mod_webapp. But Apache will always complain with some errors. I can run both application separately without any problem. Both application is downloaded from apache website from their binary distribution copy. I will appreciate a lot if anyone out there can give me some guidelines. Thanks. sincerely, Brandon -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Accessing Beans within JSP pages use %@ page import=myBean % in your jsp.pages
Steve Hillman wrote: Can anyone tell me how to make a bean available in pages within a subdirectory of ROOT: For example, I can access the bean myBean (installed in WEB-INF\classes) from a page within the ROOT directory but if I try to access the same bean from a page within ROOT/subdirectory I get this error: org.apache.jasper.JasperException: Unable to compile C:\jakarta-tomcat-3.3a\work\DEFAULT\ROOT\subdirectory\myjsppage_1.java:234: Class subdirectory.myBean not found. myBean.class); -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Hi, there i had similar problem , thus within your jsp page use the page import directive ie %@ page import=myBean% as this declare's that your myBean is in the default package. Hey search for the Subjec: Class jsppages.MoniBean not found. A top bloke named Larry Isaacs took the time to reply with a explaination that was digestible and a good point to remeber. Chuck Amadi Systems Programmer Rhaglennydd Systemau -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
webapp-info and security
Hi everybody ! Well Working on SOLARIS8 with Apache1.3.22/Tomcat 4.0.2-Final and Warp 1.0.2 I find the http://MyServer/webapp-info very usefull for many things. I customized the manager to manage my Servlets Zone and it works good with the basic tomcat-users.xml meyhod. I added WebAppInfo /webapp-info in my Apache's httpd.conf. Need to know if there is a way to have the same identication way than manager to get more security on my site. Any help welcome. Jean-Luc B :O) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Question about web.xml
In your servlet section after the servlet-class entity you can put in 0, 1 or more init-param entities ... servlet init-param param-namedns_server/param-name param-valuemyDNS/param-value /init-value ... /servlet ... In your code for the servlet init method you get passed a ServletConfig and that has a method getInitParameter which takes the param-name as a string and returns the param-value also as a string Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 -Original Message- From: IvanLatysh [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 5:39 PM To: Tomcat Apache Subject: Question about web.xml Hi All. I have small problem and I couldn't decide what to do. My application (JSP + Servelt) using dns server to perform dns lookup. I want to put dns server name into some external configuration file for convience. It seems that file web.xml could be used for this. Please help with idea where to put some configuration parameters for application. Sincerely yours, Ivan Latysh. [EMAIL PROTECTED] http://ivan.yourmail.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/02 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Web Service Deployment
Hi All, Facing problem regarding the Environment variables. Couldn't understand the meaning of ${jwsdp.home}, that's why it's giving me the following error when i am trying to deploy a web service. ant build Buildfile: build.xml init: prepare: build: [javac] Compiling 1 source file to /opt/jwsdp-1_0-ea2/docs/tutorial/examples/gs/${jwsdp.home}/docs/tutorial/exa mples/gs/build/WEB-INF/classes BUILD FAILED /opt/jwsdp-1_0-ea2/docs/tutorial/examples/gs/build.xml:57: /opt/jwsdp-1_0-ea2/docs/tutorial/examples/gs/${jwsdp.home}/common/lib not found. Ant help will be appretiated. thanks regards, Amit Kaushik -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat and SSL (keyfile password)
Hello, so, what about the solution for non plain text passwords in the config files. There are the SSL-password and the JDBC-Realm password a.s.o. Günter - Original Message - From: Glenn Parsons [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 10:43 PM Subject: RE: tomcat and SSL (keyfile password) Hello Peter, Forgive my ignorance (perhaps this is why people aren't finding this sort of information), but whatr exactly *IS* the CVS? And *WHERE* is it? Thanks, Glenn At 10:34 PM 4/25/02 +0200, you wrote: Mhhh, there is an updated version of the ssl-howto in the CVS for MONTHS now, that describes the installation of official certs (like Verisign, Thawte, Trustcenter...) step by step. But it is *NOT* in TC 4.03 and it is not on the jakarta-webpage. I simply wonder why? People are dealing with this topic again and again... And I know how frustrating this can get... :-( Peter -Original Message- From: Dave North [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 8:33 PM To: Tomcat Users List Subject: RE: tomcat and SSL (keyfile password) OK, here's what I did (this was using a test versign cert but the procedure is the same for a real production cert): STEP A - generate your private key Pre-req: JDK must be installed 1) cd to $JAVA_HOME/jre/bin 2) run ./keytool -genkey -alias tomcat -keyalg RSA -keystore FULL PATH TO KEYSTORE 3) You will be prompted for a password for the keystore 3) at the prompts, enter: What is your first and last name? [Unknown]: DO NOT USE NAME - ENTER THE NAME OF YOUR MACHINE AS IT'S KNOWN TO VISITORS What is the name of your organizational unit? [Unknown]: WHATEVER YOU LIKE What is the name of your organization? [Unknown]: TYPICALLY COMPANY NAME What is the name of your City or Locality? [Unknown]: YOUR CITY What is the name of your State or Province? [Unknown]: STATE OR PROV What is the two-letter country code for this unit? [Unknown]: COUNTRY CODE 4) You will then be prompted for another password - use the same (ie. Press ENTER) STEP B - Generate a Certificate Request 1) cd to $JAVA_HOME/jre/bin 2) ./keytool -certreq -alias tomcat -file csr.txt -keystore FULL PATH TO SAME KEYSTORE CREATED IN STEP A STEP C - Get the new cert from Verisign www.versign.com has all the info here STEP D - Install the Verisign ROOT CA cert AND your server cert When you get your cert in step C, they will provide you with the root cert 1) cd to $JAVA_HOME/jre/bin 2) ./keytool -import -alias verisign -file FILE THAT CONTAINS THE VERSIGN ROOT CA CERT -keystore PATH TO KEYSTORE 3) ./keytool -import -trustcacerts -alias tomcat -file FILE THAT CONTAINS YOUR CERT FROM VERISIGN -keystore PATH TO KEYSTORE STEP E - Configure an SSL listener for tomcat 1) edit $JAKARTA_HOME/conf/server.xml and add the following: !-- Define an SSL HTTP/1.1 Connector on port 443 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=10 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS keystoreFile=FULL PATH TO KEYSTORE FILE keystorePass=PASSWORD HERE/ /Connector 2) Stop and start the tomcat server -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:29 PM To: Tomcat Users List Subject: Re: tomcat and SSL (keyfile password) Hi Dave ohhh...good to know that. I need to set up the tomcat 4.0.3 with verisign. Can you please send those doc to me ? I appreciate your help thanks in advance BM Dave North wrote: Hello, After a few hours trying to get this working, I've finally got my tomcat server working with a certificate signed by Verisign. This all works great. However, to do this, I need to configure the keyfilePass into the server.xml file. This is bad as our security policy is thou shall not have any passwords in plain text. We also use SSL on our iPlanet server and it prompts at start time for the password (they use the term software token but it's the same). So, the question is: is it possible to have tomcat prompt for this and/or how have others got around keeping this in plain text? BTW: if anyone's interested, I have the complete step-by-step of how I got the versign cert working...the info is out there but it seems to be all over the place. Thanks Dave Dave North SIGNIANT Inc. Trusted Data Transfer Services www.signiant.com Phone:
Mod_jk for apache2.0
Hi All I am using apache 2.0.35 and tomcat 4.0.3 I am able to integrate them on WINNT using mod_jk But I can not find binary of mod_jk for linux. it is not there in (http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/linu x/i386/) the one there is only for apache1.3. Can anyone tell me url to get the bin of mod_jk for linux for apache2.0. Thanks Damnish -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tomcat and SSL (keyfile password)
It's because you've not imported their root level cert...you need to do that before you import your cert. You also need their too level cert in your browser. BTW: I tested all my stuff on JDK 1.3.1 - I have no idea if this will work with earlier versions (based on what you've said though my guess is not!) D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 7:25 PM To: Tomcat Users List; Dave North Subject: Re: tomcat and SSL (keyfile password) Hi dave i resolved this by moving to jdk1.4 but now my browser says it is self signed ..verisign info is not really imported why ?? thanks in advance bm [EMAIL PROTECTED] wrote: Hi Dave thanks for document. Now I got struck when i try to import the verisign certificate. the error mesg is keytool error: java.lang.Exception: Input not an X.509 certificate I attached my certificate also..can you help me please ? it is trial cert from verisign Reg BM Dave North wrote: OK, here's what I did (this was using a test versign cert but the procedure is the same for a real production cert): STEP A - generate your private key Pre-req: JDK must be installed 1) cd to $JAVA_HOME/jre/bin 2) run ./keytool -genkey -alias tomcat -keyalg RSA -keystore FULL PATH TO KEYSTORE 3) You will be prompted for a password for the keystore 3) at the prompts, enter: What is your first and last name? [Unknown]: DO NOT USE NAME - ENTER THE NAME OF YOUR MACHINE AS IT'S KNOWN TO VISITORS What is the name of your organizational unit? [Unknown]: WHATEVER YOU LIKE What is the name of your organization? [Unknown]: TYPICALLY COMPANY NAME What is the name of your City or Locality? [Unknown]: YOUR CITY What is the name of your State or Province? [Unknown]: STATE OR PROV What is the two-letter country code for this unit? [Unknown]: COUNTRY CODE 4) You will then be prompted for another password - use the same (ie. Press ENTER) STEP B - Generate a Certificate Request 1) cd to $JAVA_HOME/jre/bin 2) ./keytool -certreq -alias tomcat -file csr.txt -keystore FULL PATH TO SAME KEYSTORE CREATED IN STEP A STEP C - Get the new cert from Verisign www.versign.com has all the info here STEP D - Install the Verisign ROOT CA cert AND your server cert When you get your cert in step C, they will provide you with the root cert 1) cd to $JAVA_HOME/jre/bin 2) ./keytool -import -alias verisign -file FILE THAT CONTAINS THE VERSIGN ROOT CA CERT -keystore PATH TO KEYSTORE 3) ./keytool -import -trustcacerts -alias tomcat -file FILE THAT CONTAINS YOUR CERT FROM VERISIGN -keystore PATH TO KEYSTORE STEP E - Configure an SSL listener for tomcat 1) edit $JAKARTA_HOME/conf/server.xml and add the following: !-- Define an SSL HTTP/1.1 Connector on port 443 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=10 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS keystoreFile=FULL PATH TO KEYSTORE FILE keystorePass=PASSWORD HERE/ /Connector 2) Stop and start the tomcat server -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:29 PM To: Tomcat Users List Subject: Re: tomcat and SSL (keyfile password) Hi Dave ohhh...good to know that. I need to set up the tomcat 4.0.3 with verisign. Can you please send those doc to me ? I appreciate your help thanks in advance BM Dave North wrote: Hello, After a few hours trying to get this working, I've finally got my tomcat server working with a certificate signed by Verisign. This all works great. However, to do this, I need to configure the keyfilePass into the server.xml file. This is bad as our security policy is thou shall not have any passwords in plain text. We also use SSL on our iPlanet server and it prompts at start time for the password (they use the term software token but it's the same). So, the question is: is it possible to have tomcat prompt for this and/or how have others got around keeping this in plain text? BTW: if anyone's interested, I have the complete step-by-step of how I got the versign cert working...the info is out there but it seems to be all over the place. Thanks Dave Dave North SIGNIANT Inc. Trusted Data Transfer Services www.signiant.com Phone: 613-761-3623 Mobile: 613-294-3231 Fax: 613-761-3629 Email: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe:
RE: tomcat and SSL (keyfile password)
H...are you copying the FULL text of the cert (ie. the BEGIN...END stuff as well?). You need EVERYTHING that VS returns to you. That's all I can think of that might be wrong there. The verisign root cert might not be in the correct format...if so, load it into IE and then export it as a base64 cert (in IE6 Tools-intenet options-Content-certificates-Trusted Root authorities-For Verisign authorized testing...) Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 6:26 PM To: Tomcat Users List Cc: Dave North Subject: Re: tomcat and SSL (keyfile password) Hi Dave thanks for document. Now I got struck when i try to import the verisign certificate. the error mesg is keytool error: java.lang.Exception: Input not an X.509 certificate I attached my certificate also..can you help me please ? it is trial cert from verisign Reg BM Dave North wrote: OK, here's what I did (this was using a test versign cert but the procedure is the same for a real production cert): STEP A - generate your private key Pre-req: JDK must be installed 1) cd to $JAVA_HOME/jre/bin 2) run ./keytool -genkey -alias tomcat -keyalg RSA -keystore FULL PATH TO KEYSTORE 3) You will be prompted for a password for the keystore 3) at the prompts, enter: What is your first and last name? [Unknown]: DO NOT USE NAME - ENTER THE NAME OF YOUR MACHINE AS IT'S KNOWN TO VISITORS What is the name of your organizational unit? [Unknown]: WHATEVER YOU LIKE What is the name of your organization? [Unknown]: TYPICALLY COMPANY NAME What is the name of your City or Locality? [Unknown]: YOUR CITY What is the name of your State or Province? [Unknown]: STATE OR PROV What is the two-letter country code for this unit? [Unknown]: COUNTRY CODE 4) You will then be prompted for another password - use the same (ie. Press ENTER) STEP B - Generate a Certificate Request 1) cd to $JAVA_HOME/jre/bin 2) ./keytool -certreq -alias tomcat -file csr.txt -keystore FULL PATH TO SAME KEYSTORE CREATED IN STEP A STEP C - Get the new cert from Verisign www.versign.com has all the info here STEP D - Install the Verisign ROOT CA cert AND your server cert When you get your cert in step C, they will provide you with the root cert 1) cd to $JAVA_HOME/jre/bin 2) ./keytool -import -alias verisign -file FILE THAT CONTAINS THE VERSIGN ROOT CA CERT -keystore PATH TO KEYSTORE 3) ./keytool -import -trustcacerts -alias tomcat -file FILE THAT CONTAINS YOUR CERT FROM VERISIGN -keystore PATH TO KEYSTORE STEP E - Configure an SSL listener for tomcat 1) edit $JAKARTA_HOME/conf/server.xml and add the following: !-- Define an SSL HTTP/1.1 Connector on port 443 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=10 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS keystoreFile=FULL PATH TO KEYSTORE FILE keystorePass=PASSWORD HERE/ /Connector 2) Stop and start the tomcat server -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:29 PM To: Tomcat Users List Subject: Re: tomcat and SSL (keyfile password) Hi Dave ohhh...good to know that. I need to set up the tomcat 4.0.3 with verisign. Can you please send those doc to me ? I appreciate your help thanks in advance BM Dave North wrote: Hello, After a few hours trying to get this working, I've finally got my tomcat server working with a certificate signed by Verisign. This all works great. However, to do this, I need to configure the keyfilePass into the server.xml file. This is bad as our security policy is thou shall not have any passwords in plain text. We also use SSL on our iPlanet server and it prompts at start time for the password (they use the term software token but it's the same). So, the question is: is it possible to have tomcat prompt for this and/or how have others got around keeping this in plain text? BTW: if anyone's interested, I have the complete step-by-step of how I got the versign cert working...the info is out there but it seems to be all over the place. Thanks Dave Dave North SIGNIANT Inc. Trusted Data Transfer Services www.signiant.com Phone: 613-761-3623 Mobile: 613-294-3231 Fax: 613-761-3629 Email: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands:
XML Parsers on Solaris vs. Windows
Hi all We are wondering why crimson.jar and jaxp.jar is shipped with the windows version of tomcat and Solaris ships with xerces.jar Can anybody explain the differences in the use of Jar files in the common/lib directory? Regards Donie -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_jk1.2.0 with Apache2.0.35 on Solaris8
I have successfully installed Apache2.0.35 and installed mod_jk.so from source. However, I can't access tomcat's jsp from Apache. After investigation from the log and the source code of mod_jk, it is quite strange. It is clear that mod_jk knows there is one rule and one worker at startup. After tracing for the code, there seems to have no problem. However, when there is a hit from Apache. The return of wc_get_worker_for_name returns worker did not found. * error_log of Apache2.0 * [Fri Apr 26 19:46:34 2002] [notice] Apache/2.0.35 (Unix) mod_jk/1.2.0 configured -- resuming normal operations [Fri Apr 26 19:46:41 2002] [warn] [client 192.168.2.249] handler jakarta-servlet not found for: start.jsp ** jk.log of mod_jk [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (170)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (362)]: Into jk_uri_worker_map_t::uri_worker_map_open [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (383)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (286)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /sso/.jsp=ajp13s108 was added [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (395)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (409)]: jk_uri_worker_map_t::uri_worker_map_open, done [Fri Apr 26 19:46:34 2002] [jk_worker.c (88)]: Into wc_open [Fri Apr 26 19:46:34 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Fri Apr 26 19:46:34 2002] [jk_worker.c (228)]: build_worker_map, creating worker ajp13s108 [Fri Apr 26 19:46:34 2002] [jk_worker.c (148)]: Into wc_create_worker [Fri Apr 26 19:46:34 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance ajp13s108 of ajp13 [Fri Apr 26 19:46:34 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Fri Apr 26 19:46:34 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init ajp13s108 [Fri Apr 26 19:46:34 2002] [jk_ajp_common.c (1174)]: Into jk_worker_t::validate [Fri Apr 26 19:46:34 2002] [jk_ajp_common.c (1194)]: In jk_worker_t::validate for worker ajp13s108 contact is 192.168.1.108:8009 [Fri Apr 26 19:46:34 2002] [jk_ajp_common.c (1222)]: Into jk_worker_t::init [Fri Apr 26 19:46:34 2002] [jk_worker.c (187)]: wc_create_worker, done [Fri Apr 26 19:46:34 2002] [jk_worker.c (238)]: build_worker_map, removing old ajp13s108 worker [Fri Apr 26 19:46:34 2002] [jk_worker.c (250)]: build_worker_map, done [Fri Apr 26 19:46:34 2002] [jk_worker.c (111)]: wc_open, done 1 [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/sso/start.jsp' [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (529)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13s108 - *.jsp [Fri Apr 26 19:46:41 2002] [mod_jk.c (1222)]: Into handler r-proxyreq=0 r-handler=jakarta-servlet r-notes=1279808 worker=ajp13s108 [Fri Apr 26 19:46:41 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13s108 [Fri Apr 26 19:46:41 2002] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/error/HTTP_INTERNAL_SERVER_ERROR.html.var' [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (570)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/error/include/top.html' [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (570)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/error/include/spacer.html' [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (570)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/error/include/bottom.html' [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (570)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/error/contact.html.var' [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (570)]:
RE: tomcat/apache with ALIASES (Was canonical names)
I've run into a similar problem and never came to a solid conclusion. I had setup mod_webapp connector between Apache/Tomcat and whenever I accessed dynamic content my URL would get rewritten to the value of the ServerName (in httpd.conf). I think it has something to do with UseCanonicalName setting (also in httpd.conf) but I'm really not sure. I didn't have any Host settings (in server.xml); I didn't even have a Context setting and just let Tomcat autoload my application. I suppose this doesn't help much but I wanted to add a data point. K. From: Brian Bernardo [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: tomcat/apache with ALIASES (Was canonical names) Date: Thu, 25 Apr 2002 09:50:22 -0700 First of all, I am very proficient with DNS; that was not the question. I want users who go to http://name.domain/webapps to have the same webappdeployment as http://name2.domain/webapps. It is important that however they got there (domain prefix) be maintained throughout their session. This works fine for static content, but as soon as anyone goes to http://name?.domain/webapps they get redirected over to http://ServerName/webapps. ServerName is defined within the apache httpd.conf file (same with vitualhost name). That is not good. There has to be a way to have either virtual hosts or some method for tomcat to serve the same dynamic content regardless of how they got there without redirecting. Any one know how to accomplish this? B __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Mod_jk for apache2.0
On Fri, Apr 26, 2002 at 04:34:19PM +0530, Damnish wrote: Can anyone tell me url to get the bin of mod_jk for linux for apache2.0. Don't do it! IME, mod_jk for apache2 on UNIX is fails to connect and mod_jk2 sends apache into an infinte loop. mod_webapp appears to work properly, though Cheers, Simon -- You can't have everything... where would you put it? -- Steven Wright -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Apache 2 TomCat 4 Integration Troubles...
Hi Syntax error on line 173 of D:/Server/Apache Group/ Apache2/conf/http.conf Cannot load D:\Server\Apache Group\Apache2\./modules/mod_webapp.so into server: The specified module could not be found... Here is the error message I got whenever I add the following line to my httpd: LoadModule webapp_module modules/mod_webapp.so. But what is suprising me is that in the other LoadModule lines of the default httpd are using exactly the same syntaxis, for example I find: LoadModule userdir_module modules/mod_userdir.so which is working fine. Nonetheless I tried to change the slash to a backslash (LoadModule webapp_modules modules\mod_webapp.so) but that doesn't change the error message. I double checked and have the mod_webapp.so file along in my modules directory... Any thought? Where is the ./ coming from? Any help appreciated? Sincerely, Frederick Aubert -- !!! PLEASE UPDATE your address book, my NEW EMAIL is [EMAIL PROTECTED] !!! Member of the Warlords II World Tournament Organizers Team --- (`-''-/).___..--''`-._ `6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,'[EMAIL PROTECTED] (il),-'' (li),' ((!.-' --- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Apache login attempts
I know this is not a Tomcat problem but does anyone know how I can configure Apache to allow a user more than on login attempt. Many thanks Jim. PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Please Help (Apache Tomcat services and Runtime.getRuntime().exec ) ??
Hi, i installed Tomcat4.03 on windows 2000 advanced server. if i have in my jsp code : % Process p=Runtime.getRuntime().exec(Myexe) % when i used the Apache Tomcat services, this command did not worked if i started the startup batch file and stoped this services the command worked properly please any help ??? _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.1: Why?
I saw there is Tomcat 4.1 documentation at http://jakarta.apache.org/tomcat/index.html The question is: does such version really exist? What should be the difference with 4.0? Why are there so much releases (3.2, 3.3, 4.0, 4.1 ) actively developed? Thanks. Alessandro Staltari -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How to detect Timeout and take action consequently
I haven't been able to do that only by checking if session is null. I found out that the second test works better On Thursday 25 April 2002 16:13, Jacob Kjome wrote: That's fine, but why would you need to warn the user that the session is almost expired? As long as they are active any time within the 15 minutes they will have another 15 minutes from the time last accessed. This isn't really something you need to keep track of. The only thing you really need to worry about is to have checks for session==null when you are using the session object and, if so, do the appropriate thing. If you code with proper null checks, you should never run into a NullPointerException. Jake At 03:25 PM 4/25/2002 +0200, you wrote: I have found the answer so I give the contribution : //put this code in every page with a @page include % long timeout = (new Date()).getTime() - session.getLastAccessedTime(); if(session==null || (timeout session.getMaxInactiveInterval()*1000)) { throw new MyException(Session has expired : A HREF=' + response.encodeURL(login.jsp) + 'reconnect/A); } % then catch the exception in error.jsp and print the message On Thursday 25 April 2002 10:16, Raphael Di Cicco wrote: Hi my web application has a timeout of 15 minutes. I'm trying to figure out how to check whether there is a timeout, and in this case warn the user to come back to the login page (instead of a horrible NullPointerException). Did anyone come up with a JSP that's working with this ? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Apache 2, Tomcat 4 and mod_jk2
The example for mod_jk2 shows a worker's config for AJP13 but I thought that jk2 is AJP14? Anthony Thanks to Michael Delamere and Pascal Forget, I'm happy to shout out that there's a HOWTO for setting up Apache 2, mod_jk2 and Tomcat on Linux (and therefore probably other UNIX flavours) It's linked from http://www.pubbitch.org/jboss Regards, Simon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat + SOAP
Hi, I've followed all the steps in Apache SOAP manual, but when I try to run the calculator example, I get the folowing error: java.lang.ClassNotFoundException: org.apache.soap.server.InvokeBSK ... Any idea?!! thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Apache 2, Tomcat 4 and mod_jk2
Well there appears to be a jk_ajp14_worker. I wonder if this is the reason for mod_jk2 being so unstable at present. It might be worth a test to see if it works better with AJP14 (if at all) instead of AJP13. bye Michael Delamere - Original Message - From: Anthony W. Marino [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 26, 2002 4:09 PM Subject: Re: Apache 2, Tomcat 4 and mod_jk2 The example for mod_jk2 shows a worker's config for AJP13 but I thought that jk2 is AJP14? Anthony Thanks to Michael Delamere and Pascal Forget, I'm happy to shout out that there's a HOWTO for setting up Apache 2, mod_jk2 and Tomcat on Linux (and therefore probably other UNIX flavours) It's linked from http://www.pubbitch.org/jboss Regards, Simon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Please Help (Apache Tomcat services and Runtime.getRuntime().exec ) ??
Hi, Do you have a relative path in the exec call? AFAIK, windows services start running in the c:\WINNT\system32 folder (unless the tomcat service changes it when running, does anybody know if that's the case?), so your exec call will fail unless it uses an absolute path. Hope it helps, Ion -Mensaje original- De: Tarek gh [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 26 de abril de 2002 15:09 Para: [EMAIL PROTECTED] Asunto: Please Help (Apache Tomcat services and Runtime.getRuntime().exec ) ?? Hi, i installed Tomcat4.03 on windows 2000 advanced server. if i have in my jsp code : % Process p=Runtime.getRuntime().exec(Myexe) % when i used the Apache Tomcat services, this command did not worked if i started the startup batch file and stoped this services the command worked properly please any help ??? _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Web Service Deployment
${jwsdp.home} is the ant format for a property pointing to the installation directory of the Web Services Developer pack. check your ant file for a line like this: property name=jwsdp.homevalue=c:\dev\jwsdp-1_0-ea2/ obviously, replace c:\dev\jwsdp-1_0-ea2 with the path to your Web Services Dev Pack install directory. hope that helps -Original Message- From: Amit Kaushik [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 2:02 PM To: tomcat Subject: Web Service Deployment Hi All, Facing problem regarding the Environment variables. Couldn't understand the meaning of ${jwsdp.home}, that's why it's giving me the following error when i am trying to deploy a web service. ant build Buildfile: build.xml init: prepare: build: [javac] Compiling 1 source file to /opt/jwsdp-1_0-ea2/docs/tutorial/examples/gs/${jwsdp.home}/docs/tutorial/exa mples/gs/build/WEB-INF/classes BUILD FAILED /opt/jwsdp-1_0-ea2/docs/tutorial/examples/gs/build.xml:57: /opt/jwsdp-1_0-ea2/docs/tutorial/examples/gs/${jwsdp.home}/common/lib not found. Ant help will be appretiated. thanks regards, Amit Kaushik -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Apache 2, Tomcat 4 and mod_jk2
I just found an interesting post here about the ajp14 connector. At this point though no testing had been done on apache2 :-). http://archives2.real-time.com/pipermail/tomcat-devel/2001-June/018332.html bye Michael Delamere - Original Message - From: Michael Delamere [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 26, 2002 4:30 PM Subject: Re: Apache 2, Tomcat 4 and mod_jk2 Well there appears to be a jk_ajp14_worker. I wonder if this is the reason for mod_jk2 being so unstable at present. It might be worth a test to see if it works better with AJP14 (if at all) instead of AJP13. bye Michael Delamere - Original Message - From: Anthony W. Marino [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 26, 2002 4:09 PM Subject: Re: Apache 2, Tomcat 4 and mod_jk2 The example for mod_jk2 shows a worker's config for AJP13 but I thought that jk2 is AJP14? Anthony Thanks to Michael Delamere and Pascal Forget, I'm happy to shout out that there's a HOWTO for setting up Apache 2, mod_jk2 and Tomcat on Linux (and therefore probably other UNIX flavours) It's linked from http://www.pubbitch.org/jboss Regards, Simon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat/apache with ALIASES (Was canonical names)
h... have you tried Apache's ServerAlias Directive? I know this works with static content, but I'm not sure if mod_webapp respects it or not.. VirtualHost 192.168.1.1 ServerName blah1.blah.com ServerAlias blah2.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost Ken Brian Bernardo wrote: While that technically works, it launches a separate tomcat instance within the single JVM instance. Watch the logs in catalina.out and you see that for each WebAppDeploy line a new instance is launched. This offers functionality, but sharing resources is never a good idea if you want any scalability. This site is expected to get 550 concurrent sessions at any time. This will not work out in such a demanding environment. Basically the line: Thu Apr 25 05:22:07 : 204 : TRACE : system : targetHost :bt1.domain.com Suggests that tomcat launches using the one instance per targetHost. If you have one WebAppDeploy and regardless of how you got there (proxy, mod_rewrite, virtual hosts etc) once you access any resource from the webapp directory, you get forwarded to http://targetHost/webapp and you lose the user supplied prefix (bad thing). Any other suggestions out there? There has to be a way to restrict (or add) more than one targetHost for tomcat to allow several access methods. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:02 PM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) Does something like this work? - NameVirtualHost 192.168.1.1 VirtualHost 192.168.1.1 ServerName blah1.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost VirtualHost 192.168.1.1 ServerName blah2.blah.com DocumentRoot /blah WebAppConnection conn2 warp localhost:8008 WebAppDeploy webappconn2 /test /VirtualHost Ken Brian Bernardo wrote: First of all, I am very proficient with DNS; that was not the question. I want users who go to http://name.domain/webapps to have the same webappdeployment as http://name2.domain/webapps. It is important that however they got there (domain prefix) be maintained throughout their session. This works fine for static content, but as soon as anyone goes to http://name?.domain/webapps they get redirected over to http://ServerName/webapps. ServerName is defined within the apache httpd.conf file (same with vitualhost name). That is not good. There has to be a way to have either virtual hosts or some method for tomcat to serve the same dynamic content regardless of how they got there without redirecting. Any one know how to accomplish this? B -Original Message- From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) No. I use A and CNAMES depending on the situation. Do you have proper aliases set up in Apache? Joe - Original Message - From: Oki DZ [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 2:28 AM Subject: Re: tomcat/apache with ALIASES (Was canonical names) On 04/25 15:33 Hamish Marson wrote: What you're using (Or trying to use) is aliases... The DNS records (CNAME etc al) are named after what they point AT (or more accurately) resolve to. Thus the CNAME record (Canonical name) points or resolves to the REAL name of the host. (Literally, the dictionary term for canonical is the real one). Just like the A record resolves TO the address... I think I have the same problems... So, how do you set up virtual hosts in Tomcat? I have tried to have Host ../ elements in a Tomcat service and I used CNAMEs in them. It seemed that any hosts in the service would resolve to the same contexts contained in the service (even though I have supplied different URLs; ie: different FQDNs). I guess the answer would be: just use A records (that point to the same IP number). Is it correct...? Oki -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL
Re: Apache 2, Tomcat 4 and mod_jk2
Me again :-) An interesting thing is that the source-files at cvs seem to be different to the ones that you can download from the jakarta site. For example. in the tar archive which you can download from the jakarta site, the directory: src/jk/native2/server/apache2 contains a source-file called mod_jk.c whereas the same location on the cvs server has a file called mod_jk2.c. Although this doesn´t mean much, it at least shows some form of a change :-). It might be worth trying to compile this version and see if it runs more reliably. I´m going to give it a go. bye Michael Delamere - Original Message - From: Michael Delamere [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 26, 2002 5:03 PM Subject: Re: Apache 2, Tomcat 4 and mod_jk2 I just found an interesting post here about the ajp14 connector. At this point though no testing had been done on apache2 :-). http://archives2.real-time.com/pipermail/tomcat-devel/2001-June/018332.html bye Michael Delamere - Original Message - From: Michael Delamere [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 26, 2002 4:30 PM Subject: Re: Apache 2, Tomcat 4 and mod_jk2 Well there appears to be a jk_ajp14_worker. I wonder if this is the reason for mod_jk2 being so unstable at present. It might be worth a test to see if it works better with AJP14 (if at all) instead of AJP13. bye Michael Delamere - Original Message - From: Anthony W. Marino [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 26, 2002 4:09 PM Subject: Re: Apache 2, Tomcat 4 and mod_jk2 The example for mod_jk2 shows a worker's config for AJP13 but I thought that jk2 is AJP14? Anthony Thanks to Michael Delamere and Pascal Forget, I'm happy to shout out that there's a HOWTO for setting up Apache 2, mod_jk2 and Tomcat on Linux (and therefore probably other UNIX flavours) It's linked from http://www.pubbitch.org/jboss Regards, Simon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat/apache with ALIASES (Was canonical names)
I just tried this, and it works! Also, 'UseCanonicalName' is On. Ken Ken Anderson wrote: h... have you tried Apache's ServerAlias Directive? I know this works with static content, but I'm not sure if mod_webapp respects it or not.. VirtualHost 192.168.1.1 ServerName blah1.blah.com ServerAlias blah2.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost Ken Brian Bernardo wrote: While that technically works, it launches a separate tomcat instance within the single JVM instance. Watch the logs in catalina.out and you see that for each WebAppDeploy line a new instance is launched. This offers functionality, but sharing resources is never a good idea if you want any scalability. This site is expected to get 550 concurrent sessions at any time. This will not work out in such a demanding environment. Basically the line: Thu Apr 25 05:22:07 : 204 : TRACE : system : targetHost :bt1.domain.com Suggests that tomcat launches using the one instance per targetHost. If you have one WebAppDeploy and regardless of how you got there (proxy, mod_rewrite, virtual hosts etc) once you access any resource from the webapp directory, you get forwarded to http://targetHost/webapp and you lose the user supplied prefix (bad thing). Any other suggestions out there? There has to be a way to restrict (or add) more than one targetHost for tomcat to allow several access methods. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:02 PM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) Does something like this work? - NameVirtualHost 192.168.1.1 VirtualHost 192.168.1.1 ServerName blah1.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost VirtualHost 192.168.1.1 ServerName blah2.blah.com DocumentRoot /blah WebAppConnection conn2 warp localhost:8008 WebAppDeploy webappconn2 /test /VirtualHost Ken Brian Bernardo wrote: First of all, I am very proficient with DNS; that was not the question. I want users who go to http://name.domain/webapps to have the same webappdeployment as http://name2.domain/webapps. It is important that however they got there (domain prefix) be maintained throughout their session. This works fine for static content, but as soon as anyone goes to http://name?.domain/webapps they get redirected over to http://ServerName/webapps. ServerName is defined within the apache httpd.conf file (same with vitualhost name). That is not good. There has to be a way to have either virtual hosts or some method for tomcat to serve the same dynamic content regardless of how they got there without redirecting. Any one know how to accomplish this? B -Original Message- From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) No. I use A and CNAMES depending on the situation. Do you have proper aliases set up in Apache? Joe - Original Message - From: Oki DZ [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 2:28 AM Subject: Re: tomcat/apache with ALIASES (Was canonical names) On 04/25 15:33 Hamish Marson wrote: What you're using (Or trying to use) is aliases... The DNS records (CNAME etc al) are named after what they point AT (or more accurately) resolve to. Thus the CNAME record (Canonical name) points or resolves to the REAL name of the host. (Literally, the dictionary term for canonical is the real one). Just like the A record resolves TO the address... I think I have the same problems... So, how do you set up virtual hosts in Tomcat? I have tried to have Host ../ elements in a Tomcat service and I used CNAMEs in them. It seemed that any hosts in the service would resolve to the same contexts contained in the service (even though I have supplied different URLs; ie: different FQDNs). I guess the answer would be: just use A records (that point to the same IP number). Is it correct...? Oki -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To
conn name and pw in JDBC realm
Hi, I've just got a JDBC Realm working with my web app but I'm a bit confused at to why it still works even when I don't specify connectionName and connectionPassword? Is it something to do with the fact that the userid and password with which I am logged on to w2k is the same as the userid and password to access my db? Thanks for any advice. Cheers, Steve. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat + SOAP
Silly question, but have you put soap.jar on the classpath in both your soap client app and tomcat.bat? Regards, Raj -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 15:22 To: Tomcat Users List Subject: Tomcat + SOAP Hi, I've followed all the steps in Apache SOAP manual, but when I try to run the calculator example, I get the folowing error: java.lang.ClassNotFoundException: org.apache.soap.server.InvokeBSK ... Any idea?!! thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat + SOAP
Yes, I have, and that's what dissapoints me, I don't know why, perhaps it's a version problem, can it be possible? - Original Message - From: Raj Chanian [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, April 26, 2002 12:18 PM Subject: RE: Tomcat + SOAP Silly question, but have you put soap.jar on the classpath in both your soap client app and tomcat.bat? Regards, Raj -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 15:22 To: Tomcat Users List Subject: Tomcat + SOAP Hi, I've followed all the steps in Apache SOAP manual, but when I try to run the calculator example, I get the folowing error: java.lang.ClassNotFoundException: org.apache.soap.server.InvokeBSK ... Any idea?!! thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Aliasing a servlet in Apache 1.3, TomCat 3.3 with mod_jk/mod_rewrite
Hi, I'm trying to get requests of the form http://server/ServletName/extraPath/example.html?query (internally) forwarded to http://server/servlet/ServletName/extraPath/example.html?query in my Apache webserver. Tomcat is up and running smoothly and the second URL already works. Forwarding /ServletName to TomCat is easy through JkMount, but it doesn't seem to work when trying to forward extra path info. In essence JkMount /ServletName ajp12 would be have to be changed to JkMount /ServletName/* ajp12 but this obviously didn't work. I can't find any reference to the actual syntax used by JkMount, but I suspect it might not be suffcient to handle this kind of forwarding. Another option would be to work with the rewrite module in Apache, which I've tried with: IfModule mode_rewrite.c RewriteEngine on RewriteLog logs/rewrite.log RewriteLogLevel 9 RewriteRule /ServletName(.*) /servlet/ServletName$1 [PT] /IfModule and a couple of variants on the last line. Oddly enough, the rewrite.log file is nowhere to be found... And again no succes. The rewrite module and the proxy module are being loaded (is there a way to test this?) with both LoadModule and AddModule commands. I've seen similar questions and solutions here and there, but none of which adresses the extra path info. It would be very interesting to get this working, this way it would be possible to completely hide a server side implementation. Thanks in advance! Thomas -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Apache 2, Tomcat 4 and mod_jk2
The workers can be called anything you want them to be (for example, I use tomcat1) What tends to happen is that people take their (working) apache 1.3.x + mod_jk combo and use the same config files with apache 2.x and mod_jk2. On Fri, Apr 26, 2002 at 10:09:42AM -0400, Anthony W. Marino wrote: The example for mod_jk2 shows a worker's config for AJP13 but I thoug= ht=20 that jk2 is AJP14? Anthony Thanks to Michael Delamere and Pascal Forget, I'm happy to shout out that there's a HOWTO for setting up Apache 2, mod_jk2 and Tomcat on Linux (and therefore probably other UNIX flavours) It's linked from http://www.pubbitch.org/jboss Cheers, Simon -- You can have my Unix system when you pry it from my cold, dead fingers. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Help using JDBC realm with MySQL
I had the same problem in Windows 2000 and InnoDB tables, the relaxautocommit worked but the parameter has a leading UNDERSCORE: jdbc:mysql://localhost/peopleshare?_relaxAutocommit=trueetc... I found it by code inspection. I don't know if it works under Linux, I'm still fighting with access control problems, but it should work. Shawn A. Wilson wrote: Well, I tried adding the relaxAutocommit=true parameter but I still get the same message. Arg... this is not making any sense. Do my tables need to be of a specific type? I created them without any options so they should be MyISAM. -shawn http://www.shawn-wilson.com On Thu, 11 Apr 2002, Dennis Doubleday wrote: Add the following parameter to your connection URL: relaxAutocommit=true So it should look like: jdbc:mysql://localhost/peopleshare?relaxAutocommit=trueuser=hiddenpass word=hidden -Original Message- From: Shawn A. Wilson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:33 PM To: Tomcat Users List Subject: Re: Help using JDBC realm with MySQL Does nobody know a solution to get around this problem? I have received no replies and I desparately need to know how to get around the Cannot disable AUTO_COMMIT error with JDBC realms and MySQL. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Fabrizio Giudici, Ph.D. - Senior Consultant Java(TM) Architect, Mentor, Senior Writer email [EMAIL PROTECTED] mobile +39 3481506941 - fax +39 (0)2700510536 Member of ADI (Italian Ph.D. Association)
How to enforce SSL???
Hi, I'm working with a standalone Tomcat 4.0.2 on W2K. I've just gone through the SSL How To and created myself a little certificate and got everything working over SSL. I can access all my pages over HTTP or HTTPS. My question now is how to enforce the use of HTTPS for a given page. The SSL How To says that any page that absolutely requires SSL should check the protocol of the request and take the appropriate action, by which I presume it means that you code a redirect to the same page but over https. Is this the standard way to enforce it though. I sort of imagined that you would be able to say that any page in a certain directory should be served over HTTPS and just let tomcat handle it for you? Thanks for any help, Have a great weekend everyone! Cheers, Steve. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How to enforce SSL???
Check the value of request.isSecure() and Do The Right Thing ;) It's the app that cares whether the page is secure. On Fri, Apr 26, 2002 at 05:04:01PM +0100, Steve D George wrote: Hi, I'm working with a standalone Tomcat 4.0.2 on W2K. I've just gone through the SSL How To and created myself a little certificate and got everything working over SSL. I can access all my pages over HTTP or HTTPS. My question now is how to enforce the use of HTTPS for a given page. The SSL How To says that any page that absolutely requires SSL should check the protocol of the request and take the appropriate action, by which I presume it means that you code a redirect to the same page but over https. Is this the standard way to enforce it though. I sort of imagined that you would be able to say that any page in a certain directory should be served over HTTPS and just let tomcat handle it for you? Cheers, Simon -- 'I went to a restaurant that serves breakfast at any time. So I ordered French Toast during the Renaissance.' --- Steven Wright -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat + SOAP
Hi Raj, I'm already using both jars, but still gives me the same error, damn it. any clue? - Original Message - From: Raj Chanian [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, April 26, 2002 12:58 PM Subject: RE: Tomcat + SOAP I'm using soap-2_2 with tomcat-3.2.3 and jdk1.3.1. In addition to the Apache Manuals, I also required(this was not in the documentation) mail.jar from javamail-1.2 activation.jar from jaf-1.0.1 Remember to put these in both classpaths mentioned above, to atleast get soapfaults back from the response if not anything else. Atleast then you will no you are talking to soap. Regards, Raj -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 16:38 To: Tomcat Users List Subject: Re: Tomcat + SOAP Yes, I have, and that's what dissapoints me, I don't know why, perhaps it's a version problem, can it be possible? - Original Message - From: Raj Chanian [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, April 26, 2002 12:18 PM Subject: RE: Tomcat + SOAP Silly question, but have you put soap.jar on the classpath in both your soap client app and tomcat.bat? Regards, Raj -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 15:22 To: Tomcat Users List Subject: Tomcat + SOAP Hi, I've followed all the steps in Apache SOAP manual, but when I try to run the calculator example, I get the folowing error: java.lang.ClassNotFoundException: org.apache.soap.server.InvokeBSK ... Any idea?!! thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to enforce SSL???
You can do this by setting up a connector for your application in server.xml that is HTTPS only. Dave -Original Message- From: Steve D George [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 12:04 PM To: [EMAIL PROTECTED] Subject: How to enforce SSL??? Hi, I'm working with a standalone Tomcat 4.0.2 on W2K. I've just gone through the SSL How To and created myself a little certificate and got everything working over SSL. I can access all my pages over HTTP or HTTPS. My question now is how to enforce the use of HTTPS for a given page. The SSL How To says that any page that absolutely requires SSL should check the protocol of the request and take the appropriate action, by which I presume it means that you code a redirect to the same page but over https. Is this the standard way to enforce it though. I sort of imagined that you would be able to say that any page in a certain directory should be served over HTTPS and just let tomcat handle it for you? Thanks for any help, Have a great weekend everyone! Cheers, Steve. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tomcat/apache with ALIASES (Was canonical names)
Can you send me your httpd.conf file then, because I still get the same problem following your suggestion below. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) I just tried this, and it works! Also, 'UseCanonicalName' is On. Ken Ken Anderson wrote: h... have you tried Apache's ServerAlias Directive? I know this works with static content, but I'm not sure if mod_webapp respects it or not.. VirtualHost 192.168.1.1 ServerName blah1.blah.com ServerAlias blah2.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost Ken Brian Bernardo wrote: While that technically works, it launches a separate tomcat instance within the single JVM instance. Watch the logs in catalina.out and you see that for each WebAppDeploy line a new instance is launched. This offers functionality, but sharing resources is never a good idea if you want any scalability. This site is expected to get 550 concurrent sessions at any time. This will not work out in such a demanding environment. Basically the line: Thu Apr 25 05:22:07 : 204 : TRACE : system : targetHost :bt1.domain.com Suggests that tomcat launches using the one instance per targetHost. If you have one WebAppDeploy and regardless of how you got there (proxy, mod_rewrite, virtual hosts etc) once you access any resource from the webapp directory, you get forwarded to http://targetHost/webapp and you lose the user supplied prefix (bad thing). Any other suggestions out there? There has to be a way to restrict (or add) more than one targetHost for tomcat to allow several access methods. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:02 PM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) Does something like this work? - NameVirtualHost 192.168.1.1 VirtualHost 192.168.1.1 ServerName blah1.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost VirtualHost 192.168.1.1 ServerName blah2.blah.com DocumentRoot /blah WebAppConnection conn2 warp localhost:8008 WebAppDeploy webappconn2 /test /VirtualHost Ken Brian Bernardo wrote: First of all, I am very proficient with DNS; that was not the question. I want users who go to http://name.domain/webapps to have the same webappdeployment as http://name2.domain/webapps. It is important that however they got there (domain prefix) be maintained throughout their session. This works fine for static content, but as soon as anyone goes to http://name?.domain/webapps they get redirected over to http://ServerName/webapps. ServerName is defined within the apache httpd.conf file (same with vitualhost name). That is not good. There has to be a way to have either virtual hosts or some method for tomcat to serve the same dynamic content regardless of how they got there without redirecting. Any one know how to accomplish this? B -Original Message- From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) No. I use A and CNAMES depending on the situation. Do you have proper aliases set up in Apache? Joe - Original Message - From: Oki DZ [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 2:28 AM Subject: Re: tomcat/apache with ALIASES (Was canonical names) On 04/25 15:33 Hamish Marson wrote: What you're using (Or trying to use) is aliases... The DNS records (CNAME etc al) are named after what they point AT (or more accurately) resolve to. Thus the CNAME record (Canonical name) points or resolves to the REAL name of the host. (Literally, the dictionary term for canonical is the real one). Just like the A record resolves TO the address... I think I have the same problems... So, how do you set up virtual hosts in Tomcat? I have tried to have Host ../ elements in a Tomcat service and I used CNAMEs in them. It seemed that any hosts in the service would resolve to the same contexts contained in the service (even though I have supplied different URLs; ie: different FQDNs). I guess the answer would be: just use A records (that point to the same IP number). Is it correct...? Oki -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] --
RE: Tomcat + SOAP
I'm using soap-2_2 with tomcat-3.2.3 and jdk1.3.1. In addition to the Apache Manuals, I also required(this was not in the documentation) mail.jar from javamail-1.2 activation.jar from jaf-1.0.1 Remember to put these in both classpaths mentioned above, to atleast get soapfaults back from the response if not anything else. Atleast then you will no you are talking to soap. Regards, Raj -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 16:38 To: Tomcat Users List Subject: Re: Tomcat + SOAP Yes, I have, and that's what dissapoints me, I don't know why, perhaps it's a version problem, can it be possible? - Original Message - From: Raj Chanian [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, April 26, 2002 12:18 PM Subject: RE: Tomcat + SOAP Silly question, but have you put soap.jar on the classpath in both your soap client app and tomcat.bat? Regards, Raj -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 15:22 To: Tomcat Users List Subject: Tomcat + SOAP Hi, I've followed all the steps in Apache SOAP manual, but when I try to run the calculator example, I get the folowing error: java.lang.ClassNotFoundException: org.apache.soap.server.InvokeBSK ... Any idea?!! thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
WAR deployment
When I place myapp.war in the /webapps directory and do not put a context entry in the server.xml, the app unpacks when Tomcat starts and works fine. When I put a context entry into the server.xml, the app does NOT unpack, and does not work. 1. Is it possible to access the application in the war file WITHOUT unpacking? 2. Where should the war file be placed to deploy/undeploy using the manager application? 3. If I deploy using the manager application, does this unpack it, or make it accessible as a packed war file? 4. What context entry should I use for /myapp to access this packed war file? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
tomcat doesn't see javabean inside .jar
Hi, I made a test javabean (HelloBean) which is part of package called br.eti.macaiba.test.bean When I put the directory structure of the package in $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/ there is no problem. But when I try to put the jar file in $CATALINA_HOME/webapps/ROOT/WEB-INF/lib/ I receive the error message below: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Does anyone have any idea ? Thanks In Advance, Joao Macaiba. PS: Below are the files and full error message: --- BEGIN : HelloBean.java --- package br.eti.macaiba.test.bean; public class HelloBean implements java.io.Serializable { private String name; HelloBean() { name = World; } public String getName() { return name; } public void setName(String n) { name = n; } } --- END : HelloBean.java --- --- BEGIN : HelloBean.jsp --- html headtitleThis is the HelloBean example/title/head body jsp:useBean id=hello class=br.eti.macaiba.test.bean.HelloBean/ jsp:setProperty name=hello property=name param=name/ Hello, jsp:getProperty name=hello property=name/ ! /body /html --- END : HelloBean.jsp --- --- BEGIN : jar -xvf macaiba.jar --- created: META-INF/ extracted: META-INF/MANIFEST.MF created: br/ created: br/eti/ created: br/eti/macaiba/ created: br/eti/macaiba/test/ created: br/eti/macaiba/test/bean/ extracted: br/eti/macaiba/test/bean/HelloBean.class --- END : jar -xvf macaiba.jar --- --- BEGIN : dump of tomcat error message --- Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: class br.eti.macaiba.test.bean.HelloBean : java.lang.IllegalAccessException: Class java.beans.Beans can not access a member of class br.eti.macaiba.test.bean.HelloBean with modifiers at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463) at org.apache.jsp.HelloBean$jsp._jspService(HelloBean$jsp.java:104) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at
Re: mod_jk1.2.0 with Apache2.0.35 on Solaris8
Here`s my worker.properties file workers.tomcat_home=$CATALINA_HOME workers.java_home=$JAVA_HOME ps=/ worker.list=ajp12, ajp13 worker.ajp13.port8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 I think maybe your ajc13 declarations may be a little funky, why the s108 ? LoadModule jk_module libexec/apache/mod_jk.so AddModule mod_jk.c IfModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile logs/jk.log JkLogLevel warn JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /examples/* ajp13 /IfModule Everything is the same except the ajp13. I am much happier with mod_webapp. Suggest you give it a try. Adrian Steve Wong wrote: I have successfully installed Apache2.0.35 and installed mod_jk.so from source. However, I can't access tomcat's jsp from Apache. After investigation from the log and the source code of mod_jk, it is quite strange. It is clear that mod_jk knows there is one rule and one worker at startup. After tracing for the code, there seems to have no problem. However, when there is a hit from Apache. The return of wc_get_worker_for_name returns worker did not found. * error_log of Apache2.0 * [Fri Apr 26 19:46:34 2002] [notice] Apache/2.0.35 (Unix) mod_jk/1.2.0 configured -- resuming normal operations [Fri Apr 26 19:46:41 2002] [warn] [client 192.168.2.249] handler jakarta-servlet not found for: start.jsp ** jk.log of mod_jk [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (170)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (362)]: Into jk_uri_worker_map_t::uri_worker_map_open [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (383)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (286)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /sso/.jsp=ajp13s108 was added [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (395)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Fri Apr 26 19:46:34 2002] [jk_uri_worker_map.c (409)]: jk_uri_worker_map_t::uri_worker_map_open, done [Fri Apr 26 19:46:34 2002] [jk_worker.c (88)]: Into wc_open [Fri Apr 26 19:46:34 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Fri Apr 26 19:46:34 2002] [jk_worker.c (228)]: build_worker_map, creating worker ajp13s108 [Fri Apr 26 19:46:34 2002] [jk_worker.c (148)]: Into wc_create_worker [Fri Apr 26 19:46:34 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance ajp13s108 of ajp13 [Fri Apr 26 19:46:34 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Fri Apr 26 19:46:34 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init ajp13s108 [Fri Apr 26 19:46:34 2002] [jk_ajp_common.c (1174)]: Into jk_worker_t::validate [Fri Apr 26 19:46:34 2002] [jk_ajp_common.c (1194)]: In jk_worker_t::validate for worker ajp13s108 contact is 192.168.1.108:8009 [Fri Apr 26 19:46:34 2002] [jk_ajp_common.c (1222)]: Into jk_worker_t::init [Fri Apr 26 19:46:34 2002] [jk_worker.c (187)]: wc_create_worker, done [Fri Apr 26 19:46:34 2002] [jk_worker.c (238)]: build_worker_map, removing old ajp13s108 worker [Fri Apr 26 19:46:34 2002] [jk_worker.c (250)]: build_worker_map, done [Fri Apr 26 19:46:34 2002] [jk_worker.c (111)]: wc_open, done 1 [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/sso/start.jsp' [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (529)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13s108 - *.jsp [Fri Apr 26 19:46:41 2002] [mod_jk.c (1222)]: Into handler r-proxyreq=0 r-handler=jakarta-servlet r-notes=1279808 worker=ajp13s108 [Fri Apr 26 19:46:41 2002] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13s108 [Fri Apr 26 19:46:41 2002] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/error/HTTP_INTERNAL_SERVER_ERROR.html.var' [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (570)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/error/include/top.html' [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (570)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (447)]: Into jk_uri_worker_map_t::map_uri_to_worker [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c (464)]: Attempting to map URI '/error/include/spacer.html' [Fri Apr 26 19:46:41 2002] [jk_uri_worker_map.c
Implications of upgrading to Apache 2.0
hi -- We are thinking about moving from Apache 1.3.x to 2.0 under AIX. Currently we are running tomcat 3.2.x and starting to move to tomcat 4.0. In all cases we use mod_jk as the connector. I have read that mod_jk should not be used as the connector; it drops connections under apache 2.0. That leaves mod_webapp. Does this support load balancing? Can it be used as the connector for tomcat 3.2? Maureen Barger, CIT/ID, Cornell University Ithaca, NY 14850 [EMAIL PROTECTED] http://mo.cit.cornell.edu/ It is not true that people stop pursuing dreams when they grow old, they grow old because they stop pursuing dreams. --Gabriel Garcia Marquez -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat/apache with ALIASES (Was canonical names)
This works on Apache 1.3.22 on RedHat Linux, using mod_webapp with tomcat 4.04b2. mod_webapp built from 'jakarta-tomcat-connectors-4.0.4-b2-src' Here are the relevant sections of httpd.conf: - LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c UseCanonicalName On NameVirtualHost 192.168.1.10 VirtualHost 192.168.1.10 DocumentRoot /home/user/public_html ServerName www.domain.com ServerAlias test.domain.com WebAppConnection conn warp localhost:8008 WebAppDeploy mywebapp conn /go /VirtualHost - Ken Anderson Brian Bernardo wrote: Can you send me your httpd.conf file then, because I still get the same problem following your suggestion below. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) I just tried this, and it works! Also, 'UseCanonicalName' is On. Ken Ken Anderson wrote: h... have you tried Apache's ServerAlias Directive? I know this works with static content, but I'm not sure if mod_webapp respects it or not.. VirtualHost 192.168.1.1 ServerName blah1.blah.com ServerAlias blah2.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost Ken Brian Bernardo wrote: While that technically works, it launches a separate tomcat instance within the single JVM instance. Watch the logs in catalina.out and you see that for each WebAppDeploy line a new instance is launched. This offers functionality, but sharing resources is never a good idea if you want any scalability. This site is expected to get 550 concurrent sessions at any time. This will not work out in such a demanding environment. Basically the line: Thu Apr 25 05:22:07 : 204 : TRACE : system : targetHost :bt1.domain.com Suggests that tomcat launches using the one instance per targetHost. If you have one WebAppDeploy and regardless of how you got there (proxy, mod_rewrite, virtual hosts etc) once you access any resource from the webapp directory, you get forwarded to http://targetHost/webapp and you lose the user supplied prefix (bad thing). Any other suggestions out there? There has to be a way to restrict (or add) more than one targetHost for tomcat to allow several access methods. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:02 PM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) Does something like this work? - NameVirtualHost 192.168.1.1 VirtualHost 192.168.1.1 ServerName blah1.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost VirtualHost 192.168.1.1 ServerName blah2.blah.com DocumentRoot /blah WebAppConnection conn2 warp localhost:8008 WebAppDeploy webappconn2 /test /VirtualHost Ken Brian Bernardo wrote: First of all, I am very proficient with DNS; that was not the question. I want users who go to http://name.domain/webapps to have the same webappdeployment as http://name2.domain/webapps. It is important that however they got there (domain prefix) be maintained throughout their session. This works fine for static content, but as soon as anyone goes to http://name?.domain/webapps they get redirected over to http://ServerName/webapps. ServerName is defined within the apache httpd.conf file (same with vitualhost name). That is not good. There has to be a way to have either virtual hosts or some method for tomcat to serve the same dynamic content regardless of how they got there without redirecting. Any one know how to accomplish this? B -Original Message- From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) No. I use A and CNAMES depending on the situation. Do you have proper aliases set up in Apache? Joe - Original Message - From: Oki DZ [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 2:28 AM Subject: Re: tomcat/apache with ALIASES (Was canonical names) On 04/25 15:33 Hamish Marson wrote: What you're using (Or trying to use) is aliases... The DNS records (CNAME etc al) are named after what they point AT (or more accurately) resolve to. Thus the CNAME record (Canonical name) points or resolves to the REAL name of the host. (Literally, the dictionary term for canonical is the real one). Just like the A record resolves TO the address... I think I have the same problems... So, how do you set up virtual hosts in Tomcat? I have tried to have Host ../ elements in a Tomcat service and I used CNAMEs in them. It seemed that any hosts in the service would resolve to the same contexts
Re: Apache 2, Tomcat 4 and mod_jk2
Not the worker name however the type is defined as AJP13 and not AJP14 in the example. Anthony The workers can be called anything you want them to be (for example, I use tomcat1) What tends to happen is that people take their (working) apache 1.3.x + mod_jk combo and use the same config files with apache 2.x and mod_jk2. On Fri, Apr 26, 2002 at 10:09:42AM -0400, Anthony W. Marino wrote: The example for mod_jk2 shows a worker's config for AJP13 but I thoug= ht=20 that jk2 is AJP14? Anthony Thanks to Michael Delamere and Pascal Forget, I'm happy to shout out that there's a HOWTO for setting up Apache 2, mod_jk2 and Tomcat on Linux (and therefore probably other UNIX flavours) It's linked from http://www.pubbitch.org/jboss Cheers, Simon -- Anthony W. Marino Pres./CTO, AWM Objects email: [EMAIL PROTECTED] phone: (732) 610-2441 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How to enforce SSL???
I think if you add something similar to the following to the web.xml file for your application, it will make it automatically redirect from HTTP to HTTPS. security-constraint web-resource-collection web-resource-nameTomcat/web-resource-name url-pattern/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint As far as requiring a particular encryption strength, the only way I know how to do it is to check the following attributes. i.e. as far as I know there isn't a flag in the web.xml file that you can use in order to require 128 bit encryption. req.getAttribute(javax.servlet.request.cipher_suite) req.getAttribute(javax.servlet.request.key_size) javax.servlet.request.cipher_suite: SSL_RSA_WITH_RC4_128_MD5 javax.servlet.request.key_size: 128 Jon - Original Message - From: Steve D George [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 26, 2002 11:04 AM Subject: How to enforce SSL??? Hi, I'm working with a standalone Tomcat 4.0.2 on W2K. I've just gone through the SSL How To and created myself a little certificate and got everything working over SSL. I can access all my pages over HTTP or HTTPS. My question now is how to enforce the use of HTTPS for a given page. The SSL How To says that any page that absolutely requires SSL should check the protocol of the request and take the appropriate action, by which I presume it means that you code a redirect to the same page but over https. Is this the standard way to enforce it though. I sort of imagined that you would be able to say that any page in a certain directory should be served over HTTPS and just let tomcat handle it for you? Thanks for any help, Have a great weekend everyone! Cheers, Steve. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat and SSL (keyfile password)
Hi dave you're correct !!! it is not becos of jdk1.3 I found later on that any line space in top on the .cer file from verisign is causing this problem...but if you save that verisign id into .txt file then it accepts that line space in top !!! So magic !! Now It says me that cert is imported and added to the key..but when i go and see the cert detail in my browser shows my old finger print (mine) CA is also mine.I loaded the brower piece already as per verissign instruction.I am not able to understand the rool level cert and import... can you please make me understand that concept... here is the IP https://63.118.43.23:8443 I appreciate your feedback thanks in advance BM Did you load the verisign trail id Dave North wrote: It's because you've not imported their root level cert...you need to do that before you import your cert. You also need their too level cert in your browser. BTW: I tested all my stuff on JDK 1.3.1 - I have no idea if this will work with earlier versions (based on what you've said though my guess is not!) D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 7:25 PM To: Tomcat Users List; Dave North Subject: Re: tomcat and SSL (keyfile password) Hi dave i resolved this by moving to jdk1.4 but now my browser says it is self signed ..verisign info is not really imported why ?? thanks in advance bm [EMAIL PROTECTED] wrote: Hi Dave thanks for document. Now I got struck when i try to import the verisign certificate. the error mesg is keytool error: java.lang.Exception: Input not an X.509 certificate I attached my certificate also..can you help me please ? it is trial cert from verisign Reg BM Dave North wrote: OK, here's what I did (this was using a test versign cert but the procedure is the same for a real production cert): STEP A - generate your private key Pre-req: JDK must be installed 1) cd to $JAVA_HOME/jre/bin 2) run ./keytool -genkey -alias tomcat -keyalg RSA -keystore FULL PATH TO KEYSTORE 3) You will be prompted for a password for the keystore 3) at the prompts, enter: What is your first and last name? [Unknown]: DO NOT USE NAME - ENTER THE NAME OF YOUR MACHINE AS IT'S KNOWN TO VISITORS What is the name of your organizational unit? [Unknown]: WHATEVER YOU LIKE What is the name of your organization? [Unknown]: TYPICALLY COMPANY NAME What is the name of your City or Locality? [Unknown]: YOUR CITY What is the name of your State or Province? [Unknown]: STATE OR PROV What is the two-letter country code for this unit? [Unknown]: COUNTRY CODE 4) You will then be prompted for another password - use the same (ie. Press ENTER) STEP B - Generate a Certificate Request 1) cd to $JAVA_HOME/jre/bin 2) ./keytool -certreq -alias tomcat -file csr.txt -keystore FULL PATH TO SAME KEYSTORE CREATED IN STEP A STEP C - Get the new cert from Verisign www.versign.com has all the info here STEP D - Install the Verisign ROOT CA cert AND your server cert When you get your cert in step C, they will provide you with the root cert 1) cd to $JAVA_HOME/jre/bin 2) ./keytool -import -alias verisign -file FILE THAT CONTAINS THE VERSIGN ROOT CA CERT -keystore PATH TO KEYSTORE 3) ./keytool -import -trustcacerts -alias tomcat -file FILE THAT CONTAINS YOUR CERT FROM VERISIGN -keystore PATH TO KEYSTORE STEP E - Configure an SSL listener for tomcat 1) edit $JAKARTA_HOME/conf/server.xml and add the following: !-- Define an SSL HTTP/1.1 Connector on port 443 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=10 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS keystoreFile=FULL PATH TO KEYSTORE FILE keystorePass=PASSWORD HERE/ /Connector 2) Stop and start the tomcat server -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:29 PM To: Tomcat Users List Subject: Re: tomcat and SSL (keyfile password) Hi Dave ohhh...good to know that. I need to set up the tomcat 4.0.3 with verisign. Can you please send those doc to me ? I appreciate your help thanks in advance BM Dave North wrote: Hello, After a few hours trying to get this working, I've finally got my tomcat server working with a certificate signed by Verisign. This all works great. However, to do this, I need to configure the keyfilePass into the server.xml file. This is bad as our security policy
RE: tomcat and SSL (keyfile password)
There could be several problems here: 1) no root level cert import BEFORE. When you get the test cert from verisign, they talk about getting the root level certs for tests. You can download it from here: http://www.verisign.com/server/trial/faq/index.html you MUST import this first into your keystore with the command I provided: ./keytool -import -alias verisign -file FILE THAT CONTAINS THE VERSIGN ROOT CA CERT -keystore PATH TO KEYSTORE 2) I made this mistake several times - make sure you're always importing to the same keystore. By this I mean I kept forgetting to add the -keystore parameter to the keytool command line and so it wasn't applying the new cert to the tomcat alias in the keystore file. Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 1:57 PM To: Dave North Cc: Tomcat Users List Subject: Re: tomcat and SSL (keyfile password) Hi dave you're correct !!! it is not becos of jdk1.3 I found later on that any line space in top on the .cer file from verisign is causing this problem...but if you save that verisign id into .txt file then it accepts that line space in top !!! So magic !! Now It says me that cert is imported and added to the key..but when i go and see the cert detail in my browser shows my old finger print (mine) CA is also mine.I loaded the brower piece already as per verissign instruction.I am not able to understand the rool level cert and import... can you please make me understand that concept... here is the IP https://63.118.43.23:8443 I appreciate your feedback thanks in advance BM Did you load the verisign trail id Dave North wrote: It's because you've not imported their root level cert...you need to do that before you import your cert. You also need their too level cert in your browser. BTW: I tested all my stuff on JDK 1.3.1 - I have no idea if this will work with earlier versions (based on what you've said though my guess is not!) D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 7:25 PM To: Tomcat Users List; Dave North Subject: Re: tomcat and SSL (keyfile password) Hi dave i resolved this by moving to jdk1.4 but now my browser says it is self signed ..verisign info is not really imported why ?? thanks in advance bm [EMAIL PROTECTED] wrote: Hi Dave thanks for document. Now I got struck when i try to import the verisign certificate. the error mesg is keytool error: java.lang.Exception: Input not an X.509 certificate I attached my certificate also..can you help me please ? it is trial cert from verisign Reg BM Dave North wrote: OK, here's what I did (this was using a test versign cert but the procedure is the same for a real production cert): STEP A - generate your private key Pre-req: JDK must be installed 1) cd to $JAVA_HOME/jre/bin 2) run ./keytool -genkey -alias tomcat -keyalg RSA -keystore FULL PATH TO KEYSTORE 3) You will be prompted for a password for the keystore 3) at the prompts, enter: What is your first and last name? [Unknown]: DO NOT USE NAME - ENTER THE NAME OF YOUR MACHINE AS IT'S KNOWN TO VISITORS What is the name of your organizational unit? [Unknown]: WHATEVER YOU LIKE What is the name of your organization? [Unknown]: TYPICALLY COMPANY NAME What is the name of your City or Locality? [Unknown]: YOUR CITY What is the name of your State or Province? [Unknown]: STATE OR PROV What is the two-letter country code for this unit? [Unknown]: COUNTRY CODE 4) You will then be prompted for another password - use the same (ie. Press ENTER) STEP B - Generate a Certificate Request 1) cd to $JAVA_HOME/jre/bin 2) ./keytool -certreq -alias tomcat -file csr.txt -keystore FULL PATH TO SAME KEYSTORE CREATED IN STEP A STEP C - Get the new cert from Verisign www.versign.com has all the info here STEP D - Install the Verisign ROOT CA cert AND your server cert When you get your cert in step C, they will provide you with the root cert 1) cd to $JAVA_HOME/jre/bin 2) ./keytool -import -alias verisign -file FILE THAT CONTAINS THE VERSIGN ROOT CA CERT -keystore PATH TO KEYSTORE 3) ./keytool -import -trustcacerts -alias tomcat -file FILE THAT CONTAINS YOUR CERT FROM VERISIGN -keystore PATH TO KEYSTORE STEP E - Configure an SSL listener for tomcat 1) edit $JAKARTA_HOME/conf/server.xml and add the following: !-- Define an SSL HTTP/1.1 Connector on port 443 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=10 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory
not able to configure SessionId cookiesFirst=true noCookies=true / in server.xml in tomcat version 4.0.3-LE
Hi tomcat fans, Can someone please point me to the dtd of server.xml for tomcat 4.0.x. I am not able to configure SessionId cookiesFirst=true noCookies=true / in server.xml in tomcat version 4.0.3-LE. I appritiate your help. Thanks, - Manish -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat and SSL (keyfile password)
Dave . Bautiful tips !!! It works fine... thanks a lot BM Dave North wrote: There could be several problems here: 1) no root level cert import BEFORE. When you get the test cert from verisign, they talk about getting the root level certs for tests. You can download it from here: http://www.verisign.com/server/trial/faq/index.html you MUST import this first into your keystore with the command I provided: ./keytool -import -alias verisign -file FILE THAT CONTAINS THE VERSIGN ROOT CA CERT -keystore PATH TO KEYSTORE 2) I made this mistake several times - make sure you're always importing to the same keystore. By this I mean I kept forgetting to add the -keystore parameter to the keytool command line and so it wasn't applying the new cert to the tomcat alias in the keystore file. Dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 1:57 PM To: Dave North Cc: Tomcat Users List Subject: Re: tomcat and SSL (keyfile password) Hi dave you're correct !!! it is not becos of jdk1.3 I found later on that any line space in top on the .cer file from verisign is causing this problem...but if you save that verisign id into .txt file then it accepts that line space in top !!! So magic !! Now It says me that cert is imported and added to the key..but when i go and see the cert detail in my browser shows my old finger print (mine) CA is also mine.I loaded the brower piece already as per verissign instruction.I am not able to understand the rool level cert and import... can you please make me understand that concept... here is the IP https://63.118.43.23:8443 I appreciate your feedback thanks in advance BM Did you load the verisign trail id Dave North wrote: It's because you've not imported their root level cert...you need to do that before you import your cert. You also need their too level cert in your browser. BTW: I tested all my stuff on JDK 1.3.1 - I have no idea if this will work with earlier versions (based on what you've said though my guess is not!) D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 7:25 PM To: Tomcat Users List; Dave North Subject: Re: tomcat and SSL (keyfile password) Hi dave i resolved this by moving to jdk1.4 but now my browser says it is self signed ..verisign info is not really imported why ?? thanks in advance bm [EMAIL PROTECTED] wrote: Hi Dave thanks for document. Now I got struck when i try to import the verisign certificate. the error mesg is keytool error: java.lang.Exception: Input not an X.509 certificate I attached my certificate also..can you help me please ? it is trial cert from verisign Reg BM Dave North wrote: OK, here's what I did (this was using a test versign cert but the procedure is the same for a real production cert): STEP A - generate your private key Pre-req: JDK must be installed 1) cd to $JAVA_HOME/jre/bin 2) run ./keytool -genkey -alias tomcat -keyalg RSA -keystore FULL PATH TO KEYSTORE 3) You will be prompted for a password for the keystore 3) at the prompts, enter: What is your first and last name? [Unknown]: DO NOT USE NAME - ENTER THE NAME OF YOUR MACHINE AS IT'S KNOWN TO VISITORS What is the name of your organizational unit? [Unknown]: WHATEVER YOU LIKE What is the name of your organization? [Unknown]: TYPICALLY COMPANY NAME What is the name of your City or Locality? [Unknown]: YOUR CITY What is the name of your State or Province? [Unknown]: STATE OR PROV What is the two-letter country code for this unit? [Unknown]: COUNTRY CODE 4) You will then be prompted for another password - use the same (ie. Press ENTER) STEP B - Generate a Certificate Request 1) cd to $JAVA_HOME/jre/bin 2) ./keytool -certreq -alias tomcat -file csr.txt -keystore FULL PATH TO SAME KEYSTORE CREATED IN STEP A STEP C - Get the new cert from Verisign www.versign.com has all the info here STEP D - Install the Verisign ROOT CA cert AND your server cert When you get your cert in step C, they will provide you with the root cert 1) cd to $JAVA_HOME/jre/bin 2) ./keytool -import -alias verisign -file FILE THAT CONTAINS THE VERSIGN ROOT CA CERT -keystore PATH TO KEYSTORE 3) ./keytool -import -trustcacerts -alias tomcat -file FILE THAT CONTAINS YOUR CERT FROM VERISIGN -keystore PATH TO KEYSTORE STEP E - Configure an SSL listener for tomcat 1) edit $JAKARTA_HOME/conf/server.xml and add the following: !-- Define an SSL HTTP/1.1 Connector on port 443 -- Connector
Re: Tomcat + SOAP
Martin, I just installed apache soap runs fine ,I just followed the guide lines put soap.jar,mail.jar,activation.jar.bsf.jarjs.jar in the classpath. First i also got some error but once it got all the jar's everything was smooth. Vijay Martin Mauri wrote: Hi Raj, I'm already using both jars, but still gives me the same error, damn it. any clue? - Original Message - From: Raj Chanian [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, April 26, 2002 12:58 PM Subject: RE: Tomcat + SOAP I'm using soap-2_2 with tomcat-3.2.3 and jdk1.3.1. In addition to the Apache Manuals, I also required(this was not in the documentation) mail.jar from javamail-1.2 activation.jar from jaf-1.0.1 Remember to put these in both classpaths mentioned above, to atleast get soapfaults back from the response if not anything else. Atleast then you will no you are talking to soap. Regards, Raj -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 16:38 To: Tomcat Users List Subject: Re: Tomcat + SOAP Yes, I have, and that's what dissapoints me, I don't know why, perhaps it's a version problem, can it be possible? - Original Message - From: Raj Chanian [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, April 26, 2002 12:18 PM Subject: RE: Tomcat + SOAP Silly question, but have you put soap.jar on the classpath in both your soap client app and tomcat.bat? Regards, Raj -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 15:22 To: Tomcat Users List Subject: Tomcat + SOAP Hi, I've followed all the steps in Apache SOAP manual, but when I try to run the calculator example, I get the folowing error: java.lang.ClassNotFoundException: org.apache.soap.server.InvokeBSK ... Any idea?!! thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
default forward/
Hi, I would like to forward to a certain path when all the other options (like action/action or ohter forwards/) within the action.xml were past without maching. Has this someone realized so far? thanks, Rainer
sorry, wrong list!! default forward/
Hi, I would like to forward to a certain path when all the other options (like action/action or ohter forwards/) within the action.xml were past without maching. Has this someone realized so far? thanks, Rainer
Coyote with SSL
Hi, Can coyote be configured for use with SSL? How stable is coyote? Thanks, Rick
Tomcat/IIS/ISAPI/SendRedirect Problem - Please help me!!! Urgent!!!
Please help me! I´m using Tomcat 3.2.4 with isapi_redirector.dll and IIS 5.0 on Win2k. The problem is with reponse.sendRedirect(../page.jsp?xxx=xxx.) Depending of the length of the query_string (xxx=xxx...) the Internet Explorer doesn´t redirect, it stays waiting for something. This problem doesn´t occur when i access tomcat´s port directly(8080). Do you know some bug with SendRedirect and Internet Explorer or maybe IIS? Because it works fine in Netscape and Opera... Thanks... -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
how to configure apache 2.0.35 with --enable-mods-shared=most switch on
As root, I did the following: root@tbird 70 % ./configure --enable-mods-shared=most --prefix=/usr/tomcat/apache_source_wit hMod root@tbird 71 % make root@tbird 72 % make install root@tbird 73 % cd /usr/tomcat/apache_source_withMod/modules root@tbird 74 % ls -l total 5762 -rw-r--r-- 1 root other 7556 Apr 25 23:37 httpd.exp -rwxr-xr-x 1 root other 73255 Apr 25 23:50 mod_access.so* -rwxr-xr-x 1 root other 75695 Apr 25 23:50 mod_actions.so* -rwxr-xr-x 1 root other 78451 Apr 25 23:50 mod_alias.so* -rwxr-xr-x 1 root other 73535 Apr 25 23:50 mod_asis.so* -rwxr-xr-x 1 root other 80197 Apr 25 23:50 mod_auth.so* -rwxr-xr-x 1 root other 75824 Apr 25 23:50 mod_auth_anon.so* -rwxr-xr-x 1 root other 79978 Apr 25 23:50 mod_auth_dbm.so* -rwxr-xr-x 1 root other 126550 Apr 25 23:50 mod_autoindex.so* -rwxr-xr-x 1 root other 107544 Apr 25 23:50 mod_cgi.so* -rwxr-xr-x 1 root other 318374 Apr 25 23:50 mod_dav.so* -rwxr-xr-x 1 root other 209307 Apr 25 23:50 mod_dav_fs.so* -rwxr-xr-x 1 root other 75759 Apr 25 23:50 mod_dir.so* -rwxr-xr-x 1 root other 68108 Apr 25 23:50 mod_env.so* -rwxr-xr-x 1 root other 73515 Apr 25 23:50 mod_expires.so* -rwxr-xr-x 1 root other 81663 Apr 25 23:50 mod_headers.so* -rwxr-xr-x 1 root other 94528 Apr 25 23:50 mod_imap.so* -rwxr-xr-x 1 root other 144315 Apr 25 23:50 mod_include.so* -rwxr-xr-x 1 root other 90790 Apr 25 23:50 mod_info.so* -rwxr-xr-x 1 root other 103135 Apr 25 23:50 mod_log_config.so* -rwxr-xr-x 1 root other 92119 Apr 25 23:50 mod_mime.so* -rwxr-xr-x 1 root other 127840 Apr 25 23:50 mod_negotiation.so* -rwxr-xr-x 1 root other 170755 Apr 25 23:50 mod_rewrite.so* -rwxr-xr-x 1 root other 78492 Apr 25 23:50 mod_setenvif.so* -rwxr-xr-x 1 root other 77077 Apr 25 23:50 mod_speling.so* -rwxr-xr-x 1 root other 99203 Apr 25 23:50 mod_status.so* -rwxr-xr-x 1 root other 75550 Apr 25 23:50 mod_userdir.so* -rwxr-xr-x 1 root other 73922 Apr 25 23:50 mod_vhost_alias.so* So I made sure that most modules were installed as expected. However, I can not invoke apache: root@tbird 75 % /usr/tomcat/apache_source_withMod/bin/apachectl start (125)Address already in use: make_sock: could not bind to address [::]:80 no listening sockets available, shutting down ./apachectl start: httpd could not be started Can someone please explain it to me? Many thanks! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Installing and configuring TOMCAT
Hello, I installed TOMCAT 4 within my notebook that has WinXP and IIS 5.1 installed. I defined the following environment vars: set TOMCAT_HOME=c:\program files\tomcat set JAVA_HOME=c:\j2sdk1.4 set PATH=%JAVA_HOME%\BIN;%PATH% Obs.: I defined the environment vars within the Win XP Environment vars to make them persistent. After installed the server was started and works fine. But after reboot the system I can not start the server anymore. Any idea? Thanks in advance, +-+ Juan Jose Velazquez Garcia www.htmlspider.com.br +-+ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat + SOAP
Oh God, I'm just about to give up, it keeps telling me the same error. I don't know what else to do. - Original Message - From: Vijay Shinde [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 26, 2002 3:33 PM Subject: Re: Tomcat + SOAP Martin, I just installed apache soap runs fine ,I just followed the guide lines put soap.jar,mail.jar,activation.jar.bsf.jarjs.jar in the classpath. First i also got some error but once it got all the jar's everything was smooth. Vijay Martin Mauri wrote: Hi Raj, I'm already using both jars, but still gives me the same error, damn it. any clue? - Original Message - From: Raj Chanian [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, April 26, 2002 12:58 PM Subject: RE: Tomcat + SOAP I'm using soap-2_2 with tomcat-3.2.3 and jdk1.3.1. In addition to the Apache Manuals, I also required(this was not in the documentation) mail.jar from javamail-1.2 activation.jar from jaf-1.0.1 Remember to put these in both classpaths mentioned above, to atleast get soapfaults back from the response if not anything else. Atleast then you will no you are talking to soap. Regards, Raj -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 16:38 To: Tomcat Users List Subject: Re: Tomcat + SOAP Yes, I have, and that's what dissapoints me, I don't know why, perhaps it's a version problem, can it be possible? - Original Message - From: Raj Chanian [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, April 26, 2002 12:18 PM Subject: RE: Tomcat + SOAP Silly question, but have you put soap.jar on the classpath in both your soap client app and tomcat.bat? Regards, Raj -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: 26 April 2002 15:22 To: Tomcat Users List Subject: Tomcat + SOAP Hi, I've followed all the steps in Apache SOAP manual, but when I try to run the calculator example, I get the folowing error: java.lang.ClassNotFoundException: org.apache.soap.server.InvokeBSK ... Any idea?!! thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat and Apache Server - Instalation and Performance
Hello, I have the following environment: OS: Linux Debian Potato http Server: Apache Does anyone can point a good tutorial to install TOMCAT as addon or plugin within Apache Server? How can I compare the performance of this configuration with other technologies? I have to convince the team to use JSP/JavaBeans instead Perl or PHP. How can I calculate the simultaneos users and memory needed for a site? Is there a rule? Thanks in advance, +-+ Juan Jose Velazquez Garcia www.htmlspider.com.br +-+ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat doesn't see javabean inside .jar
HI, FYI: IllegalAccessExceptions generally mean you're improperly using public/private/protected/package private, etc., modifiers in your code. (Generally, that is...could be something else). It looks like your default constructor is marked as package private, change it to public and see what happens. My other question which I think you already answered was whether you packed your jars correctly, but it looks like you did. Does this help? fillup At Friday, 26 April 2002, you wrote: Hi, I made a test javabean (HelloBean) which is part of package called br.eti.macaiba.test.bean When I put the directory structure of the package in $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/ there is no problem. But when I try to put the jar file in $CATALINA_HOME/webapps/ROOT/WEB-INF/lib/ I receive the error message below: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Does anyone have any idea ? Thanks In Advance, Joao Macaiba. PS: Below are the files and full error message: --- BEGIN : HelloBean.java --- package br.eti.macaiba.test.bean; public class HelloBean implements java.io.Serializable { private String name; HelloBean() { name = World; } public String getName() { return name; } public void setName(String n) { name = n; } } --- END : HelloBean.java --- --- BEGIN : HelloBean.jsp --- html headtitleThis is the HelloBean example/title/head body jsp:useBean id=hello class=br.eti.macaiba.test.bean.HelloBean/ jsp:setProperty name=hello property=name param=name/ Hello, jsp:getProperty name=hello property=name/ ! /body /html --- END : HelloBean.jsp --- --- BEGIN : jar -xvf macaiba.jar --- created: META-INF/ extracted: META-INF/MANIFEST.MF created: br/ created: br/eti/ created: br/eti/macaiba/ created: br/eti/macaiba/test/ created: br/eti/macaiba/test/bean/ extracted: br/eti/macaiba/test/bean/HelloBean.class --- END : jar -xvf macaiba.jar --- --- BEGIN : dump of tomcat error message --- Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: class br.eti.macaiba.test.bean.HelloBean : java.lang.IllegalAccessException: Class java.beans.Beans can not access a member of class br.eti.macaiba.test.bean.HelloBean with modifiers at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl. java:463) at org.apache.jsp.HelloBean$jsp._jspService(HelloBean$jsp.java:104) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet. java:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain. java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain. java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline. java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline. java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve. java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline. java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext. java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve. java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline. java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline. java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline. java:564) at
RE: ISAPI Filter and the OPTIONS method - Filter failing to pass on OPTIONS requests.
Well, I put a breakpoint in the project to see where it was dying, and I am still not sure where. I can see that HttpFilterProc reaches the end of its execution. However, HttpExtensionProc is never called. Could the problem be another missing IIS header, and if so, which one? Should I file this as a bug? Can anyone help here? A LITTLE BACKGROUND: using ISAPI Filter, Tomcat 4.0.3, IIS 5.0, Slide 1.0.16, and using BASIC authentication. if I attempt to access my site using Webdrive 5.1 (through the filter), a 500 internal server occurs. From tracing I can see that Webdrive first sends an OPTIONS request to the server. The Server calls into the filters HttpFilterProc method (see jk_isapi_plugin.c),which returns with the expected SF_STATUS_REQ_NEXT_NOTIFICATION. But It looks like before HttpExtensionProc is called, it the server is responding with a 500 Internal Server Error. Tomcatnever receives the request. The last line printed in the isapi_redirect.log is: [Fri Apr 26 15:59:41 2002] [jk_isapi_plugin.c (848)]: HttpFilterProc check if [/slide/test] is points to the web-inf directory HttpExtensionProc started should be the next line. Everthing works fine if I bypass the ISAPI filter using port :8080 Thanks, Robert Priest. -Original Message- From: Robert Priest [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 2:49 PM To: 'Ignacio J. Ortega' Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: ISAPI Filter and the OPTIONS method Hola Ignacio, About the OPTIONS method, i'm not truly sure that isapi_redirect are correctly passing down this method, this should be a good point to start to see why webfolders doesnt work.. putting a breakpoint inside the ajp13 read methods insside tomcat could help a bunch, Saludos , Ignacio J. Ortega Can you tell me where in the code to look for this? In other words, where is the decision made which Methods shall be Accepted and passed on by the filter to Tomcat, or rejected and a 500 internal server error returned. BTW - I think you are absolutely right. It looks like when an OPTIONS request is sent, the isapi filter never passes that request to tomcat, it simply returns a 500 error. I did a network trace and the error says: C..4..HTTP/1.1 5 00040: 30 30 20 53 65 72 76 65 72 20 45 72 72 6F 72 0D 00 Server Error. 00050: 0A 53 65 72 76 65 72 3A 20 4D 69 63 72 6F 73 6F .Server: Microso 00060: 66 74 2D 49 49 53 2F 35 2E 30 0D 0A 44 61 74 65 ft-IIS/5.0..Date 00070: 3A 20 54 68 75 2C 20 32 35 20 41 70 72 20 32 30 : Thu, 25 Apr 20 00080: 30 32 20 31 33 3A 35 34 3A 31 30 20 47 4D 54 0D 02 13:54:10 GMT. 00090: 0A 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 63 6C 6F .Connection: clo 000A0: 73 65 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 se..Content-Type 000B0: 3A 20 74 65 78 74 2F 68 74 6D 6C 0D 0A 43 6F 6E : text/html..Con 000C0: 74 65 6E 74 2D 4C 65 6E 67 74 68 3A 20 38 37 0D tent-Length: 87. 000D0: 0A 0D 0A 3C 68 74 6D 6C 3E 3C 68 65 61 64 3E 3C ...htmlhead 000E0: 74 69 74 6C 65 3E 45 72 72 6F 72 3C 2F 74 69 74 titleError/tit 000F0: 6C 65 3E 3C 2F 68 65 61 64 3E 3C 62 6F 64 79 3E le/headbody 00100: 54 68 65 20 70 61 72 61 6D 65 74 65 72 20 69 73 The parameter is 00110: 20 69 6E 63 6F 72 72 65 63 74 2E 20 3C 2F 62 6Fincorrect. /bo 00120: 64 79 3E 3C 2F 68 74 6D 6C 3E dy/html Thank you Robert. -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 3:32 PM To: 'Robert Priest' Subject: RE: Traces - Hitting ISAPI Filter from Remote Machine. I'm saying that a PSOT wolud work ( it works for me at least ) , but the url in the post it's not serverd in anyway by tomcat..IMHO, that dll is no tied to tomcat url in anyway, or is slide more magical than i could think of :) Saludos , Ignacio J. Ortega -Mensaje original- De: Robert Priest [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 24 de abril de 2002 21:29 Para: Ignacio J. Ortega Asunto: RE: Traces - Hitting ISAPI Filter from Remote Machine. From MICROSOFTWEBFOLDERS.txt POST /_vti_bin/shtml.dll/_vti_rpc HTTP/1.1 I doubt MSWebFolders are really trying to reach DAV by other means than the microsoft own, i'm sure the POST above couldnt be served by tomcat I'm sorry Ignacio, I don't really follow what you are saying here. Are you saying that MSWebFolders didn't send a post? If that is so, I can run it again and send you the log again. Just need clarification. Thanks, Robert Priest. -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 3:24 PM To: 'Robert Priest' Subject: RE: Traces - Hitting ISAPI Filter from Remote Machine. From MICROSOFTWEBFOLDERS.txt POST /_vti_bin/shtml.dll/_vti_rpc HTTP/1.1 I doubt MSWebFolders are really trying to reach DAV by other means than the microsoft own, i'm sure the POST above couldnt be served by tomcat
mod_status.so
Starting up Apache with either mod_status or mod_authdigest, returns the error message __floatdisf:referenced symbol not found. Can anybody tell me which library I am missing? Glen Jackson [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
apache2.0.35+tomcat4.0.3+SSL
Hi Anyone is successful in doing this combination apache2.0.35+tomcat4.0.3+SSL under windows ? REg BM -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat Platform Advice
I need some advice on installing Tomcat on a generic RedHat Linux 7.2 box. I noticed that there are 3 stable versions of Tomcat: 3.2.4, 3.3.1, and 4.0.3. I also saw that the JDK I am using 1.3.x from Sun can cause crashes with 4.0.3. I also saw there's a number of different apache connectors and protocols. This left me wondering what the best way to configure and install Tomcat would be. What I need out of this set up stability, security, security and stability... what is the best version of Tomcat mated with what JVM with what apache mod_xxx connector? I don't need any whiz bang features... the app I am porting was developed on Tomcat 3.0. Is Tomcat 4.0.3 trustworthy? Why are there 3 stable versions? Is the Sun 1.4 JDK REALLY stable? Is there a better one? Oh, as an aside - are there any documents I could read about security issues with running Tomcat? Thanks for you time, Orion Henry -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_status.so
http://groups.google.com/groups?q=__floatdisf:referenced+symbol+not+found Always try google first - it will save you some time waiting for the answer. Ken [EMAIL PROTECTED] wrote: Starting up Apache with either mod_status or mod_authdigest, returns the error message __floatdisf:referenced symbol not found. Can anybody tell me which library I am missing? Glen Jackson [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How do you set up a jsp action/filter for all documents in a directory
Dear Team I've set up a test-bed Apache/Tomcat installation on my W2K box that is working fine. I just cannot figure out how to configure the following: I have a directory of files that can be served by Apache. Let say they are in directory C:\myfiles. I can set up an Apache alias Alias /myfiles/ C:/myfiles/ and thus get to them through the Apache server. However, the HTML files in this directory need some translation before they get served. So when Apache is asked to serve, say, /myfiles/afile.html I need a jsp to be run, that is given the original file path to read so it can provide the translated response. I remember doing this with cgi once using the ScriptAliasMatch directive. I've got as far as adding JkMount /myfiles ajp13 JkMount /myfiles/* ajp13 but have not got any further... Does anyone know how to do this with Apache/Tomcat? Many thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
SystemErrLogger and SystemOutLogger
I was trying to push all tomcats logging up into a different directory than /var/tomcat4/logs for our log managment purposes. I see I can set directory attributes on all FileLoggers but not on the default SystemErrLogger and SystemOutLogger. Is there a simple way I can do this? I like the way the temp directory has becaome configurable in /etc/tomcat4/conf/tomcat4.conf. Having this in there as well would be cool too. -Mark Diggory -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
SystemErrLogger and SystemOutLogger
I was trying to push all tomcats logging up into a different directory than /var/tomcat4/logs for our log managment purposes. I see I can set directory attributes on all FileLoggers but not on the default SystemErrLogger and SystemOutLogger. Is there a simple way I can do this? I like the way the temp directory has becaome configurable in /etc/tomcat4/conf/tomcat4.conf. Having this in there as well would be cool too. -Mark Diggory -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How to servlets with scope of page?
How can I make a servlet with scope of page or any other scope like those defined for jsp? I'm using pure servlets, no JSP. Thanks for any help Roland -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
ISAPI Filter and the OPTIONS method
Hola Ignacio, About the OPTIONS method, i'm not truly sure that isapi_redirect are correctly passing down this method, this should be a good point to start to see why webfolders doesnt work.. putting a breakpoint inside the ajp13 read methods insside tomcat could help a bunch, Saludos , Ignacio J. Ortega Can you tell me where in the code to look for this? In other words, where is the decision made which Methods shall be Accepted and passed on by the filter to Tomcat, or rejected and a 500 internal server error returned. BTW - I think you are absolutely right. It looks like when an OPTIONS request is sent, the isapi filter never passes that request to tomcat, it simply returns a 500 error. I did a network trace and the error says: C..4..HTTP/1.1 5 00040: 30 30 20 53 65 72 76 65 72 20 45 72 72 6F 72 0D 00 Server Error. 00050: 0A 53 65 72 76 65 72 3A 20 4D 69 63 72 6F 73 6F .Server: Microso 00060: 66 74 2D 49 49 53 2F 35 2E 30 0D 0A 44 61 74 65 ft-IIS/5.0..Date 00070: 3A 20 54 68 75 2C 20 32 35 20 41 70 72 20 32 30 : Thu, 25 Apr 20 00080: 30 32 20 31 33 3A 35 34 3A 31 30 20 47 4D 54 0D 02 13:54:10 GMT. 00090: 0A 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 63 6C 6F .Connection: clo 000A0: 73 65 0D 0A 43 6F 6E 74 65 6E 74 2D 54 79 70 65 se..Content-Type 000B0: 3A 20 74 65 78 74 2F 68 74 6D 6C 0D 0A 43 6F 6E : text/html..Con 000C0: 74 65 6E 74 2D 4C 65 6E 67 74 68 3A 20 38 37 0D tent-Length: 87. 000D0: 0A 0D 0A 3C 68 74 6D 6C 3E 3C 68 65 61 64 3E 3C ...htmlhead 000E0: 74 69 74 6C 65 3E 45 72 72 6F 72 3C 2F 74 69 74 titleError/tit 000F0: 6C 65 3E 3C 2F 68 65 61 64 3E 3C 62 6F 64 79 3E le/headbody 00100: 54 68 65 20 70 61 72 61 6D 65 74 65 72 20 69 73 The parameter is 00110: 20 69 6E 63 6F 72 72 65 63 74 2E 20 3C 2F 62 6Fincorrect. /bo 00120: 64 79 3E 3C 2F 68 74 6D 6C 3E dy/html Thank you Robert. -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 3:32 PM To: 'Robert Priest' Subject: RE: Traces - Hitting ISAPI Filter from Remote Machine. I'm saying that a PSOT wolud work ( it works for me at least ) , but the url in the post it's not serverd in anyway by tomcat..IMHO, that dll is no tied to tomcat url in anyway, or is slide more magical than i could think of :) Saludos , Ignacio J. Ortega -Mensaje original- De: Robert Priest [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 24 de abril de 2002 21:29 Para: Ignacio J. Ortega Asunto: RE: Traces - Hitting ISAPI Filter from Remote Machine. From MICROSOFTWEBFOLDERS.txt POST /_vti_bin/shtml.dll/_vti_rpc HTTP/1.1 I doubt MSWebFolders are really trying to reach DAV by other means than the microsoft own, i'm sure the POST above couldnt be served by tomcat I'm sorry Ignacio, I don't really follow what you are saying here. Are you saying that MSWebFolders didn't send a post? If that is so, I can run it again and send you the log again. Just need clarification. Thanks, Robert Priest. -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 3:24 PM To: 'Robert Priest' Subject: RE: Traces - Hitting ISAPI Filter from Remote Machine. From MICROSOFTWEBFOLDERS.txt POST /_vti_bin/shtml.dll/_vti_rpc HTTP/1.1 I doubt MSWebFolders are really trying to reach DAV by other means than the microsoft own, i'm sure the POST above couldnt be served by tomcat Saludos , Ignacio J. Ortega -Mensaje original- De: Robert Priest [mailto:[EMAIL PROTECTED]] Enviado el: lunes 22 de abril de 2002 15:35 Para: Ignacio J. Ortega Asunto: RE: Traces - Hitting ISAPI Filter from Remote Machine. Typo!! Ignacio please!!! Ingacio sounds really bad in spanish :))) sorry about that. ?¿?¿? Where can i found that? attached are the text files. What you are seeing is only the logtrace of the 2 forms About the OPTIONS method, i'm not truly sure that isapi_redirect are correctly passing down this method, this should be a good point to start to see why webfolders doesnt work.. putting a breakpoint inside the ajp13 read methods insside tomcat could help a bunch, I will work on this monday. thanks. robert. -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 4:29 PM To: 'Robert Priest' Subject: RE: Traces - Hitting ISAPI Filter from Remote Machine. Hola Robert: Hello Ingacio, Typo!! Ignacio please!!! Ingacio sounds really bad in spanish :))) I have attached Network Traces for the clients that I am using (IE, WebFolders, WebDrive 5.1). They were all captured with Network Monitor (NetMon). ?¿?¿? Where can i found that? If you cannot read them I can send them to you as text files. Please do it [Fri Apr 19 15:19:58 2002]
Tomcat, Postgres, JDBC, Blackdown 1.3.1, IE: No impact, no idea!
My application, in a nutshell, allows you to click within a series of HTML table data cells, and this dynamically creates hidden input boxes on a form, which when submitted, the server processes into SQL, and returns the result of. The problem: 'selecting' too many data cells causes the site to skip the lengthy db query (which normally takes at least 3 minutes,) and it immediately returns the results as a downloadable file (set up using res.setContentType setHeader.) It then churns away downloading this file indefinitely. Select only a few data cells, and you get a nicely formatted comma-delimited set of data in a text file, after 3-10 minutes... the table has tens of millions of rows. The log files haven't helped me much. The servlet I believe to be causing the problem is called from a form's post action (Is there a limit on header sizes with post?,) but there is no record of a call to it in the access log when this error occurs. It is clearly being run at least partially, though. I can see a log entry I submit from within the offending servlet to localhost_log for the final SQL statement that it should be submitting to the Postgres database, and also a localhost_log entry for representing the number of cells that have been selected. The error is reproducable, but it doesn't appear to be an absolute number of cells selected, or an inherent problem with the SQL statement, or the length of the SQL statement. If you're familar with Postgres, I've used psql to run the generated SQL, and it works perfectly, although the statement takes something like 8 to 10 minutes to run. And I've set up Postgres to log all queries, and it definitely starts processing the query; but when the error occurs I get a response immediately, and it's empty. Thinking it might be a JDBC error, I wrote a simple test page which submits a SQL statement I know causes this error as a string directly through a Statement.executeQuery. Alas, after the correct amount of time, it presents a page with the correct results. myWitsI'm I don't suspect this is a bug, and I realize it could be Tomcat, Postgres, JDBC, or IE for all that, but I figure I'd start here. Any ideas or thoughts are welcome and appreciated. Colin Freas Systems Analyst Center for Population and Health Georgetown University -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tomcat/apache with ALIASES (Was canonical names)
I am using Apache 1.3.24 on Solaris 8, and was using tomcat 4.03 with the 4.03 connector. I upgraded to tomcat 4.04b2 and compiled the connector too, but still have the same problem. The targetHost entry always is the ServerName. This sucks. This is a terribly lame limitation with tomcat. WebLogic can do it, even back with 5.0!! Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 10:46 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) This works on Apache 1.3.22 on RedHat Linux, using mod_webapp with tomcat 4.04b2. mod_webapp built from 'jakarta-tomcat-connectors-4.0.4-b2-src' Here are the relevant sections of httpd.conf: - LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c UseCanonicalName On NameVirtualHost 192.168.1.10 VirtualHost 192.168.1.10 DocumentRoot /home/user/public_html ServerName www.domain.com ServerAlias test.domain.com WebAppConnection conn warp localhost:8008 WebAppDeploy mywebapp conn /go /VirtualHost - Ken Anderson Brian Bernardo wrote: Can you send me your httpd.conf file then, because I still get the same problem following your suggestion below. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) I just tried this, and it works! Also, 'UseCanonicalName' is On. Ken Ken Anderson wrote: h... have you tried Apache's ServerAlias Directive? I know this works with static content, but I'm not sure if mod_webapp respects it or not.. VirtualHost 192.168.1.1 ServerName blah1.blah.com ServerAlias blah2.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost Ken Brian Bernardo wrote: While that technically works, it launches a separate tomcat instance within the single JVM instance. Watch the logs in catalina.out and you see that for each WebAppDeploy line a new instance is launched. This offers functionality, but sharing resources is never a good idea if you want any scalability. This site is expected to get 550 concurrent sessions at any time. This will not work out in such a demanding environment. Basically the line: Thu Apr 25 05:22:07 : 204 : TRACE : system : targetHost :bt1.domain.com Suggests that tomcat launches using the one instance per targetHost. If you have one WebAppDeploy and regardless of how you got there (proxy, mod_rewrite, virtual hosts etc) once you access any resource from the webapp directory, you get forwarded to http://targetHost/webapp and you lose the user supplied prefix (bad thing). Any other suggestions out there? There has to be a way to restrict (or add) more than one targetHost for tomcat to allow several access methods. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:02 PM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) Does something like this work? - NameVirtualHost 192.168.1.1 VirtualHost 192.168.1.1 ServerName blah1.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost VirtualHost 192.168.1.1 ServerName blah2.blah.com DocumentRoot /blah WebAppConnection conn2 warp localhost:8008 WebAppDeploy webappconn2 /test /VirtualHost Ken Brian Bernardo wrote: First of all, I am very proficient with DNS; that was not the question. I want users who go to http://name.domain/webapps to have the same webappdeployment as http://name2.domain/webapps. It is important that however they got there (domain prefix) be maintained throughout their session. This works fine for static content, but as soon as anyone goes to http://name?.domain/webapps they get redirected over to http://ServerName/webapps. ServerName is defined within the apache httpd.conf file (same with vitualhost name). That is not good. There has to be a way to have either virtual hosts or some method for tomcat to serve the same dynamic content regardless of how they got there without redirecting. Any one know how to accomplish this? B -Original Message- From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) No. I use A and CNAMES depending on the situation. Do you have proper aliases set up in Apache? Joe - Original Message - From: Oki DZ [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 2:28 AM Subject: Re: tomcat/apache with ALIASES (Was canonical names) On 04/25 15:33 Hamish Marson wrote: What you're using (Or trying to use) is aliases... The DNS records
Re: tomcat/apache with ALIASES (Was canonical names)
What do you mean by 'targetHost' entry? Ken Brian Bernardo wrote: I am using Apache 1.3.24 on Solaris 8, and was using tomcat 4.03 with the 4.03 connector. I upgraded to tomcat 4.04b2 and compiled the connector too, but still have the same problem. The targetHost entry always is the ServerName. This sucks. This is a terribly lame limitation with tomcat. WebLogic can do it, even back with 5.0!! Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 10:46 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) This works on Apache 1.3.22 on RedHat Linux, using mod_webapp with tomcat 4.04b2. mod_webapp built from 'jakarta-tomcat-connectors-4.0.4-b2-src' Here are the relevant sections of httpd.conf: - LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c UseCanonicalName On NameVirtualHost 192.168.1.10 VirtualHost 192.168.1.10 DocumentRoot /home/user/public_html ServerName www.domain.com ServerAlias test.domain.com WebAppConnection conn warp localhost:8008 WebAppDeploy mywebapp conn /go /VirtualHost - Ken Anderson Brian Bernardo wrote: Can you send me your httpd.conf file then, because I still get the same problem following your suggestion below. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) I just tried this, and it works! Also, 'UseCanonicalName' is On. Ken Ken Anderson wrote: h... have you tried Apache's ServerAlias Directive? I know this works with static content, but I'm not sure if mod_webapp respects it or not.. VirtualHost 192.168.1.1 ServerName blah1.blah.com ServerAlias blah2.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost Ken Brian Bernardo wrote: While that technically works, it launches a separate tomcat instance within the single JVM instance. Watch the logs in catalina.out and you see that for each WebAppDeploy line a new instance is launched. This offers functionality, but sharing resources is never a good idea if you want any scalability. This site is expected to get 550 concurrent sessions at any time. This will not work out in such a demanding environment. Basically the line: Thu Apr 25 05:22:07 : 204 : TRACE : system : targetHost :bt1.domain.com Suggests that tomcat launches using the one instance per targetHost. If you have one WebAppDeploy and regardless of how you got there (proxy, mod_rewrite, virtual hosts etc) once you access any resource from the webapp directory, you get forwarded to http://targetHost/webapp and you lose the user supplied prefix (bad thing). Any other suggestions out there? There has to be a way to restrict (or add) more than one targetHost for tomcat to allow several access methods. Brian -Original Message- From: Ken Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 2:02 PM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) Does something like this work? - NameVirtualHost 192.168.1.1 VirtualHost 192.168.1.1 ServerName blah1.blah.com DocumentRoot /blah WebAppConnection conn warp localhost:8008 WebAppDeploy webappconn /test /VirtualHost VirtualHost 192.168.1.1 ServerName blah2.blah.com DocumentRoot /blah WebAppConnection conn2 warp localhost:8008 WebAppDeploy webappconn2 /test /VirtualHost Ken Brian Bernardo wrote: First of all, I am very proficient with DNS; that was not the question. I want users who go to http://name.domain/webapps to have the same webappdeployment as http://name2.domain/webapps. It is important that however they got there (domain prefix) be maintained throughout their session. This works fine for static content, but as soon as anyone goes to http://name?.domain/webapps they get redirected over to http://ServerName/webapps. ServerName is defined within the apache httpd.conf file (same with vitualhost name). That is not good. There has to be a way to have either virtual hosts or some method for tomcat to serve the same dynamic content regardless of how they got there without redirecting. Any one know how to accomplish this? B -Original Message- From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 8:28 AM To: Tomcat Users List Subject: Re: tomcat/apache with ALIASES (Was canonical names) No. I use A and CNAMES depending on the situation. Do you have proper aliases set up in Apache? Joe - Original Message - From: Oki DZ [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 25, 2002 2:28 AM Subject: Re: tomcat/apache with ALIASES (Was canonical names) On
RE: Tomcat and Apache Server - Instalation and Performance
I can give you some good reasons not to use PHP. Take a look at the Horde/IMP project. It's nice stuff. But my goodness, some of the problems they have For example, it is impossible in PHP to open an IMAP connection and save it on the session so that it can be used multiple times. They re-open the IMAP session every request. Talk about murdering scalability... PHP doesn't have threads, and in general is pretty brain dead. Here is the deciding factor: Are you writing software or are you writing scripts? PHP is a scripting language. Java is a programming language. There is a difference. If you are writing software, you need the professional language features that Java offers. If you are writing scripts, then use whatever you would like. -Original Message- From: Juan José Velázquez Garcia [mailto:[EMAIL PROTECTED]] Sent: 26 April, 2002 5:07 PM To: [EMAIL PROTECTED] Subject: Tomcat and Apache Server - Instalation and Performance Hello, I have the following environment: OS: Linux Debian Potato http Server: Apache Does anyone can point a good tutorial to install TOMCAT as addon or plugin within Apache Server? How can I compare the performance of this configuration with other technologies? I have to convince the team to use JSP/JavaBeans instead Perl or PHP. How can I calculate the simultaneos users and memory needed for a site? Is there a rule? Thanks in advance, +-+ Juan Jose Velazquez Garcia www.htmlspider.com.br +-+ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: SystemErrLogger and SystemOutLogger
By default SystemErrLogger and SystemOutLogger go to logs/catalina.out, unless you changed the name of the output target in the bin/catalina.sh script from catalina.out to something else. This is explained in the docs http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/logger.html Hope this helps, Subir -Original Message- From: Mark Diggory [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: SystemErrLogger and SystemOutLogger I was trying to push all tomcats logging up into a different directory than /var/tomcat4/logs for our log managment purposes. I see I can set directory attributes on all FileLoggers but not on the default SystemErrLogger and SystemOutLogger. Is there a simple way I can do this? I like the way the temp directory has becaome configurable in /etc/tomcat4/conf/tomcat4.conf. Having this in there as well would be cool too. -Mark Diggory -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How do you set up a jsp action/filter for all documents in a directory
It wouldn't make a whole lot of sense to do this with a .jsp file. Just use a servlet who's only job is to process the files. in your web.xml... servlet servlet-namefileprocessor/servlet-name servlet-classcom.mycompany.MyFileProcessor/servlet-class /servlet servlet-mapping servlet-namefileprocessor/servlet-name url-pattern/myfiles/*/url-pattern /servlet-mapping Then, in the MyFileProcessor servlet, just use req.getPathInfo() and req.getPathTranslated() to get the needed path to the file to process. So, http://mycompany.com/mycontext/myfiles/humor/2002/04/26/humor8.html Would actually call the MyFileProcessor servlet and req.getPathInfo() == /humor/2002/04/26/humor8.html req.getPathTranslated() == C:\myfiles\humor\2002\04\26\humor8.html Now that you have file system access to the .html file, you can load it up and do whatever you want with it before you send it back out in the response. Jake At 10:46 PM 4/26/2002 +0100, you wrote: Dear Team I've set up a test-bed Apache/Tomcat installation on my W2K box that is working fine. I just cannot figure out how to configure the following: I have a directory of files that can be served by Apache. Let say they are in directory C:\myfiles. I can set up an Apache alias Alias /myfiles/ C:/myfiles/ and thus get to them through the Apache server. However, the HTML files in this directory need some translation before they get served. So when Apache is asked to serve, say, /myfiles/afile.html I need a jsp to be run, that is given the original file path to read so it can provide the translated response. I remember doing this with cgi once using the ScriptAliasMatch directive. I've got as far as adding JkMount /myfiles ajp13 JkMount /myfiles/* ajp13 but have not got any further... Does anyone know how to do this with Apache/Tomcat? Many thanks Paul -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tomcat/apache with ALIASES (Was canonical names)
Here is the whole catalina.out file. The last line is the targetHost entry. That always is the ServerName in the apache conf file. If I go to http://bt1.domain/html/whatever.html I can browse along great without problems as long as the pages are static, but as soon as I go to Http://bt1.domain/webapp I get redirected to http://172.16.40.104/webapp Here is a snip from my httpd.conf: NameVirtualHost 172.16.40.104 VirtualHost 172.16.40.104 ServerName 172.16.40.104 ServerAlias bt1.doamin.com ServerAlias mmo1.domain.com ServerAlias bt2.domain.com ServerAlias mmo2.domain.com DocumentRoot /opt/apache/htdocs WebAppConnection conn warp localhost:8008 WebAppInfo /webapp-info WebAppDeploy../../../../webapp conn/webapp /VirtualHost CATALINA.OUT FILE:: Stopping service Tomcat-Standalone Stopping service Tomcat-Apache root@diablo:/opt/abilizer/framework/rt/tomcat_4-more logs/catalina.out Starting service Tomcat-Standalone Apache Tomcat/4.0 Starting service Tomcat-Apache Apache Tomcat/4.0 Fri Apr 26 04:02:29 : 104 : TRACE : System : INSTALLING ... config.jar loading entry: META-INF/manifest.xml loading entry: paw/config/TargetUpdateCell.class loading entry: paw/config/TogglePageMode.class loading entry: paw/config/UpdateCellCachingData.class loading entry: paw/config/UpdateCellLayoutData.class Fri Apr 26 04:02:30 : 104 : TRACE : System : config: service for browser based configuration, 1.0 cells: UpdateCellLayoutData TogglePageMode UpdateCellCachingData TargetUpdateCe ll Fri Apr 26 04:02:30 : 104 : TRACE : System : INSTALLING ... email.jar loading entry: META-INF/manifest.xml loading entry: paw/email/DateComparator.class loading entry: paw/email/MailInboxCell.class loading entry: paw/email/MailMessageCell.class loading entry: paw/email/MailSessionUtil.class loading entry: paw/email/MailSettings.class loading entry: paw/email/MailSettingsCell.class loading entry: paw/email/MailUserInfo.class Fri Apr 26 04:02:31 : 104 : TRACE : System : email:IMAP E-Mail Access, 1.0 cells: MailInboxCell MailSettingsCell MailMessageCell Fri Apr 26 04:02:31 : 104 : TRACE : System : INSTALLING ... navigation.jar loading entry: META-INF/manifest.xml loading entry: paw/navigation/BreadCrumbs.class loading entry: paw/navigation/DateHeader.class loading entry: paw/navigation/Navigation.class loading entry: paw/navigation/PageAndDateHeader.class loading entry: paw/navigation/PageHeader.class Fri Apr 26 04:02:31 : 104 : TRACE : System : navigation: navigation services, 1.0 cells: DateHeader Navigation PageAndDateHeader PageHeader BreadCrumbs Fri Apr 26 04:02:31 : 104 : TRACE : System : INSTALLING ... rapidcell.jar loading entry: META-INF/manifest.xml loading entry: paw/rapidcell/ButtonCell.class loading entry: paw/rapidcell/CustomHTMLCell.class loading entry: paw/rapidcell/DirectoryCell$FileTypeDesc.class loading entry: paw/rapidcell/DirectoryCell.class loading entry: paw/rapidcell/DropDownCell$Links.class loading entry: paw/rapidcell/DropDownCell.class loading entry: paw/rapidcell/ImageCell.class loading entry: paw/rapidcell/LinkCell.class loading entry: paw/rapidcell/LinkingDropDownCell$Links.class loading entry: paw/rapidcell/LinkingDropDownCell.class loading entry: paw/rapidcell/SpacerCell.class loading entry: paw/rapidcell/StyleSheetCell.class loading entry: paw/rapidcell/TextCell.class loading entry: paw/rapidcell/TextInputCell.class loading entry: paw/rapidcell/util/RapidCellConstants.class loading entry: paw/rapidcell/util/RapidCellUtils.class Fri Apr 26 04:02:31 : 104 : TRACE : System : rapidcell: RapidCell Framework, 1.0 cells: TextInputCell StyleSheetCell DropDownCell LinkingDropDownCell SpacerCell TextCell ImageCell CustomHTMLCell LinkCell DirectoryCell ButtonCell Fri Apr 26 04:02:31 : 104 : TRACE : System : INSTALLING ... signon.jar loading entry: META-INF/manifest.xml loading entry: paw/signon/DbUserVerifier.class loading entry: paw/signon/UserPasswordVerifier.class loading entry: paw/signon/IdentificationVerifier.class loading entry: paw/signon/cells/ui/ContactInfoCell.class loading entry: paw/signon/cells/ui/UserProfile.class loading entry: paw/signon/cells/ui/PasswordCell.class loading entry: paw/signon/cells/ui/RegisterCell.class loading entry: paw/signon/cells/ui/SignOffCell.class loading entry: paw/signon/cells/ui/UserNameCell.class loading entry: paw/signon/cells/ui/UserNamePasswordCell.class loading entry: paw/signon/ConfigurableAuthenticator.class loading entry: paw/signon/cells/ui/UserProfile$escapeQuote.class loading entry: paw/signon/cells/ui/UserProfile$PrefFill.class loading entry: paw/signon/ConfigurableAuthAction.class loading entry: paw/signon/ConfigurableAuthenticator$LoginState.class loading entry: paw/signon/IdentificationGatherer.class loading entry: paw/signon/LDAPUserVerifier.class loading entry: paw/signon/LoginAction.class loading entry: paw/signon/UserNamePasswordGatherer.class loading entry:
Re: Tomcat and Apache Server - Instalation and Performance
On Fri, 26 Apr 2002 17:39:45 -0600 Sexton, George [EMAIL PROTECTED] wrote: [ snip ] Are you writing software or are you writing scripts? PHP is a scripting language. Java is a programming language. There is a difference. If you are writing software, you need the professional language features that Java offers. If you are writing scripts, then use whatever you would like. If you're writing software FOR THE WEB, you might as well use some language that was created just for that purpose, scripting or otherwise. Java is a programming language, so is C and C++. C is still the most popular language for serious programming. Now would you use C when writing a web application? My take on this is.. use whatever works for you, because no one language will be appropriate for all needs. There is no reason to put one language or the other down. Oktay Altunergil -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: SystemErrLogger and SystemOutLogger
Thanks, Yes, I read this numerous times. But, I'd like something simpler than manipulating the dtomcat4 script (which is what I want to avoid). I'd like a way to set it in the /etc/tomcat4/conf/tomcat4 preferences or in server.xml. I'm not looking for a quick fix to configure this on one machine, I need to setup a configuration script that sets up certain settings in tomcat for our software installation across many many many machines. I want to manipulate as few files as possible. If anything I'd like to include a /etc/tomcat4/conf/tomcat4.conf file that covers everything and just copy it over to /etc/tomcat4/conf/tomcat4. It seems a little confusing to have tomcat configured from 3 different locations: /etc/tomcat4/conf/tomcat4 /usr/bin/dtomcat4 /var/tomcat4/conf/server.xml One never knows what is a $Param one can set in /etc/tomcat4/conf/tomcat4.conf or a hand edit that needs to be done in /usr/bin/dtomcat4 vs something that can be configured in the server.xml file. Seems a little cleaner organization could be used here? Something like environmental settings to startup tomcat going in /etc/tomcat4/conf/tomcat4 and configuring behavior of tomcat after startup to go in server.xml (which would include location of all logs and such).I'm confused as to why there are SystemErrLogger and SystemOutLogger entries I could set in server.xml and yet I can't adjust anything like the directories on these entries. As well, I'm stuck with $CATALINA_BASE/logs/catalina.out as the location of catalina out based on the /usr/bin/dtomcat4. Yes I can change $CATALINA_BASE, but I'm stuck with /logs/catalina.out org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 what if I wanted to just set the location of my catalina.out to be where I configured the other logs to be in my server.xml file ( which is /var/log/tomcat/ ), I can't really do it without going in and manipulating the dtomcat4 script. I'm not really interested in manipulating dtomcat4, I really just want to configure tomcat using either /etc/tomcat4/conf/tomcat4 or /var/tomcat4/conf/server.xml. besides, if I set CATALINA_BASE doesn't that adjust everything else dynamic like the location of the webapps directory? It's great to have the ability to adjust the location of the temp directory. I just think we could also use such functionality for the logs as well (and not have it dependent on CATALINA_BASE). My 2 cents, Mark Diggory Subir Sengupta wrote: By default SystemErrLogger and SystemOutLogger go to logs/catalina.out, unless you changed the name of the output target in the bin/catalina.sh script from catalina.out to something else. This is explained in the docs http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/logger.html Hope this helps, Subir -Original Message- From: Mark Diggory [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: SystemErrLogger and SystemOutLogger I was trying to push all tomcats logging up into a different directory than /var/tomcat4/logs for our log managment purposes. I see I can set directory attributes on all FileLoggers but not on the default SystemErrLogger and SystemOutLogger. Is there a simple way I can do this? I like the way the temp directory has becaome configurable in /etc/tomcat4/conf/tomcat4.conf. Having this in there as well would be cool too. -Mark Diggory -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: SystemErrLogger and SystemOutLogger
You can change the directory and file name in catalina.sh like so: org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/what/ever/directory/whatever.out 21 You don't have to change $CATALINA_BASE. Yes, that would be one more file your config script would have to change but AFAIK that's the only way to do it. Subir -Original Message- From: Mark R. Diggory [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 5:49 PM To: Tomcat Users List Subject: Re: SystemErrLogger and SystemOutLogger Thanks, Yes, I read this numerous times. But, I'd like something simpler than manipulating the dtomcat4 script (which is what I want to avoid). I'd like a way to set it in the /etc/tomcat4/conf/tomcat4 preferences or in server.xml. I'm not looking for a quick fix to configure this on one machine, I need to setup a configuration script that sets up certain settings in tomcat for our software installation across many many many machines. I want to manipulate as few files as possible. If anything I'd like to include a /etc/tomcat4/conf/tomcat4.conf file that covers everything and just copy it over to /etc/tomcat4/conf/tomcat4. It seems a little confusing to have tomcat configured from 3 different locations: /etc/tomcat4/conf/tomcat4 /usr/bin/dtomcat4 /var/tomcat4/conf/server.xml One never knows what is a $Param one can set in /etc/tomcat4/conf/tomcat4.conf or a hand edit that needs to be done in /usr/bin/dtomcat4 vs something that can be configured in the server.xml file. Seems a little cleaner organization could be used here? Something like environmental settings to startup tomcat going in /etc/tomcat4/conf/tomcat4 and configuring behavior of tomcat after startup to go in server.xml (which would include location of all logs and such).I'm confused as to why there are SystemErrLogger and SystemOutLogger entries I could set in server.xml and yet I can't adjust anything like the directories on these entries. As well, I'm stuck with $CATALINA_BASE/logs/catalina.out as the location of catalina out based on the /usr/bin/dtomcat4. Yes I can change $CATALINA_BASE, but I'm stuck with /logs/catalina.out org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 what if I wanted to just set the location of my catalina.out to be where I configured the other logs to be in my server.xml file ( which is /var/log/tomcat/ ), I can't really do it without going in and manipulating the dtomcat4 script. I'm not really interested in manipulating dtomcat4, I really just want to configure tomcat using either /etc/tomcat4/conf/tomcat4 or /var/tomcat4/conf/server.xml. besides, if I set CATALINA_BASE doesn't that adjust everything else dynamic like the location of the webapps directory? It's great to have the ability to adjust the location of the temp directory. I just think we could also use such functionality for the logs as well (and not have it dependent on CATALINA_BASE). My 2 cents, Mark Diggory Subir Sengupta wrote: By default SystemErrLogger and SystemOutLogger go to logs/catalina.out, unless you changed the name of the output target in the bin/catalina.sh script from catalina.out to something else. This is explained in the docs http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/logger.html Hope this helps, Subir -Original Message- From: Mark Diggory [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: SystemErrLogger and SystemOutLogger I was trying to push all tomcats logging up into a different directory than /var/tomcat4/logs for our log managment purposes. I see I can set directory attributes on all FileLoggers but not on the default SystemErrLogger and SystemOutLogger. Is there a simple way I can do this? I like the way the temp directory has becaome configurable in /etc/tomcat4/conf/tomcat4.conf. Having this in there as well would be cool too. -Mark Diggory -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Loadbalancer connector Question
Hi: I've finally made my Tomcat loadbalancing work, but the problem is that sessions are not sticky (For example, when I log in to my application, the connector redirects me to the other server, instead of maintaining the other through the session). Is there a way to solve this?. Thanks in advance Gabriel,.
Re: Apache 2 TomCat 4 Integration Troubles...
HI Frederick, You can always try defining the LoadModule with the full path of the physical system. ie.if the mod_webapp.so is found in E:\Apache\modules\mod_webapp.so you can specify them as follows: LoadModule webapp_module E:/Apache/modules/mod_webapp.so AddModule mod_webapp.c Try this.. Regards H.Rajesh (Webteam) [EMAIL PROTECTED] SSPL India. - Original Message - From: Frederick Aubert [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, April 26, 2002 6:14 PM Subject: Re: Apache 2 TomCat 4 Integration Troubles... Hi Syntax error on line 173 of D:/Server/Apache Group/ Apache2/conf/http.conf Cannot load D:\Server\Apache Group\Apache2\./modules/mod_webapp.so into server: The specified module could not be found... Here is the error message I got whenever I add the following line to my httpd: LoadModule webapp_module modules/mod_webapp.so. But what is suprising me is that in the other LoadModule lines of the default httpd are using exactly the same syntaxis, for example I find: LoadModule userdir_module modules/mod_userdir.so which is working fine. Nonetheless I tried to change the slash to a backslash (LoadModule webapp_modules modules\mod_webapp.so) but that doesn't change the error message. I double checked and have the mod_webapp.so file along in my modules directory... Any thought? Where is the ./ coming from? Any help appreciated? Sincerely, Frederick Aubert -- !!! PLEASE UPDATE your address book, my NEW EMAIL is [EMAIL PROTECTED] !!! Member of the Warlords II World Tournament Organizers Team --- (`-''-/).___..--''`-._ `6_ 6 ) `-. ( ).`-.__.`) Frederick Aubert (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' ,'[EMAIL PROTECTED] (il),-'' (li),' ((!.-' --- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Redhat 7.1 Apache + Tomcat Issues
Please help me, I can not get apache to work with tomcat for the life of me, and I've read through all the directions and many tutorials. I have tomcat working flawlessly independently of apache when I go to port 8080, but when ever I try to get to tomcat through apache by calling up a JSP (index.jsp for instance) I get a page cannot be found error from the browser and I get the following error from tomcat: 2002-04-26 20:23:01 - Ctx() : Class not found: TOMCAT/JSP/index.jsp 2002-04-26 20:23:01 - Ctx() : Status code:404 request:R( + /index.jsp + null) msg:null I always get that. And it's really weird, because my jsps are working flawlessly independent of apache. I'm using Apache-1.3.23-11.i386.rpm jakarta-tomcat-3.3.1-src.tar.gz I compiled mod_jserv.so like all the tutorials said, put it in the /var/lib/apache/ directory. I put an Include in the httpd.conf which Includes the tomcat.conf file. I restarted the computer a few times. I don't know what's going wrong. Instead of listing out the config files you can access my tomcat/conf directory here: http://gleagues.noxordo.com/conf/ A copy of my httpd.conf file can be found here: http://gleagues.noxordo.com/httpd.conf None of the log files are giving any significant data regarding other problems. Please help, I'm so very close to smashing my head against this keyboard. Thanks in advance. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Loadbalancer connector Question
Do you have cookie turned off? If you are using modjk (which is the only one I know of that load balances), you will need that turned on, because it is dependent on that. -Original Message- From: Gabriel Maffia [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 10:18 PM To: Tomcat Users List Subject: Loadbalancer connector Question Hi: I've finally made my Tomcat loadbalancing work, but the problem is that sessions are not sticky (For example, when I log in to my application, the connector redirects me to the other server, instead of maintaining the other through the session). Is there a way to solve this?. Thanks in advance Gabriel,. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError
Hello Did you found an answer to this? its happening in my server too. I have the same configuration than you but with Tomcat 4.0.3. -- Best regards, NG Hi, NG My website is using the following versions of software: NG Struts 1.0.2 NG Apache 1.3.22 NG Tomcat 4.0.2 NG Java Runtime Env 1.4 NG MySQL 3.23.41 NG RedHat Linux 7.2 using Linux 2.4 kernel NG Over a period of time, while running top I see memory being eaten up on my box (box has 1GB of RAM). Free memory goes down to about 5-15MB which is way too low. NG Occasionally (i.e. once a week or once every two weeks), the site goes down/can't send responses. I see the following error in my /var/tomcat4/logs/catalina.out file: NG java.lang.OutOfMemoryError: unable to create new native thread NG at java.lang.Thread.start(Native Method) NG at org.apache.catalina.connector.warp.WarpConnection.start(WarpConnection.java:159) NG at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:601) NG at java.lang.Thread.run(Thread.java:536) NG java.lang.OutOfMemoryError: unable to create new native thread NG at java.lang.Thread.start(Native Method) NG at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) NG at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) NG at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275) NG at java.io.OutputStream.write(OutputStream.java:58) NG at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) NG at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275) NG at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275) NG at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:556) NG at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1144) NG at sun.net.www.protocol.http.HttpURLConnection.getResponseCode(HttpURLConnection.java:1158) NG at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getResponseCode(DashoA6275) NG at com.mandalaybay.actions.ResNetStatus.run(ResNetStatus.java:52) NG Once I restart Tomcat, memory is freed up and the site goes along until this error occurs again a week or two later. NG Looks like a memory leak, but not sure the real cause. I saw a similar problem which occurred much more frequently with Tomcat 4.0.2 with JVM 1.3 so I've upgraded to JVM 1.4 and now receive an NG out of memory problem only sporadically. NG Has anyone else encountered this problem? NG If not, does anyone have some really good tools/commands which can help determine the cause of the problem? NG My JVM settings have default heap size 128MB and max size 256MB by using the following command: NG JAVACMD=$JAVA_HOME/bin/java -Xms128m -Xmx256m NG -- NG To unsubscribe: mailto:[EMAIL PROTECTED] NG For additional commands: mailto:[EMAIL PROTECTED] NG Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]