File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes load on startup problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "load on startup problem" Watch "load on startup problem" New topic
Author

load on startup problem

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi,

I need to load my program when tomcat starts.For that i have given load on startup in web.xml for that program.But i am unable to open other applications using tomcat.

(ie)If i try to access http://ipaddress:8080/ ,I am unable to access that page because of load on startup given in web.xml

Thanks
Ravin Psinh
Greenhorn

Joined: Feb 04, 2008
Posts: 8

what is your entries in web.xml for that tag.....
as i am trying here its working fine. my entries in web.xml having many servlets for different application but its working fine....



<web-app>
<servlet>
<servlet-name>/hs</servlet-name>
<servlet-class>HelloServlet</servlet-class>
<load-on-startup>20</load-on-startup>
</servlet>
<servlet>
<servlet-name>/ls</servlet-name>
<servlet-class>LoginServlet</servlet-class>
</servlet>





<servlet-mapping>
<servlet-name>/hs</servlet-name>
<url-pattern>/jsp123/Hello</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>/ls</servlet-name>
<url-pattern>/jsp123/login</url-pattern>
</servlet-mapping>



</web-app>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: load on startup problem