tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Schweikle <...@vr-web.de>
Subject changing the default application
Date Wed, 19 Sep 2007 22:01:16 GMT
Hi!

How can I change the default application from the tomcat
"ROOT/index.jsp" page to an application installed in
"$CATALINA_HOME/Catalina/localhost/app.xml"?

I found the default application in "web.xml" and changed it from

    <servlet-mapping>
        <servlet-name>default</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

to

    <servlet-mapping>
        <servlet-name>default</servlet-name>
        <url-pattern>/tomcat</url-pattern>
    </servlet-mapping>

For the web application I defined (in
"$CATALINA_HOME/Cataline/localhost/app.xml"):

<Context
   path="/"
   docBase="/opt/app"
   debug="0"
   reloadable="false">
   <Logger
      className="org.apache.catalina.logger.FileLogger"
      prefix="mywebapp."
      suffix=".log"
      timestamp="true"/>
</Context>

but after restarting tomcat it seemd not to have any effect: calling
http://server:8080/tomcat did just not work and give back an error
404 - resource not available.

http://server:8080/ did work, but returned the tomcat default page.
My own webapp was not reachable at all.

Any idea what I am missing?

-- 
Thomas


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message