Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hot deployment

 
robbie keane
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By replacing ear in the /deploy directory, i can see in the console that the scanner has read the change but when i see the changes on the browser, they are not reflected. If it's a simple war, then changes are reflected instantly but when this war inside an ear (and nothing else), i can't see the updated file.
If i remove it from
C:\jboss-4.0.3SP1\ server\default\work\jboss.web\localhost
and then replace this ear and then restart server, the changes are reflected.
Please help. Thanks in advance

[ February 23, 2006: Message edited by: robbie keane ]
[ February 23, 2006: Message edited by: robbie keane ]
 
Heonkoo Lee
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try updating the application.xml in your .ear/META-INF directory. It should redeploy your ear.

Regards,
 
robbie keane
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But why should i be required to change the application.xml when there is no change in the application or module name. I'm still facing the same problem.
I haven't changed any of the jboss-service.xml etc files
 
Mat DeLong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EAR won't be redeployed until the application.xml file has been 'updated'... this means nothing more than you change the last modified date on the file. I am no expert, but I'm assuming this is to prevent unnecessary redeployment of an EAR.
 
graham king
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by robbie keane:
but when i see the changes on the browser, they are not reflected.


robbie,

lots a times it won't read simple jsp changes. not sure why, but, i found that if you navigate to the default/tmp/deploy/yourapp/yourwar/wherever directory, open the file in question, check for your changes and if there then just add a blank space somewheres and jboss then reads the file. it helps alot especially when dealing with simple html mistakes.
[ June 22, 2006: Message edited by: graham king ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic