问题
I've got a pretty annoying problem with my JBoss AS 4.2.3 GA.
Until recently everything was running fine, but now the hot deploy feature is now longer working. And -- as always -- I don't know what I did to cause this behaviour.
My projects are built with Maven. I've cleaned every target directory, installed the projects and then deployed them to the server. So the sources in Eclipse and the deployed projects on the server should be identical.
Inside a method I've added a simple System.out.println("test");
statement and -- BANG! -- I get the following error:
(source: imagefruity.com)
Do you know a way out of my trouble?
回答1:
Ok, I did the following things now:
- Uninstall all JDKs
- Install only one JDK, namely JDK5 (cause that's the one we use in production)
- Clean, install and deploy every project anew
And now it seems to work (I'm keeping my fingers crossed).
I've used JDK 6 Update 20 for building in Eclipse and JDK 6 Update 7 in Maven. Maybe that has caused the problem.
回答2:
In my case "Hot code replace failed - Scheme change not implemented" was caused by IDE using another compiler than compiler used to build files deployed on J2EE server. You can binary compare class files in your J2EE archive with class files compiled by IDE in your workspace - they should be identical.
For details please check here.
来源:https://stackoverflow.com/questions/3005919/hot-deploy-not-longer-working-on-jboss-scheme-change-not-implemented