Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

WEB.XML's <load-on-startup> does not run on Tomcat 4

Thread view: 
vunet.us@gmail.com - 18 Apr 2007 15:05 GMT
Hello,
My web.xml works fine on Tomcat 4. But when I added new servlet (see
code below between comments), it stopped working because of <load-on-
startup>1</load-on-startup>. However, Tomcat 5 runs my new web.xml
with these changes without any problems. So, there is something with
<load-on-startup> addition that causes error. Please, suggest. Thank
you.

<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<!-- Added Below -->
<servlet>
 <servlet-name>myServlet</servlet-name>
 <servlet-class>direct.myServlet</servlet-class>
 <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
 <servlet-name>myServlet</servlet-name>
 <url-pattern>/servlet/direct.myServlet</url-pattern>
</servlet-mapping>
<!-- Added Above -->
</web-app>
vunet.us@gmail.com - 18 Apr 2007 19:47 GMT
On Apr 18, 10:05 am, vunet...@gmail.com wrote:
> Hello,
> My web.xml works fine on Tomcat 4. But when I added new servlet (see
[quoted text clipped - 20 lines]
> <!-- Added Above -->
> </web-app>

I guess it is not the easiest thing to tell... huh.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.