• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is the order of loading in the servlet spec?  RSS feed

 
Joshua White
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,
I have a servlet whose init method checks for a class "foo" that should be bound to the servlet context.
Class "foo" implements the ServletContextListener and puts itself into the servlet context on the contextInitialized event.
This works correctly in the sun one application server, but not in WLS 8.1. WLS loads the servlet first, then "foo" gets initialized.
Whats the deal?
 
Joshua White
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I should also mention that it works on Tomcat as well.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!