Deploy "exploded" folder to Tomcat in Eclipse - eclipse

I just installed Eclipse for Java EE developers, Created a New Project by checking out files through SVN from a repository.
I was able to successfully generate an "exploded" web app folder through an ANT build.
How do I deploy this exploded folder (not .war file) to Tomcat? Any configuration that needs to be done?
Thanks.

Just make an ant target that copies the folder directly into the deploy folder of tomcat, usually $TOMCAT_HOME/webapps. Tomcat should then deploy the app in it's container.

Related

Difference between Tomcat war file and eclipse war file

What is the difference and similarity between war file which we are creating in eclipse and which we are creating in tomcat folder ?
war files are not generated by the tomcat. When web project build, war files are generated and it can be automatically deploy to the configured tomcat by in the eclipse.

Deploy helloworld to wildfly using eclipse

I want to deploy my helloworld project to my wildfly (former jboss) application server.
I can use maven mvn install wildfly:deploy and it will deploy the app.
But when I want to use eclipse to run on Server it does nothing.
I don't get a console output or anything which looks like building and deploying.
I added the server runtime to the project and also added the wildfly server.
Why is Eclipse not deploying?
This works for me: do a mvn install in order to build the war and have it at the target folder. Then right-click on wildfly-server. You will see an add-remove option. Click on it, select your project from the list and then add your project to the server. Click finish. If the server is running the project should be deployed.
Another approach would be to simply copy the war from your target directory and place it in the standalone/deployments folder of your wildfly installation.
Make sure that you have stopped the server before copying the war. After you have copied the war to the deployments folder, start he server.
Your application should be deployed successfully.

How to Create EAR file in RAD 7.5

I have checked out a dynamic web project from a CVS repository. But, there was no EAR file to check in. Now how can I create an EAR file for the project to deploy in WAS 6?
Also can I run my project in RAD without creating an .ear file? I am a newbie to Java EE projects.
In order to be able to export an EAR, you can add a new Enterprise Application project ( New > Enterprise Application project) and select your Web project as a Java EE module dependency.
This way you can export an EAR file that will contain a WAR file built from your Web project.
If you run the wizard for creating a new enterprise application (File->New), one of the options is to add an existing web project in your workspace into the application as you create it. You can then export the enterprise application as an EAR file ready to deploy into WebSphere Application Server or, if you have the test environment set up, you can just drag-and-drop it onto the server in the Servers view. To test your web application, right-click it and choose Run->Run on Server.
Try importing as project instead of EAR files

Deploying GWT app to tomcat in eclipse

I want to use tomcat server in development mode with GWT. When I use embedded Jetty it deploys application to the current directory(where my war folder is located). So it generates all the files there. How can I configure eclipse to use tomcat server and all the deployment stuff to be copied to tomcat webapps directory. I have tried to use -noserver option in Run conigurations, but it doesn't copy any resource from war directory to server deployment directory.
Can I use tomcat server in such manner?
P.S. i want to solve this problem withou ant or maven
Using my own server in development mode instead of GWT's built-in Jetty instance
You will need to copy the contents of the WAR folder over, but only once.
Have you looked at Eclipse WTP? It allows deploying to a server right from within Eclipse.
For a GWT project, you'd then, in addition, follow that recipe: http://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_ee

Where does eclipse publish(disk location) the web project?

When I run my web project in Eclipse, it publish the compiled class and html and jsp, etc.. to the webapps tomcat directory. But I couldn't find those files in the webapps directory of the tomcat that is set in eclipse configuration (CATALINA_HOME).
maybe it was hidden... umm no.. there aren't hidden files in the tomcat/webapps directory...
Anyone know where Eclipse copy my web project or how does eclipse to run my web projects??
Web projects in Eclipse will be published to
[workspace]/.metadata/.plugins/org.eclipse.wst.server.core/tmp[X]/wtpwebapps/
You can find the exact target in the Run Configuration of the Server.