How to get Hotswap working in Websphere 6?

Before I found out how to get Idea to work with Websphere my old environment consisted of Rational Application Developer running my WAS6 server and Idea was used to edit files. If I changed a class file I had to load it in RAD using F5 and then it would recompile it and deploy it using hotswap. Non Java files like JSP and Javascript could be edited in Idea and a simple refresh in the browser would pick up the changes.

Now I finally have Idea set up to run WAS6 and also deploy my EAR file but if I make any minor change to JSP or Javascript it doesn't get picked up until I do a make, followed by a complete re-deploy of the EAR which can take up to 5 minutes on my PC?

How can I set up my Idea configuration to use hotswap or whatever feature it is that allows me to edit files and have them automatically picked up by the running installed EAR? Is it something to do with exploded directories? If so how should I set these up as this seems to make no difference?

thanks
scott

10 comments

I have the same issue with WebSphere 5.1. In addition my re-deployment randomly fails. It usually has something to do with "invalid binaries"... however that happened??? Right now I'd just love to get the thing to re-deploy successfully and then work on getting the hot deploy to work (if possible at all).

FYI... I have a local WebSphere 5.1 debug configuration. This works really well with the various flavors of Tomcat I have used in the past. I'm very disappointed in the WebSphere debugger.

0

It never worked it always gets unsupported jvm error.

0

I also get the 'random failure to deploy' problem. Often it complains that there is a duplicate ear on the server - which there is if idea is failing to republish over the top of the previous deployment?!? So I have no idea what is wrong. I find the support very flaky indeed.

Message was edited by:
Scott Curtis

0

I saw that too. I did it couple times and it always deploys duplicate instead of updating it. I asked same question to support I didn't get correct answer. Look like development with websphere is not development with pleasure. we hope that they will have some websphere improvements in Selena.

0

Hello Rambabu,

Please create a Jira issue for this problem and provide exact occured error
messages and steps to reproduce if any.

I saw that too. I did it couple times and it always deploys duplicate
instead of updating it. I asked same question to support I didn't get
correct answer. Look like development with websphere is not
development with pleasure. we hope that they will have some websphere
improvements in Selena.



0

I've created a Jira issue (JEEAS-135) because I am now getting an error which stops the EAR from deploying in the first place?

I will just keep adding Jiras as I find new things because there seem to be so many problems with this.

thanks
scott

0

I see this kind of thing in the console when it tries to install duplicates:

00000016 AdminHelper A ADMN1009I: An attempt is made to start the proj application.
0000002b TilesRequestP I org.apache.struts.tiles.TilesRequestProcessor initDefinitionsMapping Tiles definition factory found for request processor ''.
0000002b ServletWrappe A SRVE0242I: : Initialization successful.
00000017 AdminHelper A ADMN1009I: An attempt is made to start the proj application.
0000002b ServletWrappe A SRVE0242I: : Initialization successful.
00000016 ApplicationMg W WSVR0214W: Application, proj, already installed
00000017 ApplicationMg W WSVR0214W: Application, proj, already installed
00000017 AppManagement W Unable to start: proj using: WebSphere:platform=dynamicproxy,cell=LOCALHOSTNode01Cell,version=6.0.2.3,name=ApplicationManager,mbeanIdentifier=ApplicationManager,type=ApplicationManager,node=LOCALHOSTNode01,process=server1 exception is: javax.management.MBeanException: null nested exception is com.ibm.ws.exception.ConfigurationWarning: Duplicate application, proj
00000016 AppManagement W Unable to start: proj using: WebSphere:platform=dynamicproxy,cell=LOCALHOSTNode01Cell,version=6.0.2.3,name=ApplicationManager,mbeanIdentifier=ApplicationManager,type=ApplicationManager,node=LOCALHOSTNode01,process=server1 exception is: javax.management.MBeanException: null nested exception is com.ibm.ws.exception.ConfigurationWarning: Duplicate application, proj
0000002b ServletWrappe A SRVE0242I: : Initialization successful.
0000002b ServletWrappe A SRVE0242I: : Initialization successful.
00000032 ServletWrappe A SRVE0242I: : Initialization successful.
0000002a AdminHelper A ADMN1009I: An attempt is made to start the proj application.

0000002a ApplicationMg W WSVR0214W: Application, proj, already installed
0000002a AppManagement W Unable to start: proj using: WebSphere:platform=dynamicproxy,cell=LOCALHOSTNode01Cell,version=6.0.2.3,name=ApplicationManager,mbeanIdentifier=ApplicationManager,type=ApplicationManager,node=LOCALHOSTNode01,process=server1 exception is: javax.management.MBeanException: null nested exception is com.ibm.ws.exception.ConfigurationWarning: Duplicate application, proj
00000048 RepositoryCon E WKSP0003E: Context proj already exists.
00000049 RepositoryCon E WKSP0003E: Context proj already exists.

Hello Rambabu,

Please create a Jira issue for this problem and
provide exact occured error
messages and steps to reproduce if any.

I saw that too. I did it couple times and it always

deploys duplicate

instead of updating it. I asked same question to

support I didn't get

correct answer. Look like development with

websphere is not

development with pleasure. we hope that they will

have some websphere

improvements in Selena.

>

0

Scott,

Please add your Jira issues in the 'IDEA: Feedback' project. The 'JEE
Application Servers' project is for the suite of open source application
server plugins (JBoss, Glassfish, and Geronimo currently).

Your issue JEEAS-135 has been moved here:
http://www.jetbrains.net/jira/browse/IDEADEV-17335

Regards,
Martin

Scott Curtis wrote:

I've created a Jira issue (JEEAS-135) because I am not getting an error which stops the EAR from deploying in the first place?

I will just keep adding Jiras as I find new things because there seem to be so many problems with this.

thanks
scott


--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0

Please sign in to leave a comment.