Cannot debug EJBs

View: New views
11 Messages — Rating Filter:   Alert me  

Cannot debug EJBs

by Florian Brunner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Re: Cannot debug EJBs

by Peter Pis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

    while debugging session is active, please open "Sources" view. Make
sure that all desired sources are checked.

Regards,
-Peter

Florian Brunner wrote:

> 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
>


Re: Cannot debug EJBs

by Florian Brunner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just checked and the EJB module and the application client are both
selected.

Still I cannot debug the EJB. :-/

-Florian

Peter Pis schrieb:

> Hi,
>
>    while debugging session is active, please open "Sources" view. Make
> sure that all desired sources are checked.
>
> Regards,
> -Peter
>
> Florian Brunner wrote:
>> 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
>>
>


Re: Cannot debug EJBs

by Peter Pis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Most probably you hit the issue:
http://www.netbeans.org/issues/show_bug.cgi?id=151704

-Peter

Florian Brunner wrote:

> I just checked and the EJB module and the application client are both
> selected.
>
> Still I cannot debug the EJB. :-/
>
> -Florian
>
> Peter Pis schrieb:
>> Hi,
>>
>>    while debugging session is active, please open "Sources" view.
>> Make sure that all desired sources are checked.
>>
>> Regards,
>> -Peter
>>
>> Florian Brunner wrote:
>>> 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
>>>
>>
>


Re: Cannot debug EJBs

by Florian Brunner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Could be, but then I'm not using JAXB (or does GlassFish use it?) and
the debugger is working fine with the application client.
It just doesn't stop at the breakpoints of the EJBs.

-Florian

Peter Pis schrieb:

> Most probably you hit the issue:
> http://www.netbeans.org/issues/show_bug.cgi?id=151704
>
> -Peter
>
> Florian Brunner wrote:
>> I just checked and the EJB module and the application client are both
>> selected.
>>
>> Still I cannot debug the EJB. :-/
>>
>> -Florian
>>
>> Peter Pis schrieb:
>>> Hi,
>>>
>>>    while debugging session is active, please open "Sources" view.
>>> Make sure that all desired sources are checked.
>>>
>>> Regards,
>>> -Peter
>>>
>>> Florian Brunner wrote:
>>>> 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
>>>>
>>>
>>
>


Re: Cannot debug EJBs

by Peter Pis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue describes debugging web and ejb projects. Other type of nb
projects should be ok.

-Peter

Florian Brunner wrote:

> Could be, but then I'm not using JAXB (or does GlassFish use it?) and
> the debugger is working fine with the application client.
> It just doesn't stop at the breakpoints of the EJBs.
>
> -Florian
>
> Peter Pis schrieb:
>> Most probably you hit the issue:
>> http://www.netbeans.org/issues/show_bug.cgi?id=151704
>>
>> -Peter
>>
>> Florian Brunner wrote:
>>> I just checked and the EJB module and the application client are
>>> both selected.
>>>
>>> Still I cannot debug the EJB. :-/
>>>
>>> -Florian
>>>
>>> Peter Pis schrieb:
>>>> Hi,
>>>>
>>>>    while debugging session is active, please open "Sources" view.
>>>> Make sure that all desired sources are checked.
>>>>
>>>> Regards,
>>>> -Peter
>>>>
>>>> Florian Brunner wrote:
>>>>> 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
>>>>>
>>>>
>>>
>>
>


Re: Cannot debug EJBs

by Florian Brunner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the info.

-Florian

Peter Pis schrieb:

> Issue describes debugging web and ejb projects. Other type of nb
> projects should be ok.
>
> -Peter
>
> Florian Brunner wrote:
>> Could be, but then I'm not using JAXB (or does GlassFish use it?) and
>> the debugger is working fine with the application client.
>> It just doesn't stop at the breakpoints of the EJBs.
>>
>> -Florian
>>
>> Peter Pis schrieb:
>>> Most probably you hit the issue:
>>> http://www.netbeans.org/issues/show_bug.cgi?id=151704
>>>
>>> -Peter
>>>
>>> Florian Brunner wrote:
>>>> I just checked and the EJB module and the application client are
>>>> both selected.
>>>>
>>>> Still I cannot debug the EJB. :-/
>>>>
>>>> -Florian
>>>>
>>>> Peter Pis schrieb:
>>>>> Hi,
>>>>>
>>>>>    while debugging session is active, please open "Sources" view.
>>>>> Make sure that all desired sources are checked.
>>>>>
>>>>> Regards,
>>>>> -Peter
>>>>>
>>>>> Florian Brunner wrote:
>>>>>> 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
>>>>>>
>>>>>
>>>>
>>>
>>
>


Re: Cannot debug EJBs

by vince kraemer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

I think I can describe the reason for the issue that you are running into...

When you debug an ent app that consists of some ejb jars and some app
clients, I think the debugger attaches to the JVM for the app client.  
The debugger is not attached to the jvm for the app server (which is the
JVM that has the code for your EJBs). That means that you won't be able
to step through the code for the EJB... UNLESS

you do the following...

First... start the app server in debug mode, from the Services explorer..
then... set a bp in the main method of your app client....
then... 'Debug' your ent app project....
finally... while the debugger is stopped in the app client, use the
'Attach debugger' item to create a new debugger session that connects to
the app server... which is started in debug mode.... (on port 9009 (i
think))

when you start running the app client, you should be able to hit
server-side BPs in the second debugger session....

You will not be able to step into the code of an EJB from the app
client's debug session, so you will need to have BPs in the bean impl to
simulate the behavior of step into across the two JVMs.

Hope this helps.
vbk

Florian Brunner wrote:

> Thanks for the info.
>
> -Florian
>
> Peter Pis schrieb:
>> Issue describes debugging web and ejb projects. Other type of nb
>> projects should be ok.
>>
>> -Peter
>>
>> Florian Brunner wrote:
>>> Could be, but then I'm not using JAXB (or does GlassFish use it?)
>>> and the debugger is working fine with the application client.
>>> It just doesn't stop at the breakpoints of the EJBs.
>>>
>>> -Florian
>>>


Re: Cannot debug EJBs

by Florian Brunner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Vince,

thanks for the infos. I will try that.

But note that this is not how it is described in the JavaHelp of
NetBeans. And I already get the output:

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

And when I debug the enterprise application, 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 (according to the JavaHelp). I don't know what happens
if the server is running in debug mode and I press "no". I will see. ;-)

-Florian

Vince Kraemer schrieb:

> Hi.
>
> I think I can describe the reason for the issue that you are running
> into...
>
> When you debug an ent app that consists of some ejb jars and some app
> clients, I think the debugger attaches to the JVM for the app client.  
> The debugger is not attached to the jvm for the app server (which is
> the JVM that has the code for your EJBs). That means that you won't be
> able to step through the code for the EJB... UNLESS
>
> you do the following...
>
> First... start the app server in debug mode, from the Services explorer..
> then... set a bp in the main method of your app client....
> then... 'Debug' your ent app project....
> finally... while the debugger is stopped in the app client, use the
> 'Attach debugger' item to create a new debugger session that connects
> to the app server... which is started in debug mode.... (on port 9009
> (i think))
>
> when you start running the app client, you should be able to hit
> server-side BPs in the second debugger session....
>
> You will not be able to step into the code of an EJB from the app
> client's debug session, so you will need to have BPs in the bean impl
> to simulate the behavior of step into across the two JVMs.
>
> Hope this helps.
> vbk
>
> Florian Brunner wrote:
>> Thanks for the info.
>>
>> -Florian
>>
>> Peter Pis schrieb:
>>> Issue describes debugging web and ejb projects. Other type of nb
>>> projects should be ok.
>>>
>>> -Peter
>>>
>>> Florian Brunner wrote:
>>>> Could be, but then I'm not using JAXB (or does GlassFish use it?)
>>>> and the debugger is working fine with the application client.
>>>> It just doesn't stop at the breakpoints of the EJBs.
>>>>
>>>> -Florian
>>>>
>


Re: Cannot debug EJBs

by Jhonathan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:
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

Re: Cannot debug EJBs

by emiddio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:
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:
  
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