I want to know how I can make changes in my code and run it on server directly from my eclipse IDE in place of converting my project every time to war file and deploy it on server.
I don't want to see my changes reflecting only by converting it to war file and deploying it every time on server.. can i see them on the fly directly through my eclipse IDE as soon as make some changes..
Plz help me i don't know exactly what to search on google .So seeking "SO" help.
Thanks in advance.
PS: Sorry My bad!!! I should have given more information... I am working on Spring Hibernate based project ...which is having only java files
You can use the Eclipse-WTP Plugin to handle your Web-Projects (http://www.eclipse.org/webtools). With this plugin you can create "dynamic web projects" which can deployed on a specified (Tomcat) server.
If you use maven and your project is structured like a maven-webapp(webapp-archetype), you can also use the m2eclipse-plugin to import your maven-project and run it on an server.
Following up on sjr's answer, the wicket quickstart archetype contains such a main class. Here it is:
Start.java (HEAD)
There is nothing wicket-specific about it, it can be used to run any Java webapp project
Copy it to src/test/java and execute it as a main class
you will need the following dependencies in your pom:
<dependency>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all-server</artifactId>
<version>7.3.0.v20110203</version>
<scope>provided</scope>
</dependency>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With