facebook

WebProject with dependent JavaProject under Tomcat

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #249085 Reply

    mhnRecommind
    Member

    Hi,

    I have two projects, a WebProject and a common JavaProject.
    The WebProject has a reference to the JavaProject and everything is compiled fine.
    I adjusted also my deployment settings to “Merge dependent classes into the WEB-INF/classes” dir of my webproject.

    Now I don’t get the Webproject running under Tomcat without deploying the WAR with the included javaTest.jar.
    The classes of my common JavaProject are not found at runtime.

    Tomcats server.xml contains the following context entry for my WebProject:
    <Context path=”/c1″ reloadable=”true” docBase=”C:\workspace\WebTest\WebRoot” workDir=”C:\workspace\WebTest\work” />

    The .classpath file of the Webproject contains this entry:
    <classpathentry combineaccessrules=”false” exported=”true” kind=”src” path=”/JavaTest”/>

    What should I do now to get the WebProject with the JavaProject running under Tomcat
    without packaging jar files or war files ?

    I use Tomcat 5.5.12, Eclipse 3.1.2 and MyEclipse 4.1.1GA.
    Moreover I use the sysdeo tomcat plugin (com.sysdeo.eclipse.tomcat_3.1.0)
    Do you need more information about my setup?

    Thanks
    Michael

    #249156 Reply

    Riyad Kalla
    Member

    Michael,
    The reason for this not working is because you are pointing Tomcat directly at your project directory and not letting MyEclipse perform a “deployment” step which is when it would combine the two projects for you. I would suggest changing your docBase and workDir back to Tomcat’s defaults then using the deployment manager to send your project out to Tomcat in exploded form, that will keep the files synced real time for you so you don’t need to point at your project and give the deployment tool a chance to merge the classes like you setup in the deployment rules.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: WebProject with dependent JavaProject under Tomcat

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