Re: JSPs will not load with virtual domain/Context Issue
Dave Kennell wrote: Well, Your context idea was a step in the right direction. I hate to be a bother however now as long as the JSP is in the root. It works great. But as soon as I try to goto www.test.com/admin it cannot find any of the classes that my JSPs have in them. Ive tried adding multiple variations of context tags within the host to remidy this with no luck in fixing the issue... Thanks, Dave Hi, my opinion i would install everything under webapps/test/ROOT create a META-INF dir inside it and edit a new file context.xml with this content ?xml version=1.0 encoding=UTF-8? Context cookies=true crossContext=false docBase=ROOT privileged=false path= reloadable=true /Context then i would delete the Context directive inside server.xml restart tomcat Tell us if u still need help Giorgio Ponza Original Message Follows From: Mladen Adamovic [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: Re: JSPs will not load with virtual domain Date: Sun, 11 Jun 2006 10:07:21 +0200 Dave Kennell wrote: So I've come to the conclusion that it is entirly disregarding my WEB-INF folder... Is WEB-INF folder under webapps/test? Hm, I had some problems and find out on this mailing list that good idea is to move everything from webapps/test to webapps/test/ROOT and my server.xml have something like : Host name=www.test.com debug=0 appBase=webapps/test unpackWARs=false autoDeploy=true Aliastest.com/Alias Context path= docBase=ROOT/ /Host Although using of Context inside Host tag is discouraged in new version of Tomcat this works for me. -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com http://www.froola.com http://www.gift-idea4u.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPs will not load with virtual domain/Context Issue
Well, Your context idea was a step in the right direction. I hate to be a bother however now as long as the JSP is in the root. It works great. But as soon as I try to goto www.test.com/admin it cannot find any of the classes that my JSPs have in them. Ive tried adding multiple variations of context tags within the host to remidy this with no luck in fixing the issue... Thanks, Dave Original Message Follows From: Mladen Adamovic [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: Re: JSPs will not load with virtual domain Date: Sun, 11 Jun 2006 10:07:21 +0200 Dave Kennell wrote: So I've come to the conclusion that it is entirly disregarding my WEB-INF folder... Is WEB-INF folder under webapps/test? Hm, I had some problems and find out on this mailing list that good idea is to move everything from webapps/test to webapps/test/ROOT and my server.xml have something like : Host name=www.test.com debug=0 appBase=webapps/test unpackWARs=false autoDeploy=true Aliastest.com/Alias Context path= docBase=ROOT/ /Host Although using of Context inside Host tag is discouraged in new version of Tomcat this works for me. -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com http://www.froola.com http://www.gift-idea4u.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPs will not load with virtual domain
Dave Kennell wrote: So I've come to the conclusion that it is entirly disregarding my WEB-INF folder... Is WEB-INF folder under webapps/test? Hm, I had some problems and find out on this mailing list that good idea is to move everything from webapps/test to webapps/test/ROOT and my server.xml have something like : Host name=www.test.com debug=0 appBase=webapps/test unpackWARs=false autoDeploy=true Aliastest.com/Alias Context path= docBase=ROOT/ /Host Although using of Context inside Host tag is discouraged in new version of Tomcat this works for me. -- Mladen Adamovic http://www.online-utility.org http://www.shortopedia.com http://www.froola.com http://www.gift-idea4u.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPs will not load with virtual domain
Well I did a little digging...I couldn't find any error messages but I did realize an important clue. All of my JSPs that I try to load have calls to a java class I've written, if I goto a JSP that doesn't have any calls to my Java classes then presto...it loads without problem. In addition, it cannot find any of my servlets. So I've come to the conclusion that it is entirly disregarding my WEB-INF folder... Only when I load it up on my virtual host. Or in other words, it works fine when I goto 192.168.0.101/test but if I goto www.test.com it wont load, even though they point to the same place. The following is my 'host' code in server.xml Host appBase=webapps/test autoDeploy=true deployOnStartup=true deployXML=false liveDeploy=true name=www.test.com unpackWARs=false /Host Original Message Follows From: Mladen Adamovic [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: Re: JSPs will not load with virtual domain Date: Fri, 09 Jun 2006 18:02:35 +0200 Dave Kennell wrote: I have a rather intresting but probably simple problem, as I am basically new to tomcat. Currently I am running Tomcat 5.5.17 on a Windows 2000 server. I installed the admin tool and setup a connector for port 80 and then a host of www.btdt.com (which I handle locally on my DNS). Here is the kicker. If I goto www.btdt.com/index.jsp it will not load...however if I goto 192.168.0.101/btdt the page renders fine. So I tried something static. if I goto www.btdt.com/static.htm it will load fine... as will 192.168.0.101/btdt/static.htm I am absoultly baffled as to why the virtual host fails to render the JSPs Can anyone help? huh, as I see you haven't receive any answer so I will try something... Check tomcat/logs directory... catalina.out and other files for any meaningful error. If you cannot see anything there post your server.xml file (without comments and unnecessary burden here) and I will try to look at it. -- Mladen Adamovic http://home.blic.net/adamm http://www.shortopedia.com http://www.froola.com http://www.online-utility.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPs will not load with virtual domain
Dave Kennell wrote: I have a rather intresting but probably simple problem, as I am basically new to tomcat. Currently I am running Tomcat 5.5.17 on a Windows 2000 server. I installed the admin tool and setup a connector for port 80 and then a host of www.btdt.com (which I handle locally on my DNS). Here is the kicker. If I goto www.btdt.com/index.jsp it will not load...however if I goto 192.168.0.101/btdt the page renders fine. So I tried something static. if I goto www.btdt.com/static.htm it will load fine... as will 192.168.0.101/btdt/static.htm I am absoultly baffled as to why the virtual host fails to render the JSPs Can anyone help? huh, as I see you haven't receive any answer so I will try something... Check tomcat/logs directory... catalina.out and other files for any meaningful error. If you cannot see anything there post your server.xml file (without comments and unnecessary burden here) and I will try to look at it. -- Mladen Adamovic http://home.blic.net/adamm http://www.shortopedia.com http://www.froola.com http://www.online-utility.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSPs will not load with virtual domain
Hello, I have a rather intresting but probably simple problem, as I am basically new to tomcat. Currently I am running Tomcat 5.5.17 on a Windows 2000 server. I installed the admin tool and setup a connector for port 80 and then a host of www.btdt.com (which I handle locally on my DNS). Here is the kicker. If I goto www.btdt.com/index.jsp it will not load...however if I goto 192.168.0.101/btdt the page renders fine. So I tried something static. if I goto www.btdt.com/static.htm it will load fine... as will 192.168.0.101/btdt/static.htm I am absoultly baffled as to why the virtual host fails to render the JSPs Can anyone help? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]