facebook

Need a linked web project

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #206608 Reply

    Hi –

    I am new to MyEclipse. I have an unusual situation. I need a deployed war file with two different sources, base and mywebproject . When deployed,the war would have contents of the following…

    war
    folder1_from_base
    folder2_from_base
    folder3_from_mywebproject
    folder3A_from_base
    folder4_from_mywebproject
    WEB-INF
    base1.tld
    mywebproject .tld
    lib
    base1.jar

    I want to differentiate from base and mystuff because base is read-only and cannot be modified. Mystuff can be changed and configured at will.

    At first, I thought Icould have two projects and use linked resources to add links into mywebproject ‘s webroot. I could not create the links with an error that parent of link must be a project.

    Next, I tried creating a webroot project. This project had links to base for all its folders. Then, I created a mywebproject with a linked webroot. That fails when I try to deploy my ear whose web app is mywebproject. None of the linked webroot stuff are deployed.

    Any help is greatly appreciated! thanks…
    Dorothy

    #206609 Reply

    Lost formatting for war file…

    war
    …folder1_from_base
    …folder2_from_base
    …folder3_from_mywebproject
    …folder3A_from_base
    …folder4_from_mywebproject
    …WEB-INF
    ……base1.tld
    ……mywebproject .tld
    ……lib
    ………base1.jar

    #206615 Reply

    Riyad Kalla
    Member

    Dorothy,
    What version of MyEclipse are you using because we did a lot of work in 2.7/3.7 to support the deployment of linked resources, and if that isn’t working correct we should fix that ASAP.

    Bravo on figuring out the linked resources though, that’s kind of tricky stuff and its good to see you tried a few combinations. Your last combination *seems* like it should work though. Let me know the version info and I’ll kick it back to the devs to see if we can help you out with the current MyEclipse release.

    #206620 Reply

    Hi –

    Thanks for the quick response. I guess I should have mentioned version.

    I am using Eclipse 3.0 M8 and MyEclipse 3.7.2.

    Here is some more information that might help. the webroot project is a simple project. It contains all the jsps which are showing errors. For the same jsps, mywebproject are fine.

    Thanks again…
    Dorothy

    #206622 Reply

    Riyad Kalla
    Member

    the webroot project is a simple project.

    Do you mean ‘simple’ that its small or Simple as in the Eclipse Project type that you selected to create it under New > Project?

    It contains all the jsps which are showing errors.

    Are the errors of the nature “Blah.jsp is not under the web root”? The JSP pages need to reside in or somewhere under your webroot (called WebRoot by default, and can be changed from Window > Preferences > MyEclipse > J2EE > Project Templates).

    #206665 Reply

    The webroot project is an Eclipse simple project. For the webroot project, I see JSP compile errors about ‘could not load JSP’. I fixed this problem by changing webroot to an Eclipse Java project and adding the required jars to the webroot/WEB-INF/lib directory instead of placing on the Java Build path for the project. Also, I changed the MyEclipse/WebProject preferences to ‘webroot’ (all lowercase).

    At this point, I almost have it working with the exception of linked resources withing webroot. The webroot project contains folders that are links for example webroot/admin is a link to a different location. The webroot project also contains “real” folders like webroot/portal. When mywebproject adds webroot as a link, I see mywebproject/webroot/portal folder but not the mywebproject/webroot/admin folder. Likewise when I deploy mywebproject within an ear, I do not see myear/mywebproject/portal but do see myear/mywebproject/admin folder.

    I think this may be related to having nested links but would like to confirm if it is my own mistake. Many thanks for the prompt responses and help!
    Dorothy

    #206672 Reply

    Riyad Kalla
    Member

    I think this may be related to having nested links but would like to confirm if it is my own mistake. Many thanks for the prompt responses and help!

    I think you hit it right on the head, I don’t know (or think) that we honor 2 levels of links… let me kick this back to let the guys know that people are trying to use the functionality this way to see if we can easily support it.

    Thanks for keeping us honest! 🙂

    #206676 Reply

    Okay, thanks for the info.

    Dorothy

    #206681 Reply

    Scott Anderson
    Participant

    Dorothy,

    I think we might be overloading the term ‘link’ here. When we say ‘link’, we mean Eclipse linked directories, which Eclipse limits to the top level of a project structure only, IIRC. If you’ve got links ‘two levels down’ you must be referring to file system links. Is that correct or am I missing something?

    #206684 Reply

    I am using Eclipse links. Here is what is not working for me.

    webroot
    …admin (Eclipse link)
    …portal

    mywebproject
    …webroot(Eclipse link to webroot above)
    ……portal
    ……(no admin folder)

    Dorothy

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Need a linked web project

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