-
1. Re: Running JBoss 6.1 Snapshots in Eclipse
jaikiran May 25, 2011 3:50 AM (in response to david_b)There's no error displayed, it says it's started but there's no console output. It runs fine outside the IDE.
I don't use Eclispe with JBoss AS. So I won't be of much help. But, are you able to access the server once it says it's started? Are you just missing logs in the Eclipse console? Are there logs in the server's boot.log and server.log?
-
2. Re: Running JBoss 6.1 Snapshots in Eclipse
david_b May 25, 2011 4:30 AM (in response to jaikiran)Good suggestion, I thought it might just be an Eclipse console thing as well but I can't access the server and nothing is being written to the boot/server logs.
-
3. Re: Running JBoss 6.1 Snapshots in Eclipse
david_b May 25, 2011 8:54 PM (in response to david_b)I'm making some headway...
I noticed that 6.1 includes a logging.configuration VM argument. I've added this argument to the launch configuration and I'm now getting some console output. Not looking great though, I'm getting the following exception when starting the server:
{code}java.lang.NoClassDefFoundError: JBoss
Caused by: java.lang.ClassNotFoundException: JBoss
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main"{code}
-
4. Re: Running JBoss 6.1 Snapshots in Eclipse
h-igel-cs Jun 1, 2011 10:26 AM (in response to david_b)you have to open the launch configuration. double click on the server and then under "General information" - "Open launch configuration". then append the following parameter to the "vm arguments":
-Dlogging.configuration=file:"C:/JavaLibraries/jboss-6.1.0-SNAPSHOT/bin/logging.properties"
change the path C:/JavaLibraries/jboss-6.1.0-SNAPSHOT to your path.
this works for me...
-
5. Re: Running JBoss 6.1 Snapshots in Eclipse
david_b Jun 1, 2011 7:34 PM (in response to h-igel-cs)Thanks, I'll give this a go.
-
6. Re: Running JBoss 6.1 Snapshots in Eclipse
wolfgangknauf Jun 3, 2011 4:18 PM (in response to david_b)1 of 1 people found this helpfulJust for the records: I have created a Eclipse Web Tools Platform plugin bugreport to inform them about this new argument. But as the newest available WTP server runtime is "5.0", they will probably not add this.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=348276
I have a small plugin for WTP which adds some JBoss runtimes, and since today also contains a runtime for JBoss 6.1 snapshots: http://www.cs.hs-rm.de/~knauf/public/
Best regards
Wolfgang
-
7. Re: Running JBoss 6.1 Snapshots in Eclipse
david_b Jun 22, 2011 8:04 PM (in response to wolfgangknauf)Thanks for the updated plugin Wolfgang.
-
8. Re: Running JBoss 6.1 Snapshots in Eclipse
maxandersen Jun 23, 2011 3:49 AM (in response to wolfgangknauf)Thanks Wolfgang, any reasons why you don't contribute such issues/fixes to JBoss Tools server adapters ?
-
9. Re: Running JBoss 6.1 Snapshots in Eclipse
wolfgangknauf Jun 23, 2011 11:25 AM (in response to maxandersen)Sorry, I never used the JBoss Tools - good olde WTP JBoss plugin is sufficient for me ;-). So I cannot provide even bugreports for them...
But maybe I should take a look at them one day...
Best regards
Wolfgang
-
10. Re: Running JBoss 6.1 Snapshots in Eclipse
maxandersen Jun 23, 2011 12:28 PM (in response to wolfgangknauf)I think you'll like them - they should definitely be *way* faster than any generic server adapter that uses Ant to package up deployments plus we support the full notion of WTP dependencies which I don't believe the generic ones do.
Your input/suggestions will be very welome
-
11. Re: Running JBoss 6.1 Snapshots in Eclipse
hrrbrt99 Jul 1, 2011 12:21 PM (in response to h-igel-cs)h-igel-cs 's fix works for me as well!