facebook

Deployment with complex links isn’t working…

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #197190 Reply

    drakmir
    Member

    So far, I’ve been impressed by the MyElipse plug-in. However, I tried to use it to deploy to tomcat 5.0 and I’m having some difficulty.

    Basically, it won’t deploy. I got it to do it once, but then nothing…

    I’ve removed/added deployments all over the place, to no avail.

    I’m at my wits end here. 🙂

    Here is the directory structure………..saved in CVS:

    
    root
       \eclipse
           \proj1
               .project
               .classpath
           \webproject
               .project
               .classpath
               .mymetadata
        \proj1
            \source
                \java
        \website
            \source
                \java
                \webroot
                   \taglibs
                       mytags.tld  -- USED INSTEAD OF THE TAGS DIR IN WEB-INF
                    \WEB-INF
                    \META-INF
                        MANIFEST.MF
                    \lib
                        *.jar
                    \tags
                        *.tag         -- NOT USED since you don't support JSP 2.0 yet
                    *.jsp
    

    Everything compiles fine.

    The “proj1” dirs are just there for illustration. They have no releveance to the website in question. But there are many projects inside the one module. (They are all inter-related, but the website isn’t reliant on the others)

    The dir “\root\website\source” is LINKED to the project as “source”.

    The only source dir I have specified is “source/java”. The output dir is “source/webroot/WEB-INF/classes” (not in CVS).

    I have my deployment set to Tomcat 5.0

    The one time this worked, it was fine. 😉 I made one change to a file and then it didn’t re-deploy it. Since then I’ve done a mixture of deleting the dir under tomcat, hitting “remove” in the deployment dialog, adding the deployment again, etc.

    Nothing gets my files to the tomcat dir again.

    I also tried to do a packaged deployment. The first time (again) it made the WAR. But the WARs structure was incorrect. It included my source directories, etc.

    After that first time, it refuses to build WAR files now too.

    There are no log messages in .log that I can see. (The only ones were about a missing META-INF/mainfiest.mf file, which I fixed and resources in CVS/… didn’t match with repository which I fixed with an exclusion filter **/CVS/*)

    Any ideas?

    I’m ready to buy MyEclipse if this is resolved.

    Thanks,

    Alan Wood

    #197191 Reply

    Scott Anderson
    Participant

    Alan,

    Would you check one setting for me. See what Window > Preferences > Workbench > Perform build on resource modification is set to. It needs to be checked for the deployer to function properly since it relies on getting resource mod events. If it’s not set, check and deployment should start working again.

    –Scott
    MyEclipse Support

    #197200 Reply

    drakmir
    Member

    That property is set “on”.

    Alan

    #197203 Reply

    drakmir
    Member

    For futher information…

    I just built a new project using your default settings.

    I then deleted “Java Source” and “Web Root”

    I then linked “Java Source” to \root\website\source\java
    and “Web Root” to \root\website\source\webroot

    Then I modified the Build Dirs to include the “Java Source” dir again (since deleting it removed it from the source dirs), and added the exclusion filter “**/CVS/*”

    Double checked that the My eclipse settings were okay (they were)

    Added the Tomcat 5.0 deployment setting

    Looked in the webapps dir…

    Created the directory with no contents

    Rebuit the project, and looked in the webapps dir again…

    Created the directory with no contents

    No log messages, nothing. 🙁

    Removed the deployment settings

    Set them up again, using “packaged”…

    And then finally got a log message:

    !ENTRY com.genuitec.eclipse.ast.deploy.core 1 1 Jul 27, 2003 18:25:54.859
    !MESSAGE Build Exception
    !STACK 0
    Manifest file: D:\Eclipse\workspace\Test\Web Root\META-INF\MANIFEST.MF does not exist.
    at org.apache.tools.ant.taskdefs.Jar.setManifest(Jar.java:218)
    at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.privExportWebProject(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.exportWebProject(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentPackager.exportWebProject(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.WebDeployment.deployAsPackageArchive(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizard$1.run(Unknown Source)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)

    So, here’s the problem with packaged mode anyway…

    Manifest file: D:\Eclipse\workspace\Test\Web Root\META-INF\MANIFEST.MF does not exist.

    D:\Eclipse\workspace\Test is where my project is located
    However, my “Web Root” dir is NOT located there…

    In my case, that is located at
    D:\programming\cvs\g4e\website\source\webroot

    and LINKED to “Web Root”

    Doesn’t appear that your plugin is traversing links correctly….Not sure if this is also causing my other deployment issues…

    Went and created that folder where your plugin expects it and made the MANIFEST.MF file. Still didn’t work, but no log messages anymore…

    Here’s to hoping you can solve this!

    Alan

    #197204 Reply

    Scott Anderson
    Participant

    Alan,

    We’ll use your example to set up a project and verify support for links. I’ve entered this case into our internal tracking system for further investigation. Thanks for reporting it.

    –Scott
    MyEclipse Support

    #197205 Reply

    drakmir
    Member

    Okay, small correction:

    I removed and added the “packaged” mode again…and even though the file actually exists now, I still get this message:

    !ENTRY com.genuitec.eclipse.ast.deploy.core 1 1 Jul 27, 2003 18:31:48.703
    !MESSAGE Build Exception
    !STACK 0
    Manifest file: D:\Eclipse\workspace\Test\Web Root\META-INF\MANIFEST.MF does not exist.
    at org.apache.tools.ant.taskdefs.Jar.setManifest(Jar.java:218)
    at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.privExportWebProject(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.exportWebProject(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentPackager.exportWebProject(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.WebDeployment.deployAsPackageArchive(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizard$1.run(Unknown Source)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)

    Alan

    #197206 Reply

    drakmir
    Member

    Not a problem. I’m glad to help make the product better. 🙂

    So far all other parts of it have worked flawlessly. 🙂

    Alan

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Deployment with complex links isn’t working…

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