Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: Betr.:: Re: [platform-debug-dev] debuging servlets using sysdeo plugin 2.


Port 8080 shown below is not the debugger port - it is an http port. You need to know the JPDA port number that the VM is launched with. I am not familiar with the Sysdeo Tomcat launcher, but you need to launch the VM on which Tomcat runs using the socket transport, on a known JPDA port. I suggest to check the newsgroups, or post a question there.

Darin



<paul@xxxxxxxxxxxx>
Sent by: platform-debug-dev-admin@xxxxxxxxxxx

08/05/2003 04:35 PM
Please respond to platform-debug-dev

       
        To:        <platform-debug-dev@xxxxxxxxxxx>
        cc:        
        Subject:        Betr.:: Re: [platform-debug-dev] debuging servlets using sysdeo plugin 2.



Thanks Darin,

> specified to connect at port 8000, but what port is Tomcat listening on?
tomcat is listening to 8080
   <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
              port="8080" minProcessors="5" maxProcessors="75"
              enableLookups="true" redirectPort="8443"
              acceptCount="100" debug="0" connectionTimeout="20000"
              useURIValidationHack="false" disableUploadTimeout="true" />

the servlet runs testing it in my browser http://localhost:8080/tom/debugClass

In window> Preferences> Tomcat : I have unselected "Don't run tomcat in debug mode"
Then I get "Failed to connect to remote VM"

Is the debug configuration okay, should it be Remote java Application
For connection type I can only choose "Standard (Socket Attach)"

I have also tried
   <!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -->
   <Connector className="org.apache.catalina.connector.http10.HttpConnector"
              port="8084" minProcessors="5" maxProcessors="75"
              enableLookups="true" redirectPort="8443"
              acceptCount="10" debug="0" />
in my tomcat server.xml

And then connect with port 8084 but with the same result
"Failed to connect to remote VM"

> This sort of question is better asked on the newgroup...
I will

Darin Wright <Darin_Wright@xxxxxxxxxx>  :

> This sort of question is better asked on the newgroup... However, it sounds like you may have specified the wrong port number on your remote launch config to connect to the Tomcat server. When you start Tomcat, it has to be in debug mode, accepting connections on a known port. You have specified to connect at port 8000, but what port is Tomcat listening on?
>
> Darin
> &nbsp;
>
>
>
>
>
>
> &lt;paul@xxxxxxxxxxxx&gt;
> Sent by: platform-debug-dev-admin@xxxxxxxxxxx
> 08/05/2003 02:24 PM
> Please respond to platform-debug-dev
>
> &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;&lt;platform-debug-dev@xxxxxxxxxxx&gt;
> &nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;
> &nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;[platform-debug-dev] debuging servlets using sysdeo plugin 2.

>
>
>
> Oops, sorry, pressed on send to soon, forget the last one.
>
> Again.
> I'm trying to debug servlets in eclipse using the sysdeo plugin. Unfortunatly it does not work.
>
> The eclipse version: 2.1.1
> the sysdeo plugin: tomcatPluginV211 beta
> tomcat version: jakarta-tomcat-4.1.24
> java version: j2sdk1.4.1_01
>
> I made a small tomcat project. Start tomcat from eclipse and see my servlet being initialized in the log console.
> Than I run the debugger
> - Remote Java Application.
>  &nbsp; connection type = standard
>  &nbsp; host = localhost
>  &nbsp; port = 8000
> Then I start and get the following message:
> Exception during launch:
> Reason:
> Failed to connect to remote VM. Connection refused.
> Can anyone help me, I realy like to use the eclipse debugger as a webdevelloper.
>
> TIA, Paul . ( Ex? vi user )
>
> Console Output:
> [DevLoader] added file:/c:/workspace/tom/WEB-INF/classes/
> [DevLoader] JSPCompiler Classpath = etc....
> StandardManager[/tom]: Seeding random number generator class java.security.SecureRandom
> StandardManager[/tom]: Seeding of random number generator has been completed
> StandardWrapper[/tom:default]: Loading container servlet default
> StandardWrapper[/tom:invoker]: Loading container servlet invoker
> TestServlet: init called()
>
> ___________________________________
> Webmail, http://webmail.netland.nl
>
>
> _______________________________________________
> platform-debug-dev mailing list
> platform-debug-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-debug-dev



___________________________________
Webmail, http://webmail.netland.nl


_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-debug-dev



Back to the top