The suggestion works. However, many of the log files are gone. There used to
be in the ${catalina.home}/logs folder files such as
catalina...log
admin...log
host-manager...log
etc
Now there is only
jakarta_service...log
stderr...log
stdout...log
I tried creating a folder log at the same level as public_html -- ie. c:\log --
but it did not work.
Incidentally, my log4j.properties specifies the log file as logs/MyFile.log,
and that file is created in the ${catalina.home} folder.
--- On Tue, 11/18/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Subject: RE: How do I configure server.xml for Tomcat to recognize my
> application directory?
> To: "Tomcat Users List" <[email protected]>
> Date: Tuesday, November 18, 2008, 11:11 AM
> Thanks to everyone. I will try out these suggestions
> tonight and write back if they do not work.
>
> In response to
>
> > What is in your webapp's META-INF/context.xml
> file? It
> > should not have either the path or the docBase
> attributes
> > set.
>
> the file contents are as follows (note: no attributes in
> the Context element)
>
> <Context>
> <Realm ...></Realm>
> <Resources .../></Resources>
> </Context>
>
>
>
> --- On Tue, 11/18/08, Caldarale, Charles R
> <[EMAIL PROTECTED]> wrote:
>
> > From: Caldarale, Charles R
> <[EMAIL PROTECTED]>
> > Subject: RE: How do I configure server.xml for Tomcat
> to recognize my application directory?
> > To: "Tomcat Users List"
> <[email protected]>
> > Date: Tuesday, November 18, 2008, 9:52 AM
> > > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > > Subject: How do I configure server.xml for Tomcat
> to
> > > recognize my application directory?
> > >
> > > The application is in
> > > C:\public_html
> >
> > You should put the application in a directory
> underneath
> > public_html, not in public_html. If you want it to be
> the
> > default webapp, make that directory name ROOT (case
> > sensitive, even on Windows).
> >
> > > The directory structure of the application is
> >
> > Move the files to:
> > C:\public_html\ROOT\index.html
> > C:\public_html\ROOT\WEB-INF\
> > C:\public_html\ROOT\WEB-INF\web.xml
> > C:\public_html\ROOT\META-INF
> >
> C:\public_html\ROOT\META-INF\context.xml
> >
> > > It seems the the problem might be the directory
> > structure,
> > > and appBase, and docBase.
> >
> > Correct; keep reading.
> >
> > > <Host name="localhost"
> > appBase="/public_html"
> > > unpackWARs="true"
> > autoDeploy="true"
> > > xmlValidation="false"
> > xmlNamespaceAware="false">
> >
> > The above is mostly o.k.; appBase specifies the
> directory
> > under which each webapp is deployed. However, I would
> make
> > it "C:/public_html", just in case you're
> in a
> > different drive letter when Tomcat is started.
> >
> > > <Context path=""
> > docBase="/public_html">
> > > </Context>
> >
> > This is bad. The docBase attribute must *never* be
> the
> > same as appBase, and you should not be placing
> > <Context> elements in server.xml these days.
> Just
> > remove the entire <Context> element, since
> it's
> > not needed.
> >
> > What is in your webapp's META-INF/context.xml
> file? It
> > should not have either the path or the docBase
> attributes
> > set.
> >
> > - Chuck
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR
> > OTHERWISE PROPRIETARY MATERIAL and is thus for use
> only by
> > the intended recipient. If you received this in error,
> > please contact the sender and delete the e-mail and
> its
> > attachments from all computers.
> >
> >
> ---------------------------------------------------------------------
> > To start a new topic, e-mail: [email protected]
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]