Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » JBoss 5.1 Integration in Galileo
JBoss 5.1 Integration in Galileo [message #516212] Tue, 23 February 2010 08:55 Go to next message
Tom Simmons is currently offline Tom SimmonsFriend
Messages: 9
Registered: July 2009
Location: Aberdeen, UK
Junior Member
Folks,

I am running Eclipse Galileo and Java 1.6, until now I have been using JBoss 4.2, this I had fully integrated for debugging and being able to patch the code under debug and carry on. This, I believe, was achieved by an entry in jboss-service.xml...

<attribute name="URLs">
	file:///d:/projects/Eclipse/CR 6462/epic.war,
	deploy/
</attribute>


I have now had to move to JBoss 5.1, while debugging still seems to be working, what I have lost is the hot deploy of fixes while in debug mode. Rather than the old reference to exploded WAR directory I'm lead to believe I can only deploy the actual WAR, which of course explains the lack of hot fix.

Surely there must be some way to integrate 5.1 like I had with 4.2? If anyone knows how or can point me at a guide for setting this up I would be most grateful.


Tom
Re: JBoss 5.1 Integration in Galileo [message #516225 is a reply to message #516212] Tue, 23 February 2010 09:40 Go to previous messageGo to next message
Wolfgang Knauf is currently offline Wolfgang KnaufFriend
Messages: 63
Registered: July 2009
Member
Hi,

you might give "JBoss Tools" a try: http://www.jboss.org/tools
They probably provide more JBoss related feature than plain WTP.


And maybe this article helps further:
> http://stackoverflow.com/questions/712353/hot-deploy-for-jbo ss-on-eclipse-3-4-ganymede

Seems you need to do "remote debugging" to hot-replace code.

Best regards

Wolfgang
Re: JBoss 5.1 Integration in Galileo [message #516230 is a reply to message #516225] Tue, 23 February 2010 10:13 Go to previous messageGo to next message
Tom Simmons is currently offline Tom SimmonsFriend
Messages: 9
Registered: July 2009
Location: Aberdeen, UK
Junior Member
Thanks for you quick reply.

I'm afraid this only confuses me more.

I never had to install anything special under either Ganymede or Galileo to have debugging and hot deploy of code changes while debugging for JBoss 4.2.

I have installed the JBoss tools, but to be honest it didn't make much sense as to what it was providing and doesn't seem to provice anything extra to solve this problem. You seem to end up creating two servers and registering the app to one of them, but sadly this behemoth of an app I've inheritted isn't properly structured as true EE project so it doesn't seem to like it.


Tom
Re: JBoss 5.1 Integration in Galileo [message #516574 is a reply to message #516230] Wed, 24 February 2010 12:46 Go to previous messageGo to next message
Wolfgang Knauf is currently offline Wolfgang KnaufFriend
Messages: 63
Registered: July 2009
Member
Hi Tom,

I never used this feature of hot replacement before, but I gave it a short try,
and with Eclipse 3.5.1 (+Web Tools Platform 3.1.1) and JBoss 5.0.1GA it worked
(for a servlet as well as for a stateless session bean). No need for JBoss
config changes.

Things I changed in Eclipse:
a) In the "Servers" view call context menu => "Open". In the group "Publishing"
select "Never publish automatically" (I don't know whether this required, but I
think it is better).
b) I don't like "Build automatically", and thus after a code change and saving
the file I had to call "Project" => "Build"

This was all and I saw my changes.

The only thing to notice was that a change in the bean *in the current debugging
line* resulted in an Eclipse warnung "org.jboss.Main at localhost:{portnumber}
contains obsolete methods". But after "Continue", it worked anyway.


Hope this helps

Wolfgang
Re: JBoss 5.1 Integration in Galileo [message #516579 is a reply to message #516574] Wed, 24 February 2010 13:03 Go to previous messageGo to next message
Tom Simmons is currently offline Tom SimmonsFriend
Messages: 9
Registered: July 2009
Location: Aberdeen, UK
Junior Member
Wolfgang

Thanks for your help on this.

I'm assuming that your JBoss config files are therefore expecting to find the WAR in the deploy directory?

Would you be able to talk me through how you set up the server, and the publishing etc?

Again thanks for your help.


Tom
Re: JBoss 5.1 Integration in Galileo [message #516849 is a reply to message #516579] Thu, 25 February 2010 11:13 Go to previous message
Wolfgang Knauf is currently offline Wolfgang KnaufFriend
Messages: 63
Registered: July 2009
Member
Hi Tom,

what kind of project do you use? I assume that you have a "Dynamic Web Project"?
This one is connected to a server and thus WTP handles publishing and hot code
replacement.

In WTP, you have to configure your JBoss server ("Preferences" => "Server" =>
"Runtime Environments". When creating the Web Project, you choose this server
runtime. The publishing steps you will probably find yourself ;-)
WTP then creates a WAR file of your webapp and copies it to the "deploy" directory.

There is no need to change any Jboss configuration.

Hope this helps

Wolfgang
Previous Topic:Do "Jave EE Module dependencies" really work?
Next Topic:get a error when use the web service explorer
Goto Forum:
  


Current Time: Thu Nov 27 16:40:42 GMT 2014

Powered by FUDForum. Page generated in 0.02741 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software