RE: servlet help
I am using jk2, apache2, and tomcat5.5 -Original Message- From: Edmon Begoli [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 6:42 PM To: Tomcat Users List Subject: Re: servlet help Claudia, Are you using mod_jk with Apache and Tomcat? You should be able to configure in Apache's httpd.conf to forward particular url patterns to your Tomcat(s') worker(s). Something like: JkMount /yourapp/* yourworker More details are in mod_jk documentation. I do not think that there is a way to forward only servlet calls, as you can not be sure from the URL. Usually, your URL/URI will have some servlet app. specific context which will help you. Regards, Edmon Software Architecture to the Rescue - Original Message - From: Casas, Claudia [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 12, 2005 3:16 PM Subject: RE: servlet help Oki doki, I got my servlets to work from tomcat using port 8080 (http://myserver:8080/~myacct/servlet/myservlet), but I still do not know how to make apache recognize my servlets and send them to tomcat. I want to access (http://myserver/~myacct/servlet/myservlet) I tried to add these lines to httpd.conf Location /servlet/* JkUriSet worker ajp13:localhost:8009 /Location and also added these lines to workers2.properties [uri:spark.iss.utep.edu/servlet/*] group=ajp13:localhost:8009 but still no luck! :( please help. For reference I used the following taken from the web site: http://www.jolash.com/tomcat/ Configure the tomcat web.xml file in your tomcat's conf directory. You only need to do this if you are going to write servlets. After doing this, you can put all your servlets into the subdirectory WEB-INF/classes of your webapp directory. And you can access those servlets with a URL like: Uncomment the servlet element tags with the servlet-name of invoker (just search for invoker). servlet servlet-nameinvoker/servlet-name servlet-class org.apache.catalina.servlets.InvokerServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param load-on-startup2/load-on-startup /servlet Uncomment the servlet-mapping element tags with the servlet-name of invoker. !-- The mapping for the invoker servlet -- servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 11:56 AM To: tomcat-user@jakarta.apache.org Subject: servlet help I am running tomcat5.5.4, apache2.0.52 and jk2. 1)I an run my jsp's and servlets from root. I have configured tomcat to run my jsp's from the homedirs, but I do not know how to configure tomcat to run servlets from the homedirs. I can run my jsp's like this: http://myserver/~myhomedir/myfile.jsp or http://myserver:8080/~myhomedir/myfile.jsp Either way it works fine. What do I need to add so that my servlets run from my homedirs as well?? These are my configuration files: /usr/local/apache/workers2.properties info=Ajp13 forwarding over socket tomcatId=localhost:8009 #define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 ` # Map the Tomcat examples webapp to the Web server uri space #[uri:/jkstatus/*] #group=status:status # Uri mapping [uri:/jsp-examples/*] [uri:spark.iss.utep.edu/*.jsp] group=ajp13:localhost:8009 I added the following in my httpd.conf also: Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location (Before I would just add the lines below in my httpd.conf, and jsp's and servlets would work! JkMount /*.jsp ajp13 JkMount /*/servlet/ ajp13) Also, I have the following in my server.xml file to run my jsp's from my homedirs: Listener className=org.apache.catalina.startup.UserConfig directoryName=wwwdocs userClass=org.apache.catalina.startup.PasswdUserDatabase/ What am I missing??? - 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]
sessions do not work from homedirs and servlets do not work through apache
Hello everyone, I am using apache2, tomcat5.5, and jk2. I have configured my tomcat to run from my user home directories. Also I have configure apache to run with tomcat with jk2 through my home directories as well. Now, I am facing two problems that are driving me crazy, here they are in order of importance given that I have to have two project up by tomorrow and they do not work because of these issues, please help!!! 1) JPS sessions are working through tomcat root but not from my homedirs. There is an example called carts under the jsp-examples in tomcat root and it works great in there. When I tried to run this same example inside my home directoy it does not work. UseBean drops previously created instances of a bean. So when a new jsp tries to read parameters being passed from a previous jsp, everything is null because the session is re-created and not re-used. Please someone tell me what is going on. My real project uses jsp session and it is not working because all the values are reading null!! 2) the servlets work from tomcat port 8080 through my homedirs, but through apache. JSP work through apache though. Example) The following works fine: http://myserver:8080/~ccasas/servlet/hello http://sp:8080/~ccasas/servlet/hello but I cannot make the following work: http://myserver/~ccasas/servlet/hello I would really appreciate your help on this, I am already going nuts. !--Claudia Casas--
RE: sessions do not work from homedirs and servlets do notwork through apache
We thought that the data from the session was being lost, but actually the session itself is recreated with a new ID every time we go from one jsp to the next one. I thought that tomcat manages the sessions through cookies so I do not see how my session id and data is being lost. By the way my project was working perfectly with tomcat 1.3 but when I upgraded to tomcat 5 is when the session problem started. -Original Message- From: Dennis Payne [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 4:34 PM To: tomcat-user@jakarta.apache.org Subject: Re: sessions do not work from homedirs and servlets do notwork through apache My implementation is not as complex as yours, so my suggestion may not work for you... We always use the request object to get access to the session both in the servlet and the JSP (We don't use any specialized JSP tags to do this. We always use putAttribute to put a Serializable object on the session in the servlet. We always use getAttribute to retreive the object from the session in the JSP. The object must be Serializable. Hope this helps in some way... [EMAIL PROTECTED] 01-13-2005 11:49 Hello everyone, I am using apache2, tomcat5.5, and jk2. I have configured my tomcat to run from my user home directories. Also I have configure apache to run with tomcat with jk2 through my home directories as well. Now, I am facing two problems that are driving me crazy, here they are in order of importance given that I have to have two project up by tomorrow and they do not work because of these issues, please help!!! 1) JPS sessions are working through tomcat root but not from my homedirs. There is an example called carts under the jsp-examples in tomcat root and it works great in there. When I tried to run this same example inside my home directoy it does not work. UseBean drops previously created instances of a bean. So when a new jsp tries to read parameters being passed from a previous jsp, everything is null because the session is re-created and not re-used. Please someone tell me what is going on. My real project uses jsp session and it is not working because all the values are reading null!! 2) the servlets work from tomcat port 8080 through my homedirs, but through apache. JSP work through apache though. Example) The following works fine: http://myserver:8080/~ccasas/servlet/hello http://sp:8080/~ccasas/servlet/hello but I cannot make the following work: http://myserver/~ccasas/servlet/hello I would really appreciate your help on this, I am already going nuts. !--Claudia Casas-- - 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]
servlet help
I am running tomcat5.5.4, apache2.0.52 and jk2. 1)I an run my jsp's and servlets from root. I have configured tomcat to run my jsp's from the homedirs, but I do not know how to configure tomcat to run servlets from the homedirs. I can run my jsp's like this: http://myserver/~myhomedir/myfile.jsp or http://myserver:8080/~myhomedir/myfile.jsp Either way it works fine. What do I need to add so that my servlets run from my homedirs as well?? These are my configuration files: /usr/local/apache/workers2.properties info=Ajp13 forwarding over socket tomcatId=localhost:8009 #define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 ` # Map the Tomcat examples webapp to the Web server uri space #[uri:/jkstatus/*] #group=status:status # Uri mapping [uri:/jsp-examples/*] [uri:spark.iss.utep.edu/*.jsp] group=ajp13:localhost:8009 I added the following in my httpd.conf also: Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location (Before I would just add the lines below in my httpd.conf, and jsp's and servlets would work! JkMount /*.jsp ajp13 JkMount /*/servlet/ ajp13) Also, I have the following in my server.xml file to run my jsp's from my homedirs: Listener className=org.apache.catalina.startup.UserConfig directoryName=wwwdocs userClass=org.apache.catalina.startup.PasswdUserDatabase/ What am I missing???
RE: servlet help
Oki doki, I got my servlets to work from tomcat using port 8080 (http://myserver:8080/~myacct/servlet/myservlet), but I still do not know how to make apache recognize my servlets and send them to tomcat. I want to access (http://myserver/~myacct/servlet/myservlet) I tried to add these lines to httpd.conf Location /servlet/* JkUriSet worker ajp13:localhost:8009 /Location and also added these lines to workers2.properties [uri:spark.iss.utep.edu/servlet/*] group=ajp13:localhost:8009 but still no luck! :( please help. For reference I used the following taken from the web site: http://www.jolash.com/tomcat/ Configure the tomcat web.xml file in your tomcat's conf directory. You only need to do this if you are going to write servlets. After doing this, you can put all your servlets into the subdirectory WEB-INF/classes of your webapp directory. And you can access those servlets with a URL like: Uncomment the servlet element tags with the servlet-name of invoker (just search for invoker). servlet servlet-nameinvoker/servlet-name servlet-class org.apache.catalina.servlets.InvokerServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param load-on-startup2/load-on-startup /servlet Uncomment the servlet-mapping element tags with the servlet-name of invoker. !-- The mapping for the invoker servlet -- servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 11:56 AM To: tomcat-user@jakarta.apache.org Subject: servlet help I am running tomcat5.5.4, apache2.0.52 and jk2. 1)I an run my jsp's and servlets from root. I have configured tomcat to run my jsp's from the homedirs, but I do not know how to configure tomcat to run servlets from the homedirs. I can run my jsp's like this: http://myserver/~myhomedir/myfile.jsp or http://myserver:8080/~myhomedir/myfile.jsp Either way it works fine. What do I need to add so that my servlets run from my homedirs as well?? These are my configuration files: /usr/local/apache/workers2.properties info=Ajp13 forwarding over socket tomcatId=localhost:8009 #define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 ` # Map the Tomcat examples webapp to the Web server uri space #[uri:/jkstatus/*] #group=status:status # Uri mapping [uri:/jsp-examples/*] [uri:spark.iss.utep.edu/*.jsp] group=ajp13:localhost:8009 I added the following in my httpd.conf also: Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location (Before I would just add the lines below in my httpd.conf, and jsp's and servlets would work! JkMount /*.jsp ajp13 JkMount /*/servlet/ ajp13) Also, I have the following in my server.xml file to run my jsp's from my homedirs: Listener className=org.apache.catalina.startup.UserConfig directoryName=wwwdocs userClass=org.apache.catalina.startup.PasswdUserDatabase/ What am I missing??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: servlet help
# No final do arquivo httpd.conf (tanto p/ conectiva quanto p/ debian) adicione: Alias /jsp-examples \ /opt/jakarta-tomcat-5.0.27/webapps/jsp-examples Configurando o TOMCAT: Edite (criar caso não exista) o arquivo: /opt/jakarta-tomcat-5.0.27/conf/worker.properties inserir o seguinte conteudo: workers.tomcat_home=/opt/jakarta-tomcat-5.0.27 workers.java_home=/opt/j2sdk1.4.2_05 ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 Finalizando: Reinicie o TOMCAT: #/opt/jakarta-tomcat-5.0.27/bin/shutdown.sh #/opt/jakarta-tomcat-5.0.27/bin/startup.sh Reinicie o Apache: #/etc/init.d/apache stop #/etc/init.d/apache start Extra: (arquivo de inicialização init.d do TOMCAT) Edite (ou crie) o arquivo /etc/init.d/tomcat #!/bin/sh # # Startup script for the Jakarta Tomcat Java Servlets and JSP server # # chkconfig: - 85 15 # update-rc # # description: Jakarta Tomcat Java Servlets and JSP server # processname: tomcat # pidfile: /var/run/tomcat.pid # config: # Source function library. # /etc/rc.d/init.d/functions # Source networking configuration. #/etc/sysconfig/network # Check that networking is up. # [ ${NETWORKING} = no ] exit 0 # Set Tomcat environment. # export JAVA_HOME=/usr/local/j2sdk # export CLASSPATH=.:/usr/local/j2sdk/lib/tools.jar:/usr/local/j2re/lib/rt.jar # export CATALINA_HOME=/usr/local/tomcat # export CATALINA_OPTS=-Dbuild.compiler.emacs=true # export PATH=/usr/local/j2sdk/bin:/usr/local/j2re/bin:$PATH #Var TOM_DIR=/opt/jakarta-tomcat-5.0.27/; #JBOSS_DIR=/opt/jboss-3.2.4/; START_JBOSS=bin/run.sh HALT_JBOSS=bin/shutdown.sh; START_TOM=bin/startup.sh; HALT_TOM=bin/shutdown.sh; #[ -f /usr/local/tomcat/bin/startup.sh ] || exit 0 #[ -f /usr/local/tomcat/bin/shutdown.sh ] || exit 0 # export PATH=$PATH:/usr/bin:/usr/local/bin # See how we were called. case $1 in start) # Start daemon. echo -n Starting Tomcat: $TOM_DIR/$START_TOM; # $JBOSS_DIR/$START_JBOSS; # /usr/local/tomcat/bin/startup.sh RETVAL=$? echo [ $RETVAL = 0 ] touch /var/lock/subsys/tomcat ;; stop) # Stop daemons. echo -n Shutting down Tomcat: $TOM_DIR/$HALT_TOM; # $JBOSS_DIR/$HALT_JBOSS; # /usr/local/tomcat/bin/shutdown.sh RETVAL=$? echo [ $RETVAL = 0 ] rm -f /var/lock/subsys/tomcat ;; restart) $0 stop $0 start ;; condrestart) [ -e /var/lock/subsys/tomcat ] $0 restart ;; status) status tomcat ;; *) echo Usage: $0 {start|stop|restart|status} exit 1 esac exit 0 -- David da Guia Carvalho Animus Tecnologia da Informação Tel.: (21) 3525-8800 Fax: (21) 3525-8801 http://www.animus-ti.com.br On Jan 12, 2005 06:16 PM, Casas, Claudia [EMAIL PROTECTED] wrote: Oki doki, I got my servlets to work from tomcat using port 8080 (http://myserver:8080/~myacct/servlet/myservlet), but I still do not know how to make apache recognize my servlets and send them to tomcat. I want to access (http://myserver/~myacct/servlet/myservlet) I tried to add these lines to httpd.conf Location /servlet/* JkUriSet worker ajp13:localhost:8009 /Location and also added these lines to workers2.properties [uri:spark.iss.utep.edu/servlet/*] group=ajp13:localhost:8009 but still no luck! :( please help. For reference I used the following taken from the web site: http://www.jolash.com/tomcat/ Configure the tomcat web.xml file in your tomcat's conf directory. You only need to do this if you are going to write servlets. After doing this, you can put all your servlets into the subdirectory WEB-INF/classes of your webapp directory. And you can access those servlets with a URL like: Uncomment the servlet element tags with the servlet-name of invoker (just search for invoker). servlet servlet-nameinvoker/servlet-name servlet-class org.apache.catalina.servlets.InvokerServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param load-on-startup2/load-on-startup /servlet Uncomment the servlet-mapping element tags with the servlet-name of invoker. !-- The mapping for the invoker servlet -- servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 11:56 AM To: tomcat-user@jakarta.apache.org Subject: servlet help I am running tomcat5.5.4, apache2.0.52 and jk2. 1)I an run my jsp's and servlets from root. I have configured tomcat to run my jsp's from the homedirs, but I do not know how to configure tomcat to run servlets from the homedirs. I can run my jsp's like this: http://myserver/~myhomedir/myfile.jsp or http://myserver:8080/~myhomedir/myfile.jsp Either way it works fine. What do I need to add so that my servlets run from my homedirs as well?? These are my configuration files: /usr/local/apache/workers2.properties info=Ajp13 forwarding over socket tomcatId=localhost
session newbie question
Hello Everyone, Can anyone tell me how to activate sessions in tomcat? I migrated a project from to tomcat5.5 and apache2 and everything seems to work, except the sessions are being lost. I am thinking there should be a variable somewhere in the server.xml to specify that I want to allow sessions, but not sure. !--Claudia Casas-
RE: apache2 tomcat5 jk2 questions
Well, for now it is working. But I am thinking in moving to the jk1 again soon. Really ironic, I decided to choose jk2 so that I would not have to upgrade in a while, but well, back luck. -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 7:04 PM To: Tomcat Users List Subject: Re: apache2 tomcat5 jk2 questions On Fri, Jan 07, 2005 at 06:02:14PM +0100, Nikola Milutinovic wrote: : Sorry. I was as bitten by the news as you are. The thing is, if it is : working, not only shouldn't you fix it, but relax. JK2 is OK - if it : works. It is a stable mechanism, it is just not going to be developed : any more. If the present functionality satisfies you (as it does satisfy : me), keep on using it. There's a downside to this philosophy: should you encounter a JK2 bug down the line, you'll likely be on your own to fix it. Doubt it? Look at typical responses to list posts for Tomcat 3 or Tomcat 4 help... ;) -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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: apache2 tomcat5 jk2 questions
No way! I just got my server completely working on jk2! Does anybody have any links or resources that talk about this. If this is really a big issue, I will definitely move back to jk -Original Message- From: j r [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 6:30 PM To: Tomcat Users List Subject: Re: apache2 tomcat5 jk2 questions I believe that I have read that mod_jk2 was to stop being supported as of 11/15/04. It might be something to think about if you start seeing more bugs. I have reverted all of my boxes to mod_jk which serves just as fast for me. -j On Wed, 05 Jan 2005 11:32:01 -0800, Dwayne Ghant [EMAIL PROTECTED] wrote: This should help atleat I hope: Your httpd.conf should look something like this at the bottom. Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location Have a beautiful day. Casas, Claudia wrote: Thanks! Tomcat now works for every user directory! : ) But I still do not know how to make apache forward my jsp request to tomcat. I used to include Jkmount option in my httpd.conf, but now I have not idea. I have read about a JkSet but not sure how to use it. I have also read that you can have this configuration in the jk2.properties, but do not know how either. If you could point me to the right direction I would really appreciate it. I basically need to be able to view my jsp's through apache as: e.g. http://myserver/~userdir/myfile.jsp -Original Message- From: Dwayne Ghant [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 11:03 AM To: Tomcat Users List Subject: Re: apache2 tomcat5 jk2 questions Please Read your Documentation at this page http://myserver:8080/tomcat-docs/config/host.html and that should answer your question. Read the section that says: User Web Applications Casas, Claudia wrote: Hello everybody, I have configured jk2 successfully finally to work with apache and tomcat. #!Question 1 I have included the following in my server.xml file: Context path=/ccasas docBase=/home/ccasas/wwwdocs debug=0 reloadable=true crossContext=true /Context This allows me to see my jsp file as : http://myserver:8080/ccasas/myfile.jsp http://myserver/ccasas/myfile.jsp which is what I want to be able to access my jsp files from my homedir. BUT MY QUESTION IS: How do I tell apache to forward this request to tomcat. In other words, when I access http://myserver/ccasas/mnyfiles.jsp is only reading the file as text. Previously I had added a Jkmount option inside my httpd.conf, but it does not like it right now. #Question 2 Is there a way to specify my context path so that it will handle all my homedirs. In apache I use a wildcard (/home/*/wwwdocs) to handle all of my home directories. Is there anything like this in tomcat that I can use?? -- Dwayne A. Ghant Application Developer Temple University 215.204. [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]
apache2 tomcat5 jk2 questions
Hello everybody, I have configured jk2 successfully finally to work with apache and tomcat. #!Question 1 I have included the following in my server.xml file: Context path=/ccasas docBase=/home/ccasas/wwwdocs debug=0 reloadable=true crossContext=true /Context This allows me to see my jsp file as : http://myserver:8080/ccasas/myfile.jsp http://myserver/ccasas/myfile.jsp which is what I want to be able to access my jsp files from my homedir. BUT MY QUESTION IS: How do I tell apache to forward this request to tomcat. In other words, when I access http://myserver/ccasas/mnyfiles.jsp is only reading the file as text. Previously I had added a Jkmount option inside my httpd.conf, but it does not like it right now. #Question 2 Is there a way to specify my context path so that it will handle all my homedirs. In apache I use a wildcard (/home/*/wwwdocs) to handle all of my home directories. Is there anything like this in tomcat that I can use??
RE: apache2 tomcat5 jk2 questions
Thanks! Tomcat now works for every user directory! : ) But I still do not know how to make apache forward my jsp request to tomcat. I used to include Jkmount option in my httpd.conf, but now I have not idea. I have read about a JkSet but not sure how to use it. I have also read that you can have this configuration in the jk2.properties, but do not know how either. If you could point me to the right direction I would really appreciate it. I basically need to be able to view my jsp's through apache as: e.g. http://myserver/~userdir/myfile.jsp -Original Message- From: Dwayne Ghant [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 11:03 AM To: Tomcat Users List Subject: Re: apache2 tomcat5 jk2 questions Please Read your Documentation at this page http://myserver:8080/tomcat-docs/config/host.html and that should answer your question. Read the section that says: User Web Applications Casas, Claudia wrote: Hello everybody, I have configured jk2 successfully finally to work with apache and tomcat. #!Question 1 I have included the following in my server.xml file: Context path=/ccasas docBase=/home/ccasas/wwwdocs debug=0 reloadable=true crossContext=true /Context This allows me to see my jsp file as : http://myserver:8080/ccasas/myfile.jsp http://myserver/ccasas/myfile.jsp which is what I want to be able to access my jsp files from my homedir. BUT MY QUESTION IS: How do I tell apache to forward this request to tomcat. In other words, when I access http://myserver/ccasas/mnyfiles.jsp is only reading the file as text. Previously I had added a Jkmount option inside my httpd.conf, but it does not like it right now. #Question 2 Is there a way to specify my context path so that it will handle all my homedirs. In apache I use a wildcard (/home/*/wwwdocs) to handle all of my home directories. Is there anything like this in tomcat that I can use?? -- Dwayne A. Ghant Application Developer Temple University 215.204. [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: Tomcat + Apache + SSL
I followed John Turner's Web page: http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-how-to.html and it worked perfectly. This site is only for connecting Tomcat and apache through a connector. But not sure about the ssl. -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 2:41 PM To: Tomcat Users List Subject: RE: Tomcat + Apache + SSL Importance: High Thanks. -Mensaje original- De: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 01 de Julio de 2004 11:30 a.m. Para: 'Tomcat Users List' Asunto: RE: Tomcat + Apache + SSL http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 1:13 PM To: Tomcat Users List Subject: Tomcat + Apache + SSL Importance: High Hi, Where can I find info about configuring Tomcat 5 and Apache 2, so I can access apps thru SSL port 443. Do I need only to install a certificate in Apache and with port 443, the plugin connects directly. Thanks Lorenzo Jimenez _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 11:12 AM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - 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] _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 2:40 PM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - 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 + Apache + SSL
I tried did try to install tomcat5 and apache2 with success following the same steps. BUT, I could not get the connector working since it is recommended that you use the jk2 connector when using tomcat5 already. If you get it working, please let me know. -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 3:46 PM To: Tomcat Users List Subject: RE: Tomcat + Apache + SSL Importance: High Thanks Claudia, Do you know about TC5 and A2 -Mensaje original- De: Casas, Claudia [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 01 de Julio de 2004 02:48 p.m. Para: Tomcat Users List Asunto: RE: Tomcat + Apache + SSL I followed John Turner's Web page: http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-how-to.html and it worked perfectly. This site is only for connecting Tomcat and apache through a connector. But not sure about the ssl. -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 2:41 PM To: Tomcat Users List Subject: RE: Tomcat + Apache + SSL Importance: High Thanks. -Mensaje original- De: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 01 de Julio de 2004 11:30 a.m. Para: 'Tomcat Users List' Asunto: RE: Tomcat + Apache + SSL http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 1:13 PM To: Tomcat Users List Subject: Tomcat + Apache + SSL Importance: High Hi, Where can I find info about configuring Tomcat 5 and Apache 2, so I can access apps thru SSL port 443. Do I need only to install a certificate in Apache and with port 443, the plugin connects directly. Thanks Lorenzo Jimenez _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 11:12 AM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - 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] _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 2:40 PM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - 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] _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 3:46 PM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately
RE: html file problem in apache-tomcat/serious problem
Have you checked if your shiva folder account has 755 permissions? -Original Message- From: shiv juluru [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:11 AM To: Tomcat Users List Subject: html file problem in apache-tomcat/serious problem hi friends, i am using apache 2.x ,tomcat 4x and mod_jk for redhat 9. my configuration in server.xml is 1)Host name=localhost debug=0 appBase=/home/shiva unpackWARs=true autoDeploy=true 2)Context path=/examples docBase=examples debug=0 reloadable=true crossContext=true i created one folder 'examples' in /home/shiva i put all of my jsp,html files in /home/shiva/examples using tomcat, jsp and html files are working fine,i am calling in browser like http://myhost:8080/examples/jspname.jsp; and using apache jsp files are working fine,i am calling in browser like http://myhost/examples/jspname.jsp; but my problem is html files are not working using apache. note:all jsps and htmls are have same permissions. i am getting the following error in the browser **begin* * Forbidden You don't have permission to access /examples/forward1.html on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. - Apache/2.0.49 (Unix) mod_ssl/2.0.49 OpenSSL/0.9.7a mod_jk/1.2.5 Server at 192.168.68.10 Port 80 **end*** ** i test it by 777 also. plz help me. thanks in advance. shiva - Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: Tomcat does not compiles my .jsp!
The version of tomcat that I am using is tomcat-4.1.30 I just included in my classpath the servlet.jar, but NO results yet. -Original Message- From: deepak shripat mane [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:28 AM To: Tomcat Users List Subject: Re: RE: Tomcat does not compiles my .jsp! Hii.. Let me know wat is version of ur tomcat server if u r using tomcat 4.x then u have to specify servlet.jar in classpath for tomcat 5.x u can specify servlet-api.jar into classpath file On Thu, 24 Jun 2004 Januski,Ken wrote : I seem to recall I had this problem once and it occurred because servlet.jar wasn't where it should be (/tomcat/common/lib in my setup). -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 11:21 AM To: Tomcat Users List Subject: Re: Tomcat does not compiles my .jsp! Take a look at your log files for around the time you try to access the jsps. Seems to me there has to be some info related to this error. Does the .java file get created in the work directory tree at all? Also check the volume your work directory is on -- is there enough space and have you run fsck on it recently? The last time I experienced what you saw, it was r/w permissions on the work directory for user tomcat. I couldn't see the error until I su'd into the tomcat user account and tried to write a file. Obviously your situation is different somehow. Good luck. That's all my ideas. --David Cyberjobe wrote: No, my work dir is ok. And... if I use the Ant the .jsp will compile. (make a _jsp.java file) What more can I do? Thanks, Cyberjobe - Original Message - From: David Smith [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:18 AM Subject: Re: Tomcat does not compiles my .jsp! I'm fairly sure the problem is tomcat is having some trouble writing to the work directory when it writes your jsp as a java class. Quick test: su tomcat (if done from root, no password required) cd /usr/local/jakarta-tomcat-5.0.25/work vi testfile.txt type some junk and try to write the file. If this fails, you have your problem. Exit the su session and take a look at file permissions on the work directory. Be sure tomcat owns it and has write access. I'd recommend tomcat user and group have full permissions (rw, x for directories), others have nothing. --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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: does anybody know what this means?
I checked my /home/dln/wwwdocs/WEB-INF/lib and there is a taglibs-datetime.jar in it. Please, what else can I do? -Original Message- From: deepak shripat mane [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 9:17 AM To: Tomcat Users List Subject: Re: does anybody know what this means? Hii Hii Have u included Tag Library Decriptor file into WEB-INF / lib folder u can solve this problem Deepak On Thu, 24 Jun 2004 Casas,Claudia wrote : 2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/pop3.jar to /home/dln/wwwdocs/WEB-INF/lib/pop3.jar 2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/smtp.jar to /home/dln/wwwdocs/WEB-INF/lib/smtp.jar 2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/taglibs-datetime.jar to /home/dln/wwwdocs/WEB-INF/lib/taglibs-datetime.jar 2004-06-23 22:42:05 WebappLoader[/dln]: Reloading checks are enabled for this Context 2004-06-23 22:42:05 ContextConfig[/dln] Exception processing TLD at resource path /WEB-INF/datetime.tld javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/datetime.tld at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1010) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3587) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - I KEEP GETTING THE REQUESTED RESOURCE IS NOT AVAILABLE WHEN I TRY TO RUN MY TOMCAT FORM MY HOME DIR. I NOTICED THIS ERROR INSIDE THE LOG FOR THAT SPECIFIC CONTEXT. IT SEEMS LIKE EVERYTHING IS GOING OK, NTIL SOMETHING HAPPENS WITH DATETIME.TLD? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
my jsps don't work anymore :(
I have no idea what happened! Yesterday everything was working beautifully. Today all I did was to restart the server, and now my jsps do not work from my home directories. If I access http://localhost:8080/examples or http://localhost/examples , it works fine. But if I try to access a jsp from my homedir http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get type Status report message /myacct/index.jsp description The requested resource (/myacct/index.jsp) is not available. I have added the following to the server.xml file: Context path=/myacct docBase=/home/myacct/wwwdocs debug=0 reloadable=true crossContext=true /Context It seemed to be working. I have no idea what is going on. !-- Claudia Casas Technology does not drive change -- it enables change.
RE: my jsps don't work anymore :(
I am getting the following error message: HTTP Status 404 - /myacct/test.jsp Type: Status report Message: /myacct/test.jsp Description: The requested resource (/myacct/test.jsp) is not available I copied test.jsp into the /examples/jsp directory in the tomcat root. When I access http://localhost:8080/examples/jsp/mytest.jsp it works perfectly. I am getting the error message when I try to access it from /home/myacct/wwwdocs. I am thinking that my context path for my homedirectory is not being taken, but I do not know why. -Original Message- From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 3:58 PM To: 'Tomcat Users List' Subject: RE: my jsps don't work anymore :( Can you post your error message? You also have mydomain.com:8080/myacct/myfile.jsp...for the jsp that doesn't work. Does it with localhost? -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 3:16 PM To: Tomcat Users List Subject: my jsps don't work anymore :( I have no idea what happened! Yesterday everything was working beautifully. Today all I did was to restart the server, and now my jsps do not work from my home directories. If I access http://localhost:8080/examples or http://localhost/examples , it works fine. But if I try to access a jsp from my homedir http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get type Status report message /myacct/index.jsp description The requested resource (/myacct/index.jsp) is not available. I have added the following to the server.xml file: Context path=/myacct docBase=/home/myacct/wwwdocs debug=0 reloadable=true crossContext=true /Context It seemed to be working. I have no idea what is going on. !-- Claudia Casas Technology does not drive change -- it enables change. - 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: my jsps don't work anymore :(
By the way, I tried it with http://localhost:8080/myacct/test.jsp and I am still getting the same error. -Original Message- From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 3:58 PM To: 'Tomcat Users List' Subject: RE: my jsps don't work anymore :( Can you post your error message? You also have mydomain.com:8080/myacct/myfile.jsp...for the jsp that doesn't work. Does it with localhost? -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 3:16 PM To: Tomcat Users List Subject: my jsps don't work anymore :( I have no idea what happened! Yesterday everything was working beautifully. Today all I did was to restart the server, and now my jsps do not work from my home directories. If I access http://localhost:8080/examples or http://localhost/examples , it works fine. But if I try to access a jsp from my homedir http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get type Status report message /myacct/index.jsp description The requested resource (/myacct/index.jsp) is not available. I have added the following to the server.xml file: Context path=/myacct docBase=/home/myacct/wwwdocs debug=0 reloadable=true crossContext=true /Context It seemed to be working. I have no idea what is going on. !-- Claudia Casas Technology does not drive change -- it enables change. - 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: my jsps don't work anymore :(
I know I should not do this. But I just started tomcat as root. And tried my jsp unde my /home/myacct and still nothing. This is so frustrating, yesterday everything was working so nice. We are in a very tight deadline, and I am really getting desperate at this point. Please help. -Original Message- From: Erik Earle [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 5:12 PM To: [EMAIL PROTECTED] Subject: RE: my jsps don't work anymore :( With no logs, this is hard to diagnose but...check permission on the /home/myacct. Does the user Tomcat is running under have access? Original Message Follows From: Casas, Claudia [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: my jsps don't work anymore :( Date: Wed, 23 Jun 2004 16:29:20 -0600 By the way, I tried it with http://localhost:8080/myacct/test.jsp and I am still getting the same error. -Original Message- From: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 3:58 PM To: 'Tomcat Users List' Subject: RE: my jsps don't work anymore :( Can you post your error message? You also have mydomain.com:8080/myacct/myfile.jsp...for the jsp that doesn't work. Does it with localhost? -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 3:16 PM To: Tomcat Users List Subject: my jsps don't work anymore :( I have no idea what happened! Yesterday everything was working beautifully. Today all I did was to restart the server, and now my jsps do not work from my home directories. If I access http://localhost:8080/examples or http://localhost/examples , it works fine. But if I try to access a jsp from my homedir http://mydomain.com:8080/myacct/myfile.jsp then total failure. I get type Status report message /myacct/index.jsp description The requested resource (/myacct/index.jsp) is not available. I have added the following to the server.xml file: Context path=/myacct docBase=/home/myacct/wwwdocs debug=0 reloadable=true crossContext=true /Context It seemed to be working. I have no idea what is going on. !-- Claudia Casas Technology does not drive change -- it enables change. - 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] _ 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]
does anybody know what this means?
2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/pop3.jar to /home/dln/wwwdocs/WEB-INF/lib/pop3.jar 2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/smtp.jar to /home/dln/wwwdocs/WEB-INF/lib/smtp.jar 2004-06-23 22:42:05 WebappLoader[/dln]: Deploy JAR /WEB-INF/lib/taglibs-datetime.jar to /home/dln/wwwdocs/WEB-INF/lib/taglibs-datetime.jar 2004-06-23 22:42:05 WebappLoader[/dln]: Reloading checks are enabled for this Context 2004-06-23 22:42:05 ContextConfig[/dln] Exception processing TLD at resource path /WEB-INF/datetime.tld javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/datetime.tld at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1010) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3587) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - I KEEP GETTING THE REQUESTED RESOURCE IS NOT AVAILABLE WHEN I TRY TO RUN MY TOMCAT FORM MY HOME DIR. I NOTICED THIS ERROR INSIDE THE LOG FOR THAT SPECIFIC CONTEXT. IT SEEMS LIKE EVERYTHING IS GOING OK, NTIL SOMETHING HAPPENS WITH DATETIME.TLD?
RE: bean problem
Actually, my real problem was that tomcat was running my html and jsp's and apache only html. Since my jsp's contained some html, I thought they were working, but the jsp part was not really being processed. Here is a sample of my jsp code: %@ page language=java % %@ page import=java.sql.* % jsp:useBean id=DB class=tools.DBBean scope=session / html headtitleAdministration Section/title/head body link=#66 vlink=#66 alink=#66 leftmargin=0 topmargin=0 % DB.connect(); String query = new String (select name, age from persons); ResultSet rset = DB.executeQ(query); % div align=center center table border=0 cellspacing=1 style=border-collapse: collapse bordercolor=#C0C0C0 width=760 id=AutoNumber1 tr td width=400 class=titleb Name/b/td td width=330 class=titlebAge/b/td td width=30nbsp;/td /tr /table table width=760 border=1 cellspacing=0 cellpadding=0 style=border-collapse: collapse bordercolor=#C0C0C0 % while (rset.next()){ String myname=(rset.getString(1)); String age=(rset.getString(2)); % tr td width=400%= myname%nbsp;/td td width=330%= age%nbsp;/td /tr %}% /table /center /div /body /html -Original Message- From: shiv juluru [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 12:13 AM To: Tomcat Users List; deepak shripat mane Subject: Re: bean problem i am also gr\etting the same problem like u, using tomcat jsps and htmls are working,but using apache onlu jsps are working but not htmls.if u find the solution plz send me that solution. thanks in advance, shiva deepak shripat mane [EMAIL PROTECTED] wrote: Hii.. Can u tell me Wat is scope of beans in ur JSP Page. Can u send me ur source code. If u not specified scope of beans then u have to specify scope of beans Deepak On Mon, 21 Jun 2004 Casas,Claudia wrote : Hello everyone, I have managed to install tomcat4.1.30, apache2.0.49 and the jk1.2.5 connector. I included inside my server.xml file a new context path so that I can run my jsp application through my user directories. Here is what I included: reloadable=true crossContent=true So now, I am able to run under /home/myuser/wwwdocs/test.jsp as follows: http://my.domain.com:8080/myuser/test.jsp or http://my.domain.com/myuser/test/jsp The both work ok. I also have a jsp called list.jsp that uses a bean to connect to an oracle database. When I run http://my.domain.com:8080/myuser/admin/list.jsp everything works perfect and I get an html table with list of my records from my database. But if I run http://my.domain.com/myuser/admin/list.jsp, then the jsp works, but I do get my html table but I do not get any records back at all. The bean is inside /home/myuser/wwwdocs/WEB-INF/classes/tools/dbbean.java, while the list.jsp is only inside /home/myuser/wwwdocs/admin Does anyone know what is going on in here? Technology does not drive change -- it enables change. -- [input][input][input] [input] Copyright (c) 2004 Rediff.com India Limited. All Rights Reserved. - Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
bean problem
Hello everyone, I have managed to install tomcat4.1.30, apache2.0.49 and the jk1.2.5 connector. I included inside my server.xml file a new context path so that I can run my jsp application through my user directories. Here is what I included: Context path=/myuser docBase=/home/myuser/wwwdocs debug=0 reloadable=true crossContent=true/Context So now, I am able to run under /home/myuser/wwwdocs/test.jsp as follows: http://my.domain.com:8080/myuser/test.jsp or http://my.domain.com/myuser/test/jsp The both work ok. I also have a jsp called list.jsp that uses a bean to connect to an oracle database. When I run http://my.domain.com:8080/myuser/admin/list.jsp everything works perfect and I get an html table with list of my records from my database. But if I run http://my.domain.com/myuser/admin/list.jsp, then the jsp works, but I do get my html table but I do not get any records back at all. The bean is inside /home/myuser/wwwdocs/WEB-INF/classes/tools/dbbean.java, while the list.jsp is only inside /home/myuser/wwwdocs/admin Does anyone know what is going on in here? !-- Claudia Casas Technology does not drive change -- it enables change. --
I do not want port 8080. Anyone know how to?
Hello everyone, I have my jsps running thorugh my user directories. For example, http://mydomain.com:8080/myuser/myfile.jsp I would like see if it is possible to take out the port 8080, so that it would seem like apache is processing the page. http://my.domain.com/myuser/myfile.jsp Is this possible? Does anybody know how? My jk connector is working because http://localhost:8080/examples and http://localhost/examples work both fine. I thought that some of my jsp files were already working like this, but I just realized only the html was being processed when no port 8080 was included. !-- Claudia Casas Application Development Coordinator Digital Media Center, Ext. 5940 -- Technology does not drive change -- it enables change.
RE: I do not want port 8080. Anyone know how to?
Thanks for your prompt answer. Unfortunately this solution did not work for me. When I remove the http connector, then I can see my web pages through apache. But I cannot see any jsp's at all. Also, If I change port 8080 to port 80 in my server.xml file; then I have the same problem. I can see my web pages, but not my jsp's. -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, June 21, 2004 3:29 PM To: Tomcat Users List Subject: RE: I do not want port 8080. Anyone know how to? Hi, You merely need to comment out the HTTP connector in your conf/server.xml Ta Matt -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: 21 June 2004 22:19 To: Tomcat Users List Subject: I do not want port 8080. Anyone know how to? Hello everyone, I have my jsps running thorugh my user directories. For example, http://mydomain.com:8080/myuser/myfile.jsp I would like see if it is possible to take out the port 8080, so that it would seem like apache is processing the page. http://my.domain.com/myuser/myfile.jsp Is this possible? Does anybody know how? My jk connector is working because http://localhost:8080/examples and http://localhost/examples work both fine. I thought that some of my jsp files were already working like this, but I just realized only the html was being processed when no port 8080 was included. !-- Claudia Casas Application Development Coordinator Digital Media Center, Ext. 5940 -- Technology does not drive change -- it enables change. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I do not want port 8080. Anyone know how to?
All I have in my workers.properties is the following: worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 I still want apache alive. I guess my problem is just the 8080 extension. If run my jsps through tomcat with port (8080) or without it from the tomcat root, let's say the directory examples, (http://localhost:8080/examples/myjsps) and http://localhost/examples/myjsps) they worked beautifully. My problem started when I included the new context path to run my jsps from a user directory. Context path=/mycct docBase=/home/myacct/wwwdocs debug=0 reloadable=true crossContext=true /Context I am sorry, I am a little confused. I guess what I do not understand is how will my server know if I am running jps or just plain html if I do not include port 8080. If I am totally wrong, please just let me know. -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, June 21, 2004 3:54 PM To: Tomcat Users List Subject: RE: I do not want port 8080. Anyone know how to? Then it sounds like both solutions worked partly. For Filip's solution to work you would have to shut down apache completely and apache becomes the standard web server and both servlets and jsp's should work, but you lose apache. It sounds like when you tried my solution that you have a missing part in your mappings. Have a look in the workers.properties (or workers2.properties if it is jk2) and you will need a mapping along the lines of /yourapp/*.jsp so that your jsp's are mapped or even just /yourapp/* should map the whole webapp. If you dont understand post your workers.properties and i'll see if I can help. Ta Matt -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: 21 June 2004 22:47 To: Tomcat Users List Subject: RE: I do not want port 8080. Anyone know how to? Thanks for your prompt answer. Unfortunately this solution did not work for me. When I remove the http connector, then I can see my web pages through apache. But I cannot see any jsp's at all. Also, If I change port 8080 to port 80 in my server.xml file; then I have the same problem. I can see my web pages, but not my jsp's. -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, June 21, 2004 3:29 PM To: Tomcat Users List Subject: RE: I do not want port 8080. Anyone know how to? Hi, You merely need to comment out the HTTP connector in your conf/server.xml Ta Matt -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: 21 June 2004 22:19 To: Tomcat Users List Subject: I do not want port 8080. Anyone know how to? Hello everyone, I have my jsps running thorugh my user directories. For example, http://mydomain.com:8080/myuser/myfile.jsp I would like see if it is possible to take out the port 8080, so that it would seem like apache is processing the page. http://my.domain.com/myuser/myfile.jsp Is this possible? Does anybody know how? My jk connector is working because http://localhost:8080/examples and http://localhost/examples work both fine. I thought that some of my jsp files were already working like this, but I just realized only the html was being processed when no port 8080 was included. !-- Claudia Casas Application Development Coordinator Digital Media Center, Ext. 5940 -- Technology does not drive change -- it enables change. - 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: I do not want port 8080. Anyone know how to?
I think I found the solution to my problem, I included the following line inside my apache httpd.conf: JkMount /*.jsp ajp13 The name of my worker is ajp13, ugly name, but it was the default so I did not dare to change it. According to the Apache How to in the Jakarta site, this will tell apache to handle all files ending in jsp through my tomcat worker. I just tested my jsps as http://my.domain.com/myacct/my.jsp, and they work beautifully. -Original Message- From: Casas, Claudia Sent: Monday, June 21, 2004 4:44 PM To: 'Tomcat Users List' Subject: RE: I do not want port 8080. Anyone know how to? All I have in my workers.properties is the following: worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 I still want apache alive. I guess my problem is just the 8080 extension. If run my jsps through tomcat with port (8080) or without it from the tomcat root, let's say the directory examples, (http://localhost:8080/examples/myjsps) and http://localhost/examples/myjsps) they worked beautifully. My problem started when I included the new context path to run my jsps from a user directory. Context path=/mycct docBase=/home/myacct/wwwdocs debug=0 reloadable=true crossContext=true /Context I am sorry, I am a little confused. I guess what I do not understand is how will my server know if I am running jps or just plain html if I do not include port 8080. If I am totally wrong, please just let me know. -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, June 21, 2004 3:54 PM To: Tomcat Users List Subject: RE: I do not want port 8080. Anyone know how to? Then it sounds like both solutions worked partly. For Filip's solution to work you would have to shut down apache completely and apache becomes the standard web server and both servlets and jsp's should work, but you lose apache. It sounds like when you tried my solution that you have a missing part in your mappings. Have a look in the workers.properties (or workers2.properties if it is jk2) and you will need a mapping along the lines of /yourapp/*.jsp so that your jsp's are mapped or even just /yourapp/* should map the whole webapp. If you dont understand post your workers.properties and i'll see if I can help. Ta Matt -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: 21 June 2004 22:47 To: Tomcat Users List Subject: RE: I do not want port 8080. Anyone know how to? Thanks for your prompt answer. Unfortunately this solution did not work for me. When I remove the http connector, then I can see my web pages through apache. But I cannot see any jsp's at all. Also, If I change port 8080 to port 80 in my server.xml file; then I have the same problem. I can see my web pages, but not my jsp's. -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, June 21, 2004 3:29 PM To: Tomcat Users List Subject: RE: I do not want port 8080. Anyone know how to? Hi, You merely need to comment out the HTTP connector in your conf/server.xml Ta Matt -Original Message- From: Casas, Claudia [mailto:[EMAIL PROTECTED] Sent: 21 June 2004 22:19 To: Tomcat Users List Subject: I do not want port 8080. Anyone know how to? Hello everyone, I have my jsps running thorugh my user directories. For example, http://mydomain.com:8080/myuser/myfile.jsp I would like see if it is possible to take out the port 8080, so that it would seem like apache is processing the page. http://my.domain.com/myuser/myfile.jsp Is this possible? Does anybody know how? My jk connector is working because http://localhost:8080/examples and http://localhost/examples work both fine. I thought that some of my jsp files were already working like this, but I just realized only the html was being processed when no port 8080 was included. !-- Claudia Casas Application Development Coordinator Digital Media Center, Ext. 5940 -- Technology does not drive change -- it enables change. - 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: three problems
Thanks QM! This works now! :) yuppiii! I run the same command for the iptables with a bit change: iptables -t filter -I RH-Firewall-1-INPUT 7\ -p tcp --dport 8080 \ -m state --state NEW -j ACCEPT service iptables save the -I option to insert this rule in a specific line number, in my case 7. And it works. My tomcat can be seen from the outside now. By the way, I managed to run tomcat from a user tomcat and not from root. :) Also, I added the following lines in the server.xml file at the very end. After the last /Context tag and before the last /Host tag: Context path=/~dln docBase=/home/dln/wwwdocs debug=0 reloadable=true crossContext=true /Context This allows me to now see the jsp's located in /home/dln/wwwdocs as http://my.domain.com:8080/~dln/myfile.jsp But I would like to be able to access this file with no 8080 port at all, like this: http://my.domain.com/~dln/myfile.jsp Does anybody know how to accomplish this? I tested the following : http://localhost:8080/examples and http://localhost/examples and they both work fine. If I try to reach from the outside http://my.domain.com:8080/examples it works fine, but I cannot see the http://my.domain.com/examples -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 6:18 AM To: Tomcat Users List Subject: Re: three problems Clearly, my eyes aren't as sharp when I'm half-awake. Here's the culprit: : REJECT all -- 0.0.0.0/00.0.0.0/0 reject-with : icmp-host-prohibited That's the tail end of the chain, so any rules appended to that chain (like the Tomcat rule I showed you) will never be reached. Rerun the iptables --list command, but use the switch to show rule numbers. You can then run the other iptables command I showed you, but use *insert* instead of *append*. Be sure to insert above that last reject rule. See the iptables docs/manpage for more info, commandline switches, etc. -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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
three problems
Hello everyone, I am pretty new to tomcat. I just managed to install apache2.0.49 and tomcat4.1.30 and the jk1.2 connector on linux redhat 3 AS. I was so happy because when I typed: http://localhost:8080/examples and http://localhost/examples I am able to view my jsp and servlet examples. I have encounted three problems unfortunately: 1) When I go to another PC and try to access my server: http://my.domain.com:8080 http://my.domain.com:8080/ I get The page cannot be displayed but if I access http://my.domain.com:80 http://my.domain.com/ (apache), it works fine Why in this world can I access my tomcat from my server directly but not from outside my server?? 2) When I run tomcat as root, my mod_jk.conf file is automatically created inside my conf directory. But if I run it as a tomcat user, then no mod_jk.conf file is created. 3) But not least, I would like to web applications through my user directories and not through the tomcat directory. I know I have to add something in the context path area, but not sure what to do. Please, if anyone has an answer to these problems, I would really appreciate your help. !-- Claudia Casas Application Development Coordinator Digital Media Center, Ext. 5940 -- Technology does not drive change -- it enables change.
RE: three problems
Thanks for your prompt answer, Could you be more specific on the address attr? I have the following in the Connector element on my server.xml: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 masProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 6:09 PM To: Tomcat Users List Subject: Re: three problems On Thu, Jun 17, 2004 at 05:44:51PM -0600, Casas, Claudia wrote: : 1) When I go to another PC and try to access my server: : http://my.domain.com:8080 http://my.domain.com:8080/ I get The page : cannot be displayed : but if I access http://my.domain.com:80 http://my.domain.com/ : (apache), it works fine : : Why in this world can I access my tomcat from my server directly but not : from outside my server?? You must explicitly setup Tomcat to listen on IP addresses other than localhost if you want to access Tomcat remotely (but not through Apache). Refer to the address attr of the Connector element in server.xml. : 2) When I run tomcat as root, my mod_jk.conf file is automatically : created inside my conf directory. : But if I run it as a tomcat user, then no mod_jk.conf file is : created. Most likely, a permissions problem: is the directory writable to the (non-root) user in question? : 3) But not least, I would like to web applications through my user : directories and not through the tomcat directory. : I know I have to add something in the context path area, but not : sure what to do. There's a config directive for this, something like userdir. I don't know it off the top of my head, but a search on the Tomcat site should find it. -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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: three problems
Well, I just finished installing tomcat5 also. When I run http://my.ip.address:8080 or http://my.domain.com:8080 I still get the same error the page cannot be displayed I run the commands that QM suggested and there are the results: lsof -i :8080 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME java2801 root3u IPv4 7503 TCP *:webcache (LISTEN) iptables --list -n hain INPUT (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- 0.0.0.0/00.0.0.0/0 Chain FORWARD (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- 0.0.0.0/00.0.0.0/0 Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain RH-Firewall-1-INPUT (2 references) target prot opt source destination ACCEPT all -- 0.0.0.0/00.0.0.0/0 ACCEPT icmp -- 0.0.0.0/00.0.0.0/0 icmp type 255 ACCEPT esp -- 0.0.0.0/00.0.0.0/0 ACCEPT ah -- 0.0.0.0/00.0.0.0/0 ACCEPT all -- 0.0.0.0/00.0.0.0/0 state RELATED,ESTABLISHED ACCEPT tcp -- 0.0.0.0/00.0.0.0/0 state NEW tcp dpt:25 ACCEPT tcp -- 0.0.0.0/00.0.0.0/0 state NEW tcp dpt:80 ACCEPT tcp -- 0.0.0.0/00.0.0.0/0 state NEW tcp dpt:21 ACCEPT tcp -- 0.0.0.0/00.0.0.0/0 state NEW tcp dpt:22 ACCEPT tcp -- 0.0.0.0/00.0.0.0/0 state NEW tcp dpt:23 REJECT all -- 0.0.0.0/00.0.0.0/0 reject-with icmp-host-prohibited Does anyone know how to read this and to help me figure out if there is any restricition inside my server or overall from the network? From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] Sent: Thu 6/17/2004 7:33 PM To: Tomcat Users List Subject: RE: three problems At 05:23 PM 6/17/2004, you wrote: Thanks for your prompt answer, Could you be more specific on the address attr? I have the following in the Connector element on my server.xml: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 masProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / To add to QM's comments: You're accessing it locally by hitting http://localhost:8080, right? If you're access it remotely with http://www.x.com/myapp, can you access it locally with http://www.x.com/myapp? Try accessing it remotely with http://ip-address-here/myapp and see what happens. In any case, this should be a networking issue... justin - 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: three problems
Oki doki, I just added the port 8080 following QM suggestions and also thanks very much for your help. The results here: But unfortunately I still cannot see my http://my.ip.address:8080. Getting page cannot be displayed. :( lsof -i :8080 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME java22990 root3u IPv4 58125 TCP *:webcache (LISTEN) iptables --list -n Chain INPUT (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- 0.0.0.0/00.0.0.0/0 Chain FORWARD (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- 0.0.0.0/00.0.0.0/0 Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain RH-Firewall-1-INPUT (2 references) target prot opt source destination ACCEPT all -- 0.0.0.0/00.0.0.0/0 ACCEPT icmp -- 0.0.0.0/00.0.0.0/0 icmp typ`e 255 ACCEPT esp -- 0.0.0.0/00.0.0.0/0 ACCEPT ah -- 0.0.0.0/00.0.0.0/0 ACCEPT all -- 0.0.0.0/00.0.0.0/0 state RELATED,ESTABLISHED ACCEPT tcp -- 0.0.0.0/00.0.0.0/0 state NEW tcp dpt:25 ACCEPT tcp -- 0.0.0.0/00.0.0.0/0 state NEW tcp dpt:80 ACCEPT tcp -- 0.0.0.0/00.0.0.0/0 state NEW tcp dpt:21 ACCEPT tcp -- 0.0.0.0/00.0.0.0/0 state NEW tcp dpt:22 ACCEPT tcp -- 0.0.0.0/00.0.0.0/0 state NEW tcp dpt:23 REJECT all -- 0.0.0.0/00.0.0.0/0 reject-with icmp-host-prohibited all -- 0.0.0.0/00.0.0.0/0 ACCEPT tcp -- 0.0.0.0/00.0.0.0/0 tcp dpt:8080 state NEW From: QM [mailto:[EMAIL PROTECTED] Sent: Thu 6/17/2004 8:38 PM To: Tomcat Users List Subject: Re: three problems On Thu, Jun 17, 2004 at 08:26:34PM -0600, Casas, Claudia wrote: : lsof -i :8080 : COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME : java2801 root3u IPv4 7503 TCP *:webcache (LISTEN) This is good. (Well, technically, it's not a good idea to run Tomcat as root -- but we'll get to that later ;) The iptables output confirms: your firewall is configured to explicitly allow only certain traffic. Tomcat (port 8080) isn't in that list. Adding it is simple: iptables -t filter -A RH-Firewall-1-INPUT \ -p tcp --dport 8080 \ -m state --state NEW -j ACCEPT Be sure to test that out and, if it doesn't break anything else, save your changes: service iptables save -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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]