• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding jar file in web application

 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not sure this is the right fourm for the question

the problem is i am having a web application and some helper classes and servlet class files what i did is made the jar of all the class file and placed them in the WEB-INF/lib/ folder the application picks up the servlet files but shows error class not found in case of helper classes while is i place the exploded package structure in classes folder everything works fine.
 
Guido Sautter
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're generating the jar file form eclipse IDE, you might want to check the jardesc file to make sure your helper classes get exported. In addition, you can open your jar with WinZip and check what's really in it ... otherwise, no idea.
 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no problem their it is having all the class files...
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your classes get called from the servlet? Then are there import statements correctly, and is final JAR file contain the package structure correctly?
 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya servlet is not giving any error only when i am returning to jsp them the error is thrown of DTO

BUt is imports where wrong then it would have been the same case for classes folder also...

but still for confirmation they are alright thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic