RE: X509 certificates and https
Hi, I think I have seen this Exception. I had certificate with both human readable and encoded parts. I deleted human readable part (I left only encoded part between -BEGIN CERTIFICATE- and -END CERTIFICATE- including these tags). After this, I was able to import this certificate. Lipi -Original Message- From: Julie McCabe [mailto:[EMAIL PROTECTED] Sent: Thursday, May 27, 2004 4:21 PM To: Tomcat Users List Subject: Re: X509 certificates and https Hi, I tried the following command keytool -import -alias tomcat -keystore server.ks -trustcacerts -file server.crt with my certificate and key which are in pem format and it returned keytool error: java.lang.Exception: Input not an X.509 certificate I have the CA certifcate stored in my browser but cant see how I can export it? Thanks Julie. On Thursday 27 May 2004 15:24, [EMAIL PROTECTED] wrote: The only thing you have to do is running the java keytool utily with following command: keytool -import -alias tomcat -keystore server.ks -trustcacerts -file server.crt This inserts thet server.crt certificate into the keystore that tomcat uses. Your CA scertificate needs to be in the trusted keystore of your JRE under which Tomcat runs. If this is not the case put it in there as follows: keytool -import -keystore %JAVA_HOME%/lib/security/cacerts -file ca.pem -alias my_alias This inserts the root certificate ca.pem into the trusted keystore of the JRE being used. This should work. Ron Blom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: X509 certificates and https
First you need to import you CA cert into a JKS keystore file (usually different from the one that you are using for Tomcat's keystore). Since you are using 4.1.x, you then need to add: -Djavax.net.ssl.trustStore=/path/to/truststore/file to the command line that starts Tomcat. (For TC 5, you would add truststoreFile=/path/to/truststore/file to the Connector element in server.xml). After that, Tomcat should start accepting you client certs. Julie McCabe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I am trying to use SSL authenitcation with X509 certificates. The certifcates are not in the Java keystore. I would like to know how to get my certificate whichi is signed by a specific CA into the keystore and use the https connector. I have found some documentation on the web but have had little success with getting my certificates into the keystore and SSL Connector configuration. I know my certificates are valid, maybe I am missing something with regards to the CA which signed the certifcate. I am using tomcat 4.1.27, Red Hat Linix 9.0. Thanks, Julie. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: API for authenticating user
As I told in this thread before, what I want to do is authenticating users as soon as they register themselves. Currently new users have to (1) visit subscribing page to subscribe and then (2) visit login page and input user name and password again. I want to avoid (2) step for new users. And I found the Tomcat API that seems to be used to memorize user principal into session. But I faced class loader problem. And yes, I agree with Justin, I don't want to move catalina.jar from server/lib to common/lib. So, now to solve this, I tried next option, that is, I tried RequestDispatcher.include() method in order to call j_security_check action as follows (in my struts action): // prior to the follwowing code, username, password and // role have been successfully saved into JDBCRealm RequestDispatcher dispatcher = getServlet().getServletContext().getRequestDispatcher( /j_security_check ); request.setAttribute( j_username, username ); request.setAttribute( j_password, password ); dispatcher.include( request, response ); But this didn't solve the issue. After registering user and running the above code, users who try to visit secured page forced to move to login form and are asked to input username and password. What am I wrong? regards, Koji -Original Message- From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 12:35 PM To: Tomcat Users List Subject: RE: API for authenticating user Koji, (1) Make sure you understand the implications of directly using any of Tomcat's internal classes (such as o.a.coyote.tomcat5.CoyoteRequest) -- especially to circumvent intended security. It is rarely advisable. If you still want to use it, move the class and/or jar into the $TOMCAT_HOME/common/classes or $TOMCAT_HOME/common/lib directory. It will be accessible to both Tomcat and your webapps in this case. Repeat (1). justin At 08:15 PM 5/27/2004, you wrote: Hi again, I found org.apache.coyote.tomcat5.CoyoteRequest class has a method setUserPrincipal which seems to be used to memorize authenticated user's principal into session. So I think I can call this method to authenticate users as soon as they register. But at runtime, when a user register himself and a regiter program (struts action) trys to call the method, the following exception occured: java.lang.NoClassDefFoundError: org/apache/coyote/tomcat5/CoyoteRequest sample.action.SubscribeAction.execute(SubscribeAction.java:34) org.apache.struts.action.RequestProcessor.processActionPerform(Re questProces sor.java:484) org.apache.struts.action.RequestProcessor.process(RequestProcesso r.java:274) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) This is because of Tomcat class loader problem. The Tomcat document says, http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html Catalina - This class loader is initialized to include all classes and resources required to implement Tomcat 5 itself. These classes and resources are TOTALLY invisible to web applications. So, I think I cannot call CoyoteRequest.setUserPrincipal(). Any idears? regards, Koji -Original Message- From: Koji Sekiguchi [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 11:58 AM To: Tomcat Users List Subject: RE: API for authenticating user Redirecting to j_security_check is a nice idea. Yes, I know Servlet specification doesn't have such API. But Tomcat must implement a mechanism that associates user principal with http session so that servlets can get user principal by calling HttpServletRequest.getUserPrincipal(). So I'll check Tomcat implementation of the API (getUserPrincipal()) to see how Tomcat memorizes user principal. Koji -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 11:26 AM To: Tomcat Users List Subject: Re: API for authenticating user Unfortunately, there is not an API for this in J2EE or container-managed authentication. I accomplish this in an example app that I wrote - using cookies and a redirect to j_security_check. For a demo, see http://demo.raibledesigns.com/appfuse. Matt On May 25, 2004, at 7:51 PM, Koji Sekiguchi wrote: Yes, my question was how to authenticate users as soon as they register. I think there must be API for it. Sorry for posting not clear question. Any ideas? Koji -Original Message- From: Patrick Willart [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 5:53 AM To: Tomcat Users List Subject:
Re: Context path
Those viral hosts can be even more nasty than the spam hosts ;-). But seriously, yes this is the right place to ask your question. However, if you'll have to provide more details on what you are trying to do to get a serious answer. stella luna [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am having trouble setting up a context for a viral hostis this the right place to post such a request for help? TDG - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
registering Tomcat as service
Hello, I installed Tomcat, formally run from the console. I am now trying to get it to run as a service. I have in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tomcat\Parameters: JVM Option Count REG_DWORD0X0004 (4) JVM Option Number 0 REG_SZ-Xms256m JVM Option Number 1 REG_SZ-Xmx512m JVM Option Number 2 REG_SZ -Djava.class.path=C:\eCommerce\Tomcat-4.1.30\bin\bootstrap.jar;C:\eComme rce\Tomcat-4.1.30\common\lib\servlet.jar;C:\j2sdk1.4.2_04\lib\tools.jar JVM Option Number 3 REG_SZ -Dcatalina.home=C:\eCommerce\Tomcat-4.1.30 the paths are correct (JDK/Tomcat) but when I try to start Tomcat from the service window, I get a popup: The Tomcat Service on a Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service The service does not subsequently run. Now my service may not have any work to do, but I most certainly do. Any info is much appreciated. Paul.
RE: API for authenticating user
I also tried: String url = /j_security_check + ? + j_username + = + username + + j_password + = + password; RequestDispatcher dispatcher = getServlet().getServletContext().getRequestDispatcher( url ); dispatcher.include( request, response ); but this doesn't work, too. Please help. Koji -Original Message- From: Koji Sekiguchi [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 3:15 PM To: Tomcat Users List Subject: RE: API for authenticating user As I told in this thread before, what I want to do is authenticating users as soon as they register themselves. Currently new users have to (1) visit subscribing page to subscribe and then (2) visit login page and input user name and password again. I want to avoid (2) step for new users. And I found the Tomcat API that seems to be used to memorize user principal into session. But I faced class loader problem. And yes, I agree with Justin, I don't want to move catalina.jar from server/lib to common/lib. So, now to solve this, I tried next option, that is, I tried RequestDispatcher.include() method in order to call j_security_check action as follows (in my struts action): // prior to the follwowing code, username, password and // role have been successfully saved into JDBCRealm RequestDispatcher dispatcher = getServlet().getServletContext().getRequestDispatcher( /j_security_check ); request.setAttribute( j_username, username ); request.setAttribute( j_password, password ); dispatcher.include( request, response ); But this didn't solve the issue. After registering user and running the above code, users who try to visit secured page forced to move to login form and are asked to input username and password. What am I wrong? regards, Koji -Original Message- From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 12:35 PM To: Tomcat Users List Subject: RE: API for authenticating user Koji, (1) Make sure you understand the implications of directly using any of Tomcat's internal classes (such as o.a.coyote.tomcat5.CoyoteRequest) -- especially to circumvent intended security. It is rarely advisable. If you still want to use it, move the class and/or jar into the $TOMCAT_HOME/common/classes or $TOMCAT_HOME/common/lib directory. It will be accessible to both Tomcat and your webapps in this case. Repeat (1). justin At 08:15 PM 5/27/2004, you wrote: Hi again, I found org.apache.coyote.tomcat5.CoyoteRequest class has a method setUserPrincipal which seems to be used to memorize authenticated user's principal into session. So I think I can call this method to authenticate users as soon as they register. But at runtime, when a user register himself and a regiter program (struts action) trys to call the method, the following exception occured: java.lang.NoClassDefFoundError: org/apache/coyote/tomcat5/CoyoteRequest sample.action.SubscribeAction.execute(SubscribeAction.java:34) org.apache.struts.action.RequestProcessor.processActionPerform(Re questProces sor.java:484) org.apache.struts.action.RequestProcessor.process(RequestProcesso r.java:274) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) This is because of Tomcat class loader problem. The Tomcat document says, http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html Catalina - This class loader is initialized to include all classes and resources required to implement Tomcat 5 itself. These classes and resources are TOTALLY invisible to web applications. So, I think I cannot call CoyoteRequest.setUserPrincipal(). Any idears? regards, Koji -Original Message- From: Koji Sekiguchi [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 11:58 AM To: Tomcat Users List Subject: RE: API for authenticating user Redirecting to j_security_check is a nice idea. Yes, I know Servlet specification doesn't have such API. But Tomcat must implement a mechanism that associates user principal with http session so that servlets can get user principal by calling HttpServletRequest.getUserPrincipal(). So I'll check Tomcat implementation of the API (getUserPrincipal()) to see how Tomcat memorizes user principal. Koji -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 11:26 AM To: Tomcat Users List Subject: Re: API for authenticating user Unfortunately, there is not an API for this in J2EE or
RE: How to know http port and https port on tomcat
That's ok, but when I recieve a SSL request and i want to redirect to NON SSL request i need to know the other port, not the port of the curren request. Thanks -Mensaje original- De: Shapira, Yoav [mailto:[EMAIL PROTECTED] Enviado el: jueves, 27 de mayo de 2004 14:50 Para: Tomcat Users List; [EMAIL PROTECTED] Asunto: RE: How to know http port and https port on tomcat Hi, Use HttpServletRequest#getLocalPort. Yoav Shapira Millennium Research Informatics -Original Message- From: Mariano [mailto:[EMAIL PROTECTED] Sent: Thursday, May 27, 2004 8:50 AM To: 'Tomcat Users List' Subject: How to know http port and https port on tomcat Hi all, can i know which port is using tomcat in http and https in jsp page or servlet? This values are sets in server.xml file in coyote connector port, for example: Connector port=8080 maxThreads=150 Connector port=8443 maxTh ... scheme=https Thanks Mariano López - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Looking for sample config files mod_jk2.
I need to integrate Tomcat 3.3 with Apache 2.0.48. Does any body sample configuration files for mod_jk2 to go with this configuration. I will be happy, even if the files for a different configuration. Here's basic jk2.properties file and workers2.properties for a fresh Tomcat 5.0.24, Apache 2.0.49 and jk2 2.0.4 install on Linux workers2.properties file: # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/jsp-examples/*] info=Map the whole webapp jk2.properties file: # Set the desired handler list handler.list=request,channelSocket
help needed...........
hi all! we have a project requirement where in we have to use tomcat 4.1 along with win2k japanese version. wat all changes i have to make in tomcat for this. we will have JSP and java beans. database will be oracle 9i. warm rgds, Rahul Bhardwaj --- NOTICE This email and any files transmitted with it are confidential and are solely for the use of the individual or entity to which it is addressed. Any use, distribution, copying or disclosure by any other person is strictly prohibited. If you receive this transmission in error, please notify the sender by reply email and then destroy the message. Opinions, conclusions and other information in this message that do not relate to official business of NIIT shall be understood to be neither given nor endorsed by NIIT. Any information contained in this email, when addressed to NIIT Clients is subject to the terms and conditions in governing client contract. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems building mod_jk2 (aclocal)
I have problems building mod_jk2 with Fedora Core 2. It seems to a problem with the mod_jk2 aclocal script??? Anyone that has successfully build mod_jk2 with Fedora Core 2? Here are the output: [EMAIL PROTECTED] native2]# ./buildconf.sh libtoolize --force --automake --copy aclocal /usr/share/aclocal/vorbis.m4:9: warning: underquoted definition of XIPH_PATH_VOR BIS run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal /usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULE S /usr/share/aclocal/pilot-link.m4:1: warning: underquoted definition of AC_PILOT_ LINK_HOOK /usr/share/aclocal/ogg.m4:8: warning: underquoted definition of XIPH_PATH_OGG /usr/share/aclocal/oaf.m4:4: warning: underquoted definition of AM_PATH_OAF /usr/share/aclocal/linc.m4:1: warning: underquoted definition of AM_PATH_LINC /usr/share/aclocal/libole2.m4:18: warning: underquoted definition of AM_PATH_LIB OLE2 /usr/share/aclocal/libmikmod.m4:11: warning: underquoted definition of AM_PATH_L IBMIKMOD /usr/share/aclocal/libguppi.m4:11: warning: underquoted definition of AM_PATH_LI BGUPPI /usr/share/aclocal/libglade.m4:7: warning: underquoted definition of AM_PATH_LIB GLADE /usr/share/aclocal/libart.m4:11: warning: underquoted definition of AM_PATH_LIBA RT /usr/share/aclocal/libIDL.m4:6: warning: underquoted definition of AM_PATH_LIBID L /usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB /usr/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_ IMLIB /usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK /usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB /usr/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of AM_PATH_ GDK_PIXBUF /usr/share/aclocal/gconf-2.m4:8: warning: underquoted definition of AM_GCONF_SOU RCE_2 /usr/share/aclocal/gconf-1.m4:4: warning: underquoted definition of AM_PATH_GCON F /usr/share/aclocal/gconf-1.m4:71: warning: underquoted definition of AM_GCONF_SO URCE /usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_A UDIOFILE /usr/share/aclocal/ORBit.m4:4: warning: underquoted definition of AM_PATH_ORBIT automake --copy --add-missing autoconf /Lars Nielsen Lind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 connector binary for solaris8
Hi, I am trying compiling Mod_jk2-2.0.4. As Matt Igor told me i need to specify ./configure where my Tomcat is. But i have JBoss 3.2.3 (built in tomcat41 as service). Must i still have Tomcat41 on the system where i compile mod_jk2?? Thanks Bhaskar -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 10:31 AM To: Tomcat Users List Subject: RE: JK2 connector binary for solaris8 Try following the instructions below, these are what I use when building the connector. cd jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2 ./configure --with-apxs2=/usr/local/apache2.0.49/bin/apxs --with-tomcat-41=/usr/local/jakarta-tomcat-5.0.25 \ --with-apr-lib=/usr/local/apache2.0.49/lib --with-java-home=/usr/local/j2sdk --with-jni make cd ../build/jk2/apache2 cp mod_jk2.so /usr/local/apache2.0.49/modules cp libjkjni.so /usr/local/apache2.0.49/modules Obviously you will have to edit the paths i've used here to suit your own environment and you'll need the gnu version of gcc and make at least. Good luck. -Original Message- From: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED] Sent: 25 May 2004 08:36 To: '[EMAIL PROTECTED]' Subject: JK2 connector binary for solaris8 Hi there, I have been strugling to compile Mod_jk2 2.0.4 for solaris8. I have never worked with solaris and compiling C packages. Can any body please help me finding a binary version of Mod_jk2.0.4-SPARK-Solaris8-Apache2.0.49 or proper documentation? I have had already spent 2 weeks for this and no use :-( Most of the documentation I found so far, expects one has the strong background of C, C++ and solaris and not for any specific to versions and platforms Thanks in advance Bhaskar __ For information about the Standard Bank group visit our web site www.standardbank.co.za __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the group. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of the group. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. ___ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ For information about the Standard Bank group visit our web site www.standardbank.co.za __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the group. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of the group. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. ___ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: n00b applet URI question
i don't think the webbrowser can access the jar file inside the WEB-INF directory, it is protected by tomcat. you have to place the jar file containing the applet code in a public location such as [...]/hello/applet. the rendered output (sent to the client) of the jsp page would be interesting, if the applet tag only contains the name of the jar file without path the browser only looks in the current directory (where the jsp page resides) for the jar file. if the tag contains a path and the jar file name the path must not be inside WEB-INF (see above). mfg art Michael Labhard wrote: I have a simple project like this: -- /opt/tomcat/webapps/hello: HelloWorld.jsp META-INF WEB-INF /opt/tomcat/webapps/hello/META-INF: MANIFEST.MF /opt/tomcat/webapps/hello/WEB-INF: classes lib web.xml /opt/tomcat/webapps/hello/WEB-INF/classes/xptoolkit/web: HelloWorldServlet.class /opt/tomcat/webapps/hello/WEB-INF/lib: greetmodel.jar helloapplet.jar --- which should ultimately activate the HelloWorldApplet in the helloapplet.jar file and display Hello World from the JSP file: HelloWorld.jsp: [EMAIL PROTECTED] contentType=text/html% [EMAIL PROTECTED] pageEncoding=UTF-8% html headtitleHello World/title/head body jsp:plugin type=applet code=xptoolkit.applet.HelloWorldApplet archive=helloapplet.jar height=200 width=200 align=center jsp:fallback pplugin not supported/p /jsp:fallback /jsp:plugin /body /html However I only see a message Loading java applet ... and nothing more. Is the JSP file wrong, maybe the archive path to the applet is not correct? Thank you. -- Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5: default unpackWARs bahaviour?
-BEGIN PGP SIGNED MESSAGE- I'm busy writing installation instructions for a webapp, and I've just had my first draft sent back to me as 'much too technical and complex'. For the webapp to work, I need 'unpackWARs' to be true in the server.xml file. A lot of Tomcat 4 distributions I've seen (including the Debian one, which I mostly use) come with 'unpackWARs' false. In the 5.0.24 binary tarball I've downloaded from jakarta.apache.org unpackWARs is true. Is this policy? Can I rely on unpackWARs being true in Tomcat 5 distributions downloaded from jakarta.apache.org? If so it makes my installation instructions much simpler. Cheers Simon - -- [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/ Tony Blair's epitaph, #1: Here lies Tony Blair. Tony Blair's epitaph, #2: Trust me. -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQCVAwUBQLcUO3r1UrYJMbiJAQFugQQAkgVMzf5onkPS/CUThcCXqEQnj3HdXVBZ QSq6gD0DUt8/wwWkVCbcFEU6nCE7884KzTXc3JDLd58G1qcP7lPwfnTon5eR8Zzr TF0vBzuPto2bJDCXGrBttOWFuNco1YFfMTu3wJYRSAJkyYBfmoX0LHEWR5s9fNfC tyhtCVnH2a8= =LGgP -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat logging and the referer
Extract from the HTTP spec: The Referer field MUST NOT be sent if the Request-URI was obtained from a source that does not have its own URI, such as input from the user keyboard. http://www.w3.org/Protocols/rfc2616/rfc2616.txt So unless someone links to your index page you'll probably never get a referer. Jon RJ wrote: Hello all: After my wonderful experience getting standalone tomcat with SSL running non-root today, there's only one hitch: I'm using the combined log format, and it seems to be OK, except that on the first hit on my site (to the static index.html page) the referer field is always -. Subsequent hits from pages within the site show the correct referer, but my main interest is that initial one. Anybody have any thoughts on how I can get that to show? rj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5: default unpackWARs bahaviour?
Hi, Don't rely on a default value for unpackWARs: put it in your instructions that it must be true, because that's a place where your webapp deviates from the Servlet Specification (which only requires containers to support packed WARs). Yoav Shapira Millennium Research Informatics -Original Message- From: Simon Brooke [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 6:28 AM To: 'Tomcat Users List' Subject: Tomcat 5: default unpackWARs bahaviour? -BEGIN PGP SIGNED MESSAGE- I'm busy writing installation instructions for a webapp, and I've just had my first draft sent back to me as 'much too technical and complex'. For the webapp to work, I need 'unpackWARs' to be true in the server.xml file. A lot of Tomcat 4 distributions I've seen (including the Debian one, which I mostly use) come with 'unpackWARs' false. In the 5.0.24 binary tarball I've downloaded from jakarta.apache.org unpackWARs is true. Is this policy? Can I rely on unpackWARs being true in Tomcat 5 distributions downloaded from jakarta.apache.org? If so it makes my installation instructions much simpler. Cheers Simon - -- [EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/ Tony Blair's epitaph, #1: Here lies Tony Blair. Tony Blair's epitaph, #2: Trust me. -BEGIN PGP SIGNATURE- Version: 2.6.3ia Charset: noconv iQCVAwUBQLcUO3r1UrYJMbiJAQFugQQAkgVMzf5onkPS/CUThcCXqEQnj3HdXVBZ QSq6gD0DUt8/wwWkVCbcFEU6nCE7884KzTXc3JDLd58G1qcP7lPwfnTon5eR8Zzr TF0vBzuPto2bJDCXGrBttOWFuNco1YFfMTu3wJYRSAJkyYBfmoX0LHEWR5s9fNfC tyhtCVnH2a8= =LGgP -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSVC to run tomcat?
Hi: I'm certainly no expert, but the way I did it, you don't directly invoke jsvc -- you just edit-up the Tomcat5.sh script, and use it to start and stop tomcat: e.g., on my setup, ./usr/local/tomcat5/bin/jsvc-src/native/Tomcat5.sh start The startup/shutdown script takes care of calling jsvc and giving it the right parameters. rj At 12:02 AM 5/28/2004, Justin Jaynes wrote: I am very impressed with the responsiveness of this list. I appreciate all the help everyone has given me in learning about JSVC for running tomcat as an underpriviledged user on ports 80 and 443. However, I am still running into a problem. I created a tomcat user and group and all tomcat files and web application files are owned by tomcat. I compiled the jsvc and set my scripts to run jsvc with the proper options (I believe), and when I run the script, I get nothing but my prompt back. I run ps -ax and jsvc is NOT a running process. What am I doing wrong? I run the command from my /tomcat/bin: jsvc -Djava.endorsed.dirs=../common/endorsed -cp ./bin/bootstrap.jar -outfile ../logs/catalina.out -errfile ../logs/catalina.err org.apache.catalina.startup.Bootstrap nothing I run the command with the user option, (as in the scripts) again. nothing. No errors, no process. Any help would be greatly apreciated. Justin __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why so many sessions?
On May 27, 2004, at 12:43 PM, Leonard Sitongia wrote: On May 27, 2004, at 10:05 AM, Leonard Sitongia wrote: But, the number of Sessions is 140. The number appears to have fluctuations up and down, but the overall trend is to increase. There are now 170 sessions. Some sessions apparently expire but others do not, hence the overall increase. Hello again, The number of sessions is now over 250. There are still only about 8 hits in a five minute period. There's no session information held here, as there's no login or other user-specific information handled. The pages simply display content from the OpenSymphony cache or invoke my JSP tag that goes through Hibernate to get data from MySQL. So, sessions older than 5 minutes should be automatically removed, I would expect. Can anyone offer me advice here? Can the number of sessions shown in the Tomcat Manager simply be ignored? Thanks for your help! ==Leonard E. Sitongia VETS / Scientific Computing Division National Center for Atmospheric Research P.O. Box 3000 Boulder CO 80307 USA [EMAIL PROTECTED]voice: (303)497-2454 fax: (303)497-1829 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: registering Tomcat as service
Take a look in tomcat/bin. There is a service.bat file that can install and uninstall the service. Should do the trick for you. From: Paul Wallace [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: registering Tomcat as service Date: Fri, 28 May 2004 16:31:57 +1000 Hello, I installed Tomcat, formally run from the console. I am now trying to get it to run as a service. I have in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tomcat\Parameters: JVM Option Count REG_DWORD0X0004 (4) JVM Option Number 0 REG_SZ-Xms256m JVM Option Number 1 REG_SZ-Xmx512m JVM Option Number 2 REG_SZ -Djava.class.path=C:\eCommerce\Tomcat-4.1.30\bin\bootstrap.jar;C:\eComme rce\Tomcat-4.1.30\common\lib\servlet.jar;C:\j2sdk1.4.2_04\lib\tools.jar JVM Option Number 3 REG_SZ -Dcatalina.home=C:\eCommerce\Tomcat-4.1.30 the paths are correct (JDK/Tomcat) but when I try to start Tomcat from the service window, I get a popup: The Tomcat Service on a Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service The service does not subsequently run. Now my service may not have any work to do, but I most certainly do. Any info is much appreciated. Paul. _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: registering Tomcat as service
Hi. On this subject - in the older Tomcat service executable (specifically jk_nt_service.exe for TC 3) the executable was pointed at a wrapper.properties file. This wrapper.properties provided the means to add new -X and -D properties to the executable without having to re-install the service as it was read in at start time. Is there any plan/chance that this could also be possible for the new tomcat5.exe? The main reason is if you wanted to change the -Xmx setting (as a good example) through code - it is a lot simpler to do this in a wrapper.properties and then simply restart the service - as opposed to removing the service and then re-installing it. Thanks in advance. Carl -Original Message- From: None None [mailto:[EMAIL PROTECTED] Sent: 28 May 2004 03:17 PM To: [EMAIL PROTECTED] Subject: RE: registering Tomcat as service Take a look in tomcat/bin. There is a service.bat file that can install and uninstall the service. Should do the trick for you. From: Paul Wallace [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: registering Tomcat as service Date: Fri, 28 May 2004 16:31:57 +1000 Hello, I installed Tomcat, formally run from the console. I am now trying to get it to run as a service. I have in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tomcat\Parameters: JVM Option Count REG_DWORD0X0004 (4) JVM Option Number 0 REG_SZ-Xms256m JVM Option Number 1 REG_SZ-Xmx512m JVM Option Number 2 REG_SZ -Djava.class.path=C:\eCommerce\Tomcat-4.1.30\bin\bootstrap.jar;C:\eComm e rce\Tomcat-4.1.30\common\lib\servlet.jar;C:\j2sdk1.4.2_04\lib\tools.jar JVM Option Number 3 REG_SZ -Dcatalina.home=C:\eCommerce\Tomcat-4.1.30 the paths are correct (JDK/Tomcat) but when I try to start Tomcat from the service window, I get a popup: The Tomcat Service on a Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service The service does not subsequently run. Now my service may not have any work to do, but I most certainly do. Any info is much appreciated. Paul. _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to plan upgrade from tomcat 4.x to tomcat 5.x strategy
hi i have a sistem running apache 2.x **tomcat 4.x *** mod_jk .how can i migrate my web site to tomcat.5x and apache 2.x(latest version) my aim is to make website so portable that when apache and tomcat release new version i can upgrade my system easily.is it possible ? sincerely - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to plan upgrade from tomcat 4.x to tomcat 5.x strategy
Hi, Yeah, it's possible, if you stick to the Servlet Specification. That includes: - Deploying and running from a packed WAR - Allow the server administrator to configure any external resources you need, such as writing directories and database information, via the standard J2EE JNDI mechanisms of env-entry/resource-ref - Not using any server-specific code - Packaging all the libraries you need in your own WAR, not relying on the server to supply them, much less specific versions of them. With Apache it's easy to stay portable, as fewer people do crazy HTTP stuff than do crazy servlet stuff ;) Other people on the httpd list can advise you on which modules are more stable and tried than others. Yoav Shapira Millennium Research Informatics -Original Message- From: Eyup TEKIN [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 9:39 AM To: tomcat-user Subject: how to plan upgrade from tomcat 4.x to tomcat 5.x strategy hi i have a sistem running apache 2.x **tomcat 4.x *** mod_jk .how can i migrate my web site to tomcat.5x and apache 2.x(latest version) my aim is to make website so portable that when apache and tomcat release new version i can upgrade my system easily.is it possible ? sincerely - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apx error when building Mod_JK2.0.4
What should i do when i get this error on solaris8 (when i say ./config --with-apxs2=/usr/local/apache2/bin/apxs...etc.) could not find /usr/local/apache2/bin/apxs configure: error: You must specify a valid --with-apxs2 path Thanks Bhaskar __ For information about the Standard Bank group visit our web site www.standardbank.co.za __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the group. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of the group. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. ___
Re: Apx error when building Mod_JK2.0.4
did you build apache2 with apxs support? if not, recompile. ./configure --help On Fri, 28 May 2004, Kommuru, Bhaskar wrote: Date: Fri, 28 May 2004 15:44:58 +0200 From: Kommuru, Bhaskar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: Apx error when building Mod_JK2.0.4 What should i do when i get this error on solaris8 (when i say ./config --with-apxs2=/usr/local/apache2/bin/apxs...etc.) could not find /usr/local/apache2/bin/apxs configure: error: You must specify a valid --with-apxs2 path Thanks Bhaskar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to plan upgrade from tomcat 4.x to tomcat 5.x strategy
On Fri, May 28, 2004 at 04:38:48PM +0300, Eyup TEKIN wrote: : i have a sistem running apache 2.x **tomcat 4.x *** mod_jk .how can i : migrate my web site to tomcat.5x and apache 2.x(latest version) I have a (brief) Tomcat 4-5 upgrade doc on my website at http://www.BrandXDev.net : my aim is to make website so portable that when apache and tomcat release : new version : i can upgrade my system easily.is it possible ? Yes -- a lot of this has to do with system and application architecture. - systems arch: keep the Tomcat install, Apache install, and code (WAR file, web doc root) separate. This lets them vary independently. - app arch: Stick closely with the servlet spec and other Java/web standards. This is all pretty general advice, but then again, the deep decisions are pretty app-specific. =) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FOUND VIRUS IN MAIL from tomcat-user@jakarta.apache.org to office@vojvodina.com
V I R U S A L E R T Our viruschecker found a VIRUS in your email to [EMAIL PROTECTED]. We stopped delivery of this email! Now it is on you to check your system for viruses In file: /usr/local/mav/basedir/i4SE8nE5028344/i4SE8nE5028344 Found the W32/Netsky.p.eml!exe virus !!! /usr/local/mav/basedir/i4SE8nE5028344/message.scr Found the W32/[EMAIL PROTECTED] virus !!! For your reference, here are the headers from your email: - BEGIN HEADERS - Received: from P-15.74.EUnet.yu [213.240.15.74] by pluton.nspoint.net [195.252.123.15] with SMTP id i4SE8nE5028344; Fri May 28 16:09:43 2004 +0200 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Mail Delivery (failure [EMAIL PROTECTED]) Date: Fri, 28 May 2004 16:09:02 +0200 MIME-Version: 1.0 Content-Type: multipart/related; type=multipart/alternative; boundary==_NextPart_000_001B_01C0CA80.6B015D10 X-Priority: 3 X-MSMail-Priority: Normal -- END HEADERS -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: registering Tomcat as service
You can modify the service parameters via the GUI. See... http://jakarta.apache.org/commons/daemon/procrun.html Even though most of the instructions on that page are outdated, the information near the bottom of the page is still useful. In particular... Changing the Service Parameters from the GUI tomcat5w //ES//Tomcat5 That pops up a GUI where you can see all the parameters that are currently added to the service. Add/Remove as needed. Jake Quoting Carl Olivier [EMAIL PROTECTED]: Hi. On this subject - in the older Tomcat service executable (specifically jk_nt_service.exe for TC 3) the executable was pointed at a wrapper.properties file. This wrapper.properties provided the means to add new -X and -D properties to the executable without having to re-install the service as it was read in at start time. Is there any plan/chance that this could also be possible for the new tomcat5.exe? The main reason is if you wanted to change the -Xmx setting (as a good example) through code - it is a lot simpler to do this in a wrapper.properties and then simply restart the service - as opposed to removing the service and then re-installing it. Thanks in advance. Carl -Original Message- From: None None [mailto:[EMAIL PROTECTED] Sent: 28 May 2004 03:17 PM To: [EMAIL PROTECTED] Subject: RE: registering Tomcat as service Take a look in tomcat/bin. There is a service.bat file that can install and uninstall the service. Should do the trick for you. From: Paul Wallace [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: registering Tomcat as service Date: Fri, 28 May 2004 16:31:57 +1000 Hello, I installed Tomcat, formally run from the console. I am now trying to get it to run as a service. I have in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tomcat\Parameters: JVM Option Count REG_DWORD0X0004 (4) JVM Option Number 0 REG_SZ-Xms256m JVM Option Number 1 REG_SZ-Xmx512m JVM Option Number 2 REG_SZ -Djava.class.path=C:\eCommerce\Tomcat-4.1.30\bin\bootstrap.jar;C:\eComm e rce\Tomcat-4.1.30\common\lib\servlet.jar;C:\j2sdk1.4.2_04\lib\tools.jar JVM Option Number 3 REG_SZ -Dcatalina.home=C:\eCommerce\Tomcat-4.1.30 the paths are correct (JDK/Tomcat) but when I try to start Tomcat from the service window, I get a popup: The Tomcat Service on a Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service The service does not subsequently run. Now my service may not have any work to do, but I most certainly do. Any info is much appreciated. Paul. _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apx error when building Mod_JK2.0.4
NO. but i have downloaded apache2 from Sunfreeware.com for solaris2.8 did you build apache2 with apxs support? if not, recompile. ./configure --help On Fri, 28 May 2004, Kommuru, Bhaskar wrote: Date: Fri, 28 May 2004 15:44:58 +0200 From: Kommuru, Bhaskar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: Apx error when building Mod_JK2.0.4 What should i do when i get this error on solaris8 (when i say ./config --with-apxs2=/usr/local/apache2/bin/apxs...etc.) could not find /usr/local/apache2/bin/apxs configure: error: You must specify a valid --with-apxs2 path Thanks Bhaskar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ For information about the Standard Bank group visit our web site www.standardbank.co.za __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the group. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of the group. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. ___ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
creating web applications
Hello, I have installed Tomcat 5.0.25 . I am trying to create a web application, but having trouble deploying servlets. I have created the required directory structure in the TOMCAT_HOME/webapps directory...namely examples/WEB-INF/classes. Also I added Context path=/examples docBase=examples debug=0 reloadable=true/Context within the 'host' element of the server.xml file. To test I placed a simple html file in the TOMCAT_HOME/webapps/examples directory, and that worked fine. Now, to test servlets, I placed a simple HelloWorld servlet class file in the TOMCAT_HOME/webapps/examples /WEB-INF/classes directory. I also shutdown adn restarted the server, but teh servlet doesnt work when I point my browser to http://localhost:8080/examples/servlet/HelloWorld. I get following message: The requested resource (/examples/servlet/HelloWorld) is not available. I have read about adding a servlet element to the web.xml file in WEB-INF directory. I did that too. But that didnt help. The web.xml file I have in /examples/WEB-INF/ now looks las follows: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app /web-app I remember in a previous installation of Tomcat (someone else and installed it) I had a webapplication directory, similar to the 'examples' directory above, and could place my class files in the classes directory, without adding any entry into the web.xml file, and the servlets would work fine . Can anyone see what I have done wrong..why wont my servlets work? Thanks in advance, Swapna _ Post Classifieds on MSN classifieds. http://go.msnserver.com/IN/44045.asp Buy and Sell on MSN Classifieds. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat worker (node) down
Nada Did you get reply for this. I too have to same problem. I heard it is one of those missing feature of AJP1.3. I want to know how can we do a work around for this. Let me know if you know Thanks Bhaskar -Original Message- From: Nanda [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 7:28 AM To: [EMAIL PROTECTED] Subject: tomcat worker (node) down Hi! tomcat 4.1.29/apache 2.0.49 I have a cluster with Apache Web Server load balancing over three tomcat workers. In the middle of the tests, when one of the tomcat workers was restarted, I noticed even before the server was brought up completely*, Apache forwarded requests to the server, which resulted in HTTP Status 500 - No Context configured to process this request. * all web applications are completely deployed and ready for access Is there a configuration option to instruct Apache Web Server to forward requests only after server is started up completely (maybe detecting the status code 200)? regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ For information about the Standard Bank group visit our web site www.standardbank.co.za __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the group. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of the group. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. ___
RE: Tomcat 5: default unpackWARs bahaviour?
Please forgive this email. It's a self-improvement exercise. I didn't take logic in University, so I'm genuinely asking the questions below. I'm not being sarcastic ;) Only bother reading this if you're on lunch, and care to take a bit of a thought exercise. I cannot find a single place in the spec (2.3 and 2.4) that states unequivocaly that containers are only required to support archived applications. (for interest, I used 'find' in acrobat on both versions, to find 'WAR', 'archive' and 'required'). There's at least one place that *might* be used to infer this, but I would disagree, which I outline below. So before it all starts, can anyone point me to the line in the spec that states, in other language, and unequivaocaly, that a servlet container is only required to support archived applications? Some prelude: From the glossary in the spec: [b]web application[/b] A collection of servlets, JSP pages , HTML documents, and other web resources which might include image files, compressed archives, and other data. A web application may be packaged into an archive or exist in an open directory structure. There's that word weak word, 'may'. So can we infer that if it MAY be A and it MAY be B, that both A and B are *required* to be supported? Can we infer that they *ought* to be supported? (is that middle ground even possible; ie: if it only *ought* to support B, can you strongly say that B is even an option?) SRV.3.5 SRV.4.5 Both contain similar weak language in regards to archived/open files (may) Then, in later sections (numerous) it starts to talk about things (filters, classes, etc) that get packaged into the WAR or in the WAR. The spec starts to adopt the assumption that your app is archived. But mainly, there's this in SRV.9.4, which I think is where people infer that containers need only support archives: This specification defines a hierarchical structure used for deployment and packaging purposes that can exist in an open file system, in an archive file, or in some other form. It is recommended, but not required, that servlet containers support this structure as a runtime representation. 1 An application can be in an open file system 2 An application can be in an archive file 3 An application can be in another form 4 A container is not required to support open file system. 5 A container is not required to support another form. 6 Therefore, a container is only required to support archive file. First of all, both #4 and #5 are not (in my mind) spelled out by the text of the spec I quoted. But lets assume they are. Is 6 then, a valid inference? Because with one interpretation of the above paragraph, #6 must be a valid inference, and can therefore be used to assert that containers must only support packed applications. 'cause like I said, I can't find the line that says Containers are only required to support archived web applications. But here's how I have always read this paragraph, and please tell me how this is wrong. This specification defines a [[hierarchical structure]] used for deployment and packaging purposes that can exist {in an open file system}, {in an archive file}, or {in some other form}. It is recommended, but not required, that servlet containers support [[this structure]] as a runtime representation. So the [[ ]] are the matching elements. Containers should, but are not required, to use the [[structure]] as a run-time representation. It doesn't say anything regarding recommend/require about any of the {representation choices}. I'm trying to remember which one it was.. but back in the day, wasn't there an app server (iPlanet maybe?) that would take a WAR file, and then explode it all to hell, moving files here and there, classes over here, etc, etc, and of course, the runtime representation didn't look anything like the [[structure]]. I think that's what this paragraph is talking about. A container is free to do whatever it wants, at runtime. It is recommended that its runtime representation be the [[structure]] defined, but is not *required* to be. But in this interpretation, there is no way to infer that any of the deployment {options} are either 'required' or 'recommended' to be supported. Lastly, there's also this: SRV.9.6 Web Application Archive File Web applications can be packaged and signed into a Web ARchive format (WAR) file using the standard Java archive tools. For example, an application for issue tracking might be distributed in an archive file called issuetrack.war. There's those weak words again (can and might). To me, this implies that it might also be in 'open file system' format. And there's nothing in the above that speaks to a container requirement, one way or the other, other than: 1) it CAN be in A 2) it CAN be in B 3) Therefore, the container *must* support both A and B ?? This seems to be backed up the the glossary definition of 'web application', where it states that it *may* exist in either 'archive' or 'open directory'
RE: creating web applications
http://jakarta.apache.org/tomcat/faq/misc.html#invoker Yoav Shapira Millennium Research Informatics -Original Message- From: swapna gupta [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 11:38 AM To: [EMAIL PROTECTED] Subject: creating web applications Hello, I have installed Tomcat 5.0.25 . I am trying to create a web application, but having trouble deploying servlets. I have created the required directory structure in the TOMCAT_HOME/webapps directory...namely examples/WEB-INF/classes. Also I added Context path=/examples docBase=examples debug=0 reloadable=true/Context within the 'host' element of the server.xml file. To test I placed a simple html file in the TOMCAT_HOME/webapps/examples directory, and that worked fine. Now, to test servlets, I placed a simple HelloWorld servlet class file in the TOMCAT_HOME/webapps/examples /WEB-INF/classes directory. I also shutdown adn restarted the server, but teh servlet doesnt work when I point my browser to http://localhost:8080/examples/servlet/HelloWorld. I get following message: The requested resource (/examples/servlet/HelloWorld) is not available. I have read about adding a servlet element to the web.xml file in WEB-INF directory. I did that too. But that didnt help. The web.xml file I have in /examples/WEB-INF/ now looks las follows: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app /web-app I remember in a previous installation of Tomcat (someone else and installed it) I had a webapplication directory, similar to the 'examples' directory above, and could place my class files in the classes directory, without adding any entry into the web.xml file, and the servlets would work fine . Can anyone see what I have done wrong..why wont my servlets work? Thanks in advance, Swapna _ Post Classifieds on MSN classifieds. http://go.msnserver.com/IN/44045.asp Buy and Sell on MSN Classifieds. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5: default unpackWARs bahaviour?
Hi, In short: - Yes some of the spec parts use weak wording, e.g. may, take that up with the spec JSR group (there's contact info on the JSR web page) - It's clear that supporting a packed WAR is required - It's clear that supporting open file system structure is optional - No one is saying open file system support is forbidden, but it's clearly not required, and therefore developers can't count on it being available - I don't know what server you had in mind that blew up a war and broke it apart, but I do know that some Oracle servlet containers in the past put the WAR in the database, and a filesystem was not available at all: this is often cited as a compliant server that does not allow for exploded WAR deployment. Yoav Shapira Millennium Research Informatics -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 11:58 AM To: 'Tomcat Users List' Subject: RE: Tomcat 5: default unpackWARs bahaviour? Please forgive this email. It's a self-improvement exercise. I didn't take logic in University, so I'm genuinely asking the questions below. I'm not being sarcastic ;) Only bother reading this if you're on lunch, and care to take a bit of a thought exercise. I cannot find a single place in the spec (2.3 and 2.4) that states unequivocaly that containers are only required to support archived applications. (for interest, I used 'find' in acrobat on both versions, to find 'WAR', 'archive' and 'required'). There's at least one place that *might* be used to infer this, but I would disagree, which I outline below. So before it all starts, can anyone point me to the line in the spec that states, in other language, and unequivaocaly, that a servlet container is only required to support archived applications? Some prelude: From the glossary in the spec: [b]web application[/b] A collection of servlets, JSP pages , HTML documents, and other web resources which might include image files, compressed archives, and other data. A web application may be packaged into an archive or exist in an open directory structure. There's that word weak word, 'may'. So can we infer that if it MAY be A and it MAY be B, that both A and B are *required* to be supported? Can we infer that they *ought* to be supported? (is that middle ground even possible; ie: if it only *ought* to support B, can you strongly say that B is even an option?) SRV.3.5 SRV.4.5 Both contain similar weak language in regards to archived/open files (may) Then, in later sections (numerous) it starts to talk about things (filters, classes, etc) that get packaged into the WAR or in the WAR. The spec starts to adopt the assumption that your app is archived. But mainly, there's this in SRV.9.4, which I think is where people infer that containers need only support archives: This specification defines a hierarchical structure used for deployment and packaging purposes that can exist in an open file system, in an archive file, or in some other form. It is recommended, but not required, that servlet containers support this structure as a runtime representation. 1 An application can be in an open file system 2 An application can be in an archive file 3 An application can be in another form 4 A container is not required to support open file system. 5 A container is not required to support another form. 6 Therefore, a container is only required to support archive file. First of all, both #4 and #5 are not (in my mind) spelled out by the text of the spec I quoted. But lets assume they are. Is 6 then, a valid inference? Because with one interpretation of the above paragraph, #6 must be a valid inference, and can therefore be used to assert that containers must only support packed applications. 'cause like I said, I can't find the line that says Containers are only required to support archived web applications. But here's how I have always read this paragraph, and please tell me how this is wrong. This specification defines a [[hierarchical structure]] used for deployment and packaging purposes that can exist {in an open file system}, {in an archive file}, or {in some other form}. It is recommended, but not required, that servlet containers support [[this structure]] as a runtime representation. So the [[ ]] are the matching elements. Containers should, but are not required, to use the [[structure]] as a run-time representation. It doesn't say anything regarding recommend/require about any of the {representation choices}. I'm trying to remember which one it was.. but back in the day, wasn't there an app server (iPlanet maybe?) that would take a WAR file, and then explode it all to hell, moving files here and there, classes over here, etc, etc, and of course, the runtime representation didn't look anything like the [[structure]]. I think that's what this paragraph is talking about. A container is free to do whatever it wants, at runtime. It is recommended that its runtime representation be the [[structure]]
Mod_jk error... help me please
I have compiled Mod_jk2-2.0.4 with apache2.0.49. But when i configtest/start apache i get the following error. # /usr/local/apache2/bin/apachectl configtest Syntax error on line 269 of /usr/local/apache2/conf/httpd.conf: Can't locate API module structure `jk2_module' in file /usr/local/apache2/modules/mod_jk2.so: ld.so.1: /usr/local/apache2/bin/httpd: fatal: jk2_module: can't find symbol 1. Is there problem with mod_jk.so object i.e. created by compiler?? 2. Should the compiler version of Apache2.0.49 and Mod_jk2.0.4 be the same? 3. If so, How can i find version of compiler that compiled apache? Please help me if any one knows!! Regards Bhaskar __ For information about the Standard Bank group visit our web site www.standardbank.co.za __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the group. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of the group. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. ___
RE: registering Tomcat as service
Hi there. The GUI is not always going to be good for me as I need to make the change command line settings via my own web based server management interface. I assume that the app changes registry enties? Is there documentation on the registry entries? I could then make changes directly in the registry Carl -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 28 May 2004 04:53 PM To: Tomcat Users List Subject: RE: registering Tomcat as service You can modify the service parameters via the GUI. See... http://jakarta.apache.org/commons/daemon/procrun.html Even though most of the instructions on that page are outdated, the information near the bottom of the page is still useful. In particular... Changing the Service Parameters from the GUI tomcat5w //ES//Tomcat5 That pops up a GUI where you can see all the parameters that are currently added to the service. Add/Remove as needed. Jake Quoting Carl Olivier [EMAIL PROTECTED]: Hi. On this subject - in the older Tomcat service executable (specifically jk_nt_service.exe for TC 3) the executable was pointed at a wrapper.properties file. This wrapper.properties provided the means to add new -X and -D properties to the executable without having to re-install the service as it was read in at start time. Is there any plan/chance that this could also be possible for the new tomcat5.exe? The main reason is if you wanted to change the -Xmx setting (as a good example) through code - it is a lot simpler to do this in a wrapper.properties and then simply restart the service - as opposed to removing the service and then re-installing it. Thanks in advance. Carl -Original Message- From: None None [mailto:[EMAIL PROTECTED] Sent: 28 May 2004 03:17 PM To: [EMAIL PROTECTED] Subject: RE: registering Tomcat as service Take a look in tomcat/bin. There is a service.bat file that can install and uninstall the service. Should do the trick for you. From: Paul Wallace [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: registering Tomcat as service Date: Fri, 28 May 2004 16:31:57 +1000 Hello, I installed Tomcat, formally run from the console. I am now trying to get it to run as a service. I have in the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tomcat\Parameter s: JVM Option Count REG_DWORD0X0004 (4) JVM Option Number 0 REG_SZ-Xms256m JVM Option Number 1 REG_SZ-Xmx512m JVM Option Number 2 REG_SZ -Djava.class.path=C:\eCommerce\Tomcat-4.1.30\bin\bootstrap.jar;C:\eCo mm e rce\Tomcat-4.1.30\common\lib\servlet.jar;C:\j2sdk1.4.2_04\lib\tools.jar JVM Option Number 3 REG_SZ -Dcatalina.home=C:\eCommerce\Tomcat-4.1.30 the paths are correct (JDK/Tomcat) but when I try to start Tomcat from the service window, I get a popup: The Tomcat Service on a Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service The service does not subsequently run. Now my service may not have any work to do, but I most certainly do. Any info is much appreciated. Paul. _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mod_jk error... help me please
I'm confused... are you trying to use mod_jk or mod_jk2? mod_jk2 is on mod_jk.so, not mod_jk.so, this is the mod_jk library. Kommuru, Bhaskar wrote: I have compiled Mod_jk2-2.0.4 with apache2.0.49. But when i configtest/start apache i get the following error. # /usr/local/apache2/bin/apachectl configtest Syntax error on line 269 of /usr/local/apache2/conf/httpd.conf: Can't locate API module structure `jk2_module' in file /usr/local/apache2/modules/mod_jk2.so: ld.so.1: /usr/local/apache2/bin/httpd: fatal: jk2_module: can't find symbol 1. Is there problem with mod_jk.so object i.e. created by compiler?? mod_jk??? you mean mod_jk2? 2. Should the compiler version of Apache2.0.49 and Mod_jk2.0.4 be the same? 3. If so, How can i find version of compiler that compiled apache? Please help me if any one knows!! Regards Bhaskar __ For information about the Standard Bank group visit our web site www.standardbank.co.za __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the group. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of the group. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. ___ -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ajp13 protocol specifications
Where will I get ajp13 protocol specifications? I need to make my own mod_jk2's java variant. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 out of memory
I am using Tomcat 5.025 Mod jk 1.2.5 and Apache 2.0.49 Memory just keeps ramping up untill it goes out of memory It is on a Windows 2003 server Any Ideas? Thanks James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connection timeout when using OutputStream
Hello, I am running into problems with downloading unusually big files within my application using the ServletOutputStream. From what I read on the documentation I set the Coyote Connector attribute connectionTimeout=-1 and still the problem persists. Any ideas/advice anyone ? Thanks, Paul. __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connection timeout when using OutputStream
I forgot to mention - I am running Tomcat 4.1.27 on Win2K. Thanks. --- Paul Mitchell [EMAIL PROTECTED] wrote: Hello, I am running into problems with downloading unusually big files within my application using the ServletOutputStream. From what I read on the documentation I set the Coyote Connector attribute connectionTimeout=-1 and still the problem persists. Any ideas/advice anyone ? Thanks, Paul. __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
QoS in Tomcat?
Hi all, Is there any infrastruture availabe (or at least any possiblities) in Tomcat to tune the QoS requests are receiving? For instance, is it possible to give differentiated treatments to requests of various importance, by granting them different amount of resources, queueing them differently, etc? I realise my questions might be a bit vague, as I don't have too much insight about Tomcat. All I'm looking for are some knobs in Tomcat that we can turn to affect its performance, either observed by different groups of requests or by all the requests on a whole. If there are no such knobs at all, would it be possible to amend the current Tomcat with it? Any advices (or at least what readings I should do to acquire that knowledge) would be greatly appreciated. Thanks a lot. Best regards, Rui - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Log4j Problem w/Tomcat 5.0.24 and JSVC
Hey All I am running Tomcat 5.0.24 on a RH9 Machine, at startup using JSVC. My root problem is I am unable to get tomcat's SSL port to run on 443.. (works peachy on 8443, but when I hit 443 I get nothing it just hangs and timesout). Well anyway I was trying to get Log4j logging to work so I could see if tomcat was outputting anything funny, I stuck the log4j jar into common/lib, built a log4j.properties file and put it in common/classes, but for some reason log4j is not being initializized from that props file, its as if common/classes isn't being read. Here's the file I am using: ## # Appender Definitions log4j.appender.ConsoleFile=org.apache.log4j.DailyRollingFileAppender log4j.appender.ConsoleFile.file=${catalina.home}/logs/console.log log4j.appender.ConsoleFile.datePattern='.'-MM-dd log4j.appender.ConsoleFile.layout=org.apache.log4j.PatternLayout log4j.appender.ConsoleFile.layout.ConversionPattern=%-d [%-5p] %c - %m%n # # Logger Definitions log4j.debug=TRUE log4j.rootLogger=ERROR, ConsoleFile log4j.logger.org.apache=DEBUG, ConsoleFile log4j.logger.org.apache.commons=ERROR, ConsoleFile its not creating my console.log file or anything, and I'm getting no debug output to the catalina.out file created by jsvc. My webapp also uses log4j and in its prop's i set log4j's debug to be on and it told me there was no rootlogger.. so somehow this file is not being parsed. Permissions are good, set as tomcat/tomcat the user that jsvc delegates to. I'm at a loss as to what is goin on, my windows dev box has this same setup and works great. The only diff is its not using jsvc, is that a possible problem here? For kicks and giggles I added the catalina_home/common/lib and classes dirs to jsvc's classpath it launches with but that didnt help either. Help appreciated!! -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 out of memory
I have the same configuration (except tomcat 5.0.19 and Suse linux 9.1) and have the same problem... do you have this kind of message at your catalina.log? May 28, 2004 2:44:14 PM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 May 28, 2004 2:44:49 PM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 Emerson James Sherwood wrote: I am using Tomcat 5.025 Mod jk 1.2.5 and Apache 2.0.49 Memory just keeps ramping up untill it goes out of memory It is on a Windows 2003 server Any Ideas? Thanks James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I change Tomcat's default character encoding?
In the catalina.bat (catalina.sh) I added the java args... set JAVA_OPTS=-Djavax.servlet.request.encoding=UTF-8 -Dfile.encoding=UTF-8 then all my encodings seem to come across as UTF-8 by default.. so far its been working. -Rick -Original Message- From: rlipi [mailto:[EMAIL PROTECTED] Posted At: Thursday, May 27, 2004 2:20 AM Posted To: Tomcat Dev Conversation: Can I change Tomcat's default character encoding? Subject: RE: Can I change Tomcat's default character encoding? Thank you for the answer. I know about this possibility using filters (and I have done something). But the original question (and my question) is about simpler way: Is it possible to globally set (somewhere in JVM or Tomcat configuration) default character encoding for all created Writers? Lipi -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 7:45 PM To: 'Tomcat Users List' Subject: RE: Can I change Tomcat's default character encoding? Hi, quick response, you can use your own customized OutputStreamWriter. You need to extend the abstract class ServletOutputStream. And you integrate your customized writer with tomcat by implementing a filter. For more info on how to use filters, you can do a search on google. This will only work for Tomcat 4 and up, or any other container that implement Servlet 2.3 and up. -Yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How does one get notified of webapp shutdown in the webapp to do clean up?
Hello, I'm using OpenJMS embedded in Tomcat 5.0.24 and when ever I do a shutdown Tomcat can't shutdown completely because OpenJMS server is still running in its own thread ( I presume ). If I use the OpenJMS management classes and tell the server to shutdown, then tell Tomcat to shutdown, everything is fine. So the question is.. is their some kind of web-app.finallize() where I can register a listener or something to do some clean up right before it stops the web-app? Thanks for any help, Rick
Re: Problems building mod_jk2 (aclocal)
I just recently successfully built mod_jk2 v2.0.4 under Fedora Core 2 Test 3. I first had to rebuild Apache - I used v2.0.49 - for apxs to work properly when compiling jk2. I then brought down the latest src for jk2 - v2.0.4. Here are the configure scripts I used for httpd and jk2. They are based off the relevant information in the Tomcat wiki links http://www.reliablepenguin.com/clients/misc/tomcat/ and http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html. myconfigure-jk.sh #! /bin/sh ./configure --with-apxs2=/usr/sbin/apxs \ --with-apr-lib=/usr/lib \ --with-tomcat-41=/usr/local/tomcat \ --with-java-home=/usr/local/java/ \ --with-jni myconfigure-httpd.sh file: #! /bin/sh ./configure -C \ --prefix=/etc \ --exec-prefix=/etc \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --mandir=/usr/share/man \ --libdir=/usr/lib \ --sysconfdir=/etc/httpd/conf \ --includedir=/usr/include/httpd \ --libexecdir=/usr/lib/httpd/modules \ --datadir=/usr/www \ --enable-suexec \ --with-suexec \ --with-suexec-caller=apache \ --with-suexec-docroot=/usr/www \ --with-suexec-logfile=/var/log/httpd/suexec.log \ --with-suexec-bin=/usr/sbin/suexec \ --with-suexec-uidmin=500 \ --with-suexec-gidmin=500 \ --with-devrandom \ --enable-cache=shared \ --enable-disk-cache=shared \ --enable-mem-cache=shared \ --enable-ssl=shared \ --with-ssl \ --enable-deflate \ --enable-access=shared \ --enable-auth=shared \ --enable-include=shared \ --enable-deflate=shared \ --enable-log-config=shared \ --enable-env=shared \ --enable-setenvif=shared \ --enable-mime=shared \ --enable-auth-anon=shared \ --enable-status=shared \ --enable-autoindex=shared \ --enable-asis=shared \ --enable-suexec=shared \ --enable-auth-dbm=shared \ --enable-cgi=shared \ --enable-negotiation=shared \ --enable-dir=shared \ --enable-auth-digest=shared \ --enable-imap=shared \ --enable-actions=shared \ --enable-userdir=shared \ --enable-mime-magic=shared \ --enable-alias=shared \ --enable-cern-meta=shared \ --enable-expires=shared \ --enable-headers=shared \ --enable-unique-id=shared \ --enable-usertrack=shared \ --enable-dav=shared \ --enable-info=shared \ --enable-dav-fs=shared \ --enable-vhost-alias=shared \ --enable-speling=shared \ --enable-rewrite=shared \ --enable-proxy=shared \ --enable-proxy-http=shared \ --enable-proxy-ftp=shared \ --enable-proxy-connect=shared At 12:38 AM 5/28/2004, Lars Nielsen Lind wrote: I have problems building mod_jk2 with Fedora Core 2. It seems to a problem with the mod_jk2 aclocal script??? Anyone that has successfully build mod_jk2 with Fedora Core 2? Here are the output: snip.. /Lars Nielsen Lind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: tomcat 5.0.25 - Problem in running jsp
Hi, Yes Finally i figured out the problem... its all because of the outdated .jar file in my app [I changed to latest j2ee.jar and it worked fine]. Tomcat 5 is working fine :)) thanks to all for ur reply.. Cheers, Raj Hi, For starters, run it standalone. Always get things working standalone before you complain about an IDE-related problem -- you won't get much sympathy otherwise ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Rajesh_Narayanan [mailto:[EMAIL PROTECTED] Sent: Thursday, May 27, 2004 12:25 PM To: '[EMAIL PROTECTED] ' Cc: Shapira, Yoav Subject: Re: Re: Re: tomcat 5.0.25 - Problem in running jsp Hi, I am running it from Eclipse. How can i find out if my JSP runtime classpath is messed up?.. and how can I rectify it??.. Thanks for ur response.. Raj Hi, I bet your JSP runtime classpath is messed up. Are you running inside an IDE? (All JSPs and JSP tests worked for us before releasing, including the official Sun JSP TCK -- these are prerequisites for any tomcat release). Yoav Shapira Millennium Research Informatics -Original Message- From: Rajesh_Narayanan [mailto:[EMAIL PROTECTED] Sent: Thursday, May 27, 2004 9:09 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: Re: Re: tomcat 5.0.25 - Problem in running jsp didn't read the email telling of the stableness of the 5.0.25... :) the error is strangem, since it's generated by jasper (JSP engine) it's trying to pass an throwable where is expected an exception, the inverse would be ok... Rajesh_Narayanan wrote: I tried both... but the result is same... Raj 5.0.25 could it be 5.0.24? Emerson Rajesh_Narayanan wrote: When i try to run any .jsp file (even hello world).. its throwing following error: - ERROR [http-8080-Processor24] (Compiler.java:405) - Error compiling file: /C:/workspace/VCE2/work/org/apache/jsp//org/apache/jsp\hw_jsp.java [javac] Compiling 1 source file C:\workspace\VCE2\work\org\apache\jsp\org\apache\jsp\hw_jsp.java:48: handlePageException(java.lang.Exception) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.Throwable) if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); ^ 1 error -- Am I missing any .jar?... Your help is appreciated. Thanks * * This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181** * * ** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ** * *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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: [EMAIL PROTECTED] For additional
Re: How does one get notified of webapp shutdown in the webapp to do clean up?
See ServletContextListener -Tim Dev Team wrote: Hello, I'm using OpenJMS embedded in Tomcat 5.0.24 and when ever I do a shutdown Tomcat can't shutdown completely because OpenJMS server is still running in its own thread ( I presume ). If I use the OpenJMS management classes and tell the server to shutdown, then tell Tomcat to shutdown, everything is fine. So the question is.. is their some kind of web-app.finallize() where I can register a listener or something to do some clean up right before it stops the web-app? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory problems with Tomcat 4.1.27
Hi, I am trying to debug a memory consumption issue with an application. I would appreciate any help I can get. The application I am debugging is a web application written using j2sdk 1.4.1_02 and struts 1.0.2. The tomcat version I am using is 4.1.27. The backend has a relational database (sybase/oracle) and the database access is through JDBC. The tomcat server is running on Solaris 2.8. The max heap size for the JVM (using -Xmx) is set to 512M. I tried increasing it to 1024M as well. The problem is under reasonably large load, the overall process size of tomcat (reported by top) keeps increasing and eventually tomcat stops responding. I tried running tomcat with OptimizeIt hoping to find out if there are any leaks. When running with OptimizeIt the memory consumption increases much faster than when running without OptimizeIt. At this point OptimizeIt reports that about 300M of heap is being used. But the overall process size is about 900M. I tried turing on the -Xloggc option. The output of -Xloggc also shows that the heap size is well withing the limits. In some cases towards the end of the GC log, I noticed that each GC cycle takes about 17 - 20 secs. Any suggestions regarding how to proceed debugging this problem would be greatly appreciated. Are there any docs or any white papers that would help understand the relation between the heap and the overall process memory? Thanks Anand Anand Narasimhan [EMAIL PROTECTED]
Re: QoS in Tomcat?
Nope. The spec doesn't spell this out. If your feeling daring, you could write a filter that tries to set and reset the Thread.priorities on the fly. Then if your JVM pays attention to the thread priorities - you might get the tweaking you need. (You can also do this in a Valve if you want to be lower in the stack but I really doubt any of this is useful but its a great time waster on a cold rainy day) For example - without all the need try catches ... doFilter(...) { int newPriority = magicMethodToDeterminePriority(request); int oldPriority = currentThread().getPriority(); currentThread().setPriority(newPriority); chain.doFilter(); currentThread().setPriority(oldPriority ); } -Tim Rui Zhang wrote: Hi all, Is there any infrastruture availabe (or at least any possiblities) in Tomcat to tune the QoS requests are receiving? For instance, is it possible to give differentiated treatments to requests of various importance, by granting them different amount of resources, queueing them differently, etc? I realise my questions might be a bit vague, as I don't have too much insight about Tomcat. All I'm looking for are some knobs in Tomcat that we can turn to affect its performance, either observed by different groups of requests or by all the requests on a whole. If there are no such knobs at all, would it be possible to amend the current Tomcat with it? Any advices (or at least what readings I should do to acquire that knowledge) would be greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How does one get notified of webapp shutdown in the webapp to do clean up?
Thanks Tim, can't believe I didn't see that. -Rick -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Posted At: Friday, May 28, 2004 11:57 AM Posted To: Tomcat Dev Conversation: How does one get notified of webapp shutdown in the webapp to do clean up? Subject: Re: How does one get notified of webapp shutdown in the webapp to do clean up? See ServletContextListener -Tim Dev Team wrote: Hello, I'm using OpenJMS embedded in Tomcat 5.0.24 and when ever I do a shutdown Tomcat can't shutdown completely because OpenJMS server is still running in its own thread ( I presume ). If I use the OpenJMS management classes and tell the server to shutdown, then tell Tomcat to shutdown, everything is fine. So the question is.. is their some kind of web-app.finallize() where I can register a listener or something to do some clean up right before it stops the web-app? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSVC to run tomcat?
My guess is that jsvc is failing. Is there an error in your output file or error file? (ie. ../logs/catalina.out ../logs/catalina.err). As for why it was failing, I found it was so unreliable on my system that I eventually ditched it (but then I don't need port 80). All in all, it's easier to run Apache http server and bridge to Tomcat than to try to get Tomcat running using jsvc, imo. ..Bob. --- Eric Noel [EMAIL PROTECTED] wrote: On 5/28/2004 12:02 PM, Justin Jaynes wrote: I am very impressed with the responsiveness of this list. I appreciate all the help everyone has given me in learning about JSVC for running tomcat as an underpriviledged user on ports 80 and 443. However, I am still running into a problem. I created a tomcat user and group and all tomcat files and web application files are owned by tomcat. I compiled the jsvc and set my scripts to run jsvc with the proper options (I believe), and when I run the script, I get nothing but my prompt back. I run ps -ax and jsvc is NOT a running process. What am I doing wrong? I run the command from my /tomcat/bin: jsvc -Djava.endorsed.dirs=../common/endorsed -cp ./bin/bootstrap.jar -outfile ../logs/catalina.out -errfile ../logs/catalina.err org.apache.catalina.startup.Bootstrap nothing I run the command with the user option, (as in the scripts) again. nothing. No errors, no process. Any help would be greatly apreciated. Justin __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] try checking the tomcat5.sh script in the jsvc.tar.gz to see the parameters passed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = --Bob White-- home:727-490-7363, cell:727-463-6061 New (popup free!) photos of Polina: http://polina.70kg.com/ Everything that irritates us about others can lead us to an understanding of ourselves. - Carl Jung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 out of memory
Upgrade to tc5.024 Its been sorted, i had the same jazz happening. I changed to 5.0.24 as no problems since. On 28 May 2004, at 19:55, Emerson Cargnin wrote: I have the same configuration (except tomcat 5.0.19 and Suse linux 9.1) and have the same problem... do you have this kind of message at your catalina.log? May 28, 2004 2:44:14 PM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 May 28, 2004 2:44:49 PM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 Emerson James Sherwood wrote: I am using Tomcat 5.025 Mod jk 1.2.5 and Apache 2.0.49 Memory just keeps ramping up untill it goes out of memory It is on a Windows 2003 server Any Ideas? Thanks James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Log4j Problem w/Tomcat 5.0.24 and JSVC
After hours of messing around trying to get the log4j to initialize with tomcat here's what you need to do: Put the log4j jar file into $CATALINA_HOME/common/lib, and your log4j.properties or log4j.xml into $CATALINA_HOME/common/classes. Then modify your tomcat jsvc classpath variable to look something like: CLASSPATH=$CLASSPATH:\ $JAVA_HOME/lib/tools.jar:\ $DAEMON_HOME/dist/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar:\ $CATALINA_HOME/common/lib/log4j-1.2.8.jar:\ $CATALINA_HOME/common/classes And wallah everything will work =) -David - Original Message - From: David Erickson [EMAIL PROTECTED] To: Tomcat-User List [EMAIL PROTECTED] Sent: Friday, May 28, 2004 11:48 AM Subject: Log4j Problem w/Tomcat 5.0.24 and JSVC Hey All I am running Tomcat 5.0.24 on a RH9 Machine, at startup using JSVC. My root problem is I am unable to get tomcat's SSL port to run on 443.. (works peachy on 8443, but when I hit 443 I get nothing it just hangs and timesout). Well anyway I was trying to get Log4j logging to work so I could see if tomcat was outputting anything funny, I stuck the log4j jar into common/lib, built a log4j.properties file and put it in common/classes, but for some reason log4j is not being initializized from that props file, its as if common/classes isn't being read. Here's the file I am using: ## # Appender Definitions log4j.appender.ConsoleFile=org.apache.log4j.DailyRollingFileAppender log4j.appender.ConsoleFile.file=${catalina.home}/logs/console.log log4j.appender.ConsoleFile.datePattern='.'-MM-dd log4j.appender.ConsoleFile.layout=org.apache.log4j.PatternLayout log4j.appender.ConsoleFile.layout.ConversionPattern=%-d [%-5p] %c - %m%n # # Logger Definitions log4j.debug=TRUE log4j.rootLogger=ERROR, ConsoleFile log4j.logger.org.apache=DEBUG, ConsoleFile log4j.logger.org.apache.commons=ERROR, ConsoleFile its not creating my console.log file or anything, and I'm getting no debug output to the catalina.out file created by jsvc. My webapp also uses log4j and in its prop's i set log4j's debug to be on and it told me there was no rootlogger.. so somehow this file is not being parsed. Permissions are good, set as tomcat/tomcat the user that jsvc delegates to. I'm at a loss as to what is goin on, my windows dev box has this same setup and works great. The only diff is its not using jsvc, is that a possible problem here? For kicks and giggles I added the catalina_home/common/lib and classes dirs to jsvc's classpath it launches with but that didnt help either. Help appreciated!! -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSVC to run tomcat?
I rechecked my configuration file, and I was using to JSVC script for tomcat 4 which loads a different class than the tomcat 5 script. I corrected the class and it works flawlessly. There are always TWO JSVC processes running. Is that normal? And can somebody please explain exactly what is happening with JSVC and tomcat. How do I know the process is actually running with the underprivelaged user account? If JSVC runs tomcat as a Daemon, does it shut off when no services are requested from it and start up again when a service is requested? Will this slow down my system? How does JSVC work and does it affect performance? Justin --- Bob White [EMAIL PROTECTED] wrote: My guess is that jsvc is failing. Is there an error in your output file or error file? (ie. ../logs/catalina.out ../logs/catalina.err). As for why it was failing, I found it was so unreliable on my system that I eventually ditched it (but then I don't need port 80). All in all, it's easier to run Apache http server and bridge to Tomcat than to try to get Tomcat running using jsvc, imo. ..Bob. --- Eric Noel [EMAIL PROTECTED] wrote: On 5/28/2004 12:02 PM, Justin Jaynes wrote: I am very impressed with the responsiveness of this list. I appreciate all the help everyone has given me in learning about JSVC for running tomcat as an underpriviledged user on ports 80 and 443. However, I am still running into a problem. I created a tomcat user and group and all tomcat files and web application files are owned by tomcat. I compiled the jsvc and set my scripts to run jsvc with the proper options (I believe), and when I run the script, I get nothing but my prompt back. I run ps -ax and jsvc is NOT a running process. What am I doing wrong? I run the command from my /tomcat/bin: jsvc -Djava.endorsed.dirs=../common/endorsed -cp ./bin/bootstrap.jar -outfile ../logs/catalina.out -errfile ../logs/catalina.err org.apache.catalina.startup.Bootstrap nothing I run the command with the user option, (as in the scripts) again. nothing. No errors, no process. Any help would be greatly apreciated. Justin __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] try checking the tomcat5.sh script in the jsvc.tar.gz to see the parameters passed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = --Bob White-- home:727-490-7363, cell:727-463-6061 New (popup free!) photos of Polina: http://polina.70kg.com/ Everything that irritates us about others can lead us to an understanding of ourselves. - Carl Jung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: QoS in Tomcat?
Many thanks, Tim. That at least sounds worth a try... I've got a valve sampling performance data up and running already. But, Is it sensible we may alter Tomcat to make it QoS-enabled? If so, where shall we look at to start? Best regards, Rui On Fri, 28 May 2004, Tim Funk wrote: Nope. The spec doesn't spell this out. If your feeling daring, you could write a filter that tries to set and reset the Thread.priorities on the fly. Then if your JVM pays attention to the thread priorities - you might get the tweaking you need. (You can also do this in a Valve if you want to be lower in the stack but I really doubt any of this is useful but its a great time waster on a cold rainy day) For example - without all the need try catches ... doFilter(...) { int newPriority = magicMethodToDeterminePriority(request); int oldPriority = currentThread().getPriority(); currentThread().setPriority(newPriority); chain.doFilter(); currentThread().setPriority(oldPriority ); } -Tim Rui Zhang wrote: Hi all, Is there any infrastruture availabe (or at least any possiblities) in Tomcat to tune the QoS requests are receiving? For instance, is it possible to give differentiated treatments to requests of various importance, by granting them different amount of resources, queueing them differently, etc? I realise my questions might be a bit vague, as I don't have too much insight about Tomcat. All I'm looking for are some knobs in Tomcat that we can turn to affect its performance, either observed by different groups of requests or by all the requests on a whole. If there are no such knobs at all, would it be possible to amend the current Tomcat with it? Any advices (or at least what readings I should do to acquire that knowledge) would be greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: QoS in Tomcat?
Can some one tell me how to unsubscribe from this group ? Thanks Ram -Original Message- From: Rui Zhang [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 3:59 PM To: Tomcat Users List Subject: Re: QoS in Tomcat? Many thanks, Tim. That at least sounds worth a try... I've got a valve sampling performance data up and running already. But, Is it sensible we may alter Tomcat to make it QoS-enabled? If so, where shall we look at to start? Best regards, Rui On Fri, 28 May 2004, Tim Funk wrote: Nope. The spec doesn't spell this out. If your feeling daring, you could write a filter that tries to set and reset the Thread.priorities on the fly. Then if your JVM pays attention to the thread priorities - you might get the tweaking you need. (You can also do this in a Valve if you want to be lower in the stack but I really doubt any of this is useful but its a great time waster on a cold rainy day) For example - without all the need try catches ... doFilter(...) { int newPriority = magicMethodToDeterminePriority(request); int oldPriority = currentThread().getPriority(); currentThread().setPriority(newPriority); chain.doFilter(); currentThread().setPriority(oldPriority ); } -Tim Rui Zhang wrote: Hi all, Is there any infrastruture availabe (or at least any possiblities) in Tomcat to tune the QoS requests are receiving? For instance, is it possible to give differentiated treatments to requests of various importance, by granting them different amount of resources, queueing them differently, etc? I realise my questions might be a bit vague, as I don't have too much insight about Tomcat. All I'm looking for are some knobs in Tomcat that we can turn to affect its performance, either observed by different groups of requests or by all the requests on a whole. If there are no such knobs at all, would it be possible to amend the current Tomcat with it? Any advices (or at least what readings I should do to acquire that knowledge) would be greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4j Problem w/Tomcat 5.0.24 and JSVC
After hours of messing around trying to get the log4j to initialize looking in the archives would have saved you hours of work! http://www.mail-archive.com/[EMAIL PROTECTED]/msg126799.html Filip -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 2:53 PM To: Tomcat Users List Subject: Re: Log4j Problem w/Tomcat 5.0.24 and JSVC After hours of messing around trying to get the log4j to initialize with tomcat here's what you need to do: Put the log4j jar file into $CATALINA_HOME/common/lib, and your log4j.properties or log4j.xml into $CATALINA_HOME/common/classes. Then modify your tomcat jsvc classpath variable to look something like: CLASSPATH=$CLASSPATH:\ $JAVA_HOME/lib/tools.jar:\ $DAEMON_HOME/dist/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar:\ $CATALINA_HOME/common/lib/log4j-1.2.8.jar:\ $CATALINA_HOME/common/classes And wallah everything will work =) -David - Original Message - From: David Erickson [EMAIL PROTECTED] To: Tomcat-User List [EMAIL PROTECTED] Sent: Friday, May 28, 2004 11:48 AM Subject: Log4j Problem w/Tomcat 5.0.24 and JSVC Hey All I am running Tomcat 5.0.24 on a RH9 Machine, at startup using JSVC. My root problem is I am unable to get tomcat's SSL port to run on 443.. (works peachy on 8443, but when I hit 443 I get nothing it just hangs and timesout). Well anyway I was trying to get Log4j logging to work so I could see if tomcat was outputting anything funny, I stuck the log4j jar into common/lib, built a log4j.properties file and put it in common/classes, but for some reason log4j is not being initializized from that props file, its as if common/classes isn't being read. Here's the file I am using: ## # Appender Definitions log4j.appender.ConsoleFile=org.apache.log4j.DailyRollingFileAppender log4j.appender.ConsoleFile.file=${catalina.home}/logs/console.log log4j.appender.ConsoleFile.datePattern='.'-MM-dd log4j.appender.ConsoleFile.layout=org.apache.log4j.PatternLayout log4j.appender.ConsoleFile.layout.ConversionPattern=%-d [%-5p] %c - %m%n # # Logger Definitions log4j.debug=TRUE log4j.rootLogger=ERROR, ConsoleFile log4j.logger.org.apache=DEBUG, ConsoleFile log4j.logger.org.apache.commons=ERROR, ConsoleFile its not creating my console.log file or anything, and I'm getting no debug output to the catalina.out file created by jsvc. My webapp also uses log4j and in its prop's i set log4j's debug to be on and it told me there was no rootlogger.. so somehow this file is not being parsed. Permissions are good, set as tomcat/tomcat the user that jsvc delegates to. I'm at a loss as to what is goin on, my windows dev box has this same setup and works great. The only diff is its not using jsvc, is that a possible problem here? For kicks and giggles I added the catalina_home/common/lib and classes dirs to jsvc's classpath it launches with but that didnt help either. Help appreciated!! -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSVC to run tomcat?
Justin, It is normal for there to be two processes running. As for exactly, I can't say, but my understanding is that jsvc start the process, in this case tomcat, then after tomcat has allocated the ports on 80 and/or 443 the privileges are then change to the level of the user specified in the startup script. As for test, try to do some simple IO function to a disc that has the privileges set to not allow tomcat access. When started with startup.sh as root it should work. When started as jsvc it should fail. If you log on as user tomcat and start tomcat with startup.sh it should also fail. To my knowledge, Tomcat does not shut down. I believe that jsvc does. Warning my knowledge has been known to be faulty and dangerous at time. Although I have no data to back my opinion, I have seen no slowdown of the system or drop in performance. There is no increase in memory or cpu when run with jsvc and without. Others may have definitive numbers to prove/disprove my observations. Just my $.02 Doug www.parsonstechnical.com - Original Message - From: Justin Jaynes [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, May 28, 2004 3:58 PM Subject: Re: JSVC to run tomcat? I rechecked my configuration file, and I was using to JSVC script for tomcat 4 which loads a different class than the tomcat 5 script. I corrected the class and it works flawlessly. There are always TWO JSVC processes running. Is that normal? And can somebody please explain exactly what is happening with JSVC and tomcat. How do I know the process is actually running with the underprivelaged user account? If JSVC runs tomcat as a Daemon, does it shut off when no services are requested from it and start up again when a service is requested? Will this slow down my system? How does JSVC work and does it affect performance? Justin --- Bob White [EMAIL PROTECTED] wrote: My guess is that jsvc is failing. Is there an error in your output file or error file? (ie. ../logs/catalina.out ../logs/catalina.err). As for why it was failing, I found it was so unreliable on my system that I eventually ditched it (but then I don't need port 80). All in all, it's easier to run Apache http server and bridge to Tomcat than to try to get Tomcat running using jsvc, imo. ..Bob. --- Eric Noel [EMAIL PROTECTED] wrote: On 5/28/2004 12:02 PM, Justin Jaynes wrote: I am very impressed with the responsiveness of this list. I appreciate all the help everyone has given me in learning about JSVC for running tomcat as an underpriviledged user on ports 80 and 443. However, I am still running into a problem. I created a tomcat user and group and all tomcat files and web application files are owned by tomcat. I compiled the jsvc and set my scripts to run jsvc with the proper options (I believe), and when I run the script, I get nothing but my prompt back. I run ps -ax and jsvc is NOT a running process. What am I doing wrong? I run the command from my /tomcat/bin: jsvc -Djava.endorsed.dirs=../common/endorsed -cp ./bin/bootstrap.jar -outfile ../logs/catalina.out -errfile ../logs/catalina.err org.apache.catalina.startup.Bootstrap nothing I run the command with the user option, (as in the scripts) again. nothing. No errors, no process. Any help would be greatly apreciated. Justin __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] try checking the tomcat5.sh script in the jsvc.tar.gz to see the parameters passed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = --Bob White-- home:727-490-7363, cell:727-463-6061 New (popup free!) photos of Polina: http://polina.70kg.com/ Everything that irritates us about others can lead us to an understanding of ourselves. - Carl Jung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: Log4j Problem w/Tomcat 5.0.24 and JSVC
Believe me I looked through the archives.. this post doesn't work when using JSVC to launch TC. And apparently somewhere in the last hour I had something working because it generated a console.log but I didn't notice it and then when i did notice it I had changed stuff and it was broken again... *sigh* lol. -David - Original Message - From: Filip Hanik (lists) [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 28, 2004 2:02 PM Subject: RE: Log4j Problem w/Tomcat 5.0.24 and JSVC After hours of messing around trying to get the log4j to initialize looking in the archives would have saved you hours of work! http://www.mail-archive.com/[EMAIL PROTECTED]/msg126799.html Filip -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 2:53 PM To: Tomcat Users List Subject: Re: Log4j Problem w/Tomcat 5.0.24 and JSVC After hours of messing around trying to get the log4j to initialize with tomcat here's what you need to do: Put the log4j jar file into $CATALINA_HOME/common/lib, and your log4j.properties or log4j.xml into $CATALINA_HOME/common/classes. Then modify your tomcat jsvc classpath variable to look something like: CLASSPATH=$CLASSPATH:\ $JAVA_HOME/lib/tools.jar:\ $DAEMON_HOME/dist/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar:\ $CATALINA_HOME/common/lib/log4j-1.2.8.jar:\ $CATALINA_HOME/common/classes And wallah everything will work =) -David - Original Message - From: David Erickson [EMAIL PROTECTED] To: Tomcat-User List [EMAIL PROTECTED] Sent: Friday, May 28, 2004 11:48 AM Subject: Log4j Problem w/Tomcat 5.0.24 and JSVC Hey All I am running Tomcat 5.0.24 on a RH9 Machine, at startup using JSVC. My root problem is I am unable to get tomcat's SSL port to run on 443.. (works peachy on 8443, but when I hit 443 I get nothing it just hangs and timesout). Well anyway I was trying to get Log4j logging to work so I could see if tomcat was outputting anything funny, I stuck the log4j jar into common/lib, built a log4j.properties file and put it in common/classes, but for some reason log4j is not being initializized from that props file, its as if common/classes isn't being read. Here's the file I am using: ## # Appender Definitions log4j.appender.ConsoleFile=org.apache.log4j.DailyRollingFileAppender log4j.appender.ConsoleFile.file=${catalina.home}/logs/console.log log4j.appender.ConsoleFile.datePattern='.'-MM-dd log4j.appender.ConsoleFile.layout=org.apache.log4j.PatternLayout log4j.appender.ConsoleFile.layout.ConversionPattern=%-d [%-5p] %c - %m%n # # Logger Definitions log4j.debug=TRUE log4j.rootLogger=ERROR, ConsoleFile log4j.logger.org.apache=DEBUG, ConsoleFile log4j.logger.org.apache.commons=ERROR, ConsoleFile its not creating my console.log file or anything, and I'm getting no debug output to the catalina.out file created by jsvc. My webapp also uses log4j and in its prop's i set log4j's debug to be on and it told me there was no rootlogger.. so somehow this file is not being parsed. Permissions are good, set as tomcat/tomcat the user that jsvc delegates to. I'm at a loss as to what is goin on, my windows dev box has this same setup and works great. The only diff is its not using jsvc, is that a possible problem here? For kicks and giggles I added the catalina_home/common/lib and classes dirs to jsvc's classpath it launches with but that didnt help either. Help appreciated!! -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.676 / Virus Database: 438 - Release Date: 5/3/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[tomcat] [newbie] If you're seeing this page, and you don't think you should be ...
Hi Everybody! I am new to Tomcat and to the list. I just downloaded and installed Tomcat/4.1.30. The only reason I did it is to learn about Tomcat and J2EE. At this point in time I am not yet interested in an actual fully functional web server. Well, when I tried to access familiar web pages (like Google), I got the Apache default Tomcat home page instead. Near the top it says: If you're seeing this page, and you don't think you should be, then either you're either a user who has arrived at new installation of Tomcat, or you're an administrator who hasn't got his/her setup quite right. Providing the latter is the case, please refer to the Tomcat Documentation for more detailed setup and administration information than is found in the INSTALL file. I went to the Tomcat Documentation for more detailed setup and administration information. But it wasn't clear to me which information is relevant, or what to do to be able to again access the web addresses of interest to me. So, If somebody could give me specific actionable instructions to access those pages, I'll appreciate it very much. Thanks, Victor Goldberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tomcat] [newbie] If you're seeing this page, and you don't think you should be ...
By saying you installed it, I'm left with the impression you downloaded and double clicked the windows installer. Tomcat's built in http server catalina serves over port 80 Point your browser here and you never know it could already be running http://localhost:8080/ If not tell me what os you're running and what you've done so far. On 28 May 2004, at 23:00, Victor Goldberg, Ph.D. wrote: Hi Everybody! I am new to Tomcat and to the list. I just downloaded and installed Tomcat/4.1.30. The only reason I did it is to learn about Tomcat and J2EE. At this point in time I am not yet interested in an actual fully functional web server. Well, when I tried to access familiar web pages (like Google), I got the Apache default Tomcat home page instead. Near the top it says: If you're seeing this page, and you don't think you should be, then either you're either a user who has arrived at new installation of Tomcat, or you're an administrator who hasn't got his/her setup quite right. Providing the latter is the case, please refer to the Tomcat Documentation for more detailed setup and administration information than is found in the INSTALL file. I went to the Tomcat Documentation for more detailed setup and administration information. But it wasn't clear to me which information is relevant, or what to do to be able to again access the web addresses of interest to me. So, If somebody could give me specific actionable instructions to access those pages, I'll appreciate it very much. Thanks, Victor Goldberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: QoS in Tomcat?
Personally - I would run many instances of tomcat clustered to get the performance you need. It would be much more predictable to maintain. -Tim Rui Zhang wrote: Many thanks, Tim. That at least sounds worth a try... I've got a valve sampling performance data up and running already. But, Is it sensible we may alter Tomcat to make it QoS-enabled? If so, where shall we look at to start? Best regards, Rui On Fri, 28 May 2004, Tim Funk wrote: Nope. The spec doesn't spell this out. If your feeling daring, you could write a filter that tries to set and reset the Thread.priorities on the fly. Then if your JVM pays attention to the thread priorities - you might get the tweaking you need. (You can also do this in a Valve if you want to be lower in the stack but I really doubt any of this is useful but its a great time waster on a cold rainy day) For example - without all the need try catches ... doFilter(...) { int newPriority = magicMethodToDeterminePriority(request); int oldPriority = currentThread().getPriority(); currentThread().setPriority(newPriority); chain.doFilter(); currentThread().setPriority(oldPriority ); } -Tim Rui Zhang wrote: Hi all, Is there any infrastruture availabe (or at least any possiblities) in Tomcat to tune the QoS requests are receiving? For instance, is it possible to give differentiated treatments to requests of various importance, by granting them different amount of resources, queueing them differently, etc? I realise my questions might be a bit vague, as I don't have too much insight about Tomcat. All I'm looking for are some knobs in Tomcat that we can turn to affect its performance, either observed by different groups of requests or by all the requests on a whole. If there are no such knobs at all, would it be possible to amend the current Tomcat with it? Any advices (or at least what readings I should do to acquire that knowledge) would be greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: QoS in Tomcat?
Good point. I will look into that. Many thanks. Rui On Fri, 28 May 2004, Tim Funk wrote: Personally - I would run many instances of tomcat clustered to get the performance you need. It would be much more predictable to maintain. -Tim Rui Zhang wrote: Many thanks, Tim. That at least sounds worth a try... I've got a valve sampling performance data up and running already. But, Is it sensible we may alter Tomcat to make it QoS-enabled? If so, where shall we look at to start? Best regards, Rui On Fri, 28 May 2004, Tim Funk wrote: Nope. The spec doesn't spell this out. If your feeling daring, you could write a filter that tries to set and reset the Thread.priorities on the fly. Then if your JVM pays attention to the thread priorities - you might get the tweaking you need. (You can also do this in a Valve if you want to be lower in the stack but I really doubt any of this is useful but its a great time waster on a cold rainy day) For example - without all the need try catches ... doFilter(...) { int newPriority = magicMethodToDeterminePriority(request); int oldPriority = currentThread().getPriority(); currentThread().setPriority(newPriority); chain.doFilter(); currentThread().setPriority(oldPriority ); } -Tim Rui Zhang wrote: Hi all, Is there any infrastruture availabe (or at least any possiblities) in Tomcat to tune the QoS requests are receiving? For instance, is it possible to give differentiated treatments to requests of various importance, by granting them different amount of resources, queueing them differently, etc? I realise my questions might be a bit vague, as I don't have too much insight about Tomcat. All I'm looking for are some knobs in Tomcat that we can turn to affect its performance, either observed by different groups of requests or by all the requests on a whole. If there are no such knobs at all, would it be possible to amend the current Tomcat with it? Any advices (or at least what readings I should do to acquire that knowledge) would be greatly appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tomcat] [newbie] If you're seeing this page, and you don't think you should be ...
By saying you installed it, I'm left with the impression you downloaded and double clicked the windows installer. Something like that. Tomcat's built in http server catalina serves over port 80 Point your browser here and you never know it could already be running http://localhost:8080/ I get the default Tomcat home page, which is at: $CATALINA_HOME/webapps/ROOT/index.jsp If not tell me what os you're running and what you've done so far. My impression is that my problem is not whether Tomcat is working. I believe it is, even though I tried to shut it up. My problem is that there is something in its configuration that is not allowing me access any other web sites, Google. When I try to access other sites, all I get is the default Tomcat home page. What I want is to be able to access any web address, in addition to Tomcat's. I am using Windows XP. Thanks, Victor On 28 May 2004, at 23:00, Victor Goldberg, Ph.D. wrote: Hi Everybody! I am new to Tomcat and to the list. I just downloaded and installed Tomcat/4.1.30. The only reason I did it is to learn about Tomcat and J2EE. At this point in time I am not yet interested in an actual fully functional web server. Well, when I tried to access familiar web pages (like Google), I got the Apache default Tomcat home page instead. Near the top it says: If you're seeing this page, and you don't think you should be, then either you're either a user who has arrived at new installation of Tomcat, or you're an administrator who hasn't got his/her setup quite right. Providing the latter is the case, please refer to the Tomcat Documentation for more detailed setup and administration information than is found in the INSTALL file. I went to the Tomcat Documentation for more detailed setup and administration information. But it wasn't clear to me which information is relevant, or what to do to be able to again access the web addresses of interest to me. So, If somebody could give me specific actionable instructions to access those pages, I'll appreciate it very much. Thanks, Victor Goldberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Log4j Problem w/Tomcat 5.0.24 and JSVC
Ok this time I got it working for sure, note this is specific to getting log4j working to log tomcat's classes when launched from jsvc. 1) Download commons-logging.jar and put it in $CATALINA_HOME/bin 2) Download the log4j jar and also put it in $CATALINA_HOME/bin 3) Create your log4j.properties file and put it in $CATALINA_HOME/common/classes Here is part of my tomcat jsvc launch script: JAVA_HOME=/usr/local/java CATALINA_HOME=/usr/local/tomcat TOMCAT_PROG=tomcat TOMCAT_USER=tomcat DAEMON_HOME=/usr/local/daemon TMP_DIR=/var/tmp LOG4J_CONFIG=log4j.properties CLASSPATH=$CLASSPATH:\ $JAVA_HOME/lib/tools.jar:\ $DAEMON_HOME/dist/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar:\ $CATALINA_HOME/bin/commons-logging.jar:\ $CATALINA_HOME/bin/log4j-1.2.8.jar:\ $CATALINA_HOME/common/classes:\ start() { echo -n Starting tomcat: chown -R $TOMCAT_USER:$TOMCAT_USER /usr/local/tomcat/* $DAEMON_HOME/jsvc\ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -Dlog4j.configuration=$LOG4J_CONFIG \ -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLo gger \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile $CATALINA_HOME/logs/catalina.out \ -Xmx256m \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap RETVAL=$? echo [ $RETVAL = 0 ] touch /var/lock/subsys/tomcat return $RETVAL } Hope this helps anyone else who has a nightmare getting the classpath and stuff set correctly =) -David - Original Message - From: David Erickson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 28, 2004 2:31 PM Subject: Re: Log4j Problem w/Tomcat 5.0.24 and JSVC Believe me I looked through the archives.. this post doesn't work when using JSVC to launch TC. And apparently somewhere in the last hour I had something working because it generated a console.log but I didn't notice it and then when i did notice it I had changed stuff and it was broken again... *sigh* lol. -David - Original Message - From: Filip Hanik (lists) [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 28, 2004 2:02 PM Subject: RE: Log4j Problem w/Tomcat 5.0.24 and JSVC After hours of messing around trying to get the log4j to initialize looking in the archives would have saved you hours of work! http://www.mail-archive.com/[EMAIL PROTECTED]/msg126799.html Filip -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 2:53 PM To: Tomcat Users List Subject: Re: Log4j Problem w/Tomcat 5.0.24 and JSVC After hours of messing around trying to get the log4j to initialize with tomcat here's what you need to do: Put the log4j jar file into $CATALINA_HOME/common/lib, and your log4j.properties or log4j.xml into $CATALINA_HOME/common/classes. Then modify your tomcat jsvc classpath variable to look something like: CLASSPATH=$CLASSPATH:\ $JAVA_HOME/lib/tools.jar:\ $DAEMON_HOME/dist/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar:\ $CATALINA_HOME/common/lib/log4j-1.2.8.jar:\ $CATALINA_HOME/common/classes And wallah everything will work =) -David - Original Message - From: David Erickson [EMAIL PROTECTED] To: Tomcat-User List [EMAIL PROTECTED] Sent: Friday, May 28, 2004 11:48 AM Subject: Log4j Problem w/Tomcat 5.0.24 and JSVC Hey All I am running Tomcat 5.0.24 on a RH9 Machine, at startup using JSVC. My root problem is I am unable to get tomcat's SSL port to run on 443.. (works peachy on 8443, but when I hit 443 I get nothing it just hangs and timesout). Well anyway I was trying to get Log4j logging to work so I could see if tomcat was outputting anything funny, I stuck the log4j jar into common/lib, built a log4j.properties file and put it in common/classes, but for some reason log4j is not being initializized from that props file, its as if common/classes isn't being read. Here's the file I am using: ## # Appender Definitions log4j.appender.ConsoleFile=org.apache.log4j.DailyRollingFileAppender log4j.appender.ConsoleFile.file=${catalina.home}/logs/console.log log4j.appender.ConsoleFile.datePattern='.'-MM-dd log4j.appender.ConsoleFile.layout=org.apache.log4j.PatternLayout log4j.appender.ConsoleFile.layout.ConversionPattern=%-d [%-5p] %c - %m%n # # Logger Definitions log4j.debug=TRUE log4j.rootLogger=ERROR, ConsoleFile log4j.logger.org.apache=DEBUG, ConsoleFile log4j.logger.org.apache.commons=ERROR, ConsoleFile its not creating my console.log file or anything, and I'm getting no debug output to the catalina.out file created by jsvc. My webapp also uses log4j and in its prop's i set log4j's debug to be on and it told me there was no rootlogger.. so somehow this file is not being parsed.
Re: [tomcat] [newbie] If you're seeing this page, and you don't think you should be ...
On Fri, May 28, 2004 at 06:09:46PM -0400, Victor Goldberg, Ph.D. wrote: : My problem is that there : is something in its configuration that is not allowing me access any other : web sites, Google. When I try to access other sites, all I get is the : default Tomcat home page. What I want is to be able to access any web : address, in addition to Tomcat's. Sounds more like a browser setup problem, not a Tomcat problem: - is your browser set to look for a proxy on the same port as Tomcat (IIRC, default is 8000 or 8080, same as some proxy servers) - any personal firewall s/w running, such as ZoneAlarm or BlackIce? - If you stop Tomcat, does the problem go away? Tomcat simply binds to a port when it starts; it doesn't intercept outbound web requests. -QM ps - please create new messages when mailing the list; responding to old messages plays hell with thread-aware mailers. -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk.so
Good day All, Below are my configurations and versions. The problem I have is that when I try to load the mod_jk.so, it appears to load but fails with the following error message when starting Apache: /opt/app/apache1.3.31/bin] ./apachectl start Syntax error on line 654 of /opt/app/apache1.3.31/conf/httpd.conf: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration ./apachectl start: httpd could not be started I have searched for a clue to understand what could be causing my problem all day. If I could just be pointed in the right direction, it would be very appreciated. Thanks, Danny Solaris 5.8 Generic_108528-29 Perl 5.8.3 Apache 1.3.31 - built with ./configure --prefix=/opt/app/apache1.3.31 --enable-module=most --enable-shared=max --with-perl=/usr/local/bin/perl Compiled-in modules: http_core.c mod_so.c Syntax OK Apache works fine. Tomcat 4.1.30 Tomcat works fine. mod_jk.so - archive.apache.org/dist/jakarta/tomcat-connectors/jk/v1.2.1/bin/solaris8/mod _jk-1.3-noeapi.so # httpd entries for JK_Connector LoadModule jk_module libexec/mod_jk.so JkWorkersFile /opt/app/apache1.3.31/conf/workers.properties JkLogFile /opt/app/apache1.3.31/logs/mod_jk.log JkLogLevel debug JkMount /*.jsp ajp13 #workers.properties workers.tomcat_home=/opt/app/tomcat4.1.30 workers.java_home=/usr/j2sdk1.4.2_04 ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=50 worker.ajp13.cachesize=150 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)server$(ps)lib$(ps)to mcat-jk.jar worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)sparc$(ps) libjvm.so worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk.so
On Fri, May 28, 2004 at 05:44:19PM -0500, Gibson, Danny wrote: : Syntax error on line 654 of /opt/app/apache1.3.31/conf/httpd.conf: : Invalid command 'JkMount', perhaps mis-spelled or defined by a module not : included in the server configuration : ./apachectl start: httpd could not be started This means the JK module didn't completely load. (Module-specific config directives are set by the module itself. Generally speaking, if you know you've spelled a directive properly but you get this error, that means the module hasn't loaded.) Check your httpd.conf syntax: I forget the exact directive, but you must specify *two* lines to load a module in Apache 1.x; just LoadModule isn't enough. Check other modules loaded in httpd.conf as a reference. You'll have a block of LoadModule and then another block of That Other Directive I Can't Remember. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 4.04 SSL third party certificates..does it work? need help
Attempting to SSL enable tomcat 4.04. Have implemented JSSE. SSL works fine when I create a keystore with a self generated certificate. keytool -genkey -alias tomcat -keyalg RSA -keystore .keystore We now want to cutover using a production certificate. We create a .cer file by accessing our production web site and export the certificate to a .cer file. then using the keytool we import the .cer file keytool -v -import -file prod.cer -keystore .keystore When we inspect the .keystore file using the -list switch we see the original self signed certificate and the production certificate. Now when we implement the .keystore in tomcat, only the original self generated certificate is presented to the browser, not the production certificate. So, using the keytool we delete the original self generated certificate. So we are only left with the newly imported production certificate. When we implement this updated .keystore file with only the production cert, the browser and tomcat fail to negotiate. Tomcat binds to port 8843 but the ssl negotiation between browser and server is hosed. Has anybody ever gotten tomcat ssl to work with a non self generated certificate? Can you please help? Thanks, John D'Esposito IBM Global Web Architecture - Project Office - Application Integration phone: 732-927-0399