Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

How to configure Tomcat for deploying WebApp in different location than default(webapps) ?

0

Category: ,

I was looking for customizing the web application which i need to download from SVN and customise it using eclipse ,straight forward way is to copy the app to TOMCAT_DIR\webapps and than open it using the eclipse and set the build path out to the classes folder of webapp but that will be outside my SVN folder/Eclipse work space which is separate space for source code and it is backed up on daily basis to keep the source code safe.

Following are the steps to configure tomcat for webapp deployment to different location than TOMCAT_DIR\webapps location.

1- Create an xml with the webapp name in TOMCAT_DIR\conf\catalina\webappname.xml

XML file looks like this

For Windows

<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="C:\MyPrivateSVN\EclipseWorkSpace\webappname">
</Context>

 

For Linux

<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="/export/home/MyPrivateSVN/EclipseWorkSpace/webappname">
</Context>

Note- This directory should have execute permission for user whish is being used to run TOMCAT .

Happy coding.

How to configure Eclipse/Tomcat for WDK development?

0

Category: , , ,

Following are the steps to configure Tomcat with the Eclipse for WDK customisation and development.

1- Install the Tomcat if you have not installed it- Download URL -http://tomcat.apache.org/download-60.cgi

2-Install the Eclipse Download URL -http://www.eclipse.org/downloads/

3- Go to Windows –>Preferences in Eclipse –Click oimagen Server Node –>Click on RunTime Environments

4- Click on Add button on right side on above dialog box and choose your tomcat version, in my case it is 5.5 and click next

image

5-  Browse to the Tomcat installation folder .

 

image

6- Click Finish- Than –OK

7- Go to Windows menu->Open perspective –click on Web as shown in below screen shot

image

8-Now you will see the Server tab along with console –as shown in the screen shot

image

9-Right click on the tab and click on New –Add Server  and specify your server and click finish.

 

image

10-Now change server location and deploy path-Deploy path is the path of webapps folder of Tomcat where you all webapps are deployed.

11- You are ready to use Tomcat in Eclipse to do any WDK based app customization.

 

Happy Coding.