Bookmark Topic Watch Topic
  • New Topic

To debug Servlet in Eclipse  RSS feed

 
Shanthi Mari
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Report post to moderator
I using eclipse3,tomcat 5.0.28 and Sysdeo plugin for the first time.

I created a servlet program in Eclipse when I debug I get this error.


Failed to connect to remote VM.

java.io.IOException: EOF encountered during handshake
org.eclipse.jdi.internal.connect.SocketTransportImpl.PerformHandshake(SocketTransportImpl.java:151)
org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:48)
org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:103)
org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:131)
org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:75)
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

As one of my friend replied to my post , I did
set JPDA_TRANSPORT = dt_socket
set JPDA_ADDRESS = 1212
catalina jpda start

I have checked whether the port is already in use with command
netstat -a , the port is not in use.

I am getting the following error.


Jul 27, 2005 10:27:28 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:1212
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:264)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)

at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.
java:1429)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:609)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2384)
at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
Jul 27, 2005 10:27:28 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException: Protocol handler initialization failed: java.net.BindExcept
ion: Address already in use: JVM_Bind:1212
at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.
java:1431)
at org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:609)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:2384)
at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
Jul 27, 2005 10:27:28 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1422 ms
Jul 27, 2005 10:27:28 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 27, 2005 10:27:28 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
Jul 27, 2005 10:27:28 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
StandardContext[/CoreServletJSP]ssi: SSIServlet.init() SSI invoker started with
'debug'=4
Jul 27, 2005 10:27:29 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Jul 27, 2005 10:27:29 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file :\jakarta-tomcat-5.0.28\co
nf\Catalina\localhost\admin.xml
Jul 27, 2005 10:27:29 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
e
Jul 27, 2005 10:27:29 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
l=true
Jul 27, 2005 10:27:30 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
Jul 27, 2005 10:27:31 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file :\jakarta-tomcat-5.0.28\co
nf\Catalina\localhost\balancer.xml
Jul 27, 2005 10:27:31 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file :\jakarta-tomcat-5.0.28\co
nf\Catalina\localhost\manager.xml
Jul 27, 2005 10:27:31 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /struts-documentation from URL
file :/jakarta-tomcat-5.0.28/webapps/struts-documentation
Jul 27, 2005 10:27:31 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /struts-examples from URL file:
D:/jakarta-tomcat-5.0.28/webapps/struts-examples
Jul 27, 2005 10:27:33 PM org.apache.struts.validator.ValidatorPlugIn initResourc
es
INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
Jul 27, 2005 10:27:33 PM org.apache.struts.validator.ValidatorPlugIn initResourc
es
INFO: Loading validation rules file from '/WEB-INF/validator/validation.xml'
Jul 27, 2005 10:27:34 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /coreServletJSP from URL file
:\jakarta-tomcat-5.0.28\webapps\coreServletJSP
Jul 27, 2005 10:27:35 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL file :\
jakarta-tomcat-5.0.28\webapps\jsp-examples
Jul 27, 2005 10:27:35 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path from URL file :\jakarta-tomca
t-5.0.28\webapps\ROOT
Jul 27, 2005 10:27:35 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL fil
e :\jakarta-tomcat-5.0.28\webapps\servlets-examples
Jul 27, 2005 10:27:35 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /testApp from URL file :\jakar
ta-tomcat-5.0.28\webapps\testApp
Jul 27, 2005 10:27:36 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL file :\j
akarta-tomcat-5.0.28\webapps\tomcat-docs
Jul 27, 2005 10:27:36 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL file :\jakart
a-tomcat-5.0.28\webapps\webdav
Jul 27, 2005 10:27:36 PM org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.net.BindException: Address already in use: JVM_Bind:1212
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
nt.java:264)
at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpo
int.java:281)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:171
)
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:
1527)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
89)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Jul 27, 2005 10:27:36 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: Protocol handler start failed: java.net.BindException: Addr
ess already in use: JVM_Bind:1212
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:
1529)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
89)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Jul 27, 2005 10:27:36 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 7901 ms


When I changed the port to "8080" also I got the same error message.
Pls help me out.......

Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Shanthi, you were asked in this post not to post the same question more than once. This is the 3rd time that you have posted this question. Please stop.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!