Problems debugging servlets [message #20340] |
Mon, 26 April 2004 15:28  |
Eclipse User |
|
|
|
Originally posted by: john.macintyre.ca
Hi,
I am very new to Java, Eclipse, and Tomcat. And I'm having alot of problems
with configuration.
Java - j2sdk1.4.2_04
Tomcat - v5.0.19
Eclipse - v2.1.3
Sysdeo Eclipse Tomcat Launcher plugin - v2.2.1
The plug in has an option for the Tomcat version in Preferences > Tomcat >
Tomcat Version. Which to me implies it will work with Tomcat 5.
When I try to start Tomcat from the plug in, I get a series of errors ...
with the following being the most suggestive (imho).
java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader
So I installed "devloader.zip" into "TOMCAT_HOME/server/classes". The
readme for devloader.zip says it is only for Tomcat version 4. I decide to
try it anyway; Tomcat starts successfully, but when I go to start the
servlet ... I get this:
---------------------------------------
Exception occurred during launch
Reason:
Failed to connect to remote VM. Connection refused.
---------------------------------------
So ... can I run this with Tomcat 5? Should I uninstall Tomcat 5 (again)
and install v4 this time? Am I missing something completely obvious that's
well documented and makes me look like a complete fool? ;-)
Thanks in advance,
John
|
|
|
Re: Problems debugging servlets [message #20360 is a reply to message #20340] |
Mon, 26 April 2004 17:53   |
Eclipse User |
|
|
|
John:
When I had any problems with the Sysdeo Eclipse Tomcat plugin, it was
because I was running the JRE and not JDK. This because Tomcat plugin
needs access to the tools.jar. What you might try is to use the -vm
opition and force Eclipse to use the JDK.
I'd also suggest looking at the MyEclipseIDE, http://www.myeclipse.com.
HTH,
Jeff
John MacIntyre wrote:
> Hi,
>
> I am very new to Java, Eclipse, and Tomcat. And I'm having alot of problems
> with configuration.
>
> Java - j2sdk1.4.2_04
> Tomcat - v5.0.19
> Eclipse - v2.1.3
> Sysdeo Eclipse Tomcat Launcher plugin - v2.2.1
>
> The plug in has an option for the Tomcat version in Preferences > Tomcat >
> Tomcat Version. Which to me implies it will work with Tomcat 5.
>
> When I try to start Tomcat from the plug in, I get a series of errors ...
> with the following being the most suggestive (imho).
> java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader
>
> So I installed "devloader.zip" into "TOMCAT_HOME/server/classes". The
> readme for devloader.zip says it is only for Tomcat version 4. I decide to
> try it anyway; Tomcat starts successfully, but when I go to start the
> servlet ... I get this:
> ---------------------------------------
> Exception occurred during launch
> Reason:
> Failed to connect to remote VM. Connection refused.
> ---------------------------------------
>
> So ... can I run this with Tomcat 5? Should I uninstall Tomcat 5 (again)
> and install v4 this time? Am I missing something completely obvious that's
> well documented and makes me look like a complete fool? ;-)
>
> Thanks in advance,
> John
>
>
>
|
|
|
Re: Problems debugging servlets [message #20380 is a reply to message #20360] |
Mon, 26 April 2004 20:23  |
Eclipse User |
|
|
|
Originally posted by: scott.anderson.genuitec.com
Jeff,
Thanks for the recommending MyEclipse. However, the URL was mildly
misstated. The correct one is http://www.myeclipseide.com.
--Scott
"Jeff Duska" <Jeff.Duska@noaa.gov> wrote in message
news:c6k01d$a78$1@eclipse.org...
> John:
>
> When I had any problems with the Sysdeo Eclipse Tomcat plugin, it was
> because I was running the JRE and not JDK. This because Tomcat plugin
> needs access to the tools.jar. What you might try is to use the -vm
> opition and force Eclipse to use the JDK.
>
> I'd also suggest looking at the MyEclipseIDE, http://www.myeclipse.com.
>
> HTH,
>
> Jeff
>
> John MacIntyre wrote:
> > Hi,
> >
> > I am very new to Java, Eclipse, and Tomcat. And I'm having alot of
problems
> > with configuration.
> >
> > Java - j2sdk1.4.2_04
> > Tomcat - v5.0.19
> > Eclipse - v2.1.3
> > Sysdeo Eclipse Tomcat Launcher plugin - v2.2.1
> >
> > The plug in has an option for the Tomcat version in Preferences > Tomcat
>
> > Tomcat Version. Which to me implies it will work with Tomcat 5.
> >
> > When I try to start Tomcat from the plug in, I get a series of errors
....
> > with the following being the most suggestive (imho).
> > java.lang.ClassNotFoundException: org.apache.catalina.loader.DevLoader
> >
> > So I installed "devloader.zip" into "TOMCAT_HOME/server/classes". The
> > readme for devloader.zip says it is only for Tomcat version 4. I decide
to
> > try it anyway; Tomcat starts successfully, but when I go to start the
> > servlet ... I get this:
> > ---------------------------------------
> > Exception occurred during launch
> > Reason:
> > Failed to connect to remote VM. Connection refused.
> > ---------------------------------------
> >
> > So ... can I run this with Tomcat 5? Should I uninstall Tomcat 5
(again)
> > and install v4 this time? Am I missing something completely obvious
that's
> > well documented and makes me look like a complete fool? ;-)
> >
> > Thanks in advance,
> > John
> >
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.02298 seconds