You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Richard Chamberlain <ri...@sunsetandlabrea.com> on 2002/09/04 16:30:41 UTC

virtualhost - tomcat4.1.9

Hello,

I posted this earlier problem earlier in my migration post but I've got
some more details so I thought I'd post them.

To recap I'm trying to get a webapp (well a simple set of jsp pages)
running in Tomcat in a virtualhost. The same set of files were all ok
in resin.

I'm using the admin tool to set up a host (www.sunsetandlabrea.com)
with an application base of /home/richardc/

I then create a context with a document base of
/home/richardc/public_html/ and leave everything else as default.

I commit changes and then I get a 404 error at
http://www.sunsetandlabrea.com:8080/index.jsp

I stop and restart tomcat and then I get a No Context configured to
process this request message and in admin it's created two new contexts
(/public_html and /secure_html).

Any suggestions of how I can get this to work would be greatly
appreciated.

I've stuck the log at the bottom of this message.

Thanks again,

Richard

2002-09-04 15:14:30 WebappLoader[/]: Deploying class repositories to
work directory
/usr/share/tomcat4.1.9/work/Standalone/www.sunsetandlabrea.com/_
2002-09-04 15:14:30 WebappLoader[/]: Deploy class files
/WEB-INF/classes to /home/richardc/public_html/WEB-INF/classes
2002-09-04 15:14:30 WebappLoader[/]: Deploy JAR /WEB-INF/lib/cos.jar to
/home/richardc/public_html/WEB-INF/lib/cos.jar
2002-09-04 15:14:30 WebappLoader[/]: Deploy JAR
/WEB-INF/lib/velocity-dep-1.3.1-rc2.jar to
/home/richardc/public_html/WEB-INF/lib/velocity-dep-1.3.1-rc2.jar
2002-09-04 15:14:31 StandardManager[/]: Seeding random number generator
class java.security.SecureRandom
2002-09-04 15:14:31 StandardManager[/]: Seeding of random number
generator has been completed
2002-09-04 15:14:31 StandardWrapper[/:default]: Loading container
servlet default
2002-09-04 15:14:31 default: init
2002-09-04 15:14:32 StandardWrapper[/:invoker]: Loading container
servlet invoker
2002-09-04 15:14:32 invoker: init
2002-09-04 15:14:32 jsp: init
2002-09-04 15:14:32 HostConfig[www.sunsetandlabrea.com]: Deploying web
application directory public_html
2002-09-04 15:14:32 StandardHost[www.sunsetandlabrea.com]: Installing
web application at context path /public_html from URL
file:/home/richardc/public_html
2002-09-04 15:14:32 WebappLoader[/public_html]: Deploying class
repositories to work directory
/usr/share/tomcat4.1.9/work/Standalone/www.sunsetandlabrea.com/public_html
2002-09-04 15:14:32 WebappLoader[/public_html]: Deploy class files
/WEB-INF/classes to /home/richardc/public_html/WEB-INF/classes
2002-09-04 15:14:32 WebappLoader[/public_html]: Deploy JAR
/WEB-INF/lib/cos.jar to /home/richardc/public_html/WEB-INF/lib/cos.jar
2002-09-04 15:14:32 WebappLoader[/public_html]: Deploy JAR
/WEB-INF/lib/velocity-dep-1.3.1-rc2.jar to
/home/richardc/public_html/WEB-INF/lib/velocity-dep-1.3.1-rc2.jar
2002-09-04 15:14:32 StandardManager[/public_html]: Seeding random
number generator class java.security.SecureRandom
2002-09-04 15:14:32 StandardManager[/public_html]: Seeding of random
number generator has been completed
2002-09-04 15:14:32 StandardWrapper[/public_html:default]: Loading
container servlet default
2002-09-04 15:14:32 default: init
2002-09-04 15:14:32 StandardWrapper[/public_html:invoker]: Loading
container servlet invoker
2002-09-04 15:14:32 invoker: init
2002-09-04 15:14:32 jsp: init
2002-09-04 15:14:32 HostConfig[www.sunsetandlabrea.com]: Deploying web
application directory secure_html
2002-09-04 15:14:32 StandardHost[www.sunsetandlabrea.com]: Installing
web application at context path /secure_html from URL
file:/home/richardc/secure_html
2002-09-04 15:14:32 WebappLoader[/secure_html]: Deploying class
repositories to work directory
/usr/share/tomcat4.1.9/work/Standalone/www.sunsetandlabrea.com/secure_html
2002-09-04 15:14:33 ContextConfig[/secure_html]: Missing application
web.xml, using defaults only
2002-09-04 15:14:33 StandardManager[/secure_html]: Seeding random
number generator class java.security.SecureRandom
2002-09-04 15:14:33 StandardManager[/secure_html]: Seeding of random
number generator has been completed
2002-09-04 15:14:33 StandardWrapper[/secure_html:default]: Loading
container servlet default
2002-09-04 15:14:33 default: init
2002-09-04 15:14:33 StandardWrapper[/secure_html:invoker]: Loading
container servlet invoker
2002-09-04 15:14:33 invoker: init
2002-09-04 15:14:33 jsp: init
2002-09-04 15:22:07 StandardHost[www.sunsetandlabrea.com]: MAPPING
configuration error for request URI /index.jsp
-- 
http://fastmail.fm/ - The professional email service

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: virtualhost - tomcat4.1.9

Posted by Richard Chamberlain <ri...@sunsetandlabrea.com>.
Hello again,

I'll answer my own question just in case someone else comes unstuck with 
the same problem.

It appears if you create a context using the admin tool and leave the 
path empty when it creates the path it adds a path='/' which is not 
correct. Deleting the / manually solves it.

Cheers,

Richard

On Wednesday, September 4, 2002, at 02:30 PM, Richard Chamberlain wrote:

> Hello,
>
> I posted this earlier problem earlier in my migration post but I've got
> some more details so I thought I'd post them.
>
> To recap I'm trying to get a webapp (well a simple set of jsp pages)
> running in Tomcat in a virtualhost. The same set of files were all ok
> in resin.
>
> I'm using the admin tool to set up a host (www.sunsetandlabrea.com)
> with an application base of /home/richardc/
>
> I then create a context with a document base of
> /home/richardc/public_html/ and leave everything else as default.
>
> I commit changes and then I get a 404 error at
> http://www.sunsetandlabrea.com:8080/index.jsp
>
> I stop and restart tomcat and then I get a No Context configured to
> process this request message and in admin it's created two new contexts
> (/public_html and /secure_html).
>
> Any suggestions of how I can get this to work would be greatly
> appreciated.
>
> I've stuck the log at the bottom of this message.
>
> Thanks again,
>
> Richard


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>