> I'm trying to call a jsp page when tomcat is started. I tried putting
> it into the web.xml file in the conf folder. it says it can't find the
> class. The jsp page is in the ROOT folder.
I got that to work, but I want it to run automatically when the tomcat
service is started. I read that if you put it in the ROOT dir and the
ROOT web.xml file it would work with the load-on-start parm. This is
saying call not found.
> This is the right floder list
>
[quoted text clipped - 17 lines]
> > it into the web.xml file in the conf folder. it says it can't find the
> > class. The jsp page is in the ROOT folder.
riccardonews@gmail.com - 22 Nov 2006 22:25 GMT
if you want to start your application with
index.jsp you put this code in your web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>My Application</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
the welcome page is index.jsp.
Jon.Trav@gmail.com ha scritto:
> I got that to work, but I want it to run automatically when the tomcat
> service is started. I read that if you put it in the ROOT dir and the
[quoted text clipped - 22 lines]
> > > it into the web.xml file in the conf folder. it says it can't find the
> > > class. The jsp page is in the ROOT folder.
Juha Laiho - 27 Nov 2006 21:57 GMT
"Jon.Trav@gmail.com" <Jon.Trav@gmail.com> said:
>I got that to work, but I want it to run automatically when the tomcat
>service is started. I read that if you put it in the ROOT dir and the
>ROOT web.xml file it would work with the load-on-start parm. This is
>saying call not found.
Hmm.. I think JSP's cannot be run as "init-on-startup" modules.
You need servlets for that. Which makes quite a lot of sense:
JSPs primarily output documents (primarily HTML) -- and where
would you output the document with no browser.

Signature
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)