tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Batard" <dbat...@sf2r.fr>
Subject Re: Re[2]: Virtual host and app
Date Mon, 03 Nov 2003 16:56:50 GMT
Hi

You may have an other instance of Tomcat running.

You really have troubles with Host and Context
(You should avoid spaces in your directory names)

If you need a PruebaJavier virtual Host and a default Context (/) :
<Host name="PruebaJavier" debug="0" appBase="C:\Program Files\Apache
Software Foundation\Tomcat 5.0\webapps\PruebaJavier" unpackWARs="true"
autoDeploy="true">
   <Context path="" reloadable="true" docBase="." />
</Host>

the url will be http://PruebaJavier:8080/

Having deployed your app under webapps (you shouldn't with virtual hosts) ,
you can also access it within localhost :
http://localhost:8080/PruebaJavier/ (this is possible only because you've
used the webapps absolute URL in appBase)

If you want a pjkt virtual Host and a PruebaJavier Context :

<Host name="pjkt" debug="0" appBase="C:\Program Files\Apache Software
Foundation\Tomcat 5.0\webapps\PruebaJavier" unpackWARs="true"
autoDeploy="true">
   <Context path="/PruebaJavier" reloadable="true" docBase="." />
</Host>

(Note the / in path)

the url will be http://pjkt:8080/PruebaJavier/

Dom

----- Original Message -----
From: "Javier" <xleyba@yahoo.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Sunday, November 02, 2003 10:27 PM
Subject: Re[2]: Virtual host and app


> On 02/11/2003 at 13:34 Sean Dockery wrote:
>
> >You need a Context node in your Host for the default context.
> >
>
>
> Thanks for your reply.
>
> I've tried to get a Context setting in many ways but I give up...
>
> If I've my application in
>
> webapps
> +--PruebaJavier
>    +--images
>    +--WEB-INF
>       +--classes
>          +--listeners
>          +--filters
>          +--compressionFilters
>          +--util
>
> How could I get a well configured context ?
>
> I made
>
> <Context path="PruebaJavier" docBase="C:\Program Files\Apache Software
> Foundation\Tomcat 5.0\webapps\PruebaJavier\" debug="0" />
>
> but I really don't understand difference between path and docBase (after
> read documentation). Also, I want to know wich is the equivalent setting
> for Apache DirectoryIndex.
>
> And as last problem...I receive the following error:
>
> ------------------
> Error initializing endpoint
> java.net.BindException: Address already in use: JVM_Bind:8080
> at
>
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java
> :286)
> at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:184)
> at
>
org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:13
> 26)
> at
>
org.apache.catalina.core.StandardService.initialize(StandardService.java:633
> )
> at
>
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2413)
>
> at org.apache.catalina.startup.Catalina.load(Catalina.java:531)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:552)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396)
> 02-nov-2003 22:21:05 org.apache.catalina.startup.Catalina load
> GRAVE: Catalina.start
> LifecycleException:  Protocol handler initialization failed:
> java.net.BindException: Address already in use: JVM_Bind:8080
> at
>
org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:13
> 28)
> at
>
org.apache.catalina.core.StandardService.initialize(StandardService.java:633
> )
> at
>
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2413)
>
> at org.apache.catalina.startup.Catalina.load(Catalina.java:531)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:552)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396)
>
> ------------------------------
>
> And I don't know why it's produced...
>
> Any help will be welcome
>
> <jl>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message