943,796 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 3167
  • Java RSS
Nov 29th, 2007
0

eclipse configuration for application server

Expand Post »
my jsp and servlet are in Z: drive and i want to configure eclipse for application server plz tell me how to do it
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mrityunjay22 is offline Offline
19 posts
since Oct 2007
Nov 29th, 2007
0

Re: eclipse configuration for application server

Uuuhhmmm, by reading the documentation and doing what it says there, maybe?
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Nov 29th, 2007
0

Re: eclipse configuration for application server

Are you using WTP plugins with eclipse or simply eclipse. If in case you are using simply eclipse, then there is no way to configure your App Server with it. However, you can still compile your servlets in Eclipse and get it running on App server. This can be done parallely. All you need to do is following:

1) Create a new Java Project
The structure should be:
MyAppServerProj
|
WEB-INF
|
classes
2) Make sure that you have changed the default classes folder from <proj>/bin to <proj>/WEB-INF/classes when creating the Java Project.
3) In order to compile Servlets, you will require the servlet.jar file. You can find it in the lib directory of your server.
4) So in order to use it, Right click on Project and Click Properties in Eclipse. Then select java Build Path from the available window.
5) Click on Add External Jars button and browse through the Appserver lib directory to locate it. Click Ok.
6) Now your App Server requires information about your project. its pretty easy. I'm using Tomcat here and advice the beginners to use it. Go to the the conf directory of Tomcat. Here you will have to create an xml file MyAppServerProj.xml
7) The contents of file would be <Context path="/myproj" docBase="D:\MyAppServerProj" reloadable="true"/>
8) By making reloadable="true"., you can perform hot deployment.
10) Once you have compiled your code in eclipse, start your tomcat. And you are ready.
Reputation Points: 16
Solved Threads: 11
Junior Poster in Training
lookof2day is offline Offline
83 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Sokoban game help needed (java)
Next Thread in Java Forum Timeline: Help Creating GUI with buttons





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC