This is my dev environment:
Java 6 ( Using Java 5 Compiler Compatibility )
Eclipse 3.2.2
MyEclipse 5.1.0
This is my Web environment:
Apache HTTP 2.3
Tomcat 5.5
In this post, “Apache” refers to the Apache HTTP server, and “Tomcat” refers to the Tomcat server.
I want to set up a deployment so that:
1) All java code pertaining ONLY to this app goes into a JAR file into the WEB-INF\lib directory. Currently, it is deploying to WEB-INF\classes in exploded form. A WAR will not work since my static stuff goes to Apache.
2) All Static stuff… HTML, JavaScript, CSS, Images… etc… go to my Apache Server, in this case, htdocs\AppDir
A super-duper plus would be to have dependent project jars that are shared among all apps (taglibs, jars, etc.) deployed to the Tomcat shared\lib… just as it should be for Tomcat. Currently, I am manually deploying those as well.
I can’t figure out how to do this. I am currently manually copying stuff to my dev servers.
2nd problem that getting the above to work may resolve. Since I am having to manually deploy, I am now having a problem that, when I build a Jar Packager… it does not package the class files… only the manifest. Even though I have all the class files selected from the WEB-INF/classes folder. This is a show-stopper at the moment.
This project did not originate as a Web Project. That is, I was just manually doing deployments, and ported this by adding Web Project capabilities. If I use to the tools, as set, to deploy… it seems to do it…. but it does not work for me, since I simply want a JAR file… not an exploded deployment.