Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
JBoss Debug, JBoss-IDE and Eclipse How To
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
berarul
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2004
Posts: 75
Location: Bucuresti

PostPosted: Mon Apr 26, 2004 2:49 pm    Post subject: JBoss Debug, JBoss-IDE and Eclipse How To Reply with quote

Hello.

I was trying to set up a JBoss J2EE server on my gentoo PC, but I wanted to take full advantage of the JBoss-IDE plugin for Eclipse.

*-----------------------------EDIT---------------------------
*if you emerge the JBoss server, with the default
*values it seems that the JBossIDE can't create
*valid deploy to values (or let you create yourself
*such targets) meaning that you must deploy manually
*and no debug features. Sticking with the "official"
*binary distribution of JBoss (and ignoring this
*message seems to solve this problem. I think the
*problem is that the JBossIDE automatically creates
*default deploy targets but can't interpret comand line
*arguments correctly.
*--------------------END OF EDIT-------------------------

First off I would like to state that I use Sun's VM. So the first step would be to emerge you SDK of choice and JBoss of course (3.2.3 and unmasked)

I emerged eclipse-sdk-3.0_rc8 and then tried to install the JBoss-IDE plugin. I followed very counciously (did I say this right? :) ) all the steps to install the plugin I noticed that my compiled version of Eclipse had a big flaw ... the window where one would select the site at the final step of the process didn't show any local folders, and when trying to add another site (ie: the default one that I knew it existed I would get a message that "The site already exists". I compiled eclipse with -O -funroll-loops -march=pentium4 and with the same flags on an Athon (except for march of course) and I still get this error. If you get this, too tell me so I will file a bug. I will try to compile with empty CFLAGS but until then I unzipped a binary distribution from eclipse.org and used that.

Then we follow the steps described on the www.jboss.org:
-restart the IDE
-customize the perspective: Right-click on top toolbar (in Java perspective or whatever), Commands check Default server;
-Run>Debug...>Select Jboss 3.2.x server or whatever, click New give a name and set the Jboss home to /usr/share/jboss (default gentoo installation) (Selecting the Jboss 3.2.x option gives you the chance of telling Eclipse not to switch perspectives)

However since gentoo, as stated in the /usr/conf.d/jboss says
Quote:

# The base URL for calculating server home URLs. In a stock JBoss
# install, this would be <jboss_home>/server/ where sub-directories
# default, minimal and all exist. Our defaults are /var/lib/jboss to
# be consistent with other servers such as PostgreSQL and Apache.

we need to tell Eclipse where are the configuration file and what configuration the Debug-mode JBoss should use:
Click The Start(x) tab and as program parameters say
Code:

-c all

"all" is the configuration we want JBoss to use. As the config file says, gentoo comes with three config: all, default and minimal. Choose to your heart's content
Next, we have to say where is the JBoss server base.
If we were to look at the /etc/conf.d/jboss we would see that all we need to do is give the -Djboss.server.base.url param to the JVM. However, this doesn't seem to be the case. We also need to give the -Djboss.server.base.dir parameter. So the parameters passed to the VM would be:
Code:

-Djboss.server.base.url="file:///var/lib/jboss" -Djboss.server.base.dir="/var/lib/jboss"


If you code like me as a normal user be sure to give appropiate file permissions.

Hope this helps
_________________
You need to stand up to your mother, smack her in the face and say "That's enough of your shit, you fucking bitch!"
Back to top
View user's profile Send private message
mxc
Guru
Guru


Joined: 05 Mar 2003
Posts: 442
Location: South Africa

PostPosted: Sat May 15, 2004 7:16 pm    Post subject: Reply with quote

I also had a problem with the installation of plugins on the default install of 3M8 of eclipse. I finally got an answer on how to do this in the following thread
[url]
https://forums.gentoo.org/viewtopic.php?t=170102&highlight=eclipse+plugin
[/url]

It seems to be a bug. The default install of jboss on gentoo also plays havoc with the lomboz J2ee plugin. I am still trying to work out how to fix that one.
Back to top
View user's profile Send private message
berarul
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2004
Posts: 75
Location: Bucuresti

PostPosted: Sat May 15, 2004 9:01 pm    Post subject: Reply with quote

a bug? :lol: dozens more like it
_________________
You need to stand up to your mother, smack her in the face and say "That's enough of your shit, you fucking bitch!"
Back to top
View user's profile Send private message
affan
n00b
n00b


Joined: 25 Mar 2004
Posts: 23
Location: Chicago

PostPosted: Sun May 16, 2004 3:21 am    Post subject: Reply with quote

Is there a difference between installing Eclipse manually or using emerge?

Thanks.
Back to top
View user's profile Send private message
berarul
Tux's lil' helper
Tux's lil' helper


Joined: 12 Apr 2004
Posts: 75
Location: Bucuresti

PostPosted: Sun May 16, 2004 10:49 am    Post subject: Reply with quote

Well manually (a prebuilt binary from eclipse.org I understand) is better. You don't get those compilation optimizations but it works. Using emerge you get those optimizations going but you may run into errors: one bad ass error is that you cannot install any new features since you (I think) get a null pointer passed to the list where you are supposed to select your installation site (the directory where you installed eclipse for the rest of us). So yeah there is. Besides, when using development tools and servers i have found that is wiser to choose the tried and tested binary distribution. In rest go for emerge. It's SWEEET! :)
_________________
You need to stand up to your mother, smack her in the face and say "That's enough of your shit, you fucking bitch!"
Back to top
View user's profile Send private message
Squiddle
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2004
Posts: 141

PostPosted: Fri Jul 01, 2005 3:43 pm    Post subject: Reply with quote

thx for the article
works like a charm
_________________
"Unerhört schnelle Systeme begehen unerhört schnell Fehler." -- Stanislaw Lem
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum