facebook

Problem deploying to Weblogic8.1

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

    sheenmicro
    Member

    Hi,
    I’ve just inherited an Eclipse Project which I had successfully set up in MyEclipse. The project had been using an ant build, however I had got it building and deploying in MyEclipse. However, it wasn’t being built correctly, eg all the class files weren’t getting deployed because I’d missed the fact that MyEclipse had created it’s own WEB-INF in the project root as opposed to using the webroot I had specified. I had changed .mymetadata to:-

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <project-module
    type=”WEB”
    name=”project-web-application”
    id=”myeclipse.1149517628281″
    context-root=”/project”
    j2ee-spec=”1.4″
    archive=”project.war”>
    <attributes>
    <attribute name=”webrootdir” value=”<web-src>” />
    </attributes>
    </project-module>

    When I changed the <attribute name=”webrootdir” value=”/web-src” /> The class files ended up in the correct directory,
    ie project-web-application/web-src/WEB-INF/classes . However, when I try to deploy I get an error message
    :
    Deployment is out of date due to changes in the underlying project contents. You’ll need to manually redeploy to update the deployed archive

    Despite ‘cleaning’ the project several times in desperation and undeployoing the web-app manually I still get the same message. I can still rebuilld and deploy OK using the ant build, and I have used the Weblogic console to undeploy before trying to redeploy using the MyEclipse build. How do I clear the ‘glitch’ so that I can build and deploy using MyEclipse ?

    I’m using Eclipse 3.1.2 with MyEclipse 4.1.1 GA

    #253225 Reply

    Riyad Kalla
    Member

    1) Be sure that the app server is not running when you deploy to it
    2) Right click on your project root and do a “Refresh”
    3) Clean the project
    4) Recreate the deployment

    The key is #2, if your ant script is creating resources in your project, Eclipse freaks out when the filesystem contents come out of sync with the contents it actually sees. You can turn on auto refresh under Window > Prefs > General > Workspace

    #253228 Reply

    sheenmicro
    Member

    @support-rkalla wrote:

    1) Be sure that the app server is not running when you deploy to it
    2) Right click on your project root and do a “Refresh”
    3) Clean the project
    4) Recreate the deployment

    The key is #2, if your ant script is creating resources in your project, Eclipse freaks out when the filesystem contents come out of sync with the contents it actually sees. You can turn on auto refresh under Window > Prefs > General > Workspace

    Thanks. What is the correct format for <attribute name=”webrootdir” value=”<web-src>” /> ? The Projects I already have use <attribute name=”webrootdir” value=”/WebRoot” /> but examples on these boards seem to indicate that if you change it then you enclose the directory name in < > tags and leave off the leading /

    #253229 Reply

    Riyad Kalla
    Member

    Thanks. What is the correct format for <attribute name=”webrootdir” value=”<web-src>” /> ? The Projects I already have use <attribute name=”webrootdir” value=”/WebRoot” /> but examples on these boards seem to indicate that if you change it then you enclose the directory name in < > tags and leave off the leading /

    I thought that was a typo, I have no idea where you say the HTML control code suggestions but it was likely a browser bug than a suggestion. The value needs to be a path relative to the root of your project, so something like /WebRoot, or /web or /www:

    
    <attribute name="webrootdir" value="/whateverIwant" />
    

    Please point out the threads that you read where you got the tip to use HTML control codes, I’ll go edit them and fix them.

    #253231 Reply

    sheenmicro
    Member

    tch 🙂
    http://myeclipseide.com/PNphpBB2+file-viewtopic-t-10639-highlight-webroot+folder.html – this is the only one I can find now, although I’m sure I’ve seen it more than once

    #253232 Reply

    Riyad Kalla
    Member

    Very strange… anyway thanks for pointing that out.

    #283968 Reply

    chittamta
    Member

    This message has not been recovered.

    #283969 Reply

    chittamta
    Member

    This message has not been recovered.

    #283973 Reply

    Loyal Water
    Member

    This message has not been recovered.

    #284207 Reply

    chittamta
    Member

    This message has not been recovered.

    #284208 Reply

    chittamta
    Member

    This message has not been recovered.

    #284220 Reply

    Loyal Water
    Member

    This message has not been recovered.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: Problem deploying to Weblogic8.1

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