| View previous topic :: View next topic |
| Author |
Message |
Jhonathan Posted via mailing list.
|
Posted: Sat Jul 04, 2009 6:12 am Post subject: Cannot debug EJBs |
|
|
Hi, well I had the same problem in Ubuntu with the Netbeans 6.5 and
GlassFish2 from the repository. The solution was download the full last
version of Java EE from Sun what include GlassFish and Tools. Once I did it
everything was right.=)
Florian Brunner wrote:
| Quote: |
Hi,
I'm using NetBeans 6.1 & GlassFish on Windows XP to develop EJBs & an
application client as part of an enterprise application.
When I debug the enterprise application I get the following output in
the Debugger Console:
Attaching to localhost:9009
User program running
LineBreakpoint TravelAgentBean.java : 27 successfully submitted.
LineBreakpoint TravelAgentBean.java : 31 successfully submitted.
LineBreakpoint TravelAgentBean.java : 35 successfully submitted.
User program finished
But the debugger does not stop at the EJB methods, when called by the
client. :-(
Also the NetBeans help says that debugging an enterprise application
results in:
"Stops the application server and starts it in debug mode."
But I get a dialog with "Is server running in debug mode?" and only
starts with debugging if answer is no, which is somewhat strange when it
wants to restart the server in debug mode anyway.
In the debug out I have also the following (only in debug output, not in
run output):
Non-existing path "C:\Programme\glassfish-v2ur2\lib\dom.jar" provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\xalan.jar" provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\xercesImpl.jar"
provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\jaxrpc-impl.jar"
provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\saaj-impl.jar"
provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\jaxr-impl.jar"
provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\relaxngDatatype.jar"
provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\xsdlib.jar" provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\fscontext.jar"
provided.
Non-existing path "C:\Dokumente und Einstellungen\florian.brunner\Eigene
Dateien\NetBeansProjects\TitanCruises\${javac.classpath}" provided.
Non-existing path "C:\Dokumente und Einstellungen\florian.brunner\Eigene
Dateien\NetBeansProjects\TitanCruises\${src.dir}" provided.
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\dom.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\xalan.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\xercesImpl.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\jaxrpc-impl.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\saaj-impl.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\jaxr-impl.jar
Have no FileObject for
C:\Programme\glassfish-v2ur2\lib\relaxngDatatype.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\xsdlib.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\fscontext.jar
Listening for transport dt_socket at address: 9009
Attached JPDA debugger to localhost:9009
I use the GlassFish installation included in the NetBeans 6.1 installer.
How can I debug my EJBs? Are the missing jars the problem? The port?
-Florian
|
--
View this message in context: http://www.nabble.com/Cannot-debug-EJBs-tp20318516p24331607.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
emiddio-verizon Posted via mailing list.
|
Posted: Sat Jul 04, 2009 3:05 pm Post subject: Cannot debug EJBs |
|
|
my approach has been --
to start appserver in debug mode;
debugger attach to app server;
make sure the app is deployed;
then go to domains/domain1;
from there see what i might be interested in in applications/j2ee-modules
if something there i want to debug then make sure my sources include the appropriate directory there
and set breakpoints in the source there
see what i might be interested in in generated/ejb/j2ee-modules
if something there i want to debug then make sure my sources include the appropriate directory there
and set breakpoints in the source there
then i just run my app or deploy it or whatever and when a breakpoint is hit i can debug on app server
side; i can also debug the client if its standalone at same time on client side;
gary
Jhonathan wrote: | Quote: | | Quote: | Hi, well I had the same problem in Ubuntu with the Netbeans 6.5 and
GlassFish2 from the repository. The solution was download the full last
version of Java EE from Sun what include GlassFish and Tools. Once I did it
everything was right.=)
Florian Brunner wrote:
| Quote: | Hi,
I'm using NetBeans 6.1 & GlassFish on Windows XP to develop EJBs & an
application client as part of an enterprise application.
When I debug the enterprise application I get the following output in
the Debugger Console:
Attaching to localhost:9009
User program running
LineBreakpoint TravelAgentBean.java : 27 successfully submitted.
LineBreakpoint TravelAgentBean.java : 31 successfully submitted.
LineBreakpoint TravelAgentBean.java : 35 successfully submitted.
User program finished
But the debugger does not stop at the EJB methods, when called by the
client. :-(
Also the NetBeans help says that debugging an enterprise application
results in:
"Stops the application server and starts it in debug mode."
But I get a dialog with "Is server running in debug mode?" and only
starts with debugging if answer is no, which is somewhat strange when it
wants to restart the server in debug mode anyway.
In the debug out I have also the following (only in debug output, not in
run output):
Non-existing path "C:\Programme\glassfish-v2ur2\lib\dom.jar" provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\xalan.jar" provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\xercesImpl.jar"
provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\jaxrpc-impl.jar"
provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\saaj-impl.jar"
provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\jaxr-impl.jar"
provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\relaxngDatatype.jar"
provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\xsdlib.jar" provided.
Non-existing path "C:\Programme\glassfish-v2ur2\lib\fscontext.jar"
provided.
Non-existing path "C:\Dokumente und Einstellungen\florian.brunner\Eigene
Dateien\NetBeansProjects\TitanCruises\${javac.classpath}" provided.
Non-existing path "C:\Dokumente und Einstellungen\florian.brunner\Eigene
Dateien\NetBeansProjects\TitanCruises\${src.dir}" provided.
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\dom.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\xalan.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\xercesImpl.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\jaxrpc-impl.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\saaj-impl.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\jaxr-impl.jar
Have no FileObject for
C:\Programme\glassfish-v2ur2\lib\relaxngDatatype.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\xsdlib.jar
Have no FileObject for C:\Programme\glassfish-v2ur2\lib\fscontext.jar
Listening for transport dt_socket at address: 9009
Attached JPDA debugger to localhost:9009
I use the GlassFish installation included in the NetBeans 6.1 installer.
How can I debug my EJBs? Are the missing jars the problem? The port?
-Florian
|
| |
|
|
| Back to top |
|
 |
|
|
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 You can attach files in this forum You can download files in this forum
|
|
|
|