-
1. Re: Hello, new and need information: how to set up eclipse to run jboss servlet as stand alone for debugging
wdfink Dec 10, 2012 5:59 AM (in response to p2c2n)You will find the following line in the bin/run.conf file
# Sample JPDA settings for remote socket debugging
#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
if you uncomment the JAVA_OPTS the java process will open a socket for remote debuging.
In Eclipse you can set this in the Run/Debug configurations.
Eclipse will connect the remote JVM for debugging.
Also you need to have the source code attached in Eclipse.
-
2. Re: Hello, new and need information: how to set up eclipse to run jboss servlet as stand alone for debugging
p2c2n Dec 10, 2012 12:16 PM (in response to wdfink)I was hoping to get information for making eclipse stand alone. I don't have access to the server that runs jboss so I can't mess with that. I need to run and debug within eclipse. I have downloaded jboss. to incorporate within eclipse.
-
3. Re: Hello, new and need information: how to set up eclipse to run jboss servlet as stand alone for debugging
wdfink Dec 10, 2012 1:19 PM (in response to p2c2n)I'm not sure whether it will be possible to run the servlet standalone as you need a container to provide the environment.
You might use frameworks like arquillian for that but I'm not sure how much work it will be.
I use often a running jboss and attach the debugger or you might use the the JBoss tools Eclipse plugins.
-
4. Re: Hello, new and need information: how to set up eclipse to run jboss servlet as stand alone for debugging
sunil_patel Dec 13, 2012 8:11 AM (in response to p2c2n)Are you looking for Preferences->Server->Runtime Environments->Add?
-
5. Re: Hello, new and need information: how to set up eclipse to run jboss servlet as stand alone for debugging
p2c2n Dec 13, 2012 10:31 AM (in response to p2c2n)I guess I need moe of a quide on what to do. I have downloaded Jboss 5.0.1 GA and got it to work on my machine locally but am getting "HTTP in use errors." and "No main class errors" when I try to run it. I am not sure how to invoke with a url the servlet with in eclipse or whether I need tomcat running as well. I am not even sure if I have Jboss plugged into eclipse right or how to tie the project to it.
Any advice would be appreciated.
-
6. Re: Hello, new and need information: how to set up eclipse to run jboss servlet as stand alone for debugging
peterj Dec 13, 2012 11:06 AM (in response to p2c2n)JBoss Tools is a set of plugins for Eclipse that make working with JBoss AS in Eclipse easy. And the documentation for JBoss Tools is pretty good - going through some of the Getting Started guides should get you on your way; they start from installing the tools through writing and running some basic apps. I recommend following at least one or two of the examples in the guides before attempting to work with your app.
Here is the URL for JBoss Tools: www.jboss.org/tools
This page lists JBoss Tools and JBoss AS compatibility - you might have to read an older set of guides to get AS 5.1.0 instructions, the most recent guides probably are more focused on AS 7.
https://community.jboss.org/wiki/MatrixOfSupportedPlatformsRuntimesAndTechnologiesInJBossToolsJBDS