This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Hot-deploying/replacing classes in WEB-INF

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm starting to experiment with in-container unit testing (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.

Thanks!
- Joe
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to javaranch

Please tell us if your are packaging the application as a WAR or, as you suggested, exploding it.

If you are exploding it the changes should be picked up. If you are packaging it there are still automated ways through which the application can be redeployed - using ant tasks.
 
Joseph Hare
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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].

 
Deepak Bala
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joseph Hare
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Deepak Bala
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you need an integration plugin. Oracle provides them at the moment. Unless you start the server from the IDE, the IDE cannot perform the hot deploy.

Use this link to try the plugins. Its for WL 10.3

http://www.oracle.com/technology/software/products/ias/bea_main.html#devtools
 
Joseph Hare
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll hit that up in the morning. It's approaching my bed time. Thanks so much for your help!
 
Deepak Bala
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!