-
1. Re: Jboss, Maven and Eclipse setup
bria526 Aug 24, 2010 1:34 PM (in response to andreasme)Hi,
I'm in similar need of help. I've built a new Maven-based JSF/Spring web app, using Helios. I was using the plugged-in Tomcat server support to deploy through Eclipse, with hotsynch, etc working fine.
This week I'm switching over to JBoss AS 6.0 (from Tomcat 6). I've installed all the eclipse JBoss Tools plugins, and have a JBoss server that I start/stop through Eclipse. But, I'm not sure I can deploy my app with Eclipse. If I package (mvn package) manually and deploy the war directly through JBoss' admin-console it works, but if I use the "Add and remove" in Eclipse I can't tell if its using the "maven package" (which I need it to), or something else.
Any expertise on this topic would be very helpful.
Thanks!
MB
-
2. Re: Jboss, Maven and Eclipse setup
andreasme Aug 27, 2010 9:29 AM (in response to bria526)After som more trial and error I managed to get my mavenized project to work in eclipse. What I did was that I downgraded to Eclipse Galileo SE and added m2, m2 extra and jboss tools . I then cleared my project from a lot of images (had around 500MB) which made it possible to publish in around 10-15 minutes. But no building wars and after the initial publish it all works fine.
-
3. Re: Jboss, Maven and Eclipse setup
bria526 Sep 2, 2010 12:28 PM (in response to andreasme)I've got it working fine in Helios too
As far as Eclipse plugins, one needs:
Maven - http://m2eclipse.sonatype.org/sites/m2e
Maven Extras (esp WTP) - http://m2eclipse.sonatype.org/sites/m2e-extra
JBoss Tools (particularly the 'Maven Support' components) - http://download.jboss.org/jbosstools/updates/nightly/trunk/
You also (of course) need JBoss installed somewhere (I put all my stuff like that in C:\tools\ or /tools/).
You should be able to create an "Eclipse-based" JBoss server, "Add and Remove" your Maven web projects to it, and start/stop from within Eclipse.
My startup usually takes between 45 seconds and 2 minutes (most of which is deploying the app). That irks me (Tomcat was a fraction of that), but it's livable for now.
-
4. Re: Jboss, Maven and Eclipse setup
salsaid Sep 7, 2010 3:10 PM (in response to bria526)hello Mike,
I am new to Jboss and maven and i am trying to create a new seam web project , after i select the seam runtime enviroment ( e.g. Jboss 4. Runtime) eclipse asks me for the "Home Directory" for the JBoss 4.2 Runtime. Wher can I find this home directory. I have eclipse Java EE helios and i have also installed the plugins Maven, Maven Extras, Jboss Tools 2.3. I get the same problem when i try to run an example maven projekt: Run As--> Run on Server. Should I install Maven or JBoss extra in e.g. C:\Maven and C/Jboss... I don't knoe how ti configerate the server because i cann't find the home directory for the runtime!
Thanks!
Salsaid
-
5. Re: Jboss, Maven and Eclipse setup
bria526 Sep 9, 2010 1:10 PM (in response to salsaid)Hi Salsaid,
Yes, you'll need to install JBoss Server (outside of Eclipse) in addition to the Eclipse work you've done.
http://www.jboss.org/jbossas/downloads/
Once you've got this, you'll point the "home dir" to the root of the server install (wherever you unzipped to).
Good luck!
-
6. Re: Jboss, Maven and Eclipse setup
felixugf Dec 29, 2010 8:04 AM (in response to bria526)Hi,
Enviroment:
Eclipse Helios
Ubuntu 9.1
Jboss 4.2
I have everything install and running but when i want to run jboss from eclipse this error appears:
log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: /home/User/Jboss/server/default/log/boot.log (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:209)I think it is because to run Jboss I need the password from root, to start how can I configured this so I can start Jboss from eclipse...
Thanks
felixugf
-
7. Re: Jboss, Maven and Eclipse setup
felixugf Dec 29, 2010 10:09 AM (in response to felixugf)Hi fixed...