| | |
eclipse configuration for application server
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Uuuhhmmm, by reading the documentation and doing what it says there, maybe?
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
•
•
Join Date: Aug 2007
Posts: 81
Reputation:
Solved Threads: 10
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.
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.
![]() |
Other Threads in the Java Forum
- Previous Thread: Sokoban game help needed (java)
- Next Thread: Help Creating GUI with buttons
| Thread Tools | Search this Thread |
-xlint android api applet application array arrays automation bi binary blackberry block bluetooth chat class classes client code compile compiler component database developmenthelp eclipse error event exception fractal freeze game gameprogramming givemetehcodez graphics gui health html ide image input integer j2me j2seprojects java javac javaprojects jetbrains jni jpanel jtable julia learningresources lego linux list login loop loops mac map method methods mobile netbeans newbie notdisplaying number online oracle page print problem program programming project qt recursion scanner screen server set singleton size sms sort sql string swing system template textfields threads time title tree tutorial-sample update variablebinding windows working xor






