Why spring boot generates jar or war file with .original extension?

The answer is that you are using repackage goal in your spring-boot-maven-plugin. So, What it does? Maven first builds your project and packages your classes and resources into a WAR (${artifactId}.war) file. Then, repackaging happens. In this goal, all the dependencies mentioned in the pom.xml are packaged inside a new WAR (${artifactId}.war) and the previously … Read more

How to deploy war file to tomcat using command prompt?

The earlier answers on this page are correct that you can copy/move the WAR file into place and restart tomcat, but they omit to mention something: you must remove the previously exploded assets (from the previously deployed WAR file) if any are present. # My tomcat webapps are found at /var/lib/tomcat6/webapps # The application I … Read more

Unable to find a javac compiler

All your ant stuff will work fine except the javac task which needs the tools.jar, located in the /lib directory from the JDK, JRE is not sufficient in that case. Therefore the hint from ant : “Unable to find a javac compiler;…” When working with Eclipse the default setting points to your JRE installation. So, … Read more

deploying multiple applications to Tomcat

If you want Tomcat to listen to multiple ports, you need to setup a connector for each port. To get each port mapped to a different application, you need need to wrap each connector in a service and create a host with it’s own appBase. Example of service definition in server.xml: <Service name=”foo”> <Connector port=”80″ … Read more

Jetty Run War Using only command line

Use the jetty runner. java -jar jetty-runner.jar my.war With Maven, you can install by adding to your pom.xml: <build> … <plugins> … <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.3</version> <executions> <execution> <phase>package</phase> <goals><goal>copy</goal></goals> <configuration> <artifactItems> <artifactItem> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-runner</artifactId> <version>7.5.4.v20111024</version> <destFileName>jetty-runner.jar</destFileName> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> </plugins> </build> Run: mvn package And use as: java -jar target/dependency/jetty-runner.jar target/*.war … Read more

How To Integrate Clojure Web Applications in Apache

I use a combination of the following to make this fairly painless: Cake (incl. the deploy command) A Cake template for webprojects developed by Lau Jensen. Vagrant (Ruby VM(Virtualbox) management tool, which relies on Chef or Puppet) VPS (from Slicehost) The key part is the webdev template that Lau made. The webdev folder should be … Read more