tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tang" <>
Subject Re: tomcat web application manager question
Date Fri, 25 Jul 2003 02:30:36 GMT
Q1. Format of war file is same as jar file. So you can use jar to pack web
application into war. For example, you want to pack examples to war, change
to webapps/examples directory, enter 'jar cf examples.war *', it is done.

Q2. JSP only can be run at J2EE Web Container, like Tomcat, iPlanet,
WebSphere. Apache and IIS isn't J2EE compatible, so it doesn't work.

Q3. I havn't used App Manager of Tomcat. You can create context by editing
%tomcat_home%/conf/server.xml file. Below is content of my server.xml, it is
simple enough, hope it will help you. (I'm using Tomcat-4.1.24) Suppose your
html/jsp files were placed in webapps/myapp directory.

<Server port="7100" shutdown="SHUTDOWN" debug="0">
  <Service name="Tomcat-Standalone">
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8080" minProcessors="5" maxProcessors="75"
               acceptCount="100" debug="0"/>

    <Engine defaultHost="localhost" name="Standalone" debug="0">
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"

      <Realm className="org.apache.catalina.realm.MemoryRealm" />

      <Host name="localhost" debug="0" appBase="webapps" liveDeploy="false"
            deployXML="false" autoDeploy="false">
        <Logger className="org.apache.catalina.logger.FileLogger"
                directory="logs" prefix="localhost_log." suffix=".txt"
        <Context path="/myapp" docBase="myapp" reloadable="true" debug="4">
          <Logger className="org.apache.catalina.logger.FileLogger"
                  prefix="myapp_log." suffix=".txt" timestampe="true"/>
          <Logger className="org.apache.catalina.logger.SystemOutLogger"/>


----- Original Message -----
From: "kitty winslet" <>
To: "Tomcat Users List" <>
Sent: Wednesday, July 23, 2003 8:50 PM
Subject: tomcat web application manager question

> Hi.. I followed the book and wrote a simple index.html and hello.jsp and
saved in my W2K tomcat server, path =
C:\Tomcat\Tomcat-4-1-18\webapps\examples\ It works.  After that I was asked
to create hello.war file with this 2 files
> Q1)May I know why I need to create war file?
> Q2)Will JSP page works in pure apache or IIS server ?
> After that I decided to create index.html and hello.jsp file to a
different directory C:\Tomcat\Tomcat-4-1-18\webapps\hello\  But ....\hello
is not in the context path, that's why I go to
http://server:port/hello/index.html, I got 404.  So I need to specify the
context path in the Tomcat Web Application Manager???
> In Web Application Manager, there a new entry to fill for new application
1)PATH 2)Config URL 3)WAR URL
> I create a context.xml with the following content and save to hello
> <context path="/hello" docBase="C:\Tomcat\Tomcat-4-1-18\webapps\hello"
debug="0" reloadable="true" crossContext="true"> </context>
> and fill in the 3 entries with the following and click install
> PATH = /hello
> Config URL= file:/C:\Tomcat\Tomcat-4-1-18\webapps\hello\context.xml
> WAR URL= file:/C:\Tomcat\Tomcat-4-1-18\webapps\hello\hello.war
> It give me the following, it seems perfect,
> OK - Installed application from context file
the list of application installed and WHEN I GO TO
http://server:port/hello/index.html it is still 404????
> ---------------------------------
> Yahoo! Mobile
> - Check & compose your email via SMS on your Telstra or Vodafone mobile.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message