aspose file tools
The moose likes JBoss/WildFly and the fly likes Java Code not updating Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Reply Bookmark "Java Code not updating" Watch "Java Code not updating" New topic
Author

Java Code not updating

Vamsi bhujanga
Greenhorn

Joined: Jun 14, 2008
Posts: 16
Our application is deployed as a sar (inside sar - we have a war)and is deployed in JBoss4.0.3. Its a pure Java based application.
The issue is, when we make some changes in some java file and re-deploy it on JBoss,the new code is not reflecting at all. We have verified in all the ways -- clearing the temporary files inside JBoss,ensured that all the services are started properly... But still no result. We have verified the class files by copying from the server to our hard disk and decompiled it. It has the latest code....But,when running the application, these new changes are not refelecting

As such,the deployment is successful with no errors but latest updations are not updating..

Did anyone faced this kind of issue?Can somebody suggest me a solution or steps to be taken care?
Thanks in advance
Kiran
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8566

Looks like some caching issue.
I will move this to the JBoss forum for you where you might get better answers.


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3268

IIRC, Jboss does cache a running SAR/WAR, how are you redeploying your changes? Are you replacing the entire SAR?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Dominik Scholz
Greenhorn

Joined: Mar 30, 2009
Posts: 8
I just started too develop for Jboss but maybe I can help.
I run Jboss 5.0.0 in my Eclipse and to make sure the changes i made to Java classes are present, i completely clean all Deploys from the Server and deploy them again.
Sometimes i even have to do it twice to get my changes. (Could see it when i debugged into the Java Bean).
I will update to 5.0.1 soon because there are some deployment fixes for 5.0.0. (like the double deploy), but i don't know if this problem were already present in 4.0.3.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3268

4.0.3 doesn't have the best reputation for hot deployment no , even with 4.3 we tend to stop and start the container.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Java Code not updating
 
Similar Threads
New jars in jboss 4.2.3
JSF issue with JBoss
Applet Gui is not updating inside JSP pages
Unable to register MXBeans on MBeanServer in JBoss 4.2.3 (running on JDK 1.6)
Multiple application in JBoss