facebook

Modified web.xml in MyEclipse is not updated in WAS 5.1

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    I modified and saved a web.xml file of one of my applications using MyEclipse and when I restarted the server that change was not reflected on the web.xml file in WAS. I needed to change it manually in order to make it work

    Can anyone help me about this?

    Thanks

    #270796

    Riyad Kalla
    Member

    What kind of deployment are you using?

    #270802

    First did a Packaged Archive deployement, installed the application on WAS and the did a Exploded archived mode.

    #270807

    Riyad Kalla
    Member

    Hmm doing the exploded should fix the problem. Try this:

    1) Confirm that your current deployment for the project is exploded and up to date.
    2) Open your web.xml file, and make a change, maybe add a simple comment to it. Save the file.
    3) Now go to your deployed directory, drill down into the deployed project dir under WEB-INF, and open your web.xml file with an editor like Notepad.
    4) Do you see the change you made (e.g. comment) in the web.xml file?

    #270862

    @support-rkalla wrote:

    Hmm doing the exploded should fix the problem. Try this:

    1) Confirm that your current deployment for the project is exploded and up to date.
    2) Open your web.xml file, and make a change, maybe add a simple comment to it. Save the file.
    3) Now go to your deployed directory, drill down into the deployed project dir under WEB-INF, and open your web.xml file with an editor like Notepad.
    4) Do you see the change you made (e.g. comment) in the web.xml file?

    Riyad,
    I reviewed all the steps above and added a comment but stil not seeing the change on the deployed directory

    #270866

    Riyad Kalla
    Member

    Strange. Can you open your log file (<workspace dir>\.metadata\.log) and look near the bottom for potential exceptions that are being thrown? Maybe MyEclipse cannot deploy the files for some reason.

    #270868

    There is no exception shown, only a hard shutdown msg

    #270871

    Riyad Kalla
    Member

    If you open the deployment tool from the toolbar and select your project from the dropdown, how many deployments are shown for it? Are any of them shown with a warning that they are out of date and need to be updated?

    #270874

    @support-rkalla wrote:

    If you open the deployment tool from the toolbar and select your project from the dropdown, how many deployments are shown for it? Are any of them shown with a warning that they are out of date and need to be updated?

    It shows only one deployment, the type is Exploded and the status is “Successfully deployed.”

    #270877

    Riyad Kalla
    Member

    Ok. And if you hit Redeploy manually and then go back to the deployed web.xml file, you suddenly see the web.xml file with the comment you added right?

    Sorry this is slow-going trouble shooting… incase you couldn’t tell this shouldn’t be happening, and AFAIKT everything is in order… so I’m confused as to what part is breaking.

    #270879

    @support-rkalla wrote:

    Ok. And if you hit Redeploy manually and then go back to the deployed web.xml file, you suddenly see the web.xml file with the comment you added right?

    Sorry this is slow-going trouble shooting… incase you couldnI hit Redeploy and go back to the deployed web.xml, the comment I added is not showing….
    Don t be sorry I m trying to figure this out myself too

    Thank you

    #270880

    Riyad Kalla
    Member

    Oh ok well we are making some headway then. If manually hitting redeploy isn’t even doing the job, then something fishy is going on.

    QQ, when I asked you to “drill down to the deployed directory” how did you do that? Some app servers will copy a deployment from the auto-deploy dir to some other dir before “deploying” it. So it’s possible that MyEclipse is actually deploying the app to the auto deploy area, but the app server isn’t taking the hint and copying anything from there.

    If you open the deployment dialog again, and select the deploy and hit Browser, that should jump you right to the directory that MyEclipse is deploying to. Dive down from there to the web.xml file and check it. Do you see your changes?

    If so, then the trick is we need to find out where WAS is *actually* deploying the project to, and then create a deployment overlaying *that* deployment in exploded form to trick it into loading our changes.

    #270885

    I think that s what is going on here. When I went to the deployed directory C:\…….\WebSphere\AppServer\installedApps\Pc-ralfonso\WLS_HEAD_EAR.ear\WLS_HEAD.war\WEB-INF and it SHOWS the web.xml with the comment but WAS uses a copy of the folder WEB-INF (WebSphere\AppServer\config\cells\Pc-ralfonso\applications\WLS_HEAD_EAR.ear\deployments\WLS_HEAD_EAR\WLS_HEAD.war\WEB-INF) that I guess is made when the package deployement occurs and never gets updated . This is the web.xml ‘s directory that I use in order to make the changes

    Hope I brought something interesting to your attention

    #270886

    Riyad Kalla
    Member

    An much improved WAS experience is on our TODO for 6.1. Things like auto-installing the apps for you, stuff like that. This definately goes on our TODO list.

    In the mean time, overlaying a “Custom Location” exploded deployment ontop of the “real” deployment directory I think should work… could you try that?

    #270889

    How can I do that? How can overlay those directories and match up correctly both web.xml?I

Viewing 15 posts - 1 through 15 (of 16 total)
Reply To: Modified web.xml in MyEclipse is not updated in WAS 5.1

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