Home » Language IDEs » Java Development Tools (JDT) » [Resolved] Define A New Server window does not allow server name entry(Cannot define server for debugging tomcat 7 server code)
[Resolved] Define A New Server window does not allow server name entry [message #1453867] |
Mon, 27 October 2014 16:27  |
Eclipse User |
|
|
|
Hi,
I am trying to debug server side java code that is running in a tomcat 7 container. I am using the Luna release that I downloaded as 'eclipse-jee-luna-SR1-linux-gtk-x86_64.tar.gz'. I am running java 1.8. This is my first attempt at trying remote debugging and I have done the following prep:
1) In my tomcat7 bin, I have added the file setenv.sh with the following line of code:
export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
2) In Eclipse, I have gone to run-->Debug Configurations and created a configurations with the following field entries:
name: serverSide
project: ps
connection type: standard (socket attach)
host: local
port: 8787
3) I started tomcat7 with .../tomcat7/bin/startup.sh
4) I clicked on 'debug' in the debug configuration window.
5) in the debug perspective, in the upper left panel under the debug tab, I see:
Quote:Java Hotspot(TM) 64-bit server VM[localhost:8787]
and a number of threads running
6) in the debug perspective, in the upper left panel under the server tab, I see:
Quote:No servers are available. Click this link to create a new server
7) When I click on the link, a 'New Server' window pops up. I entered 'tomcat' as the server type and click on 'Tomcat v7.0 Server'. For the host field, 'localhost' is already entered. There is a field 'Server name:' in which I cannot make an entry, and it is blank. At the bottom of the window, the buttons 'back', 'next' and 'finish' are all disabled and the only button I can select is 'cancel'. Thus, I cannot create a new server.
My interpretation is that this window is intended to define in Eclipse the external server that Eclipse is going connect to, but this server is not known by Eclipse, so I cannot connect to it. But I don't understand why I cannot create a name for the server and complete the 'new server' dialog.
Can anyone explain?
Jim A.
[Updated on: Tue, 28 October 2014 02:02] by Moderator Report message to a moderator
|
|
|
Re: Define A New Server window does not allow server name entry [message #1454113 is a reply to message #1453867] |
Tue, 28 October 2014 00:54   |
Eclipse User |
|
|
|
On 10/27/2014 11:27 AM, Jim Anderson wrote:
> Hi,
>
> I am trying to debug server side java code that is running in a tomcat 7
> container. I am using the Luna release that I downloaded as
> 'eclipse-jee-luna-SR1-linux-gtk-x86_64.tar.gz'. I am running java 1.8.
> This is my first attempt at trying remote debugging and I have done the
> following prep:
>
> 1) In my tomcat7 bin, I have added the file setenv.sh with the following
> line of code:
> export JAVA_OPTS="-Xdebug
> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
>
> 2) In Eclipse, I have gone to run-->Debug Configurations and created a
> configurations with the following field entries:
> name: serverSide
> project: ps
> connection type: standard (socket attach)
> host: local
> port: 8787
>
> 3) I started tomcat7 with .../tomcat7/bin/startup.sh
>
> 4) I clicked on 'debug' in the debug configuration window.
>
> 5) in the debug perspective, in the upper left panel under the debug
> tab, I see:
> Quote:
>> Java Hotspot(TM) 64-bit server VM[localhost:8787]
>
> and a number of threads running
>
> 6) in the debug perspective, in the upper left panel under the server
> tab, I see:
> Quote:
>> No servers are available. Click this link to create a new server
>
>
> 7) When I click on the link, a 'New Server' window pops up. I entered
> 'tomcat' as the server type and click on 'Tomcat v7.0 Server'. For the
> host field, 'localhost' is already entered. There is a field 'Server
> name:' in which I cannot make an entry, and it is blank. At the bottom
> of the window, the buttons 'back', 'next' and 'finish' are all disabled
> and the only button I can select is 'cancel'. Thus, I cannot create a
> new server.
>
> My interpretation is that this window is intended to define in Eclipse
> the external server that Eclipse is going connect to, but this server is
> not known by Eclipse, so I cannot connect to it. But I don't understand
> why I cannot create a name for the server and complete the 'new server'
> dialog.
>
> Can anyone explain?
>
> Jim A.
The Server tab isn't to define external servers, it is to define a
server that Eclipse controls and can be use to run projects from within
your workspace.
Remote debugging is as you described in the first 5 items. You have
connected to your server when you see the entries in the debug tab.
However, I don't think you will be able to do much of anything without
having projects defined in your Eclipse workspace with the source either
included or attached to jar files.
|
|
|
Re: Define A New Server window does not allow server name entry [message #1454144 is a reply to message #1454113] |
Tue, 28 October 2014 02:00  |
Eclipse User |
|
|
|
David,
Thank you for the clarification.
Quote:However, I don't think you will be able to do much of anything without
having projects defined in your Eclipse workspace with the source either
included or attached to jar files.
I do have a project, source code, jars and web content defined. I'm going to close out this thread since you have answered the question I had. I will open up a new thread to address the problem that I cannot do any remote debugging in Eclipse yet.
Jim
|
|
|
Goto Forum:
Current Time: Sat Feb 08 10:47:18 GMT 2025
Powered by FUDForum. Page generated in 0.02971 seconds
|