Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

update and redeploy application  RSS feed

 
Amy Zeng
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, there,
my project has two servlets and one bean, I can not update and redeploy my deployed project after i recompiled the source code.
Every time, I clicked 'Update and redeploy application',but nothing changed in output.
Can anybody help me to figure it out?
Thanks.
Amy
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using the Reference implementation provided by Sun in the download for J2SDKEE1.2.1, then this function (among others!) is broken.

For JARS: What you need to do is Undeploy the application, and then click Update and Redploy. Sometimes even that doesn't work. In which case you must remove the classes from the JAR (under the General tab of the JAR, select the files, click Delete) and re-add them, and then click Update and Redeploy.

For WARS: Not as broken! Update & Redeploy seems to work about 95% of the time. If it doesn't, then doing the same as above seems to work.

Another gotcha: Some of the textboxes in the deploytool don't always hold their values. I spent 4 hours figuring this out one day. I'd type in the JNDI information (jdbc/Cloudscape), and click Update & Redploy, and my app would crash. And so I'd redo a whole bunch of stuff... until I looked down and saw JNDI was empty. A variation on this theme: The textbox is not empty, but if you look at the XML deployment descriptor... the tag that the textbox is supposed to fill in, is empty. If it starts doing this, I shut everything down (including my computer) and restart. It can take up to 4 attempts to enter a value to get it to stick. This is just an annoying user interface bug.

There is someone else at my work that has none of these problems. He is lucky. There is another person at my work that must re-make the entire .ear from scratch each time. He is the unlucky one. I'm the one in the middle that seems to get the deploytool to work 80% of the time... And this is only for practice. We actually use iPlanet, which has an even worse deploytool.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!