Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web.xml and class loader

 
Bill Goldsworthy
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to load a class when Tomcat starts up:

my web.xml:



The package and everything is OK I think because it was used elsewhere from the same location. It's being shared across webapps now and needs to be initialized beforehand. I'm getting this error but I receive text output in the console from the Foo class which is confusing to me.



Any advice?

Thanks
Bill
 
Bill Goldsworthy
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, forgot to post the simple servlet:



Thanks!
Bill
 
Bill Goldsworthy
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Figured out the problem after reviewing the difference between the shared/
folder and the common/ folder.

After moving the class file for the servlet to common/ the issues were resolved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic