facebook

deploying existing project to tomcat

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

    jslate73
    Participant

    I’m trying out MyEclipse after having used regular old Eclipse for a while. I have a project that I’ve checked out in MyEclipse I’m trying to deploy it to Tomcat 5.5. from MyEclipse. I didn’t anticipate having to change much in the project as it works okay in regular Eclipse….

    So I figured out from the manual pages that I need to “Add MyEclipse Web Capabilities.” And I’ve added a server configuration for my existing Tomcat 5.5 install. I can then add the project to the server, but it doesn’t start. The problem seems to be that MyEclipse deleted everything in WebContent/WEB-INF/classes, which is where I have my log4j.propeties files and all my *.ibatis.xml files. I specified WebContent as the web root and the root directory of the project (i.e. /myproject) as the web context root.

    Is there a way I can set up my project to allow web capabilities while keeping these files where they are? If not, where should I be putting them?

    Also, I’m not sure I get the implications of deploying to MyEclipse Tomcat vs. my own tomcat installation. I think I’d rather use my own, we have some custom configs etc. Is there something I don’t get with that setup?

    Thank you,
    Jonathan

    #286326 Reply

    Loyal Water
    Member

    The problem seems to be that MyEclipse deleted everything in WebContent/WEB-INF/classes, which is where I have my log4j.propeties files and all my *.ibatis.xml files.

    You can go to Windows > Prefs > Java > Compiler > Building > Output Folder and uncheck “scrub output folders when cleaning projects”.

    The properties file needs to go iin the root of your /src directory, it will be built (copied) into the /classes dir for you.

    Also, I’m not sure I get the implications of deploying to MyEclipse Tomcat vs. my own tomcat installation. I think I’d rather use my own, we have some custom configs etc. Is there something I don’t get with that setup?

    MyEclipse Tomcat has the basic abilities to help you you run/test your projects with MyEclipse without configuring tomcat. You should configure you own server and work against it.

    #286384 Reply

    jslate73
    Participant

    That helped.

    #286419 Reply

    Loyal Water
    Member

    Glad it helped.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: deploying existing project to tomcat

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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