Re: Tomcat with apache for virtual hosting
John Clayton wrote: Hi Rakesh, From what I understand, you simply specify your context directives inside your VirtualHost tags as you would if you were running apache normally. Has anyone successfully connected a virtual host in Tomcat with that in Apache? What is the correct way? I've been bugging with it for quite some time... If I have one machine running: - Tomcat (4.0.1) - Apache (1.3.22) - hosting several virtual hosts (with DNS setup OK) how do I setup virtual hosts? Tomcat -- Host name=Mercury.ev.co.yu debug=0 appBase=/usr/users/mercury/webapps unpackWARs=true Context docBase=/usr/local/java/tomcat-4.01/webapps/tomcat-docs path=/docs / /Host Apache -- IfModule mod_webapp.c WebAppConnection tomcat4 warp localhost:8008 /IfModule VirtualHost 192.168.61.16 ServerName Mercury.ev.co.yu DocumentRoot/usr/users/mercury/public_html ServerAdmin [EMAIL PROTECTED] ErrorLog/usr/users/mercury/logs/error.log CustomLog /usr/users/mercury/logs/access.log common IfModule mod_alias.c ScriptAlias /cgi-bin/ /usr/users/mercury/cgi-bin/ /IfModule IfModule mod_webapp.c WebAppDeploy docs tomcat4 /docs /IfModule /VirtualHost Is this the right way? Nix. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Need to refresh .jsp page around five times before it works properly
I am using tomcat 3.2.4, Ajp13, and apache 1.3. Every so often, when I go to one of the .jsp pages on my site, I get a 500, internal server error. There is no info posted to any log, and I need to hit refresh on the browser window a bunch of times before it finally comes up correctly. Does anyone know what causes this condition? I was using tomcat 3.2.1 with Ajp12 before, and never had this problem. Is it Ajp13 that causes this? Thanks in advance for any help! Brandon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Need to refresh .jsp page around five times before it worksproperly
We have a similar problem with Tomcat 3.2 and 3.3. The web page is sometimes blank (no error) after the JSP is compiled. If the page is refreshed / reloaded then the page is properly displayed. From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Sun, 23 Dec 2001 14:03:21 -0600 To: Tomcat Users List [EMAIL PROTECTED] Subject: Need to refresh .jsp page around five times before it works properly I am using tomcat 3.2.4, Ajp13, and apache 1.3. Every so often, when I go to one of the .jsp pages on my site, I get a 500, internal server error. There is no info posted to any log, and I need to hit refresh on the browser window a bunch of times before it finally comes up correctly. Does anyone know what causes this condition? I was using tomcat 3.2.1 with Ajp12 before, and never had this problem. Is it Ajp13 that causes this? Thanks in advance for any help! Brandon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Need to refresh .jsp page around five times before it worksproperly
Are you using Apache, and Ajp13? What do you do as a solution? - Original Message - From: David Morsberger [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 23, 2001 4:36 PM Subject: Re: Need to refresh .jsp page around five times before it worksproperly We have a similar problem with Tomcat 3.2 and 3.3. The web page is sometimes blank (no error) after the JSP is compiled. If the page is refreshed / reloaded then the page is properly displayed. From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Sun, 23 Dec 2001 14:03:21 -0600 To: Tomcat Users List [EMAIL PROTECTED] Subject: Need to refresh .jsp page around five times before it works properly I am using tomcat 3.2.4, Ajp13, and apache 1.3. Every so often, when I go to one of the .jsp pages on my site, I get a 500, internal server error. There is no info posted to any log, and I need to hit refresh on the browser window a bunch of times before it finally comes up correctly. Does anyone know what causes this condition? I was using tomcat 3.2.1 with Ajp12 before, and never had this problem. Is it Ajp13 that causes this? Thanks in advance for any help! Brandon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
default servlet mapping
Hi! I seem unable to override the default servlet in tomcat 4.0.1. Here's an example deployement : / --- some servlet /hello/ --- other servlet /static/* --- default servlet (for static content) /*--- my overriden static content servlet I tried to set the / mapping to a servlet that would handle both the / URI and all the non-matching URIs, but tomcat does't dispatch the requests to this servlet for paths other than / (exact match). I also tried /*, and I get the same thing. When trying to override the servlet with default name, I get a deployment exception. What can I do? tnx, vincent -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Need to refresh .jsp page around five times before itworksproperly
Yes, Apache 1.3.22 and Tomcat 3.3 with ajp13. We initially compile our JSP's before we deliver / deploy. From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Sun, 23 Dec 2001 19:42:09 -0600 To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Need to refresh .jsp page around five times before it worksproperly Are you using Apache, and Ajp13? What do you do as a solution? - Original Message - From: David Morsberger [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 23, 2001 4:36 PM Subject: Re: Need to refresh .jsp page around five times before it worksproperly We have a similar problem with Tomcat 3.2 and 3.3. The web page is sometimes blank (no error) after the JSP is compiled. If the page is refreshed / reloaded then the page is properly displayed. From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Sun, 23 Dec 2001 14:03:21 -0600 To: Tomcat Users List [EMAIL PROTECTED] Subject: Need to refresh .jsp page around five times before it works properly I am using tomcat 3.2.4, Ajp13, and apache 1.3. Every so often, when I go to one of the .jsp pages on my site, I get a 500, internal server error. There is no info posted to any log, and I need to hit refresh on the browser window a bunch of times before it finally comes up correctly. Does anyone know what causes this condition? I was using tomcat 3.2.1 with Ajp12 before, and never had this problem. Is it Ajp13 that causes this? Thanks in advance for any help! Brandon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Need to refresh .jsp page around five times before it works properly
It has to be with ajp13, because I never have the problem with stand alone tomcat or with ajp12. - Original Message - From: David Morsberger [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 23, 2001 8:47 PM Subject: Re: Need to refresh .jsp page around five times before itworksproperly Yes, Apache 1.3.22 and Tomcat 3.3 with ajp13. We initially compile our JSP's before we deliver / deploy. From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Sun, 23 Dec 2001 19:42:09 -0600 To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Need to refresh .jsp page around five times before it worksproperly Are you using Apache, and Ajp13? What do you do as a solution? - Original Message - From: David Morsberger [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 23, 2001 4:36 PM Subject: Re: Need to refresh .jsp page around five times before it worksproperly We have a similar problem with Tomcat 3.2 and 3.3. The web page is sometimes blank (no error) after the JSP is compiled. If the page is refreshed / reloaded then the page is properly displayed. From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Sun, 23 Dec 2001 14:03:21 -0600 To: Tomcat Users List [EMAIL PROTECTED] Subject: Need to refresh .jsp page around five times before it works properly I am using tomcat 3.2.4, Ajp13, and apache 1.3. Every so often, when I go to one of the .jsp pages on my site, I get a 500, internal server error. There is no info posted to any log, and I need to hit refresh on the browser window a bunch of times before it finally comes up correctly. Does anyone know what causes this condition? I was using tomcat 3.2.1 with Ajp12 before, and never had this problem. Is it Ajp13 that causes this? Thanks in advance for any help! Brandon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Need to refresh .jsp page around five times before it works properly
I have recently upgraded to Tomcat 3.3 with AJP13, and I've seen this problem as well. - Original Message - From: Brandon Cruz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 23, 2001 7:30 PM Subject: Re: Need to refresh .jsp page around five times before it works properly It has to be with ajp13, because I never have the problem with stand alone tomcat or with ajp12. - Original Message - From: David Morsberger [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 23, 2001 8:47 PM Subject: Re: Need to refresh .jsp page around five times before itworksproperly Yes, Apache 1.3.22 and Tomcat 3.3 with ajp13. We initially compile our JSP's before we deliver / deploy. From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Sun, 23 Dec 2001 19:42:09 -0600 To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Need to refresh .jsp page around five times before it worksproperly Are you using Apache, and Ajp13? What do you do as a solution? - Original Message - From: David Morsberger [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 23, 2001 4:36 PM Subject: Re: Need to refresh .jsp page around five times before it worksproperly We have a similar problem with Tomcat 3.2 and 3.3. The web page is sometimes blank (no error) after the JSP is compiled. If the page is refreshed / reloaded then the page is properly displayed. From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Sun, 23 Dec 2001 14:03:21 -0600 To: Tomcat Users List [EMAIL PROTECTED] Subject: Need to refresh .jsp page around five times before it works properly I am using tomcat 3.2.4, Ajp13, and apache 1.3. Every so often, when I go to one of the .jsp pages on my site, I get a 500, internal server error. There is no info posted to any log, and I need to hit refresh on the browser window a bunch of times before it finally comes up correctly. Does anyone know what causes this condition? I was using tomcat 3.2.1 with Ajp12 before, and never had this problem. Is it Ajp13 that causes this? Thanks in advance for any help! Brandon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Need to refresh .jsp page around five times before it works properly
Has anyone out there found a solution to this problem? Anything that can be done with the configuration? - Original Message - From: James Chuang [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 23, 2001 10:06 PM Subject: Re: Need to refresh .jsp page around five times before it works properly I have recently upgraded to Tomcat 3.3 with AJP13, and I've seen this problem as well. - Original Message - From: Brandon Cruz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 23, 2001 7:30 PM Subject: Re: Need to refresh .jsp page around five times before it works properly It has to be with ajp13, because I never have the problem with stand alone tomcat or with ajp12. - Original Message - From: David Morsberger [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 23, 2001 8:47 PM Subject: Re: Need to refresh .jsp page around five times before itworksproperly Yes, Apache 1.3.22 and Tomcat 3.3 with ajp13. We initially compile our JSP's before we deliver / deploy. From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Sun, 23 Dec 2001 19:42:09 -0600 To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Need to refresh .jsp page around five times before it worksproperly Are you using Apache, and Ajp13? What do you do as a solution? - Original Message - From: David Morsberger [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 23, 2001 4:36 PM Subject: Re: Need to refresh .jsp page around five times before it worksproperly We have a similar problem with Tomcat 3.2 and 3.3. The web page is sometimes blank (no error) after the JSP is compiled. If the page is refreshed / reloaded then the page is properly displayed. From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Sun, 23 Dec 2001 14:03:21 -0600 To: Tomcat Users List [EMAIL PROTECTED] Subject: Need to refresh .jsp page around five times before it works properly I am using tomcat 3.2.4, Ajp13, and apache 1.3. Every so often, when I go to one of the .jsp pages on my site, I get a 500, internal server error. There is no info posted to any log, and I need to hit refresh on the browser window a bunch of times before it finally comes up correctly. Does anyone know what causes this condition? I was using tomcat 3.2.1 with Ajp12 before, and never had this problem. Is it Ajp13 that causes this? Thanks in advance for any help! Brandon -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Newbie, JNDI Error - Help Required
Hello, Can anyone please help me resolve this error message? I have attached the class (ConnectionPool.java) which causes this exception to be raised. Kind Regards, Rudi Error:init JNDI javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory] Error:Register Datasources java.lang.NullPointerException JNDI Error:javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory] java.lang.IllegalStateException: pooled datasource has not been initialized at com.docutech.viewer.db.ConnectionPool.getConnection(ConnectionPool.java:129) at com.docutech.viewer.db.Test.main(Test.java:28) Exception in thread main _ Chat with friends online, try MSN Messenger: http://messenger.msn.com ConnectionPool.java Description: JavaScript source -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Please Help
Hello All, I want to create new user and group tomcat for apache-tomcat. Can anyone help me. How can I create new user and group on Linux Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Newbie, JNDI Error - Help Required
Hi Is the Classpath set properly? Regds Seetha -Original Message- From: Rudi Doku [mailto:[EMAIL PROTECTED]] Sent: Monday, December 24, 2001 11:54 AM To: [EMAIL PROTECTED] Subject: Newbie, JNDI Error - Help Required Hello, Can anyone please help me resolve this error message? I have attached the class (ConnectionPool.java) which causes this exception to be raised. Kind Regards, Rudi Error:init JNDI javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory] Error:Register Datasources java.lang.NullPointerException JNDI Error:javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory] java.lang.IllegalStateException: pooled datasource has not been initialized at com.docutech.viewer.db.ConnectionPool.getConnection(ConnectionPool.java: 129) at com.docutech.viewer.db.Test.main(Test.java:28) Exception in thread main _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]