Web Application Setup [message #771083] |
Mon, 26 December 2011 03:38  |
M M Messages: 3 Registered: December 2011 |
Junior Member |
|
|
Hello, I started using WTP for Eclipse a few days ago, I developed my "Hello World" servlet, I run it inside the Eclipse environment and, untill then, everything worked fine.
Now I would like to test something a little bit more complex, I'm developing an application that uses the Apache Common Configurations library to read from an xml configuration file (it's just an example it could be anything else).
I found some problems and I didn't find any useful doc to solve them.
Inside the Java EE perspective, and starting from a Dynamic Web Project folder:
- Which is the proper location for the jars containing the Commons Configuration? That is: which is the proper location for libraries that are referenced in the code of the webapp?
- Which is the proper location for additional files used by the webapp (eg configuration files)?
Thanks in advance to everyone! 
[Updated on: Mon, 26 December 2011 03:44] Report message to a moderator
|
|
|
|
| Re: Web Application Setup [message #772287 is a reply to message #771551] |
Thu, 29 December 2011 07:32  |
M M Messages: 3 Registered: December 2011 |
Junior Member |
|
|
Hi Wolfgang, thank you very much!
I did exactly what you suggested and everything is working fine, most of all, each jar added to the WEB-INF\lib has been automatically included in Java Build Path > Libraries set, under the Web App Libraries category.
Here follows the procedure I followed (for anyone that may need the same help):
Inside the Project Exlporer pane (Java EE perspective) open the WebContent folder and right click on the WEB-INF\lib folder, then choose the Import... option and, when the import window appears, choose the File System type. Then select the jars you want to import, click the Finish button and the work is done.
Thanks again to Wolfgang
Bye
|
|
|
Powered by
FUDForum. Page generated in 0.07129 seconds