I'm starting to experiment with in-container unittesting (Cactus), and the Ant task I am using copies various .class files to the WEB-INF/classes folder. Typically for our product production mode is enabled, which I understand is an obstacle to this hot-replacement. I've been able to get Weblogic to start out of production mode (-Dweblogic.ProductionModeEnabled=false), but when I replace the server-side class files it seems to be executing the old still.
What other settings or configurations should I check?
I'll have to admit I'm fairly green on the whole application deployment structure and application server setup. I came into this job not doing any Java and have been going from small picture to big picture. If there's a good explanation that goes beyond simply stating "There are exploded deployments, and unexploded deployments. See you later." I'd be very keen on reading that before I waste anyone's time.
I think we have an exploded setup. The application's structure seems to be directory based, but all of our EJBs are in JAR files, not in a /my/package/folder/*.class file structure.The directory structure is like this:
OurApp.ear\[All of our main EJB .jar files, this is a folder, not a an actual .ear file. This may be a source of some of my confusion.]
OurApp.ear\APP-INF\[classes],[lib] folders with the libraries we all use in the app. The \classes part is not hot-replaceable.
OurApp.ear\OurApp.war[also a folder]\common\[All of our JSPs etc]
OurApp.ear\OurApp.war\WEB-INF\classes\[folder holding all of my cactus unit tests].
Yes it does look like you have an exploded setup. When you make changes to the java files, your IDE is responsible for picking up those changes, making a compilation and publishing the changes to the server.
Which IDE are you using and are you starting the server from the IDE ? The IDE (I use eclipse) should say something like ''publishing" on its server tab when you make the changes.
Joined: Feb 11, 2010
I'm using Eclipse Galileo. I don't start the server from the IDE, we typically have had a batch file that fires it up. Does starting it from Eclipse hook the local JDK I'm using to the running server's? We typically configure the server itself to run on the jrockit JVM. Are there Weblogic integration plugins that would be helpful here?