• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to patch application code into JBoss 5.1 server deployment

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I have sar, ear and war files deployed in JBoss 5.1 AS. After fixing some bug I want to give updated files to client in a patch.
For testing purpose of patch deployment using jboss.patch.url variable I updated one logger message, created ear file containing changed file and all unchanged files and put it into patch folder created under ...\server\jboss-5.1.0.GA directory.
I am starting server by calling run.bat with "-c -Djboss.patch.url=file:/D:/release/server/jboss-5.1.0.GA/patch" option.
After server started I check log, it shows old message, that is patch does not got deployed. I also tried with giving ear file name while running run.bat file("-c -Djboss.patch.url=file:/D:/release/server/jboss-5.1.0.GA/patch/app.ear") but no success.

Please can someone put light on what is incorrect.
I also have few queries -
1. What should be conatin of patch folder, always jar or we can put ear/sar file into it?
2. Is patch ear should contain only updated class files with package structure as or it can contain other files which are not changed?
3. Is there any other jboss variable which can block patch deploment - restricting of usage of jboss.patch.url variable?
4. What should be patch location?

On internet and in JBoss documentaion I did not got enough information about patching, if anyone has any reference about this please provide it to me.

I have put above question at following link also.
https://community.jboss.org/message/201387

Regards,
Sham
 
Sham Phadtale
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In server following log statement is getting print..

18:48:26,821 INFO [ServerImpl] Patch URL: null

Does thi mean serevr is not getting patch URLwhich I am providing using jboss.patch.url?
If so, what can be the reason behind this behaviour?
 
Sham Phadtale
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey, I am able to solve it..
I edited run.bat file and added patch path as below
set JAVA_OPTS=-Djboss.patch.url=file:\D:\jboss-5.1.0.GA\patch %JAVA_OPTS%

Now jboss loads updated classes.

But I am also getting following exception -

 
Sham Phadtale
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IlegalAccessError is resolved by patching whole package of changed class.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic