• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Eclipse - exporting files in WAR file

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have my Eclipse project working nicely in dev. (actually myEclipse)

But after deploying to my ISP via a WAR file it fails as it cant find the mail.java class.

Within Eclipse I copied mail.java into /scr. Within the deployed webapp is ends up in /WEB-INF/classes, which is not in the class path.

When I copy or move mail.java to /lib then the app runs.

I put the mail.jar into /lib within Eclipse but it was not copied at all when deployed via WAR file.

So what could be happening that they are not deployed? How come a file in /scr directory ends up in /class when you deploy by WAR?

Thanks.
 
Marshal
Posts: 76462
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don’t know. Sorry. I shall move this discussion to our IDEs forum, because that appears to be an IDE-related question.
 
Greenhorn
Posts: 4
jQuery Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you using ANT to create your WAR file?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you created a Dynamic Web Project, then you should place the mail.jar in WebContent/WEB-INF/lib
 
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic