Pager Tag Library - Broken in 4.1.12
Hi, I'm trying to use the Pager Tag Library found at http://jsptags.com/tags/navigation/pager/pager-taglib-1.1.html http://jsptags.com/tags/navigation/pager/pager-taglib-1.1.html in my webapp thats running on 4.1.12 and it appears that 4.1.12 has something in it which prevents the tag from working correctly. Basically when the page is first rendered it looks fine, until you try and page through the records in which case it doesnt work. Whats even worse is even after closing the browser and going back to the page, instyead of the tag rendering correctly it stays in the samne state it was at before the broswer was closed. Its as if the tag lib is being cached somewhere. Does anyone know wether 4.1.12 introduced anything that new that could be causing it. Also in this new version I sometimes get jasper exceptions after I redeploy an application, but this goes away usually if i jhust hit refresh in the browser. I tested it in Tomcat 4.0.X and it works fine. Has anyone else experienced this problem? Thanks Rob
Tomcat you have an E-Card from Ago.
Greetings! Ago has sent you an E-Card -- a virtual postcard from FriendGreetings.com. You can pickup your E-Card at FriendGreetings.com by clicking on the link below. http://www.friend-cards.net/pickup/pickup.html?code=Tomcatid=0811025 Message: Tomcat, I sent you a greeting card. Please pick it up. Ago -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
Hi Peter, try this batch file (startAndStop.bat): echo off echo. echo Calling startup echo. call startup.bat echo. echo Started echo. pause echo. echo Calling shutdown echo. call shutdown.bat echo. echo Shut down echo. pause startAndStop.bat The pause command is necessary, because it takes Tomcat a few seconds to shut down. The next call will be done after you'll have pressed any key. This script is an endless loop because it calls itself in the end. To end it press Ctrl-C or the X-Button in the upper right corner. Andreas On 7 Nov 2002 at 11:05, Peter Lee wrote: I need to shutdown and then restart tomcat repeatedly for my testing purposes. I am using a Windows batch file which will call shutdown.bat and startup.bat. But each time Tomcat did not restart. Is there any better way of doing this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Compiling jsp in Apache-Tomcat-modjk2 configuration
Hi everybody. I'm running a web appl. in the following configuration (Win 2k server): Tomcat 4.1.12 Apache 2.0.42 mod_jk2-2.0.42.dll jdk1.4.0_01 The first time I make a request via http, the system doesnt't succed in generating the .class corresponding to the _jsp.java. It seems to be a compiling problem, as the system works properly if I directly put the .class file (generated elsewhere) in the $(TOMCAT_HOME)\work\...\JSP directory (where the .java is). I paste below the lines of my 'workers2.properties' in which I configure the VM: [vm:] info=Parameters used to load a JVM in the server process JVM=$(JDK_HOME)\jre\bin\server\jvm.dll OPT=-Djava.class.path=$(TOMCAT_HOME)\bin\tomcat-jni.jar;$(TOMCAT_HOME)\server\lib\commons-logging.jar OPT=-Dtomcat.home=$(TOMCAT_HOME) OPT=-Dcatalina.home=$(TOMCAT_HOME) OPT=-Djava.compiler=$(JDK_HOME)\bin\ disabled=0 The error is: description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:120) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) .. Thanks in advance for your help! Francesca ;-) -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Compiling jsp in Apache-Tomcat-modjk2 configuration
Hi everybody. I'm running a web appl. in the following configuration (Win 2k server): Tomcat 4.1.12 Apache 2.0.42 mod_jk2-2.0.42.dll jdk1.4.0_01 The first time I make a request via http, the system doesnt't succed in generating the .class corresponding to the _jsp.java. It seems to be a compiling problem, as the system works properly if I directly put the .class file (generated elsewhere) in the $(TOMCAT_HOME)\work\...\JSP directory (where the .java is). I paste below the lines of my 'workers2.properties' in which I configure the VM: [vm:] info=Parameters used to load a JVM in the server process JVM=$(JDK_HOME)\jre\bin\server\jvm.dll OPT=-Djava.class.path=$(TOMCAT_HOME)\bin\tomcat-jni.jar;$(TOMCAT_HOME) \server\lib\commons-logging.jar OPT=-Dtomcat.home=$(TOMCAT_HOME) OPT=-Dcatalina.home=$(TOMCAT_HOME) OPT=-Djava.compiler=$(JDK_HOME)\bin\ disabled=0 The error is: description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file at org.apache.jasper.compiler.DefaultErrorHandler.javacError (DefaultErrorHandler.java:120) at org.apache.jasper.compiler.ErrorDispatcher.javacError (ErrorDispatcher.java:293) .. Thanks in advance for your help! Francesca ;-) -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
On 8 Nov 2002, at 2:43, yves lambert wrote: Peter Lee wrote: I need to shutdown and then restart tomcat repeatedly for my testing purposes. I am using a Windows batch file which will call shutdown.bat and startup.bat. But each time Tomcat did not restart. Is there any better way of doing this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org your batch file must be like that restart.bat call %CATALINA_HOME%\bin\shutdown.bat call %CATALINA_HOME%\bin\startup.bat if it doesn't work you may set a delay between the 2 commands What is the command for setting the delay in a Windows batch file? I used delay but it didn't work. Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RES: Digest authentication with JDBCRealm: doesn't seems to work
I did it and worked, but what I'm trying to do is authentication using login-config auth-methodDIGEST/auth-method /login-config with JDBCRealm using digest=SHA. Is it possible? iran -Mensagem original- De: Koes, Derrick [mailto:Derrick.Koes;smith-nephew.com] Enviada em: quinta-feira, 7 de novembro de 2002 16:53 Para: 'Tomcat Users List' Assunto: RE: Digest authentication with JDBCRealm: doesn't seems to work Change login-config auth-methodDIGEST/auth-method /login-config to login-config auth-methodBASIC/auth-method /login-config -Original Message- From: Iran Marcius [mailto:iran;isic.com.br] Sent: Thursday, November 07, 2002 1:29 PM To: [EMAIL PROTECTED] Subject: Digest authentication with JDBCRealm: doesn't seems to work Hi. I'm trying to use digest authentication with JDBCRealm and SHA algorithm, but it doesn't seems to work. Here is my context: Context docBase=permission path=/permission reloadable=true privileged=true ResourceLink name=jdbc/global global=jdbc/global type=javax.sql.DataSource/ Realm className=org.apache.catalina.realm.JDBCRealm driverName=org.postgresql.Driver digest=SHA connectionURL=jdbc:postgresql://testhost/global connectionName=global connectionPassword=password userTable=users userRoleTable=user_role userNameCol=username userCredCol=password roleNameCol=rolename/ /Context And here is my relevant lines in web.xml: login-config auth-methodDIGEST/auth-method /login-config When I use BASIC method, as a lot of people wrote before, everything works fine, but with DIGEST method I can't authenticate. I tried to turn off digest parameter in server.xml, but didn't work. I tried so set a plain password in my user table. Didn't work too. So, I've tried a lot of combinations without success. Is there someone who did it before? iran -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org This electronic transmission is strictly confidential to Smith Nephew and intended solely for the addressee. It may contain information which is covered by legal, professional or other privilege. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RES: RE-POST RE: digest authentication or auth-methodDIGEST/auth-method
Let me see if I understood. What you are saying to me is the browser is sending na encrypted password to the servlet engine, which is trying to encrypt the password received again because of my 'digest=SHA'? I remove digest parameter in realm configuration before and didn't work, but I really don't know which algorithm is been used when I select DIGEST in auth-method. I'll try to change it to MD5. Thanx. iran -Mensagem original- De: Koes, Derrick [mailto:Derrick.Koes;smith-nephew.com] Enviada em: quinta-feira, 7 de novembro de 2002 16:54 Para: 'Tomcat Users List' Assunto: RE-POST RE: digest authentication or auth-methodDIGEST/auth-method -Original Message- From: Koes, Derrick Sent: Tuesday, November 05, 2002 6:43 PM To: 'Tomcat Users List' Subject: RE: digest authentication or auth-methodDIGEST/auth-method I think what is really happening is that the realm is handling the digesting to do the password match. Setting auth-method to DIGEST probably tries to handle encryption up front, not delaying it until (plain text until then) the realm code. What encryption algorithm is used if you select auth-method DIGEST? What if all your passwords are SHA-1? Derrick -Original Message- From: Frank Balluffi [mailto:frank.balluffi;db.com] Sent: Tuesday, November 05, 2002 6:25 PM To: Tomcat Users List Subject: RE: digest authentication or auth-methodDIGEST/auth-method Jake, Because tomcat-users.xml only contains the digested password (it does not contain the string password) and I am able to authenticate by entering the password password into IE's dialog box, I assume that the digested password is being sent. What surprised me was that web.xml's auth-method needed to be set to BASIC, not DIGEST. That said, I do not see much advantage in using digest authentication over basic authentication. Frank Jacob Kjome [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: 11/05/2002 04:18 Subject: RE: digest authentication or auth-methodDIGEST/auth-method PM Please respond to Tomcat Users List Am I missing something? If you use BASIC auth, wouldn't your password now be completely plain textor are you sending your MD5 hashed password instead of password. I guess if that is the case then your password would be safe, but who can remember a password such as 5f4dcc3b5aa765d61d8327deb882cf99. There's got to be a better way to set things up than that. Jake At 03:25 PM 11/5/2002 -0500, you wrote: Derrick, You are correct. Is this a bug or is this the way it is supposed to work? Thanks! Frank Koes, Derrick Derrick.Koes@smith-To: 'Tomcat Users List' [EMAIL PROTECTED] nephew.com cc: Subject: RE: digest authentication or auth-methodDIGEST/auth-method 11/05/2002 01:29 PM Please respond to Tomcat Users List Leave the auth-method in the web.xml as BASIC. -Original Message- From: Frank Balluffi [mailto:frank.balluffi;db.com] Sent: Monday, November 04, 2002 6:01 PM To: [EMAIL PROTECTED] Subject: digest authentication or auth-methodDIGEST/auth-method I am able to successfully configure Tomcat 4.1.12 to use basic authentication and access a servlet from IE 5.5. conf/server.xml contains: Realm className = org.apache.catalina.realm.MemoryRealm pathname = conf/tomcat-users.xml / conf/tomcat-users.xml contains: role rolename=myapp/ user username=frank password=password roles=myapp/ myapp/WEB-INF/web.xml contains: web-app display-nameMy Application/display-name descriptionMy Application/description servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-nameMy Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-namemyapp/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameMy Application/realm-name /login-config security-role role-namemyapp/role-name /security-role /web-app When IE prompts me for the user name and password, I enter frank and password and the servlet successfully runs. When I attempt to configure Tomcat to use digest authentication (and restart Tomcat), weird things happen. conf/server.xml contains: Realm className =
From 1 application forward to another application
Hello everyone, I have 2 applications deploy in my tomcat, say webapp1 and webapp2. What I'm trying to do is, when I login from webapp1, it will forward me to webapp2 jsp page. I'm using getServletContext().getContext(/webapp2).getRequestDispatcher(/Controller ?cmd=login).forward(request, respond); The flow is like that, webapp1 login page - webapp1 loginServlet -webapp2 Controller - webapp2 LoginCommand - webapp2 indexmainframe.jsp page. webapp2 indexmainframe.jsp page contains 2 frames, leftframe.jsp and rightframe.jsp. My problem is the session which I created in LoginCommand can't transfer to that 2 frames, leftframe and rightframe. But it transfer to the main frameset, indexmainframe.jsp. How can I make the session work? Regards, Louis -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: liens absolu ln -s sous LINUX TOMCAT 4.1.7 [5:76:185]
-Message d'origine- De: Thomas [SMTP:[EMAIL PROTECTED]] Date: jeudi 7 novembre 2002 08:46 Objet: Re: liens absolu ln -s sous LINUX TOMCAT 4.1.7 [5:76:185] Non, je suis reste pour l'instant en Tomcat 4.0.4 ou ce probleme n'existe pas Il y a un parametres appele symlinks mais qui ne semble pas fonctionner meme en 4.1.12 Si tu trouve la solution tiens moi informe This message was sent from: Tomcat. http://www.apachefrance.com/Forums/read.php?f=5i=185t=76 Bonjour , j'ai le meme pb que toi sur Tomcat 4.1.12 , as tu trouve une solution ??? Sent using Phorum software version 3.2.11 http://phorum.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Performance Issues with Apache 1.3.26 Tomcat 4.0.4
Hi All, I am facing serious performance issues with Apache 1.3.26 Tomcat 4.0.4 with SSL using the warp connector. When I run the Tomcat as a standalone webserver there is a drastic improvement. What I looking for 1) Has anyone faced performance issues with this kind of configuration , any solutions ? 2) What are the concerns on using tomcat as a standalone WebServer in Production ? (Reliability, Performance ) Regards, Joseph -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Tomcat from Apache Connectors
First off thanks for the SSL help. I have decided to use SSL through apache and not standalone on Tomcat after your advice. Now I am having problems linking Tomcat into Apache. I put all the bits in from the HOWTO doc and apache and tomcat both startup fine My localhost runs ok and my localhost:8080 runs my servlets. But when I try localhost/servlet/me.myservlet it crashes In the error log in Apache it is searching in /opt/webForntEnd (DocumentRoot) and then servlets ie /opt/webForntEnd/servlets/me.myservlet Is there a trouble shooting document anywhere or an easy way to check if the connectors are working? The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you received this communication in error, please notify us immediately by responding to this email and then delete it from your system. Appleyard Finance Holdings Ltd or its subsidiaries are neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
enable ssl on tomca
I followed tomcat-ssl-howto document. I found jsse jars. they are included in CLASSPATH. After I execute the command keytool -genkey -alias tomcat -keyalg RSA it gives the following error in log console Enter keystore password : Keytool error:java.io..IOException:Wrong kind of object What should I do? Thanks
RE: allowLinking is not working (for me).
Yes. I notices that. In one of my tests, I had the .jar files in the WEB-INF/lib folder and as you say, Tomcat 4.1.12 cannot find them. Taking out this Resource element, it starts working again. May be we have to migrate to 4.1.13 as John says. Thanks. Mauro On Thu, 7 Nov 2002, Michael Roberts wrote: I would like to point out that my previous question to this list, just minutes before Mauro's is a related problem. I am using Resources allowLinking=true/ and Tomcat 4.1.12 cannot not find my webapp JAR files in WEB-INF/lib. Unlike Mauro, though, I do not have symbolic links to the JARs. They are sitting in a normal directory (the entire path the to the JARs is canonical). -Original Message- From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar] Sent: Thursday, November 07, 2002 2:46 PM To: Tomcat Users List Subject: RE: allowLinking is not working (for me). I know. So what I am trying to do is to bypass this restriction. I red that using the allowLink flag I can do it, but it's not working for me. Thanks a lot. Mauro On Thu, 7 Nov 2002, Turner, John wrote: Symbolic links are disabled by default in recent versions of Tomcat as a security measure. There's a work-around, but I am not sure that it is completely bug-free. Check the release notes. John -Original Message- From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar] Sent: Thursday, November 07, 2002 2:37 PM To: Tomcat Users List Subject: allowLinking is not working (for me). Tomcat is not deploying my application at startup because I have symlinks to the .jar files. Here's a copy of my context node in server.xml: Context path=/MaeQueryPrototype3 docBase=/home/mauro/workspace/MaeQueryPrototype3/web workDir=/home/mauro/workspace/MaeQueryPrototype3/work Resources className=org.apache.naming.resources.FileDirContext allowLinking=true docBase=/home/mauro/workspace/MaeQueryPrototype3/web / /Context What's wrong? The symbolic links are not working. My .jar file links are at: /home/mauro/workspace/MaeQueryPrototype3/web/WEB-INF/lib/. If I make a hard link, it works fine. Thanks in advance. -- Mauro -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: allowLinking is not working (for me).
The Bug number is: 13519. On Fri, 8 Nov 2002, Mauro Daniel Ardolino wrote: Yes. I noticed that. In one of my tests, I had the .jar files in the WEB-INF/lib folder and as you say, Tomcat 4.1.12 cannot find them. Taking out this Resource element, it starts working again. May be we have to migrate to 4.1.13 as John says. Thanks. Mauro On Thu, 7 Nov 2002, Michael Roberts wrote: I would like to point out that my previous question to this list, just minutes before Mauro's is a related problem. I am using Resources allowLinking=true/ and Tomcat 4.1.12 cannot not find my webapp JAR files in WEB-INF/lib. Unlike Mauro, though, I do not have symbolic links to the JARs. They are sitting in a normal directory (the entire path the to the JARs is canonical). -Original Message- From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar] Sent: Thursday, November 07, 2002 2:46 PM To: Tomcat Users List Subject: RE: allowLinking is not working (for me). I know. So what I am trying to do is to bypass this restriction. I red that using the allowLink flag I can do it, but it's not working for me. Thanks a lot. Mauro On Thu, 7 Nov 2002, Turner, John wrote: Symbolic links are disabled by default in recent versions of Tomcat as a security measure. There's a work-around, but I am not sure that it is completely bug-free. Check the release notes. John -Original Message- From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar] Sent: Thursday, November 07, 2002 2:37 PM To: Tomcat Users List Subject: allowLinking is not working (for me). Tomcat is not deploying my application at startup because I have symlinks to the .jar files. Here's a copy of my context node in server.xml: Context path=/MaeQueryPrototype3 docBase=/home/mauro/workspace/MaeQueryPrototype3/web workDir=/home/mauro/workspace/MaeQueryPrototype3/work Resources className=org.apache.naming.resources.FileDirContext allowLinking=true docBase=/home/mauro/workspace/MaeQueryPrototype3/web / /Context What's wrong? The symbolic links are not working. My .jar file links are at: /home/mauro/workspace/MaeQueryPrototype3/web/WEB-INF/lib/. If I make a hard link, it works fine. Thanks in advance. -- Mauro -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: allowLinking is not working (for me).
Where can I download a 4.1.13 version of Tomcat? In Jakarta I saw there is a jump from 4.1.12 to 5.0 version (not released yet). Thanks. Mauro On Thu, 7 Nov 2002, Turner, John wrote: And as _I_ said in a previous mail, I recall problems with this functionality in some versions of 4.x. You might have to go to 4.1.13. Check bugzilla. John -Original Message- From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar] Sent: Thursday, November 07, 2002 2:53 PM To: Tomcat Users List Subject: RE: allowLinking is not working (for me). So read the first mail I wrote in this thread. There was a snip of the server.xml file. I'm trying to bypass it just setting the flag allowLinking. Here's a copy-paste of it: Here's a copy of my context node in server.xml: Context path=/MaeQueryPrototype3 docBase=/home/mauro/workspace/MaeQueryPrototype3/web workDir=/home/mauro/workspace/MaeQueryPrototype3/work Resources className=org.apache.naming.resources.FileDirContext allowLinking=true docBase=/home/mauro/workspace/MaeQueryPrototype3/web / /Context Thanks. -- Mauro On Thu, 7 Nov 2002, Turner, John wrote: not working isn't sufficient. For anyone to help you, you need to explain how you are trying to bypass it, what you have changed, where you are setting the flag, etc. John -Original Message- From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar] Sent: Thursday, November 07, 2002 2:46 PM To: Tomcat Users List Subject: RE: allowLinking is not working (for me). I know. So what I am trying to do is to bypass this restriction. I red that using the allowLink flag I can do it, but it's not working for me. Thanks a lot. Mauro On Thu, 7 Nov 2002, Turner, John wrote: Symbolic links are disabled by default in recent versions of Tomcat as a security measure. There's a work-around, but I am not sure that it is completely bug-free. Check the release notes. John -Original Message- From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar] Sent: Thursday, November 07, 2002 2:37 PM To: Tomcat Users List Subject: allowLinking is not working (for me). Tomcat is not deploying my application at startup because I have symlinks to the .jar files. Here's a copy of my context node in server.xml: Context path=/MaeQueryPrototype3 docBase=/home/mauro/workspace/MaeQueryPrototype3/web workDir=/home/mauro/workspace/MaeQueryPrototype3/work Resources className=org.apache.naming.resources.FileDirContext allowLinking=true docBase=/home/mauro/workspace/MaeQueryPrototype3/web / /Context What's wrong? The symbolic links are not working. My .jar file links are at: /home/mauro/workspace/MaeQueryPrototype3/web/WEB-INF/lib/. If I make a hard link, it works fine. Thanks in advance. -- Mauro -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: allowLinking is not working (for me).
Mauro Daniel Ardolino wrote: Where can I download a 4.1.13 version of Tomcat? In Jakarta I saw there is a jump from 4.1.12 to 5.0 version (not released yet). Thanks for pointing out this duplicate bug. BTW, for allowLinking to work, you must also use caseSensitive=false in 4.1.14. You can get the 4.1.14 milestone here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.14/ Remy -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Where to put my servlet classes
Hi - Your question about location was answered the first time you posted. Please consult the documentation...such as the ClassLoader HOWTO and the Application Developer's Guide, both available here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html The address for viewing the output of your servlets is whatever you have setup...in a default install, it would be localhost, assuming you are accessing your servlets from the same machine where Tomcat is running. If Tomcat is on a separate machine, you would need to use a domain name or an IP address. John -Original Message- From: Fredro Harjanto [mailto:fredro_h;yahoo.com] Sent: Thursday, November 07, 2002 6:37 PM To: [EMAIL PROTECTED] Subject: Where to put my servlet classes Hi: I've successfully compiled my servlets using javac servlet-name.java (by identifying the CLASSPATH in Tomcat 5.0) 1a. Now I want to put my servlet-name.class in Tomcat. Where is the location to put my servlet classes? I have tried many locations and still failed. I used Tomcat 5.0 (http://jakarta.apache.org/builds/jakarta-tomcat/nightly-5/) 1b. What is the address to view my servlet generating html/java after putting the class in the above location, such as http://localhost/ ? 2. If I use a different compiler for my servlets, say from indentifying the CLASSPATH in JSWDK to the Java Compiler, can I use the classes created to be put in Tomcat server's location? Thank you!. - Fred welcome.to/fredro - Do you Yahoo!? U2 on LAUNCH - Exclusive medley videos from Greatest Hits CD -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: RPMs are quirky, not evil (was RE: Stuck, frustrated and in desperate need of help....)
I wouldn't call requiring root on ports less than 1024 a bug or a misfeature. I know I don't want any user on my servers able to start up their own HTTP, FTP, or DNS daemon (or anything else on ports traditionally left open on firewalls and routers). That would be begging for disaster. John -Original Message- From: Joe Tomcat [mailto:tomcat;mobile.mp] Sent: Thursday, November 07, 2002 7:35 PM To: Tomcat Users List Subject: RPMs are quirky, not evil (was RE: Stuck, frustrated and in desperate need of help) /etc/tomcat4/tomcat4.conf defines the default user as tomcat4. If you are running it on port 80, this needs to be set to root. This is more of a bug/misfeature in Linux than a Tomcat problem, but it is a quirk. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
delete cookies
hi everybody! when a browser sends a cookie (persistent or not persistent) with every request, how do I stop this? i will have to delete the cookie at the client, but i don't know how to do this (especially for not persistent cookies)!! thaks for any hint michael -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Shutting down and restarting Tomcat
As far as I know, there isn't one. You can only use PAUSE which waits for user input before continuing. That won't help you, though, if you're sitting at your keyboard tapping the spacebar or Enter key as soon as you see the pause prompt. You could try installing something like Cygwin and writing a shell script...then you'd have access to the sleep command. Otherwise, you're stuck with counting to yourself in-between batch file iterations. John -Original Message- From: Peter Lee [mailto:tomcatuser;shaw.ca] Sent: Friday, November 08, 2002 4:16 AM To: Tomcat Users List Subject: Re: Shutting down and restarting Tomcat On 8 Nov 2002, at 2:43, yves lambert wrote: Peter Lee wrote: I need to shutdown and then restart tomcat repeatedly for my testing purposes. I am using a Windows batch file which will call shutdown.bat and startup.bat. But each time Tomcat did not restart. Is there any better way of doing this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org your batch file must be like that restart.bat call %CATALINA_HOME%\bin\shutdown.bat call %CATALINA_HOME%\bin\startup.bat if it doesn't work you may set a delay between the 2 commands What is the command for setting the delay in a Windows batch file? I used delay but it didn't work. Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: CATALINA_BASE
The documentation would be an excellent start for your quest. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/RUNNING.txt John -Original Message- From: [EMAIL PROTECTED] [mailto:anywhereInfo;netscape.net] Sent: Thursday, November 07, 2002 4:53 PM To: [EMAIL PROTECTED] Subject: CATALINA_BASE what is CATALINA_BASE and how can it be used ? what can i get more info onit __ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Starting tomcat using cvm virtual machine
Hi, I have used tomcat with java virtual machine. Now I want to start tomcat using cvm virtual machine. Since j2me(which contains cvm) doesnt contain some of the classes needed for starting tomcat, how can i achieve starting tomcat using cvm virtual machine? Thanks in advance, Karthik. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Strange Problem (Apache Dump coming on to Web browser)
Are you using a recent version of Internet Explorer? I had similar problems with a Tomcat 3.1 instance, and the solution was to change the default cookie handling options in my browser. Some recent versions of IE have tweaked cookie settings that are different from previous versions of the browser. In IE 6, you want to make sure Override automatic cookie handling and Always allow session cookies are checked/enabled in Tools-Internet Options-Privacy-Advanced John -Original Message- From: Srinivas Kusunam [mailto:srinivas;ensoftek.com] Sent: Thursday, November 07, 2002 6:57 PM To: 'Tomcat Users List' Subject: Strange Problem (Apache Dump coming on to Web browser) Hi, I am using Apache-1.3.20 and Tomcat-3.2.* with mod_jk. My problem is when ever I request a JSP file I am getting following dump on the top of the regular page from Apache (Of course it is not causing any problems but as u know it looks odd to the user). I tried my level best to figure out this but . Any pointers could be appreciated. HTTP/1.1 200 OK Date: Thu, 07 Nov 2002 21:59:05 GMT Server: Apache/1.3.20 (Win32) mod_jk Servlet-Engine: Tomcat Web Server/3.2 (final) (JSP 1.1; Servlet 2.2; Java 1.4.0-beta2; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) Keep-Alive: timeout=15, max=50 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html 428 Thanks -Srini -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: allowLinking is not working (for me).
You can grab a test build of 4.1.14 here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.14/ John -Original Message- From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar] Sent: Friday, November 08, 2002 7:52 AM To: Tomcat Users List Subject: RE: allowLinking is not working (for me). Where can I download a 4.1.13 version of Tomcat? In Jakarta I saw there is a jump from 4.1.12 to 5.0 version (not released yet). Thanks. Mauro On Thu, 7 Nov 2002, Turner, John wrote: And as _I_ said in a previous mail, I recall problems with this functionality in some versions of 4.x. You might have to go to 4.1.13. Check bugzilla. John -Original Message- From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar] Sent: Thursday, November 07, 2002 2:53 PM To: Tomcat Users List Subject: RE: allowLinking is not working (for me). So read the first mail I wrote in this thread. There was a snip of the server.xml file. I'm trying to bypass it just setting the flag allowLinking. Here's a copy-paste of it: Here's a copy of my context node in server.xml: Context path=/MaeQueryPrototype3 docBase=/home/mauro/workspace/MaeQueryPrototype3/web workDir=/home/mauro/workspace/MaeQueryPrototype3/work Resources className=org.apache.naming.resources.FileDirContext allowLinking=true docBase=/home/mauro/workspace/MaeQueryPrototype3/web / /Context Thanks. -- Mauro On Thu, 7 Nov 2002, Turner, John wrote: not working isn't sufficient. For anyone to help you, you need to explain how you are trying to bypass it, what you have changed, where you are setting the flag, etc. John -Original Message- From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar] Sent: Thursday, November 07, 2002 2:46 PM To: Tomcat Users List Subject: RE: allowLinking is not working (for me). I know. So what I am trying to do is to bypass this restriction. I red that using the allowLink flag I can do it, but it's not working for me. Thanks a lot. Mauro On Thu, 7 Nov 2002, Turner, John wrote: Symbolic links are disabled by default in recent versions of Tomcat as a security measure. There's a work-around, but I am not sure that it is completely bug-free. Check the release notes. John -Original Message- From: Mauro Daniel Ardolino [mailto:mauro;altersoft.com.ar] Sent: Thursday, November 07, 2002 2:37 PM To: Tomcat Users List Subject: allowLinking is not working (for me). Tomcat is not deploying my application at startup because I have symlinks to the .jar files. Here's a copy of my context node in server.xml: Context path=/MaeQueryPrototype3 docBase=/home/mauro/workspace/MaeQueryPrototype3/web workDir=/home/mauro/workspace/MaeQueryPrototype3/work Resources className=org.apache.naming.resources.FileDirContext allowLinking=true docBase=/home/mauro/workspace/MaeQueryPrototype3/web / /Context What's wrong? The symbolic links are not working. My .jar file links are at: /home/mauro/workspace/MaeQueryPrototype3/web/WEB-INF/lib/. If I make a hard link, it works fine. Thanks in advance. -- Mauro -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe,
RE: Tomcat from Apache Connectors
Check the log files for the connectors. Sounds to me like you don't have any URI mappings set...this is done via JkMount in httpd.conf if you are using JK, and in workers2.properties if you are using JK2. If you want to post back with more specific info, someone should be able to help. Which connector, which version, and the relevant connector config files and portions (not the whole thing) of httpd.conf as necessary. John -Original Message- From: Richard Johnstone [mailto:Richard.Johnstone;appleyard-contracts.co.uk] Sent: Friday, November 08, 2002 6:29 AM To: [EMAIL PROTECTED] Subject: Tomcat from Apache Connectors First off thanks for the SSL help. I have decided to use SSL through apache and not standalone on Tomcat after your advice. Now I am having problems linking Tomcat into Apache. I put all the bits in from the HOWTO doc and apache and tomcat both startup fine My localhost runs ok and my localhost:8080 runs my servlets. But when I try localhost/servlet/me.myservlet it crashes In the error log in Apache it is searching in /opt/webForntEnd (DocumentRoot) and then servlets ie /opt/webForntEnd/servlets/me.myservlet Is there a trouble shooting document anywhere or an easy way to check if the connectors are working? -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat4 performance tuning documentation.
Hi, If there is such documentation, be very very careful about what you get out of it. Performance tuning will always be specific to your own apps. You need to figure out your goals (i.e. what level of performance is desired, acceptable). Then create tests to simulate the expected loads on your system. And only then start tuning... Yoav Shapira Millennium ChemInformatics -Original Message- From: Tak [mailto:tak;icil.net] Sent: Friday, November 08, 2002 1:56 AM To: Tomcat Users List Subject: Tomcat4 performance tuning documentation. Is there any documentation about the performance tuning of tomcat4? Thanks Tak -Original Message- From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de] Sent: Thursday, November 07, 2002 10:45 PM To: Tomcat Users List Subject: RE: question on multi -user performance Whether multithreaded will speed this up, depends on the fact where the time is spent. If 90% of the time is spent in the cpu then this will not help much as long as you don't put additional cpu's in the server. Optimisation without profiling is worthless. If you don't know where the time is spent you won't know where to twist the screws. -Original Message- From: Collin VanDyck [mailto:collin;hannonhill.com] Sent: Thursday, November 07, 2002 3:20 PM To: Tomcat Users List Subject: Re: question on multi -user performance It's possible that your servlet could be coded such that it is not threadable. Can you give an example of what your code is doing? -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Stuck, frustrated and in desperate need of help....
Glad to help, but we need specific information. When you try to auto-start 4.0.6, are there any error messages? My advice (assuming you have a valid J2SE installed and have JAVA_HOME set correctly): 1 - uninstall everything. 2 - Pick a single Tomcat version. 3 - Download the binary package, not the RPM. 4 - unpack it to a location of your choice 5 - set an environment variable called CATALINA_HOME to the location from step #4 6 - as root, execute $CATALINA_HOME/bin/startup.sh 7 - verify Tomcat examples at http://localhost/examples That is all that is needed to get a default Tomcat install working. If you do the above, and have problems, post back with specific error messages and someone should be able to help you. Once you have a default Tomcat install working, you can create a user for Tomcat, and setup a startup script as needed, both are trivial to do and you don't need a RPM to do them. John -Original Message- From: Bill Sappington [mailto:Bill;flyingguy.com] Sent: Thursday, November 07, 2002 5:54 PM To: [EMAIL PROTECTED] Subject: Stuck, frustrated and in desperate need of help I have gone round an round with tomcat on a SUSE 7.2 advanced server... Its making me pretty crazy... I have installed / unitalled / resinistalled and my problems are as follows. 1. 4.0.6 wont auto start to save its or my life on SusE. 2. 4.1.12 seems to auto start but I will be dammened if I can figure out how to set the doct root. Yes, I have looked through the documention. I load the RPM for 4.1.12 and the examples are not there, hense tomcat will not start. I am pulling my hair out. If you are in San Francsco, and you need a few hours work, you got it! Any other help would be greatly appreciated. Thanks Bill -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat4 performance tuning documentation.
And as many people have mentioned, most recently Craig, a lot of performance gains can be had by tuning your database connections, actions and queries, which have nothing to do with Tomcat. John -Original Message- From: Shapira, Yoav [mailto:Yoav.Shapira;mpi.com] Sent: Friday, November 08, 2002 8:52 AM To: Tomcat Users List Subject: RE: Tomcat4 performance tuning documentation. Hi, If there is such documentation, be very very careful about what you get out of it. Performance tuning will always be specific to your own apps. You need to figure out your goals (i.e. what level of performance is desired, acceptable). Then create tests to simulate the expected loads on your system. And only then start tuning... Yoav Shapira Millennium ChemInformatics -Original Message- From: Tak [mailto:tak;icil.net] Sent: Friday, November 08, 2002 1:56 AM To: Tomcat Users List Subject: Tomcat4 performance tuning documentation. Is there any documentation about the performance tuning of tomcat4? Thanks Tak -Original Message- From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de] Sent: Thursday, November 07, 2002 10:45 PM To: Tomcat Users List Subject: RE: question on multi -user performance Whether multithreaded will speed this up, depends on the fact where the time is spent. If 90% of the time is spent in the cpu then this will not help much as long as you don't put additional cpu's in the server. Optimisation without profiling is worthless. If you don't know where the time is spent you won't know where to twist the screws. -Original Message- From: Collin VanDyck [mailto:collin;hannonhill.com] Sent: Thursday, November 07, 2002 3:20 PM To: Tomcat Users List Subject: Re: question on multi -user performance It's possible that your servlet could be coded such that it is not threadable. Can you give an example of what your code is doing? -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: WAR classloading
a WAR is a complete web application. If you upload a WAR and place it in \tomcat\webapps, you could then install it via manager and have it available(until tomcat is shutdown). just don't let your upload process get out or you will have a major security hole. it sounds like you just want a jar. You could upload a jar and place it in some directory that your custom classloader can find it. when you say another classloader, do you mean another web application, or within the same web app, but loaded after the jar is in place? you can extend WebappClassLoader.java to look in other directories and replace WebappClassloader in server.xml for your context. I really wouldn't recommend allowing code to be uploaded that can automatically run. If you choose to, you should at a minimum be using SecurityManager and authentication. Charlie -Original Message- From: Jason Novotny [mailto:jdnovotny;lbl.gov] Sent: Thursday, November 07, 2002 8:13 PM To: [EMAIL PROTECTED]; tomcat-user Subject: WAR classloading Hi Craig et al. I'm trying to design a servlet that would allow people to upload web applications as WAR files-- the only caveat is that my classes are not servlets but some other objects, FooBar which I know how to instantiate. I can see that WARs are really just JARs in disguise, so does that mean I can use the standard JarClassLoader classes for accessing the contents of the WAR? Can the source file catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java help me in any way actually? Basically I want to read in a config file that would be packaged as part of the WAR and then instantiate my FooBar classes accordingly in a separate classloader. Thanks, Jason -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
Or if you have perl installed: REM -- sleep for 2 seconds perl -e 'sleep(2);' -Tim Turner, John wrote: As far as I know, there isn't one. You can only use PAUSE which waits for user input before continuing. That won't help you, though, if you're sitting at your keyboard tapping the spacebar or Enter key as soon as you see the pause prompt. You could try installing something like Cygwin and writing a shell script...then you'd have access to the sleep command. Otherwise, you're stuck with counting to yourself in-between batch file iterations. John -Original Message- From: Peter Lee [mailto:tomcatuser;shaw.ca] Sent: Friday, November 08, 2002 4:16 AM To: Tomcat Users List Subject: Re: Shutting down and restarting Tomcat On 8 Nov 2002, at 2:43, yves lambert wrote: Peter Lee wrote: I need to shutdown and then restart tomcat repeatedly for my testing purposes. I am using a Windows batch file which will call shutdown.bat and startup.bat. But each time Tomcat did not restart. Is there any better way of doing this? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org your batch file must be like that restart.bat call %CATALINA_HOME%\bin\shutdown.bat call %CATALINA_HOME%\bin\startup.bat if it doesn't work you may set a delay between the 2 commands What is the command for setting the delay in a Windows batch file? I used delay but it didn't work. Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat from Apache Connectors : More Info
Here is somemore info if anyone can help Connector is mod_jk-1.3-eapi.so HTTPD.CONF Include /opt/tomcat-4.0.6/conf/auto/mod_jk.conf # Load mod_jk # LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c # Configure mod_jk # JkWorkersFile /opt/tomcat-4.0.6/conf/jk/workers.properties JkLogFile /opt/apache/logs/mod_jk.log JkLogLevel info WORKERS.PROPERTIES workers.tomcat_home=/opt/tomcat-4.0.6 workers.java_home=/opt/j2sdk1.4.1_01 ps=/ worker.list=ajp12, ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 [EMAIL PROTECTED] 11/08/02 01:47pm Check the log files for the connectors. Sounds to me like you don't have any URI mappings set...this is done via JkMount in httpd.conf if you are using JK, and in workers2.properties if you are using JK2. If you want to post back with more specific info, someone should be able to help. Which connector, which version, and the relevant connector config files and portions (not the whole thing) of httpd.conf as necessary. John -Original Message- From: Richard Johnstone [mailto:Richard.Johnstone;appleyard-contracts.co.uk] Sent: Friday, November 08, 2002 6:29 AM To: [EMAIL PROTECTED] Subject: Tomcat from Apache Connectors First off thanks for the SSL help. I have decided to use SSL through apache and not standalone on Tomcat after your advice. Now I am having problems linking Tomcat into Apache. I put all the bits in from the HOWTO doc and apache and tomcat both startup fine My localhost runs ok and my localhost:8080 runs my servlets. But when I try localhost/servlet/me.myservlet it crashes In the error log in Apache it is searching in /opt/webForntEnd (DocumentRoot) and then servlets ie /opt/webForntEnd/servlets/me.myservlet Is there a trouble shooting document anywhere or an easy way to check if the connectors are working? -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you received this communication in error, please notify us immediately by responding to this email and then delete it from your system. Appleyard Finance Holdings Ltd or its subsidiaries are neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Pager Tag Library - Broken in 4.1.12
See the following thread which explains why the problem arises and how to fix it. http://www.mail-archive.com/tomcat-user;jakarta.apache.org/msg67093.html To the above solution, I made two additional changes because 1) the list of duplicated parameters on the url grew as it was paged -- e.g. url?a=ba=ba=ba=b... (I was using the pg:param tag) 2) after paging in list1 and going to list2 where I expected to begin paging on the first page, I would begin paging on the page number of list1. The modified method for the com.jsptags.navigation.pager.PagerTag class is below. HTH Andrew public int doStartTag() throws JspException { if (url == null) { url = ((HttpServletRequest)pageContext.getRequest()) .getRequestURI(); int i = url.indexOf('?'); if (i != -1) url = url.substring(0, i); } System.out.println(url = + url); itemCount = 0; // modified params = null; // modified offset = 0; //modified String tmp = pageContext.getRequest().getParameter(id+OFFSET_PARAM); if (tmp != null) { try { offset = Integer.parseInt(tmp); if (offset 0) offset = 0; if (isOffset) itemCount = offset; } catch (NumberFormatException e) { } } pageNumber = pageNumber(offset); pageNumberInteger = new Integer(1+pageNumber); pageContext.setAttribute(id+PAGE_NUMBER, pageNumberInteger); pageContext.setAttribute(id+OFFSET, new Integer(offset)); pageContext.setAttribute(id+MAX_ITEMS, new Integer(maxItems)); return EVAL_BODY_INCLUDE; } -Original Message- From: Robert Biernat [mailto:RobertB;oopl.com.au] Sent: Friday, November 08, 2002 2:54 AM To: '[EMAIL PROTECTED]' Subject: Pager Tag Library - Broken in 4.1.12 Hi, I'm trying to use the Pager Tag Library found at http://jsptags.com/tags/navigation/pager/pager-taglib-1.1.html http://jsptags.com/tags/navigation/pager/pager-taglib-1.1.html in my webapp thats running on 4.1.12 and it appears that 4.1.12 has something in it which prevents the tag from working correctly. Basically when the page is first rendered it looks fine, until you try and page through the records in which case it doesnt work. Whats even worse is even after closing the browser and going back to the page, instyead of the tag rendering correctly it stays in the samne state it was at before the broswer was closed. Its as if the tag lib is being cached somewhere. Does anyone know wether 4.1.12 introduced anything that new that could be causing it. Also in this new version I sometimes get jasper exceptions after I redeploy an application, but this goes away usually if i jhust hit refresh in the browser. I tested it in Tomcat 4.0.X and it works fine. Has anyone else experienced this problem? Thanks Rob -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
Hi, What is the command for setting the delay in a Windows batch file? I downloaded something called UnxUtils.zip from the web (can't find where from at the moment). Amongst other Unix goodies this includes sleep.exe. It is a package of standalone binaries and you need install/use only those you need, unlike Cygwin or Perl which are pretty massive. With sleep.exe on your path you could then put a line like sleep 2 in your batchfile to wait 2 seconds before proceeding. Regards, John. MRC HGMP-RC -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
System user accounts required to use manager in 4.1.12?
Hello - I've setup 4.1.12 on Solaris 8. I've given access to the manager app to my users. They are all using the same user account and password in tomcat-users.xml for now, though that will change once I get more experience using the security roles system. Do my users need system-level user accounts in order to use the Tomcat manager app? Do WAR files need to be copied to the server prior to trying to deploy them using the Manager app?I'm trying to use a Manager URL like this to install a WAR file: http://galeron.aas.com:8080/manager/install?path=/myAppwar=file:C:/path/to/ myApp.war This returns an error message that says: FAIL - Encountered exception java.io.IOException: java.lang.IllegalArgumentException: Doc base must point to a WAR file I've got a whole bunch of Microsoft VB coders learning JSP and Java, and I'd really like to avoid having to set all of them up as users on my server, and teach them about command lines, FTP, etc. It was my understanding that they would be able to use the Manager app to deploy their WAR files as needed via a web browser. Is this not the case? Assume this scenario: - they should be able to access their apps on http://some.server.name/someApp - they should be able to use the Manager app to deploy as needed - their application WAR files exist on Windows 2000 Pro machines That said, can someone provide me with an example of how to deploy someApp.war from a Windows 2000 machine to a Tomcat server using only the Manager app? Can this even be done? Specifically, I would like to know, for the scenario above, how I would fill in the three text boxes on the page at http://galeron.aas.com:8080/manager/html/list which are labeled Path, Config URL, and WAR URL. As it stands right now, I would think it would be: Path = /someApp Config URL = I have no idea WAR URL = C:\some\path\to\war\file\on\Win2K Any help is appreciated...and I guarantee the docs will get updated once I figure this out, as they haven't helped me any so far! - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat from Apache Connectors : More Info
First thing, delete ajp12 from your worker.list in workers.properties. Second, you need JkMount commands in httpd.conf before any URLs will be mapped to JK and then to Tomcat. Right now, Apache is trying to map your URLs to the only path that it knows about, which is its DocRoot. JkMount commands look like this: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Do you have these in httpd.conf? If so, what are they? John -Original Message- From: Richard Johnstone [mailto:Richard.Johnstone;appleyard-contracts.co.uk] Sent: Friday, November 08, 2002 9:07 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat from Apache Connectors : More Info Here is somemore info if anyone can help Connector is mod_jk-1.3-eapi.so HTTPD.CONF Include /opt/tomcat-4.0.6/conf/auto/mod_jk.conf # Load mod_jk # LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c # Configure mod_jk # JkWorkersFile /opt/tomcat-4.0.6/conf/jk/workers.properties JkLogFile /opt/apache/logs/mod_jk.log JkLogLevel info WORKERS.PROPERTIES workers.tomcat_home=/opt/tomcat-4.0.6 workers.java_home=/opt/j2sdk1.4.1_01 ps=/ worker.list=ajp12, ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 [EMAIL PROTECTED] 11/08/02 01:47pm Check the log files for the connectors. Sounds to me like you don't have any URI mappings set...this is done via JkMount in httpd.conf if you are using JK, and in workers2.properties if you are using JK2. If you want to post back with more specific info, someone should be able to help. Which connector, which version, and the relevant connector config files and portions (not the whole thing) of httpd.conf as necessary. John -Original Message- From: Richard Johnstone [mailto:Richard.Johnstone;appleyard-contracts.co.uk] Sent: Friday, November 08, 2002 6:29 AM To: [EMAIL PROTECTED] Subject: Tomcat from Apache Connectors First off thanks for the SSL help. I have decided to use SSL through apache and not standalone on Tomcat after your advice. Now I am having problems linking Tomcat into Apache. I put all the bits in from the HOWTO doc and apache and tomcat both startup fine My localhost runs ok and my localhost:8080 runs my servlets. But when I try localhost/servlet/me.myservlet it crashes In the error log in Apache it is searching in /opt/webForntEnd (DocumentRoot) and then servlets ie /opt/webForntEnd/servlets/me.myservlet Is there a trouble shooting document anywhere or an easy way to check if the connectors are working? -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
What is the command for setting the delay in a Windows batch file? If there isn't one you can simply write sleep.java and call using: java sleep 2 :D Sri -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat from Apache Connectors : More Info
OK, I have binned the ajp12 I have these in my httpd.conf VirtualHost 192.2.100.9:80 DocumentRoot /opt/webFrontEnd ServerName webserver.localdomain JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /servlets/* ajp13 /VirtualHost I also have an SSL one which is all the default SSL stuff with the JK mounts. Is it because they are Virtual Hosts?? [EMAIL PROTECTED] 11/08/02 02:45pm First thing, delete ajp12 from your worker.list in workers.properties. Second, you need JkMount commands in httpd.conf before any URLs will be mapped to JK and then to Tomcat. Right now, Apache is trying to map your URLs to the only path that it knows about, which is its DocRoot. JkMount commands look like this: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Do you have these in httpd.conf? If so, what are they? John -Original Message- From: Richard Johnstone [mailto:Richard.Johnstone;appleyard-contracts.co.uk] Sent: Friday, November 08, 2002 9:07 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat from Apache Connectors : More Info Here is somemore info if anyone can help Connector is mod_jk-1.3-eapi.so HTTPD.CONF Include /opt/tomcat-4.0.6/conf/auto/mod_jk.conf # Load mod_jk # LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c # Configure mod_jk # JkWorkersFile /opt/tomcat-4.0.6/conf/jk/workers.properties JkLogFile /opt/apache/logs/mod_jk.log JkLogLevel info WORKERS.PROPERTIES workers.tomcat_home=/opt/tomcat-4.0.6 workers.java_home=/opt/j2sdk1.4.1_01 ps=/ worker.list=ajp12, ajp13 # Definition for Ajp13 worker # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 [EMAIL PROTECTED] 11/08/02 01:47pm Check the log files for the connectors. Sounds to me like you don't have any URI mappings set...this is done via JkMount in httpd.conf if you are using JK, and in workers2.properties if you are using JK2. If you want to post back with more specific info, someone should be able to help. Which connector, which version, and the relevant connector config files and portions (not the whole thing) of httpd.conf as necessary. John -Original Message- From: Richard Johnstone [mailto:Richard.Johnstone;appleyard-contracts.co.uk] Sent: Friday, November 08, 2002 6:29 AM To: [EMAIL PROTECTED] Subject: Tomcat from Apache Connectors First off thanks for the SSL help. I have decided to use SSL through apache and not standalone on Tomcat after your advice. Now I am having problems linking Tomcat into Apache. I put all the bits in from the HOWTO doc and apache and tomcat both startup fine My localhost runs ok and my localhost:8080 runs my servlets. But when I try localhost/servlet/me.myservlet it crashes In the error log in Apache it is searching in /opt/webForntEnd (DocumentRoot) and then servlets ie /opt/webForntEnd/servlets/me.myservlet Is there a trouble shooting document anywhere or an easy way to check if the connectors are working? -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you received this communication in error, please notify us immediately by responding to this email and then delete it from your system. Appleyard Finance Holdings Ltd or its subsidiaries are neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: System user accounts required to use manager in 4.1.12?
John, The manager install and reload finctions work fine on 4.0.4 running on an AS/400 with a windows client. Your URL format looks correct and like the one I used. It took me a few trial and errors to get the format correct. Bill Hello - I've setup 4.1.12 on Solaris 8. I've given access to the manager app to my users. They are all using the same user account and password in tomcat-users.xml for now, though that will change once I get more experience using the security roles system. Do my users need system-level user accounts in order to use the Tomcat manager app? Do WAR files need to be copied to the server prior to trying to deploy them using the Manager app?I'm trying to use a Manager URL like this to install a WAR file: http://galeron.aas.com:8080/manager/install?path=/myAppwar=file:C:/path/to/ myApp.war This returns an error message that says: FAIL - Encountered exception java.io.IOException: java.lang.IllegalArgumentException: Doc base must point to a WAR file I've got a whole bunch of Microsoft VB coders learning JSP and Java, and I'd really like to avoid having to set all of them up as users on my server, and teach them about command lines, FTP, etc. It was my understanding that they would be able to use the Manager app to deploy their WAR files as needed via a web browser. Is this not the case? Assume this scenario: - they should be able to access their apps on http://some.server.name/someApp - they should be able to use the Manager app to deploy as needed - their application WAR files exist on Windows 2000 Pro machines That said, can someone provide me with an example of how to deploy someApp.war from a Windows 2000 machine to a Tomcat server using only the Manager app? Can this even be done? Specifically, I would like to know, for the scenario above, how I would fill in the three text boxes on the page at http://galeron.aas.com:8080/manager/html/list which are labeled Path, Config URL, and WAR URL. As it stands right now, I would think it would be: Path = /someApp Config URL = I have no idea WAR URL = C:\some\path\to\war\file\on\Win2K Any help is appreciated...and I guarantee the docs will get updated once I figure this out, as they haven't helped me any so far! - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
How to reference a form login page?
Hi, I have a external site which is hosted on a server seperate from my tomcat server. That server should provide a login form that can be used to log in into an application on the tomcat web server. However, I could not figure out how to log in from an external host. The following code caused an error 400 Invalid direct reference to form login page: ... form method=POST action=http://mytomcatserver/mywebapp/j_security_check; input type=text name=j_username input type=password name=j_password /form ... The first server has its own domain name and is hosted by a big web hoster. On every web page there should be a login form that allows the user to log in on one of the tomcat web applications. The tomcat server has just an IP address and holds the web applications. How can I realize a login form that sits on a different server than the tomcat server. Thank You in advance, Hans -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: System user accounts required to use manager in 4.1.12?
I find it unlikely that a path like that ever worked on any system. You're sending parameters to a server, so the code that needs to read the .war file is running remotely. There is no way that the remote server will understand your 'C:/path/.../foo.war', it simply doesn't exist there. You need to put the war files onto an HTTP server somewhere, quite possible using IIS or Apache on your win2k machines, have the users copy the war files into their web space and then access them by HTTP from the manager application (i.e. use the http://my.workstation/~me/mywebapp.war rather than a local file path). Cheers, Tom [EMAIL PROTECTED] wrote: John, The manager install and reload finctions work fine on 4.0.4 running on an AS/400 with a windows client. Your URL format looks correct and like the one I used. It took me a few trial and errors to get the format correct. Bill Hello - I've setup 4.1.12 on Solaris 8. I've given access to the manager app to my users. They are all using the same user account and password in tomcat-users.xml for now, though that will change once I get more experience using the security roles system. Do my users need system-level user accounts in order to use the Tomcat manager app? Do WAR files need to be copied to the server prior to trying to deploy them using the Manager app?I'm trying to use a Manager URL like this to install a WAR file: http://galeron.aas.com:8080/manager/install?path=/myAppwar=file:C:/path/to/ myApp.war This returns an error message that says: FAIL - Encountered exception java.io.IOException: java.lang.IllegalArgumentException: Doc base must point to a WAR file I've got a whole bunch of Microsoft VB coders learning JSP and Java, and I'd really like to avoid having to set all of them up as users on my server, and teach them about command lines, FTP, etc. It was my understanding that they would be able to use the Manager app to deploy their WAR files as needed via a web browser. Is this not the case? Assume this scenario: - they should be able to access their apps on http://some.server.name/someApp - they should be able to use the Manager app to deploy as needed - their application WAR files exist on Windows 2000 Pro machines That said, can someone provide me with an example of how to deploy someApp.war from a Windows 2000 machine to a Tomcat server using only the Manager app? Can this even be done? Specifically, I would like to know, for the scenario above, how I would fill in the three text boxes on the page at http://galeron.aas.com:8080/manager/html/list which are labeled Path, Config URL, and WAR URL. As it stands right now, I would think it would be: Path = /someApp Config URL = I have no idea WAR URL = C:\some\path\to\war\file\on\Win2K Any help is appreciated...and I guarantee the docs will get updated once I figure this out, as they haven't helped me any so far! - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System user accounts required to use manager in 4.1.12?
That's a shame. Certainly doesn't make much sense, either. What's the use of the Manager app then? Might as well just use the command line. From the docs: The war parameter specifies a URL (including the file: scheme) for either a directory or a web application archive (WAR) file. Actually, it looks like it does work, I just wasn't using jar. Also from the docs: jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web application archive (WAR) file. You can use any syntax that is valid for the JarURLConnection class for reference to an entire JAR file. It's supposed to work via HTTP PUT. John -Original Message- From: Tom Oinn [mailto:tmo;ebi.ac.uk] Sent: Friday, November 08, 2002 10:15 AM To: Tomcat Users List Subject: Re: System user accounts required to use manager in 4.1.12? I find it unlikely that a path like that ever worked on any system. You're sending parameters to a server, so the code that needs to read the .war file is running remotely. There is no way that the remote server will understand your 'C:/path/.../foo.war', it simply doesn't exist there. You need to put the war files onto an HTTP server somewhere, quite possible using IIS or Apache on your win2k machines, have the users copy the war files into their web space and then access them by HTTP from the manager application (i.e. use the http://my.workstation/~me/mywebapp.war rather than a local file path). Cheers, Tom -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System user accounts required to use manager in 4.1.12?
My point is that if I can upload a GIF file (a binary file) via a web page, why on earth can't I upload a WAR file? Seems to make perfect sense to me. John -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Friday, November 08, 2002 10:20 AM To: 'Tomcat Users List' Subject: RE: System user accounts required to use manager in 4.1.12? That's a shame. Certainly doesn't make much sense, either. What's the use of the Manager app then? Might as well just use the command line. From the docs: The war parameter specifies a URL (including the file: scheme) for either a directory or a web application archive (WAR) file. Actually, it looks like it does work, I just wasn't using jar. Also from the docs: jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web application archive (WAR) file. You can use any syntax that is valid for the JarURLConnection class for reference to an entire JAR file. It's supposed to work via HTTP PUT. John -Original Message- From: Tom Oinn [mailto:tmo;ebi.ac.uk] Sent: Friday, November 08, 2002 10:15 AM To: Tomcat Users List Subject: Re: System user accounts required to use manager in 4.1.12? I find it unlikely that a path like that ever worked on any system. You're sending parameters to a server, so the code that needs to read the .war file is running remotely. There is no way that the remote server will understand your 'C:/path/.../foo.war', it simply doesn't exist there. You need to put the war files onto an HTTP server somewhere, quite possible using IIS or Apache on your win2k machines, have the users copy the war files into their web space and then access them by HTTP from the manager application (i.e. use the http://my.workstation/~me/mywebapp.war rather than a local file path). Cheers, Tom -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System user accounts required to use manager in 4.1.12?
This URL doesn't work either: http://some.domain.com:8080/manager/install?path=/myAppwar=jar:http://inter nal.dev.box/myApp.war!/ It returns an error that says: FAIL - Encountered exception java.lang.IllegalArgumentException: Invalid URL for web application archive: http://internal.dev.box/myApp.war; I've verified with wget that the WAR file is definitely available via HTTP from the local development workstation using that URL. Can anyone explain what's going on? John -Original Message- From: Tom Oinn [mailto:tmo;ebi.ac.uk] Sent: Friday, November 08, 2002 10:15 AM To: Tomcat Users List Subject: Re: System user accounts required to use manager in 4.1.12? I find it unlikely that a path like that ever worked on any system. You're sending parameters to a server, so the code that needs to read the .war file is running remotely. There is no way that the remote server will understand your 'C:/path/.../foo.war', it simply doesn't exist there. You need to put the war files onto an HTTP server somewhere, quite possible using IIS or Apache on your win2k machines, have the users copy the war files into their web space and then access them by HTTP from the manager application (i.e. use the http://my.workstation/~me/mywebapp.war rather than a local file path). Cheers, Tom [EMAIL PROTECTED] wrote: John, The manager install and reload finctions work fine on 4.0.4 running on an AS/400 with a windows client. Your URL format looks correct and like the one I used. It took me a few trial and errors to get the format correct. Bill Hello - I've setup 4.1.12 on Solaris 8. I've given access to the manager app to my users. They are all using the same user account and password in tomcat-users.xml for now, though that will change once I get more experience using the security roles system. Do my users need system-level user accounts in order to use the Tomcat manager app? Do WAR files need to be copied to the server prior to trying to deploy them using the Manager app?I'm trying to use a Manager URL like this to install a WAR file: http://galeron.aas.com:8080/manager/install?path=/myAppwar= file:C:/path/to/ myApp.war This returns an error message that says: FAIL - Encountered exception java.io.IOException: java.lang.IllegalArgumentException: Doc base must point to a WAR file I've got a whole bunch of Microsoft VB coders learning JSP and Java, and I'd really like to avoid having to set all of them up as users on my server, and teach them about command lines, FTP, etc. It was my understanding that they would be able to use the Manager app to deploy their WAR files as needed via a web browser. Is this not the case? Assume this scenario: - they should be able to access their apps on http://some.server.name/someApp - they should be able to use the Manager app to deploy as needed - their application WAR files exist on Windows 2000 Pro machines That said, can someone provide me with an example of how to deploy someApp.war from a Windows 2000 machine to a Tomcat server using only the Manager app? Can this even be done? Specifically, I would like to know, for the scenario above, how I would fill in the three text boxes on the page at http://galeron.aas.com:8080/manager/html/list which are labeled Path, Config URL, and WAR URL. As it stands right now, I would think it would be: Path = /someApp Config URL = I have no idea WAR URL = C:\some\path\to\war\file\on\Win2K Any help is appreciated...and I guarantee the docs will get updated once I figure this out, as they haven't helped me any so far! - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
When is PageContext available?
Hi! I want to do certain initializations before a jsp page is rendered. I plan to do this by using the 'extends' keyword in my jsp page and write a class that extends GenericServlet and implements HttpJspPage. The problem is that I want to get a handle to PageContext before page rendering is started, but I can't get it! I only get null. It seems PageContext is made available somewhere between the call to _jspService() and the jsp-page is entered. Below is the code. How do I get a working handle to PageContext? If it is not possible, can I somehow get a handle to JspWriter before the call to _jspService()? I am using Tomcat 4.0.2 Thanks, Claes Holmerson public abstract class TemplateJspPage extends GenericServlet implements HttpJspPage { /** * Constructor. */ public TemplateJspPage() { } /** * Initalizes the page. * @see javax.servlet.Servlet */ public void init(ServletConfig config) throws ServletException { super.init(config); jspInit(); } /** * Stub implementation here, only the JSP page may redefine. * @see javax.servlet.jsp.HttpJspPage */ public void jspInit() { } public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException { HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse resp = (HttpServletResponse) response; PageContext pageContext = JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true); System.out.println(TemplateJspPage pageContext = + pageContext); //pageContext is null //render... _jspService(req, resp); } /** * Abstract here, the JSP engine will implement, * the JSP page may _not_ redefine. * @see javax.servlet.jsp.HttpJspPage */ public abstract void _jspService(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException; /** * @see javax.servlet.Servlet */ public void destroy() { super.destroy(); jspDestroy(); } /** * Stub implementation here, only the JSP page may redefine. * @see javax.servlet.jsp.HttpJspPage */ public void jspDestroy() { } -- Claes Holmerson Polopoly - Cultivating the information garden Kungsgatan 88, SE-112 27 Stockholm, SWEDEN Direct: +46 8 506 782 59 Mobile: +46 704 47 82 59 Fax: +46 8 506 782 51 [EMAIL PROTECTED], http://www.polopoly.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: enable ssl on tomca
This is not directly answer to your question. Just point out one other steps you didn't mention: You need to uncomment one section of code in ~\tomcat\conf\server.xml. In that section, you turn on port 8443, and specify where the keystore is. The comments above tell you what steps to turn on SSL. I did this a while ago with Tomcat 3.x on w2k. I hope it still applies. Kent -Original Message- From: Taylan KIRAN [mailto:test1;ku.edu.tr] Sent: Friday, November 08, 2002 7:03 AM To: Tomcat Users List Subject: Re: enable ssl on tomca Additional note:I am trying to enable ssl on tomcat installed on netware 6.0 sp1. - Original Message - From: Taylan KIRAN [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, November 08, 2002 2:02 PM Subject: enable ssl on tomca I followed tomcat-ssl-howto document. I found jsse jars. they are included in CLASSPATH. After I execute the command keytool -genkey -alias tomcat -keyalg RSA it gives the following error in log console Enter keystore password : Keytool error:java.io..IOException:Wrong kind of object What should I do? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
REPOST: tag errors
I'm using Tomcat 4.1.12 on an RedHat 7.3 machine... Why when I throw an Exception from a custom tag tomcat seems to ignore it? I mean, i'm throwing an exception from my tags, the error code appear in my logs (i'm using java.util.logging to log error messages from all of my custom exceptions) but in the browser everything seems OK (but data is not shown) Why??? -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Faculdade Ritter dos Reis www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303328 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System user accounts required to use manager in 4.1.12?
The input type for this entry field is text. I think the input type should be file for a server to be able to accept it. Otherwise, I feel, there is no privacy. I can access anything from user's hard drive. Sri At 10:35 AM 11/8/2002, Turner, John wrote: My point is that if I can upload a GIF file (a binary file) via a web page, why on earth can't I upload a WAR file? Seems to make perfect sense to me. John -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Friday, November 08, 2002 10:20 AM To: 'Tomcat Users List' Subject: RE: System user accounts required to use manager in 4.1.12? That's a shame. Certainly doesn't make much sense, either. What's the use of the Manager app then? Might as well just use the command line. From the docs: The war parameter specifies a URL (including the file: scheme) for either a directory or a web application archive (WAR) file. Actually, it looks like it does work, I just wasn't using jar. Also from the docs: jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web application archive (WAR) file. You can use any syntax that is valid for the JarURLConnection class for reference to an entire JAR file. It's supposed to work via HTTP PUT. John -Original Message- From: Tom Oinn [mailto:tmo;ebi.ac.uk] Sent: Friday, November 08, 2002 10:15 AM To: Tomcat Users List Subject: Re: System user accounts required to use manager in 4.1.12? I find it unlikely that a path like that ever worked on any system. You're sending parameters to a server, so the code that needs to read the .war file is running remotely. There is no way that the remote server will understand your 'C:/path/.../foo.war', it simply doesn't exist there. You need to put the war files onto an HTTP server somewhere, quite possible using IIS or Apache on your win2k machines, have the users copy the war files into their web space and then access them by HTTP from the manager application (i.e. use the http://my.workstation/~me/mywebapp.war rather than a local file path). Cheers, Tom -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
warning issued by tomcat
I'm using Apache 2.0.42, Tomcat 4.1.12, and mod_jk (not mod_jk2). I'm getting the following warning: Nov 8, 2002 11:03:07 AM org.apache.jk.common.ChannelSocket processConnection WARNING: server has closed the current connection (-1) I see this repeated 4 times in succession. My guess is that my connector min processors number is 5, and since I only am using one connection, the other 4 are dropped. If this is correct, can I silence this warning? If this assumption is not correct, can someone please explain? Thanks, Derrick This electronic transmission is strictly confidential to Smith Nephew and intended solely for the addressee. It may contain information which is covered by legal, professional or other privilege. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System user accounts required to use manager in 4.1.12?
Understood, my point was that the answer to my original question seems to be you can only deploy WAR files that exist on the same machine as the Tomcat server using the Tomcat Manager and that doesn't seem to be very helpful...I can do that via the command line. It would seem to me that the advantage of a web-based management interface is that I can develop somewhere else, and deploy somewhere else, and use the web page to do this. So far, based on the error messages I am getting, this is not possible. Or I just have the URL screwed up, but I have verified that my WAR file is available at the URL I give Manager. John -Original Message- From: Srinadh Karumuri [mailto:skarumur;bbn.com] Sent: Friday, November 08, 2002 11:06 AM To: Tomcat Users List; 'Tomcat Users List' Subject: RE: System user accounts required to use manager in 4.1.12? The input type for this entry field is text. I think the input type should be file for a server to be able to accept it. Otherwise, I feel, there is no privacy. I can access anything from user's hard drive. Sri -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System user accounts required to use manager in 4.1.12?
actually this should work. I have used install with a context(not a war). you have to play around with the path to get it exactly right. I would expect it to work with a war as well. I don't recall the exact syntax, but I did get it working by referencing the manager howto. I think Tom read it as your war is on your machine, not the server, where I read it as you copied the war to your tomcat server and are just trying to make it available. Is this assumption correct? did you try 'jar:file:' in place of 'file:' for your path? Charlie -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Friday, November 08, 2002 10:20 AM To: 'Tomcat Users List' Subject: RE: System user accounts required to use manager in 4.1.12? That's a shame. Certainly doesn't make much sense, either. What's the use of the Manager app then? Might as well just use the command line. From the docs: The war parameter specifies a URL (including the file: scheme) for either a directory or a web application archive (WAR) file. Actually, it looks like it does work, I just wasn't using jar. Also from the docs: jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web application archive (WAR) file. You can use any syntax that is valid for the JarURLConnection class for reference to an entire JAR file. It's supposed to work via HTTP PUT. John -Original Message- From: Tom Oinn [mailto:tmo;ebi.ac.uk] Sent: Friday, November 08, 2002 10:15 AM To: Tomcat Users List Subject: Re: System user accounts required to use manager in 4.1.12? I find it unlikely that a path like that ever worked on any system. You're sending parameters to a server, so the code that needs to read the .war file is running remotely. There is no way that the remote server will understand your 'C:/path/.../foo.war', it simply doesn't exist there. You need to put the war files onto an HTTP server somewhere, quite possible using IIS or Apache on your win2k machines, have the users copy the war files into their web space and then access them by HTTP from the manager application (i.e. use the http://my.workstation/~me/mywebapp.war rather than a local file path). Cheers, Tom -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Stuck, frustrated and in desperate need of help....
I have gone round an round with tomcat on a SUSE 7.2 advanced server... The RPM are built on a Redhat 7.2 I have installed / unitalled / resinistalled and my problems are as follows. 1. 4.0.6 wont auto start to save its or my life on SusE. no rpm yet 2. 4.1.12 seems to auto start but I will be dammened if I can figure out how to set the doct root. Yes, I have looked through the documention. I load the RPM for 4.1.12 and the examples are not there, hense tomcat will not start. If you don't have JDK 1.4 on your suse install : tomcat4-4.1.12-full.2jpp.noarch.rpm tomcat4-admin-webapps-4.1.12-full.2jpp.noarch.rpm tomcat4-webapps-4.1.12-full.2jpp.noarch.rpm Edit /etc/tomcat4/tomcat4.conf and set JAVA_HOME to your corresponding (ie for IBM 1.3.1 SDK). JAVA_HOME=/opt/IBMJava2-131 Then just do : tomcat4 run -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System user accounts required to use manager in 4.1.12?
my apologies, saw your reply before your original post... I haven't tried a remote war file Charlie -Original Message- From: Cox, Charlie [mailto:ccox;cincom.com] Sent: Friday, November 08, 2002 11:13 AM To: 'Tomcat Users List' Subject: RE: System user accounts required to use manager in 4.1.12? actually this should work. I have used install with a context(not a war). you have to play around with the path to get it exactly right. I would expect it to work with a war as well. I don't recall the exact syntax, but I did get it working by referencing the manager howto. I think Tom read it as your war is on your machine, not the server, where I read it as you copied the war to your tomcat server and are just trying to make it available. Is this assumption correct? did you try 'jar:file:' in place of 'file:' for your path? Charlie -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Friday, November 08, 2002 10:20 AM To: 'Tomcat Users List' Subject: RE: System user accounts required to use manager in 4.1.12? That's a shame. Certainly doesn't make much sense, either. What's the use of the Manager app then? Might as well just use the command line. From the docs: The war parameter specifies a URL (including the file: scheme) for either a directory or a web application archive (WAR) file. Actually, it looks like it does work, I just wasn't using jar. Also from the docs: jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web application archive (WAR) file. You can use any syntax that is valid for the JarURLConnection class for reference to an entire JAR file. It's supposed to work via HTTP PUT. John -Original Message- From: Tom Oinn [mailto:tmo;ebi.ac.uk] Sent: Friday, November 08, 2002 10:15 AM To: Tomcat Users List Subject: Re: System user accounts required to use manager in 4.1.12? I find it unlikely that a path like that ever worked on any system. You're sending parameters to a server, so the code that needs to read the .war file is running remotely. There is no way that the remote server will understand your 'C:/path/.../foo.war', it simply doesn't exist there. You need to put the war files onto an HTTP server somewhere, quite possible using IIS or Apache on your win2k machines, have the users copy the war files into their web space and then access them by HTTP from the manager application (i.e. use the http://my.workstation/~me/mywebapp.war rather than a local file path). Cheers, Tom -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Stuck, frustrated and in desperate need of help....
RPMs are evil, RPMs are evil . . I think a much cleaner way to install Tomcat is to get the g'zipped tar file, copy it to the directory you want, then uncompress and untar the distribution. RPM aren't evil since : - About 70% of Linux distribution use this packaging system (Redhat, Mandrake, Suse, YDL) - RPM check for dependencies and refuse to install if some requirement are not meet - RPM pre/post install are able to setup your system - RPM track files deployed and is able to remove what's necessary, or update what's necessary. - RPM are rebuilt from source code which make you sure that's not a custom settings Did you ever tried to maintain a farm of Linux boxes, with tarball and custom build ? It works for 2 or 3 systems, but after that you need a more stronger deployement system, rpm is one, pkg is another. If you don't like RPM, don't use it. And when you say they are evil, give arguments which may be discussed on that list. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: allowLinking is not working (for me).
Thanks. I'll try it. I'm downloading this version now. But I'm worried about the caseSensitive flag. Will it bring me any other side effects? Mauro On Fri, 8 Nov 2002, Remy Maucherat wrote: Mauro Daniel Ardolino wrote: Where can I download a 4.1.13 version of Tomcat? In Jakarta I saw there is a jump from 4.1.12 to 5.0 version (not released yet). Thanks for pointing out this duplicate bug. BTW, for allowLinking to work, you must also use caseSensitive=false in 4.1.14. You can get the 4.1.14 milestone here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.14/ Remy -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: allowLinking is not working (for me).
Mauro Daniel Ardolino wrote: Thanks. I'll try it. I'm downloading this version now. But I'm worried about the caseSensitive flag. Will it bring me any other side effects? If you're on Unix, no (but you should be on Unix, since otherwise there are no symlinks). Remy -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Page caching in 4.0.x
Hello, I'm in the process of migrating a Struts-based web application from Tomcat 3.x to Tomcat 4.0.6. Without making any changes to the 'Action' servlets or the JSP pages, my form based pages are now giving the 'Page has Expired' message and forcing me to 'refresh'. They never did this with Tomcat 3.x My JSP pages have no expire dates set in the header nor any other header directives relating to caching (that I am aware of) Can anyone venture an explanation to this change? and maybe a solution... Thanks, Eric Hansen
Re: Shutting down and restarting Tomcat
What is the command for setting the delay in a Windows batch file? I used delay but it didn't work. Thanks Assuming this isn't a 'day late and a dollar short', you might want to take a look at this web site. It has all sorts of tips for DOS batch files: http://www.calweb.com/~webspace/batch/ Additionally, there are several ways to get a time delay from a batch file. They are described here: http://www.calweb.com/~webspace/batch/samples/sleep.txt Some of the things described will only work if you have the original files (junk?) from DOS. I personally keep some of that stuff around - if all else fails, email me directly, and I'll send the utility you need as an attachment. === Chris Parker Programmer/Analyst Health Care Services Division California Youth Authority -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
servlet benchmarking vs cgi
I have an apache module that interacts with the cgi environment (even going as far as exec'ing a cgi), and I just migrated this to a servlet in the hopes of improving performance. Unfortunately, using ab to benchmark, the cgi won hands down. Performance in the servlet was 10 times worse (assuming 10 concurrent requests). This was also true when I requested the servlet from tomcat directly, although there was a SLIGHT improvement (only 6 times worse) And yes, I am using some synchronized methods, but they should be very fast (if (val != null) return; else myval = val). No database calls here, just simple cgi processing to render a page. Does anyone have any thoughts on how/where to look in improving the servlet's performance? I am using apache 1.3.27, with mod_jk 1.2.1 beta, and tomcat 4.0.6. --- Aryeh Katz VASCO www.vasco.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: allowLinking is not working (for me).
May be I am confussed (sure!), but you are right, of course I am working on Linux. So if I have 2 files named for example... file.jar FILE.jar ...I think I'll have problems because caseSensitive is set to false! (so Tomcat will not see the difference between file.jar and FILE.jar). I'm sure wrong...it cannot be like this, can it? Thanks. Mauro On Fri, 8 Nov 2002, Remy Maucherat wrote: Mauro Daniel Ardolino wrote: Thanks. I'll try it. I'm downloading this version now. But I'm worried about the caseSensitive flag. Will it bring me any other side effects? If you're on Unix, no (but you should be on Unix, since otherwise there are no symlinks). Remy -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
I am trying to create a custom jdbc realm. I create a class that extends org.apache.catalina.realm.JDBCRealm. When I start up my server, I get a class not found exception on my new realm class. How am I supposed to set my paths to see the realm class I created? when I add the class to my classpath directly, then the server can't find org.apache.catalina.realm.JDBCRealm. Thanks, Eric -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Class Path and New Context
WHen I take some of the classes that don't seem to be getting loaded and put them in a package they seem to be fine. So it appears as if you must have your classes within a package in order for the class loader to find them. I looked through the bug list and could not find this in there. Can anyone confirm that this is a bug or is it just a personal problem? ryan On Thu, 7 Nov 2002 [EMAIL PROTECTED] wrote: Here is an example of an error I am getting where the class GlobalUtilsBean is being referenced from my jsp page: ** /usr/local/tomcat/work/Standalone/xxx.xxx.xxx.xxx/jsppages/ShoppingCatalog_jsp.java:83: cannot resolve symbol symbol : class GlobalUtilsBean location: class org.apache.jsp.ShoppingCatalog_jsp GlobalUtilsBean globalUtilsBean = null; ^ An error occurred at line: 8 in the jsp file: /ShoppingCatalog.jsp Generated servlet error: /usr/local/tomcat/work/Standalone/xxx.xxx.xxx./jsppages/ShoppingCatalog_jsp.java:85: cannot resolve symbol symbol : class GlobalUtilsBean location: class org.apache.jsp.ShoppingCatalog_jsp globalUtilsBean = (GlobalUtilsBean) pageContext.getAttribute(globalUtilsBean, PageContext.APPLICATION_SCOPE); ^ *** and the jsp code where I reference it is: jsp:useBean id=globalUtilsBean class=GlobalUtilsBean scope=application % globalUtilsBean.init(); % /jsp:useBean the GlobalUtilsBean.class resides in tomcathome/webapps/jsppages/WEB-INF/classes/GlobalUtilsBean.class I am porting this application from tomcat 3.2 (i know really old) but the jsp works fine there so I would think that wouldn't be the problem. There is no restriction where you have to put stuff in a package is there? ryan On Thu, 7 Nov 2002, Turner, John wrote: What are the error messages you are seeing? Specific information is always helpful. Your classes should work in WEB-INF/classes. If they aren't in a package, and are installed in WEB-INF/classes, then you have something else going on. How are you referencing these classes in your code? John -Original Message- From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com] Sent: Thursday, November 07, 2002 3:44 PM To: Tomcat Users List Subject: RE: Class Path and New Context I fooled around with the setclasspath.sh to include my default classpath. Tomcat however doesn't like that too bad it would have been convenient. I copied the examples context exactly to newcontext/ I put my jsppages in newcontext/ I put all my java beans for this context in newcontext/WEB-INF/classes they aren't in a package so I put them directly in there and compiled When I run tomcat it still can't find them. So i tried putting them into common/classes, same problem. Funny thing is when I put a jar file in common/lib that contains some other random classes I seem to be able to access those fine. I believe I have carefully read all the docs and they indicate that I am doing this correctly so why doesn't it work? ryan On Thu, 7 Nov 2002, Turner, John wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com] Sent: Thursday, November 07, 2002 2:24 PM To: Tomcat Users List Subject: Class Path and New Context With some hassles I got tomcat 4.1.12 with apache 1.3x, java 1.4 on a linux 2.4 kernel box. The examples context works fine and apache seems to be handling all the other stuff fine Questions 1)I am trying to create a new context, what are the bare bones requirements for doing so? Anyone have a breakdown of the necessary tags in web.xml? Basically, duplicate the tags for the examples. 2)In a context if I want to add bunch of class files that are specific to that context can't I just throw them in /webapps/newcontext/WEB-INF/classes? I tried this and they don't seem to be available i get Symbols Not resolved errors referencing any time I call that class. ??? Check the ClassLoader HOWTO: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html 3)I have a whole bunch of other classes that need to be available to tomcat. I have set up a global CLASSPATH variable that points to them. Tomcat does not seem to be picking this up. I verified that when i do an env directly before starting tomcat the CLASSPATH variable is set and defined properly. What am i screwing up? Tomcat ignores the system-level CLASSPATH environment variable and assembles its own in the startup scripts. Check startup.sh and catalina.sh to see what it does.
Re: servlet benchmarking vs cgi
without more details about what the CGI and servlets do, it's going to be really hard for others to say how to improve or fix the performance. If you're doing tons of regexp in your CGI to do string templating, then the answer if obvious. perl regexp is screaming fast and trying to do string parsing in a servlet is not what it was designed to do. On the otherhand, if you parse the string into objects to do your manipulation, then servlets have a chance of competing and out performing. changing from PERL to servlet isn't as simple as do exactly what i did in perl, but with java syntax. I know first hand what happens when someone decides to use PERL templating techniques an a servlet. It crawls. The solution was to use an object oriented approach. good luck. peter Aryeh Katz wrote: I have an apache module that interacts with the cgi environment (even going as far as exec'ing a cgi), and I just migrated this to a servlet in the hopes of improving performance. Unfortunately, using ab to benchmark, the cgi won hands down. Performance in the servlet was 10 times worse (assuming 10 concurrent requests). This was also true when I requested the servlet from tomcat directly, although there was a SLIGHT improvement (only 6 times worse) And yes, I am using some synchronized methods, but they should be very fast (if (val != null) return; else myval = val). No database calls here, just simple cgi processing to render a page. Does anyone have any thoughts on how/where to look in improving the servlet's performance? I am using apache 1.3.27, with mod_jk 1.2.1 beta, and tomcat 4.0.6. --- Aryeh Katz VASCO www.vasco.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: allowLinking is not working (for me).
Mauro Daniel Ardolino wrote: May be I am confussed (sure!), but you are right, of course I am working on Linux. So if I have 2 files named for example... file.jar FILE.jar ...I think I'll have problems because caseSensitive is set to false! (so Tomcat will not see the difference between file.jar and FILE.jar). I'm sure wrong...it cannot be like this, can it? Your filesystem is case sensitive, so no problems (caseSensitive adds an extra check if it's not). In the next release, allowLinking=true will imply caseSensitive=false. Rémy -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: allowLinking is not working (for me).
Oh! Now I understand. Thanks a lot. Mauro On Fri, 8 Nov 2002, Remy Maucherat wrote: Mauro Daniel Ardolino wrote: May be I am confussed (sure!), but you are right, of course I am working on Linux. So if I have 2 files named for example... file.jar FILE.jar ...I think I'll have problems because caseSensitive is set to false! (so Tomcat will not see the difference between file.jar and FILE.jar). I'm sure wrong...it cannot be like this, can it? Your filesystem is case sensitive, so no problems (caseSensitive adds an extra check if it's not). In the next release, allowLinking=true will imply caseSensitive=false. Rémy -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: allowLinking is not working (for me).
CONFIRMATION: Symlinks works fine with Tomcat 4.1.14, setting allowLinking=true and caseSensitive=false, even if the files are in other disk (and I say this because other way to use 4.1.12 with links is to make hard links, but this cannot be possible if the files are in other disk). Thanks to all. Mauro On Fri, 8 Nov 2002, Mauro Daniel Ardolino wrote: Oh! Now I understand. Thanks a lot. Mauro On Fri, 8 Nov 2002, Remy Maucherat wrote: Mauro Daniel Ardolino wrote: May be I am confussed (sure!), but you are right, of course I am working on Linux. So if I have 2 files named for example... file.jar FILE.jar ...I think I'll have problems because caseSensitive is set to false! (so Tomcat will not see the difference between file.jar and FILE.jar). I'm sure wrong...it cannot be like this, can it? Your filesystem is case sensitive, so no problems (caseSensitive adds an extra check if it's not). In the next release, allowLinking=true will imply caseSensitive=false. Rémy -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: servlet benchmarking vs cgi
without more details about what the CGI and servlets do, it's going to be really hard for others to say how to improve or fix the performance. OK. We have a security module that will draw a login screen under certain situations (not based on basic auth). In order to accommodate customer look and feel, the login page is written as a CGI, so nobody is locked in to a particular login page. If you're doing tons of regexp in your CGI to do string templating, then the answer if obvious. perl regexp is screaming fast and trying to do string parsing in a servlet is not what it was designed to do. Most of the time it's just a matter of constructing HTML code based on headers and cgi (and servlet equivalent) environment vars. Then send the page to the user as part of HttpServletResponse. After the first time the page is generated, it is cached in the servlet to save processing calls. Frankly, I tried to keep object creation to a minimum, used StringBuffers to append, and globals to store. Based on what has to be done, I think I coded efficiently. I know I can/should use velocity for the same thing, but I'm hesitant to invest too much effort if I can't deploy due to performance reasons. One more update, just to take threading out of the picture. Even with one request at a time, servlet performance was atrocious Cgi Time per request: 7.25 [ms] (mean) Servlet Time per request: 44.22 [ms] (mean) --- Aryeh Katz VASCO www.vasco.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Shutting down and restarting Tomcat
On Fri, 8 Nov 2002, [EMAIL PROTECTED] wrote: Date: Fri, 8 Nov 2002 11:47:32 -0500 From: [EMAIL PROTECTED] [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Shutting down and restarting Tomcat I am trying to create a custom jdbc realm. I create a class that extends org.apache.catalina.realm.JDBCRealm. When I start up my server, I get a class not found exception on my new realm class. How am I supposed to set my paths to see the realm class I created? when I add the class to my classpath directly, then the server can't find org.apache.catalina.realm.JDBCRealm. Tomcat ignores the system classpath totally. You'll need to put your custom Realm implementation in a directory where Catalina internals can see it -- specifically, in $CATALINA_HOME/server/classes or in a JAR file in $CATALINA_HOME/server/lib. For more info, see the class loader docs: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html If you're using 4.1, you'll also want to disable the MBean support because it won't recognize your custom Realm class. You can do this by commenting out the two Listener elements at the top of server.xml. Thanks, Eric Craig -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
What's wrong with my Context in my Server.xml???
All, I have no idea why this isn't working. Suggestions? !-- indemand Context -- Context docBase=indemand path=/indemand reloadable=true source=indemand Resource name=jdbc/indemand auth=SERVLET type=javax.sql.DataSource/ ResourceParams name=jdbc/indemand parameter nameusername/name valuetibco_user/value /parameter parameter namepassword/name valuetibco_user/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://vc34:1433;databaseName=TibcoClearHouse/value /parameter /ResourceParams /Context - Do you Yahoo!? U2 on LAUNCH - Exclusive medley videos from Greatest Hits CD
RE: System user accounts required to use manager in 4.1.12?
On Fri, 8 Nov 2002, Turner, John wrote: Date: Fri, 8 Nov 2002 10:20:18 -0500 From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: System user accounts required to use manager in 4.1.12? That's a shame. Certainly doesn't make much sense, either. What's the use of the Manager app then? Might as well just use the command line. From the docs: The war parameter specifies a URL (including the file: scheme) for either a directory or a web application archive (WAR) file. Actually, it looks like it does work, I just wasn't using jar. Also from the docs: jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web application archive (WAR) file. You can use any syntax that is valid for the JarURLConnection class for reference to an entire JAR file. It's supposed to work via HTTP PUT. The deploy command does indeed do a PUT, so it can upload a WAR to a remote Tomcat instance. You won't be able to directly do this with a browser, through -- the most common mechanism is to use the custom Ant task (so that you can easily script it) that is included with Tomcat 4.1. See the Manager docs for more info: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html Alternatively, front-end management tools (such as the deploytool GUI included in the Java Web Services Developer Pack) can transparently use this approach behind the scenes for you. The install command does not copy the webapp -- it simply mounts it in place, so the directory or WAR needs to be on the same filesystem as the Tomcat instance. This is a lot faster during development, which is why it exists separately. It also works directly from the browser. John Craig -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: servlet benchmarking vs cgi
Aryeh Katz wrote: without more details about what the CGI and servlets do, it's going to be really hard for others to say how to improve or fix the performance. OK. We have a security module that will draw a login screen under certain situations (not based on basic auth). In order to accommodate customer look and feel, the login page is written as a CGI, so nobody is locked in to a particular login page. If you're doing tons of regexp in your CGI to do string templating, then the answer if obvious. perl regexp is screaming fast and trying to do string parsing in a servlet is not what it was designed to do. Most of the time it's just a matter of constructing HTML code based on headers and cgi (and servlet equivalent) environment vars. Then send the page to the user as part of HttpServletResponse. After the first time the page is generated, it is cached in the servlet to save processing calls. Frankly, I tried to keep object creation to a minimum, used StringBuffers to append, and globals to store. Based on what has to be done, I think I coded efficiently. I know I can/should use velocity for the same thing, but I'm hesitant to invest too much effort if I can't deploy due to performance reasons. One more update, just to take threading out of the picture. Even with one request at a time, servlet performance was atrocious Cgi Time per request: 7.25 [ms] (mean) Servlet Time per request: 44.22 [ms] (mean) That's only 22 req/s. Either your servlet is really resource intensive (although you think it's not), or either there's a problem somewhere. Did you try getting the max throughtput using another servlet ? If there's a performance problem with your servlet, you could use something like OptimizeIt to figure it improve it. Rémy -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: When is PageContext available?
On Fri, 8 Nov 2002, Claes Holmerson wrote: Date: Fri, 08 Nov 2002 16:49:44 +0100 From: Claes Holmerson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: When is PageContext available? Hi! I want to do certain initializations before a jsp page is rendered. I plan to do this by using the 'extends' keyword in my jsp page and write a class that extends GenericServlet and implements HttpJspPage. The problem is that I want to get a handle to PageContext before page rendering is started, but I can't get it! I only get null. It seems PageContext is made available somewhere between the call to _jspService() and the jsp-page is entered. That's correct. You can see exactly how it works by examining the Java source code that is generated for a standard JSP page (in the $CATALINA_HOME/work directory). Below is the code. How do I get a working handle to PageContext? If it is not possible, can I somehow get a handle to JspWriter before the call to _jspService()? I am using Tomcat 4.0.2 I'd look at using a Filter to do initializations. Among other things, using the extends option restricts the optimizations that the JSP page compiler can do to make your pages run faster; you should not want to give that up. Thanks, Claes Holmerson Craig -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Class Path and New Context
On Fri, 8 Nov 2002 [EMAIL PROTECTED] wrote: Date: Fri, 8 Nov 2002 09:09:09 -0800 (PST) From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Class Path and New Context WHen I take some of the classes that don't seem to be getting loaded and put them in a package they seem to be fine. So it appears as if you must have your classes within a package in order for the class loader to find them. I looked through the bug list and could not find this in there. Can anyone confirm that this is a bug or is it just a personal problem? JDK 1.4.1 has started enforcing a restriction that has always been in the Java Language Specification, but was never enforced before -- you are not allowed to import an unpackaged class name. Among other things, that makes it pretty much impossible to use unpackaged bean classes in a JSP page. ryan Craig -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System user accounts required to use manager in 4.1.12?
OK, thanks for the clarification. I will keep playing with it, and check out the other tools you mentioned. John -Original Message- From: Craig R. McClanahan [mailto:craigmcc;apache.org] Sent: Friday, November 08, 2002 12:53 PM To: Tomcat Users List Subject: RE: System user accounts required to use manager in 4.1.12? On Fri, 8 Nov 2002, Turner, John wrote: Date: Fri, 8 Nov 2002 10:20:18 -0500 From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: System user accounts required to use manager in 4.1.12? That's a shame. Certainly doesn't make much sense, either. What's the use of the Manager app then? Might as well just use the command line. From the docs: The war parameter specifies a URL (including the file: scheme) for either a directory or a web application archive (WAR) file. Actually, it looks like it does work, I just wasn't using jar. Also from the docs: jar:file:/absolute/path/to/a/warfile.war!/ - The URL to a local web application archive (WAR) file. You can use any syntax that is valid for the JarURLConnection class for reference to an entire JAR file. It's supposed to work via HTTP PUT. The deploy command does indeed do a PUT, so it can upload a WAR to a remote Tomcat instance. You won't be able to directly do this with a browser, through -- the most common mechanism is to use the custom Ant task (so that you can easily script it) that is included with Tomcat 4.1. See the Manager docs for more info: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html Alternatively, front-end management tools (such as the deploytool GUI included in the Java Web Services Developer Pack) can transparently use this approach behind the scenes for you. The install command does not copy the webapp -- it simply mounts it in place, so the directory or WAR needs to be on the same filesystem as the Tomcat instance. This is a lot faster during development, which is why it exists separately. It also works directly from the browser. John -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: servlet benchmarking vs cgi
Aryeh Katz wrote: without more details about what the CGI and servlets do, it's going to be really hard for others to say how to improve or fix the performance. OK. We have a security module that will draw a login screen under certain situations (not based on basic auth). In order to accommodate customer look and feel, the login page is written as a CGI, so nobody is locked in to a particular login page. If you're doing tons of regexp in your CGI to do string templating, then the answer if obvious. perl regexp is screaming fast and trying to do string parsing in a servlet is not what it was designed to do. Most of the time it's just a matter of constructing HTML code based on headers and cgi (and servlet equivalent) environment vars. Then send the page to the user as part of HttpServletResponse. the question is, how are you constructing the HTML? Are you opening a template file locally, and then using string replace? Or are you using XSL/XSLT with a stylesheet to do a stream parse/transform? the reason i asked is I worked with someone who broke a page into 8-10 chunks. the first time he loads those templates they are cached. but the problem wasn't the caching. He was looking for strings that needed to replaced with dynamic data by looking for $$var_name$$ (a common perl technique). Every request required parse+replace on all the templates. sure he used a stringbuffer and callout write() at the end, but a simple profile page went from using 10-15% CPU to 100% with just 3 concurrent requests. After the first time the page is generated, it is cached in the servlet to save processing calls. Frankly, I tried to keep object creation to a minimum, used StringBuffers to append, and globals to store. Based on what has to be done, I think I coded efficiently. I know I can/should use velocity for the same thing, but I'm hesitant to invest too much effort if I can't deploy due to performance reasons. One more update, just to take threading out of the picture. Even with one request at a time, servlet performance was atrocious Cgi Time per request: 7.25 [ms] (mean) Servlet Time per request: 44.22 [ms] (mean) What kind of system was the benchmark performed on. The page should only take 7-10ms properly written. If you're never going to get more than 10 concurrent requests, you're probably not going to reach the point where threads provide benefit. Especially if it's pages that do not use databases or perform other processes which benefit from threading. peter lin -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System user accounts required to use manager in 4.1.12?
On Fri, 8 Nov 2002, Turner, John wrote: Date: Fri, 8 Nov 2002 13:01:25 -0500 From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: System user accounts required to use manager in 4.1.12? OK, thanks for the clarification. I will keep playing with it, and check out the other tools you mentioned. As a shortcut to using the Ant-based tasks, check out the Application Developer's Guide shipped with 4.1 -- it includes a nice template build.xml file that defines everything you need, including the declarations of the custom tasks and examples of their use: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/ For the Java Web Services Developer Pack release (based on Tomcat 4.1), and the associated tutorial which includes information on using these tasks as well as the deloytool GUI, start at: http://java.sun.com/webservices/ John Craig -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Class Path and New Context
Well that explains things thanks, darn now I have to change my code. I am migrating all this stuff from tomcat 3.2 jdk 1.2 so it wasn't an issue before. ryan On Fri, 8 Nov 2002, Craig R. McClanahan wrote: On Fri, 8 Nov 2002 [EMAIL PROTECTED] wrote: Date: Fri, 8 Nov 2002 09:09:09 -0800 (PST) From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Class Path and New Context WHen I take some of the classes that don't seem to be getting loaded and put them in a package they seem to be fine. So it appears as if you must have your classes within a package in order for the class loader to find them. I looked through the bug list and could not find this in there. Can anyone confirm that this is a bug or is it just a personal problem? JDK 1.4.1 has started enforcing a restriction that has always been in the Java Language Specification, but was never enforced before -- you are not allowed to import an unpackaged class name. Among other things, that makes it pretty much impossible to use unpackaged bean classes in a JSP page. ryan Craig -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
mbean references
How do I configure custom mbean references? can I create a custom mbeans-descriptors.xml file? where do I place it so that tomcat reads it in for a specific web application? Thanks, Eric -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: servlet benchmarking vs cgi
the question is, how are you constructing the HTML? Are you opening a template file locally, and then using string replace? Or are you using XSL/XSLT with a stylesheet to do a stream parse/transform? Neither. Since I'm working with a simple login page, most of my text is strings, appended to a stringbuffer to create the login page. That login page is then saved as a global, and retrieved for all subsequent requests. The information that is unique in every user's request (one string) is modified with a StringBuffer.replace in a tag that is recorded as part of the global login page. output is done using the following psuedo code is page cached StringBuffer = cached page replace tag println(stringbuffer) println(end of html page) (/FORM/HTML) What kind of system was the benchmark performed on. The page should only take 7-10ms properly written. If you're never going to get more than 10 concurrent requests, you're probably not going to reach the point where threads provide benefit. Especially if it's pages that do not use databases or perform other processes which benefit from threading. ab was on a freebsd box, servlet was on a redhat 6.2. As far as concurrent requests, I've got to be able to handle close to 100 requests, but as I said earlier I don't think threading is the issue as even single requests show very poor performance relative to a CGI. Aryeh --- Aryeh Katz VASCO www.vasco.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: servlet benchmarking vs cgi
why are you not using JSP then. this is what its designed for On Friday, Nov 8, 2002, at 18:28 Etc/GMT, Aryeh Katz wrote: the question is, how are you constructing the HTML? Are you opening a template file locally, and then using string replace? Or are you using XSL/XSLT with a stylesheet to do a stream parse/transform? Neither. Since I'm working with a simple login page, most of my text is strings, appended to a stringbuffer to create the login page. That login page is then saved as a global, and retrieved for all subsequent requests. The information that is unique in every user's request (one string) is modified with a StringBuffer.replace in a tag that is recorded as part of the global login page. output is done using the following psuedo code is page cached StringBuffer = cached page replace tag println(stringbuffer) println(end of html page) (/FORM/HTML) What kind of system was the benchmark performed on. The page should only take 7-10ms properly written. If you're never going to get more than 10 concurrent requests, you're probably not going to reach the point where threads provide benefit. Especially if it's pages that do not use databases or perform other processes which benefit from threading. ab was on a freebsd box, servlet was on a redhat 6.2. As far as concurrent requests, I've got to be able to handle close to 100 requests, but as I said earlier I don't think threading is the issue as even single requests show very poor performance relative to a CGI. Aryeh --- Aryeh Katz VASCO www.vasco.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Problems with 2 Tomcat's and 1 Apache
Hi all, I have the following configuration: Linux 2.4 (Kernell) Apache 1.3.26 2 instances of JBoss 3.0.1 integrated with Tomcat 4.0.4 For those who don't know JBoss, it is a free application server (see more at http://www.jboss.org) and when it's integrated with Tomcat it becames a J2EE server (see http://www.sun.com). Well, my problem is that I can work fine with Apache and 1 Tomcat running (I'm using mod_webapp.so). My problem is when both Tomcat are running. The VirtualHost's at Apache have different names AND different IP's, but the first Tomcat that get the warp connection tries to resolve the WebAppDeployments of both Tomcat's (and of course it only finds it's own deploies). Could anyone help me ??? Thanks in advance... Here is a piece of my config files : === HTTPD.CONF === VirtualHost 10.202.8.43 ServerName jacare DocumentRoot /l/home0/software/jboss/jboss-3.0.1_tomcat-4.0.4_1/server/default/deploy #Log Set-up ErrorLog /l/home0/software/apache/apache_1.3.26/logs/error_jboss_1.log CustomLog /l/home0/software/apache/apache_1.3.26/logs/access_jboss_1.log combined #Tomcat connection (config is in Tomcat) WebAppConnection conexao_jboss_1 warp localhost:18008 WebAppDeploy testeweb conexao_jboss_1 /testeweb /VirtualHost VirtualHost 10.202.8.44 ServerName jacare1 DocumentRoot /l/home0/software/jboss/jboss-3.0.1_tomcat-4.0.4_2/server/default/deploy #Log Set-up ErrorLog /l/home0/software/apache/apache_1.3.26/logs/error_jboss_2.log CustomLog /l/home0/software/apache/apache_1.3.26/logs/access_jboss_2.log combined #Tomcat connection (config is in Tomcat) WebAppConnection conexao_jboss_2 warp localhost:28008 WebAppDeploy testeweb2 conexao_jboss_2 /testeweb2 /VirtualHost === server.xml (1) === Service name = Tomcat-Apache !-- Conexao com o Apache -- Connector className=org.apache.catalina.connector.warp.WarpConnector port = 18008 minProcessors = 5 maxProcessors = 75 enableLookups = true acceptCount = 10 debug = 0 / !-- WarpEngine in action -- Engine className = org.apache.catalina.connector.warp.WarpEngine name = jacare debug = 0 appBase = deploy Host appBase=deploy name=jacare unpackWARs=false Context docBase=testeweb.war path=testeweb/ /Host /Engine === server.xml (2) === Service name=Tomcat-Apache-2 !-- Conexao com o Apache -- Connector className=org.apache.catalina.connector.warp.WarpConnector port = 28008 minProcessors = 5 maxProcessors = 75 enableLookups = true acceptCount = 10 debug = 1 / !-- WarpEngine in action -- Engine className = org.apache.catalina.connector.warp.WarpEngine name = jacare1 debug = 1 Host appBase=deploy name=jacare1 unpackWARs=false Context docBase=testeweb2.war path=testeweb2/ /Host /Engine Logger className = org.apache.catalina.logger.FileLogger prefix=jboss_2 suffix=.log timestamp = true / Realm className = org.apache.catalina.realm.MemoryRealm / /Service Tiago Ferraz Machado CPqD - Telecom IT Solutions GSC - Gerência de Suporte ao Cliente Fone: 3705-5980 e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: [4.1.14] New test milestone released
Remy: I've just downloaded Tomcat 4.1.14 and I'm testing it with my application that has no problems running on Tomcat 4.1.12. When I try to run my application (that Tomcat deploys ok), I receive this error message (on the web browser), may be is due to a change in Xerces, but my classes still compile ok with the xercesImpl.jar provided with Tomcat 4.1.14 (see down the root cause): javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) ...AND SO ON -- ROOT CAUSE: -- java.lang.NoSuchMethodError: org.apache.xerces.util.NamespaceSupport.reset(Lorg/apache/xerces/util/SymbolTable;)V at org.apache.xml.serialize.XMLSerializer.reset(XMLSerializer.java:1424) at org.apache.xml.serialize.BaseMarkupSerializer.setOutputCharStream(BaseMarkupSerializer.java:335) at org.apache.xml.serialize.XMLSerializer.(XMLSerializer.java:199) at xml.DOMElementConverter.asXmlString(DOMElementConverter.java:41) at xml.DOMElementConverter.asXmlInputStream(DOMElementConverter.java:27) at query.rowFilters.definitions.RowsFilterDefinition.asXmlInputStream(RowsFilterDefinition.java:33) at servlets.ProductFilterFormServlet.doGet(ProductFilterFormServlet.java:46) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 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) ...AND SO ON. I'm using 4.1.14 because I have to use symlinks (see thread about symlinks that has just been finished). Thanks. Mauro On Tue, 29 Oct 2002, Remy Maucherat wrote: A new test milestone of Tomcat 4.1 has just been released. Please help test this upcoming Tomcat release for compliance issues and other problems. Downloads: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.14/ Significant changes over 4.1.13 include a security manager bugfix. Over 4.1.12, Tomcat 4.1.14 includes bugfixes as well as performance improvements. The full list of changes is available in the release notes. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.14/RELEASE-NOTES Remy -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: servlet benchmarking vs cgi
One more update, just to take threading out of the picture. Even with one request at a time, servlet performance was atrocious Cgi Time per request: 7.25 [ms] (mean) Servlet Time per request: 44.22 [ms] (mean) That's only 22 req/s. Either your servlet is really resource intensive (although you think it's not), or either there's a problem somewhere. You forget one thing. I do have my own apache module in the middle, which is going to degrade performance (and yes, the cgi benchmarking was with my module in place). Did you try getting the max throughtput using another servlet ? If there's a performance problem with your servlet, you could use something like OptimizeIt to figure it improve it. Thanks, I'll try it out. Aryeh --- Aryeh Katz VASCO www.vasco.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Apache + Tomcat Installation
All, I have some questions concerning the mod_jk for apache and getting it to run. I moved all the examples for tomcat into my web root directory and when i run the examples i get a 404 error from tomcat. What can i do to solve this problem? Any good docs out there...I have mulled over apache.org. Thanks, [Info] RedHat 7.3 Apache 1.3.26 (source) Tomcat 4.1.12 (binary) mod_jk.so (mod_jk-1.3-noeapi.so - renamed to mod_jk.so) [http.conf] LoadModule jk_module libexec/mod_jk.so IfModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkRequestLogFormat %w %V %T JkMount /*.jsp worker2 /IfModule [tomcat's workers.properties] # Define some properties workers.apache_log=/usr/local/apache/logs/error_log workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/local/java ps=/ # Define 4 workers, 3 real workers using ajp12, ajp13, jni, the last one being a loadbalancing worker worker.list=worker1, worker2, worker3, worker4 # Set properties for worker1 (ajp12) worker.worker1.type=ajp12 worker.worker1.host=localhost worker.worker1.port=8007 worker.worker1.lbfactor=5 # Set properties for worker2 (ajp13) worker.worker2.type=ajp13 worker.worker2.host=localhost worker.worker2.port=8009 worker.worker2.lbfactor=50 worker.worker2.cachesize=10 worker.worker2.cache_timeout=600 worker.worker2.socket_keepalive=1 worker.worker2.socket_timeout=300 # Set properties for worker3 (jni) #worker.worker3.type=jni # Set worker3 classpath #worker.worker3.class_path=$(workers.tomcat_home)$(ps)classes #worker.worker3.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar # Set worker3 tomcat command line #worker.worker3.cmd_line=-home #worker.worker3.cmd_line=$(workers.tomcat_home) # Set worker3 Tomcat/JVM settings #worker.worker3.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)libjvm.so #worker.worker3.stdout=$(workers.apache_log)$(ps)inprocess.stdout #worker.worker3.stderr=$(workers.apache_log)$(ps)inprocess.stderr #worker.worker3.sysprops=tomcat.home=$(workers.tomcat_home) # Set properties for worker4 (lb) which use worker1 and worker2 #worker.worker4.balanced_workers=worker1,worker2 -- .: B i g D o g :. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: servlet benchmarking vs cgi
Aryeh Katz wrote: is modified with a StringBuffer.replace in a tag that is recorded as part of the there's your problem. StringBuffer.replace(). You're doing exactly what I described in the previous email. You really should be using a JSP with just html .. % if(request.getParameter(input) != null) { out.write(request.getParameter(input)); } else { out.write(not login provided, please enter a valid login name); } % /html this way, it's not going character by character to scan for the text and replacing it once it finds it. I've done simple pages like the one above that responds in 3-4ms under 16 concurrent requests. peter lin -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Configuring tomcat to use different realms with different applications
I cannot get TomCat 4.1.12 to use different realms for separate applications. I have specified the realm inside an application context in the server.xml file but the app is still using the default realm. If I remove the default realm then nothing works. With respect to the xml files given below iiv is the application which I am trying to configure to use a separate realm from the default. Any help would be appreciated. Thanks, Roy The web.xml is ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app servlet servlet-namecontrol/servlet-name servlet-classorg.dbforms.Controller/servlet-class init-param param-namemaxUploadSize/param-name param-value8/param-value /init-param /servlet servlet servlet-namefile/servlet-name servlet-classorg.dbforms.util.FileServlet/servlet-class load-on-startup3/load-on-startup /servlet servlet servlet-nameorg.dbforms.ConfigServlet/servlet-name servlet-classorg.dbforms.ConfigServlet/servlet-class init-param param-namelog4j.configuration/param-name param-value/WEB-INF/log4j.properties/param-value /init-param load-on-startup4/load-on-startup /servlet servlet-mapping servlet-namecontrol/servlet-name url-pattern/servlet/control/url-pattern /servlet-mapping servlet-mapping servlet-namefile/servlet-name url-pattern/servlet/file/url-pattern /servlet-mapping session-config session-timeout25/session-timeout /session-config welcome-file-list welcome-filehome.jsp/welcome-file /welcome-file-list taglib taglib-uri/WEB-INF/dbforms.tld/taglib-uri taglib-location/WEB-INF/dbforms.tld/taglib-location /taglib security-constraint web-resource-collection web-resource-nameiiv/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameiiv/realm-name /login-config /web-app The server.xml is !-- Example Server Configuration File -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8099 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false/ !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Engine name=Standalone defaultHost=localhost debug=0 !-- Global logger unless overridden at lower levels --
Re: servlet benchmarking vs cgi
why are you not using JSP then. this is what its designed for The servlet doesn't just handle login. Login is just called most often, and is most expensive. --- Aryeh Katz VASCO www.vasco.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: [4.1.14] New test milestone released
you're kidding me! I was just looking for tomcat 4.1.14 after seeing something that changed in cvs and was tagged as being in 4.1.14. I'm downloading the source via anoncvs as I write this. Where is the binary available? Thanks, David On 11/8/2002 1:31 PM, Mauro Daniel Ardolino wrote: Remy: I've just downloaded Tomcat 4.1.14 and I'm testing it with my application that has no problems running on Tomcat 4.1.12. When I try to run my application (that Tomcat deploys ok), I receive this error message (on the web browser), may be is due to a change in Xerces, but my classes still compile ok with the xercesImpl.jar provided with Tomcat 4.1.14 (see down the root cause): javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) ...AND SO ON -- ROOT CAUSE: -- java.lang.NoSuchMethodError: org.apache.xerces.util.NamespaceSupport.reset(Lorg/apache/xerces/util/SymbolTable;)V at org.apache.xml.serialize.XMLSerializer.reset(XMLSerializer.java:1424) at org.apache.xml.serialize.BaseMarkupSerializer.setOutputCharStream(BaseMarkupSerializer.java:335) at org.apache.xml.serialize.XMLSerializer.(XMLSerializer.java:199) at xml.DOMElementConverter.asXmlString(DOMElementConverter.java:41) at xml.DOMElementConverter.asXmlInputStream(DOMElementConverter.java:27) at query.rowFilters.definitions.RowsFilterDefinition.asXmlInputStream(RowsFilterDefinition.java:33) at servlets.ProductFilterFormServlet.doGet(ProductFilterFormServlet.java:46) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 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) ...AND SO ON. I'm using 4.1.14 because I have to use symlinks (see thread about symlinks that has just been finished). Thanks. Mauro On Tue, 29 Oct 2002, Remy Maucherat wrote: A new test milestone of Tomcat 4.1 has just been released. Please help test this upcoming Tomcat release for compliance issues and other problems. Downloads: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.14/ Significant changes over 4.1.13 include a security manager bugfix. Over 4.1.12, Tomcat 4.1.14 includes bugfixes as well as performance improvements. The full list of changes is available in the release notes. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.14/RELEASE-NOTES Remy -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: servlet benchmarking vs cgi
then your design needs to be looked at. Usually I try to maintain a strict servlet : activity(for want of a better word) as close as a 1:1 relationship. oo design ie you would not have func for customer creation within and accoutn object. So I would have a login servlet deal with login functionality. In any case this does not stop you from having a login jsp that does the job that you have explained. You also ensure that any maintenance only needs a java developer instead of a java developer with cgi knowledge etc On Friday, Nov 8, 2002, at 18:44 Etc/GMT, Aryeh Katz wrote: why are you not using JSP then. this is what its designed for The servlet doesn't just handle login. Login is just called most often, and is most expensive. --- Aryeh Katz VASCO www.vasco.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: [4.1.14] New test milestone released
you're kidding me! I was just looking for tomcat 4.1.14 after seeing something that changed in cvs and was tagged as being in 4.1.14. I'm downloading the source via anoncvs as I write this. Where is the binary available? http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.14/ Mauro Thanks, David On 11/8/2002 1:31 PM, Mauro Daniel Ardolino wrote: Remy: I've just downloaded Tomcat 4.1.14 and I'm testing it with my application that has no problems running on Tomcat 4.1.12. When I try to run my application (that Tomcat deploys ok), I receive this error message (on the web browser), may be is due to a change in Xerces, but my classes still compile ok with the xercesImpl.jar provided with Tomcat 4.1.14 (see down the root cause): javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) ...AND SO ON -- ROOT CAUSE: -- java.lang.NoSuchMethodError: org.apache.xerces.util.NamespaceSupport.reset(Lorg/apache/xerces/util/SymbolTable;)V at org.apache.xml.serialize.XMLSerializer.reset(XMLSerializer.java:1424) at org.apache.xml.serialize.BaseMarkupSerializer.setOutputCharStream(BaseMarkupSerializer.java:335) at org.apache.xml.serialize.XMLSerializer.(XMLSerializer.java:199) at xml.DOMElementConverter.asXmlString(DOMElementConverter.java:41) at xml.DOMElementConverter.asXmlInputStream(DOMElementConverter.java:27) at query.rowFilters.definitions.RowsFilterDefinition.asXmlInputStream(RowsFilterDefinition.java:33) at servlets.ProductFilterFormServlet.doGet(ProductFilterFormServlet.java:46) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 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) ...AND SO ON. I'm using 4.1.14 because I have to use symlinks (see thread about symlinks that has just been finished). Thanks. Mauro On Tue, 29 Oct 2002, Remy Maucherat wrote: A new test milestone of Tomcat 4.1 has just been released. Please help test this upcoming Tomcat release for compliance issues and other problems. Downloads: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.14/ Significant changes over 4.1.13 include a security manager bugfix. Over 4.1.12, Tomcat 4.1.14 includes bugfixes as well as performance improvements. The full list of changes is available in the release notes. http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.14/RELEASE-NOTES Remy -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- Ing.Mauro Daniel Ardolino Departamento de Desarrollo y Servicios Altersoft Billinghurst 1599 - Piso 9 C1425DTE - Capital Federal Tel/Fax: 4821-3376 / 4822-8759 mailto: [EMAIL PROTECTED] website: http://www.altersoft.com.ar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Problem with Remote Address
Hi, I'm using Apache 1.3.27, mod_jk2 2.0.1, Tomcat 4.1.12 with org.apache.ajp.tomcat4.Ajp13Connector and request.getRemoteAddr(), request.getRemoteHost() returns null. Why ? When I turn up HostnameLookups in my httpd.conf and I set enableLookups to true in my server.xml, I can see my hostname, but IP Address is still null! I've tried to set HostnameLookups to On, and enableLookups to false etc. but it doesn't work too! -- Best Regards Marek Kaluzny -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System user accounts required to use manager in 4.1.12?
Sweet. Thanks. Hope those VB coders are ready to get down and funky with ant. :) John -Original Message- From: Craig R. McClanahan [mailto:craigmcc;apache.org] Sent: Friday, November 08, 2002 1:13 PM To: Tomcat Users List Subject: RE: System user accounts required to use manager in 4.1.12? On Fri, 8 Nov 2002, Turner, John wrote: Date: Fri, 8 Nov 2002 13:01:25 -0500 From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: System user accounts required to use manager in 4.1.12? OK, thanks for the clarification. I will keep playing with it, and check out the other tools you mentioned. As a shortcut to using the Ant-based tasks, check out the Application Developer's Guide shipped with 4.1 -- it includes a nice template build.xml file that defines everything you need, including the declarations of the custom tasks and examples of their use: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/ For the Java Web Services Developer Pack release (based on Tomcat 4.1), and the associated tutorial which includes information on using these tasks as well as the deloytool GUI, start at: http://java.sun.com/webservices/ John Craig -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
servlet as the default file
Hello How do I make a servlet to be the default file rather than the index.jsp file??Basically I want to use the servlet to act as a proxy. I tried modifying the welcome list in web.xml file ,replacing index.jsp by servletname.class but the browser asks the user to download the .class file instead of displaying it?? Rajkumar Sen MTech 1 CSE IIT Bombay www.cse.iitb.ac.in/~rajkumar (best viewed in Netscape) -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System user accounts required to use manager in 4.1.12?
On Fri, 8 Nov 2002, Turner, John wrote: Date: Fri, 8 Nov 2002 14:07:13 -0500 From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: System user accounts required to use manager in 4.1.12? Sweet. Thanks. Hope those VB coders are ready to get down and funky with ant. :) Nah ... that's what GUI tools are for :-). John Craig -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: servlet as the default file
Hi, You can't right now. You will be able to once the servlet specification version 2.4 is out, and a supporting container (e.g. Tomcat 5.x) is available. For now, you have to do various workarounds, for example an HTML page with a meta http-equiv redirection to your servlet. Yoav Shapira Millennium ChemInformatics -Original Message- From: Rajkumar Sen [mailto:rajkumar;cse.iitb.ac.in] Sent: Friday, November 08, 2002 1:44 PM To: [EMAIL PROTECTED] Subject: servlet as the default file Hello How do I make a servlet to be the default file rather than the index.jsp file??Basically I want to use the servlet to act as a proxy. I tried modifying the welcome list in web.xml file ,replacing index.jsp by servletname.class but the browser asks the user to download the .class file instead of displaying it?? Rajkumar Sen MTech 1 CSE IIT Bombay www.cse.iitb.ac.in/~rajkumar (best viewed in Netscape) -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System user accounts required to use manager in 4.1.12?
Is a form-based method for uploading the WAR files worth exploring? Or was there a specific decision made at some point to skip that? I was honestly surprised that I couldn't just use a standard browse button to pick a WAR file off my local drive and send it to the server for deployment, security issues aside. John -Original Message- From: Craig R. McClanahan [mailto:craigmcc;apache.org] Sent: Friday, November 08, 2002 2:16 PM To: Tomcat Users List Subject: RE: System user accounts required to use manager in 4.1.12? On Fri, 8 Nov 2002, Turner, John wrote: Date: Fri, 8 Nov 2002 14:07:13 -0500 From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: System user accounts required to use manager in 4.1.12? Sweet. Thanks. Hope those VB coders are ready to get down and funky with ant. :) Nah ... that's what GUI tools are for :-). John Craig -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Apache + Tomcat Installation
Pick yer poison: http://www.johnturner.com/howto You can skip most of it...you've got things installed and built. That said, scroll down to the section after the gray building the connectors section and you'll see the exact steps needed to make http://localhost/examples work via Apache and mod_jk. There aren't many. You've got a lot going on in that workers.properties file...you don't need load-balancing at all unless you have multiple Tomcat instances, and you also don't need any ajp12 workers defined. I also don't think you can do JNI at all from mod_jk, AFAIK you need mod_jk2 for that. It might help things if you started with a plain vanilla workers.properties file, and went from there. Something like: worker.list=worker2 worker.worker2.type=ajp13 worker.worker2.host=localhost worker.worker2.port=8009 ...is all you need to get started. John -Original Message- From: .: B i g D o g :. [mailto:bigdog;venticon.com] Sent: Friday, November 08, 2002 6:38 AM To: [EMAIL PROTECTED] Subject: Apache + Tomcat Installation All, I have some questions concerning the mod_jk for apache and getting it to run. I moved all the examples for tomcat into my web root directory and when i run the examples i get a 404 error from tomcat. What can i do to solve this problem? Any good docs out there...I have mulled over apache.org. Thanks, [Info] RedHat 7.3 Apache 1.3.26 (source) Tomcat 4.1.12 (binary) mod_jk.so (mod_jk-1.3-noeapi.so - renamed to mod_jk.so) [http.conf] LoadModule jk_module libexec/mod_jk.so IfModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkRequestLogFormat %w %V %T JkMount /*.jsp worker2 /IfModule [tomcat's workers.properties] # Define some properties workers.apache_log=/usr/local/apache/logs/error_log workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/local/java ps=/ # Define 4 workers, 3 real workers using ajp12, ajp13, jni, the last one being a loadbalancing worker worker.list=worker1, worker2, worker3, worker4 # Set properties for worker1 (ajp12) worker.worker1.type=ajp12 worker.worker1.host=localhost worker.worker1.port=8007 worker.worker1.lbfactor=5 # Set properties for worker2 (ajp13) worker.worker2.type=ajp13 worker.worker2.host=localhost worker.worker2.port=8009 worker.worker2.lbfactor=50 worker.worker2.cachesize=10 worker.worker2.cache_timeout=600 worker.worker2.socket_keepalive=1 worker.worker2.socket_timeout=300 # Set properties for worker3 (jni) #worker.worker3.type=jni # Set worker3 classpath #worker.worker3.class_path=$(workers.tomcat_home)$(ps)classes #worker.worker3.class_path=$(workers.tomcat_home)$(ps)lib$(ps) tomcat.jar # Set worker3 tomcat command line #worker.worker3.cmd_line=-home #worker.worker3.cmd_line=$(workers.tomcat_home) # Set worker3 Tomcat/JVM settings #worker.worker3.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$( ps)classic$(ps)libjvm.so #worker.worker3.stdout=$(workers.apache_log)$(ps)inprocess.stdout #worker.worker3.stderr=$(workers.apache_log)$(ps)inprocess.stderr #worker.worker3.sysprops=tomcat.home=$(workers.tomcat_home) # Set properties for worker4 (lb) which use worker1 and worker2 #worker.worker4.balanced_workers=worker1,worker2 -- .: B i g D o g :. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: servlet benchmarking vs cgi
Did you try getting the max throughtput using another servlet ? If there's a performance problem with your servlet, you could use something like OptimizeIt to figure it improve it. I downloaded OptimizeIt, ran it on my servlet and ran ab. As expected most of the CPU time was in the AJP stuff, and most of the AJP stuff was in my servlet. However, the majority of the processing being done was PrintWriter.flush. Contrary to some of the other posts here, I didn't see anything in StringBuffer.replace. I'm basing this on the CPU profiler. If there is something else I should look at, please let me know. Aryeh --- Aryeh Katz VASCO www.vasco.com -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: [Windows2k] Start tomcat as Service
I am also having a problem getting tomcat 4.1.12 running as a service with jdk 1.4.1 It runs fine with the older jdk. Where should I find the documentation on the third party tool that Remy mentioned? -Original Message- From: Juan Fco. Herrera Utande [mailto:juan.herrera;bluemat.biz] Sent: Wednesday, November 06, 2002 9:03 AM To: 'Tomcat Users List' Subject: RE: [Windows2k] Start tomcat as Service You must have one under tomcat\bin. If not try to install again and make sure during installation you choose Intall Tomcat as a Service. I also have Tomcat 4.1.12 under W2K running as a service with no problems. Regards, Juan -Mensaje original- De: François Vallet [mailto:fvallet;infovista.com] Enviado el: miércoles, 06 de noviembre de 2002 11:12 Para: 'Tomcat Users List' Asunto: RE: [Windows2k] Start tomcat as Service I don't have any tomcat.exe ... it is not apache :( -Original Message- From: Zaragoza, Carles [mailto:Carles.Zaragoza;es.compuware.com] Sent: mercredi 6 novembre 2002 10:52 To: 'Tomcat Users List' Subject: RE: [Windows2k] Start tomcat as Service I have install two tomacat 4.1 as a service on a w2000 prof with no problems. run tomcat.exe -help and follow the syntax. Regards,Carles. -Original Message- From: François Vallet [mailto:fvallet;infovista.com] Sent: martes, 05 de noviembre de 2002 18:42 To: 'Tomcat Users List' Subject: [Windows2k] Start tomcat as Service Who have ever start Tomcat 4.1 as service on Windows 2k ? Thanks in advance. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: System user accounts required to use manager in 4.1.12?
On Fri, 8 Nov 2002, Turner, John wrote: Date: Fri, 8 Nov 2002 14:18:54 -0500 From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: System user accounts required to use manager in 4.1.12? Is a form-based method for uploading the WAR files worth exploring? Or was there a specific decision made at some point to skip that? I was honestly surprised that I couldn't just use a standard browse button to pick a WAR file off my local drive and send it to the server for deployment, security issues aside. The deploy option was designed the way it was to make tool integration easy, not to be used directly by users. The same basic philosophy was followed for all the other commands -- they were intended to be interacted with by programs, not people. That being said, a file upload based remote deployment mechanism is certainly feasible, as long as you have the appropriate server-side logic to decode the data out of the request (like the library included with Struts). I just think this functionality would belong in something like the admin webapp, rather than manager -- putting a human UI on the manager webapp is misguided, IMHO. John Craig -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org