Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

load on startup problem

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic