You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Tom Kat <to...@yahoo.com> on 2000/03/14 21:11:44 UTC
The bin/work directory....
Hi all,
Thanks for the feedback about the configuration of
Apache and Tomcat. Its working now.
In the bin directory of Jakarta-tomcat/bin directory
there is a subdirectory called work. In that there are
several sub directories dynamically created.
What is this work directory. I deleted some
subdirectory and when i invoked some example JSP,
error message "File not found" is displayed.
Can I get information on why it happens?
Thanks
--- Gal Shachor <sh...@il.ibm.com> wrote:
>
>
> >
> > >>>#################### All jsp files will go to
> > tomcat >>>####################
> > >>>#ApJServMount default /root
> > >>>ApJServMount default C:/test/
> >
>
> Why did you comment the
> #ApJServMount default /root
> and placed ApJServMount default C:/test/ ?
>
> You should keep the ApJServMount default /root
>
> > >>>AddType test/jsp .jsp
> > >>>AddHandler jserv-servlet .jsp
> >
> > IN the above configuration what is
> "jserv-servlet".
> > Where can I find this handler?
> >
> Each apache module can export handlers, handlers are
> function that can
> serve a certain request (say, execute a servlet/CGI
> or return a page).
>
> mod_jserv is the one exporting a handler named
> "jserv-servlet".
>
> Look into tomcat.conf for a sample apache
> configuration.
>
> > When i try to invoke .jsp from Apache, it gives
> > "Internal Server Error"
> >
>
> And what happens when you try to invoke a servlet?
> So far this is
> probably due to the ApJServMount default C:/test/
> that you have.
>
> Gal Shachor
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-dev-help@jakarta.apache.org
>
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Re: The bin/work directory....
Posted by Shachor Gal <sh...@techunix.technion.ac.il>.
Before starting Tomcat set the environment variable TOMCAT_HOME
and to the root Tomcat directory (the one containing the bin
directory). This should fix the problem related with the work directory
created in bin. If setting TOMCAT_HOME does not fix that try to start
tomcat from TOMCAT_HOME.
As for the jsp problems, can you be more specific? Do you have these
problems also with tomcat stand alone or only with tomcat+Apache?
Gal Shachor
On Tue, 14 Mar 2000, Tom Kat wrote:
> Hi all,
>
> Thanks for the feedback about the configuration of
> Apache and Tomcat. Its working now.
>
> In the bin directory of Jakarta-tomcat/bin directory
> there is a subdirectory called work. In that there are
> several sub directories dynamically created.
>
> What is this work directory. I deleted some
> subdirectory and when i invoked some example JSP,
> error message "File not found" is displayed.
>
> Can I get information on why it happens?
>
> Thanks
>
>
> --- Gal Shachor <sh...@il.ibm.com> wrote:
> >
> >
> > >
> > > >>>#################### All jsp files will go to
> > > tomcat >>>####################
> > > >>>#ApJServMount default /root
> > > >>>ApJServMount default C:/test/
> > >
> >
> > Why did you comment the
> > #ApJServMount default /root
> > and placed ApJServMount default C:/test/ ?
> >
> > You should keep the ApJServMount default /root
> >
> > > >>>AddType test/jsp .jsp
> > > >>>AddHandler jserv-servlet .jsp
> > >
> > > IN the above configuration what is
> > "jserv-servlet".
> > > Where can I find this handler?
> > >
> > Each apache module can export handlers, handlers are
> > function that can
> > serve a certain request (say, execute a servlet/CGI
> > or return a page).
> >
> > mod_jserv is the one exporting a handler named
> > "jserv-servlet".
> >
> > Look into tomcat.conf for a sample apache
> > configuration.
> >
> > > When i try to invoke .jsp from Apache, it gives
> > > "Internal Server Error"
> > >
> >
> > And what happens when you try to invoke a servlet?
> > So far this is
> > probably due to the ApJServMount default C:/test/
> > that you have.
> >
> > Gal Shachor
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tomcat-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tomcat-dev-help@jakarta.apache.org
> >
> >
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
Re: The bin/work directory....
Posted by Shachor Gal <sh...@techunix.technion.ac.il>.
I may have been to fast to the keyboard this time (it is also late here,
but enough with the excuses)...
The work directory is a temporary workspace directory generated by Tomcat.
Tomcat uses it for jsp compilation and the like. Within work Tomcat
will create a directory per context so that files with the same name but
in different contexts will not get mixed.
If you are deleting the work directory while Tomcat is running you *will
get error messages when using JSP* because Tomcat will not be able to
compile
Hope that it is better,
Gal Shachor
On Tue, 14 Mar 2000, Tom Kat wrote:
> Hi all,
>
> Thanks for the feedback about the configuration of
> Apache and Tomcat. Its working now.
>
> In the bin directory of Jakarta-tomcat/bin directory
> there is a subdirectory called work. In that there are
> several sub directories dynamically created.
>
> What is this work directory. I deleted some
> subdirectory and when i invoked some example JSP,
> error message "File not found" is displayed.
>
> Can I get information on why it happens?
>
> Thanks
>
>
> --- Gal Shachor <sh...@il.ibm.com> wrote:
> >
> >
> > >
> > > >>>#################### All jsp files will go to
> > > tomcat >>>####################
> > > >>>#ApJServMount default /root
> > > >>>ApJServMount default C:/test/
> > >
> >
> > Why did you comment the
> > #ApJServMount default /root
> > and placed ApJServMount default C:/test/ ?
> >
> > You should keep the ApJServMount default /root
> >
> > > >>>AddType test/jsp .jsp
> > > >>>AddHandler jserv-servlet .jsp
> > >
> > > IN the above configuration what is
> > "jserv-servlet".
> > > Where can I find this handler?
> > >
> > Each apache module can export handlers, handlers are
> > function that can
> > serve a certain request (say, execute a servlet/CGI
> > or return a page).
> >
> > mod_jserv is the one exporting a handler named
> > "jserv-servlet".
> >
> > Look into tomcat.conf for a sample apache
> > configuration.
> >
> > > When i try to invoke .jsp from Apache, it gives
> > > "Internal Server Error"
> > >
> >
> > And what happens when you try to invoke a servlet?
> > So far this is
> > probably due to the ApJServMount default C:/test/
> > that you have.
> >
> > Gal Shachor
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > tomcat-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > tomcat-dev-help@jakarta.apache.org
> >
> >
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>