The context path, or simply path, is the logical path under which your application is deployed. The context path is part of the URL that is passed to the web browser. For example:
http://localhost:8080/path/ docBase is the physical path in the file system where your web application is located. I would instead try path="/PruebaJavier" (or perhaps just path="/") in your Context node. Then access your web application with http://pjkt:8080/PurebaJavier (or just http://pjkt:8080/ if you used path="/"). The JVM_Bind error indicates that something is already listening on port 8080 on your machine. Is Tomcat already running? -----Original Message----- From: Javier [mailto:[EMAIL PROTECTED] Sent: Sunday, November 02, 2003 14:28 To: Tomcat Users List 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
