facebook

Referenced Web project classes not auto-deployed [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #218909 Reply

    I have a web application project (A MyEclipse Web Project type) that references 2 other projects – a core framework project (Java Project type), and a web framework project (A MyEclipse Web Project type).

    The classes from the Java project get deployed fine when I deploy my web app, but the classes from the referenced web project are not found. Everything looks ok in the workbench settings to do this – I have tried both ‘Smart’ and ‘jar’ settings with the same results, but different outcomes obviously.

    #218966 Reply

    Riyad Kalla
    Member

    Deployment of dependent web applications is not supported at this time as there are no rules definined HOW and WHERE the classes should be deployed, also what do you do with the JSPs/etc and the rest of the project?

    If you just need some JARs from that other web project, you can make them “External JARs” to the first web project and then they will get deployed, otherwise there isn’t a way to do this without a custom Ant script. If the code between these is common and needed by both, you might consider making it a JAR so the 2nd one can export it or you might consider making it another Java Project containing just the core common classes.

    #218985 Reply

    Great points – I would have zoomed into this level on my question had I known how well it would be answered :).

    I think that if we look at the feature ‘absolutely’, then yes, redeployment of the WebRoot/ etc. does not seeem to really fit does it (particularly web.xml..). However, I think that it could be at least supported like a regular Java project is – in a way that copies the .class files into the compilation target directory of the dependant project, or jar them up like it does with other projects. That would satisfy my needs.

    By the way, the basis of my question comes from trying to seperate my development into 2 logical parts – a framework portion (reusable portion) and then projects that all utilize it. The ‘issue’ as it were comes from assigning ‘web project’ properties to the framework which needs to be exported.

    My current workaround was simply to bring the struts/other jars into the framework project as a library so that the compilation, and thus the redeploy steps worked. I am working on this logic concurrently, so having a working debug feature was the intent here. Thus, came my pondering … ‘gee, it sure would be cool if a web project worked just like a java project’ 😉

    Cheers – maybe at least that subset will make it into myEclipse – great product!

    — Jeremy

    #218986 Reply

    Riyad Kalla
    Member

    Jeremy,
    There has been a lot of requests (and subsequently should make it into 3.8.3) the ability to deploy User Libraries… I wonder if you could define a user Library out of these resources for your 2nd web project and then tell the deployment tool to deploy it and that would give you the functionality you need… does this sound like a workable solution?

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Referenced Web project classes not auto-deployed [Closed]

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