facebook

Customizing Deployment to Tomcat

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #266862 Reply

    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.

    #266992 Reply

    Riyad Kalla
    Member

    MyEclipse isn’t going to help you create a custom deployment like this so you will need to keep doing the manual copy process, but I would encourage you to automate it atleast with an ANT script or something similar if you have to keep it like this.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Customizing Deployment to Tomcat

You must be logged in to post in the forum log in