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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)