For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 15 replies, 2 voices, and was last updated 18 years, 2 months ago by
Riyad Kalla.
-
AuthorPosts
-
robertoalfonsoMemberI 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
May 29, 2007 at 10:20 am #270796
Riyad KallaMemberWhat kind of deployment are you using?
May 29, 2007 at 10:31 am #270802
robertoalfonsoMemberFirst did a Packaged Archive deployement, installed the application on WAS and the did a Exploded archived mode.
May 29, 2007 at 10:59 am #270807
Riyad KallaMemberHmm 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?May 30, 2007 at 10:14 am #270862
robertoalfonsoMember@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 directoryMay 30, 2007 at 10:23 am #270866
Riyad KallaMemberStrange. 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.
May 30, 2007 at 10:33 am #270868
robertoalfonsoMemberThere is no exception shown, only a hard shutdown msg
May 30, 2007 at 11:33 am #270871
Riyad KallaMemberIf 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?
May 30, 2007 at 12:42 pm #270874
robertoalfonsoMember@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.”
May 30, 2007 at 1:19 pm #270877
Riyad KallaMemberOk. 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.
May 30, 2007 at 1:29 pm #270879
robertoalfonsoMember@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 tooThank you
May 30, 2007 at 1:32 pm #270880
Riyad KallaMemberOh 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.
May 30, 2007 at 1:57 pm #270885
robertoalfonsoMemberI 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
May 30, 2007 at 2:01 pm #270886
Riyad KallaMemberAn 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?
May 30, 2007 at 2:43 pm #270889
robertoalfonsoMemberHow can I do that? How can overlay those directories and match up correctly both web.xml?I
-
AuthorPosts