- This topic has 19 replies, 2 voices, and was last updated 21 years, 2 months ago by Scott Anderson.
-
AuthorPosts
-
vitodcMemberHi,
I have Eclipse 3, MyEclipse and Tomcat 5 installed on a Windows XP machine.
When I try ti start tomcat with MyEclipse I get the following message
java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean)Everything is installed as per documentation. Can anybody provide a solution.
Thanks
Scott AndersonParticipantCan you please post all the information we request in the ‘Posting Guidelines’ announcement in this forum? Once we have all those answers, we’ll know how to begin looking into this.
–Scott
MyEclipse Support
vitodcMemberHi,
Sorry about that. Here is the information.
Thanks
What operating system and version are you running?
XP
What Eclipse version and build id are you using? (Help > About Eclipse Platform)
Version: 3.0.0
Build id: 200308281813
– Was Eclipse freshly installed for MyEclipse?
Yes
– If not, was it upgraded to its current version using the update manager?
– Are any other external plugins installed?
No
– How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
7
What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
3.6.2
What JDK version are you using to run Eclipse? (java -version)
j2sdk1.4.2
What JDK version are you using to launch your application server?
j2sdk1.4.2
What steps did you take that resulted in the issue?
Installed Eclipse
Installed MyEclipse
Installed Tomcat 5
Deployed Project
Tried to start Tomcat with MyEclipse icon (got error message as stated above)
What application server are you using?
Tomcat 5
Scott AndersonParticipantWhich specific M-build of Eclipse are you using? M3?
What specific version of the Tomcat 5 alpha are you using?
Have you made any modifications to the Tomcat 5 installation?
Are there any errors in the Eclipse log file (<workspace>/.metadata/.log)?–Scott
MyEclipse Support
vitodcMemberThanks for your help Scott.
Which specific M-build of Eclipse are you using? M3?
Yes M3
What specific version of the Tomcat 5 alpha are you using?
Binaries Tomcat 5.0.12 Beta KEYS
Have you made any modifications to the Tomcat 5 installation?
No (Normal Install)
Are there any errors in the Eclipse log file (<workspace>/.metadata/.log)?
I get a bunch of null exception errors. Do I need to send you the log?
Scott AndersonParticipantI get a bunch of null exception errors. Do I need to send you the log?
That’s probably a good start. Send it to support@genuitec.com and please include the full URL for this thread so we can cross reference it.
–Scott
MyEclipse Support
Scott AndersonParticipantVito,
Thank your for the log entries you provided via email:
Once I try to start Tomcat 5 with MyEclipse I get the following error message:
java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.stopServer()
at java.lang.Class.getMethod(Class.java:978)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:318)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:394)
I did a fresh reinstall of Eclipse, MyEclipe and Tomcat 5. There was no error log created once the fresh install was complete.
I installed Tomcat 5.0.12beta and had no problem debugging JSP’s with MyEclipse. From your email, it appears that your problem has also gone away with a reinstallation so I’m marking this issue as closed. Please let us know if you need anything else.
–Scott
MyEclipse Support
Scott AndersonParticipantVito,
Via email you said you’re still having a problem starting Tomcat. Can you start Tomcat successfully from a command window, outside of MyEclipse? Is your application available?
If so, what error are you now seeing when you start Tomcat with MyEclipse? What are you specifying as the Tomcat home and base directories?
–Scott
MyEclipse Support
vitodcMemberHi Scott,
I can start Tomcat via the Start Programs fashion, or through the Window XP Services.
The application is available once I start Tomcat outside Eclipse.
Tomcat home: C:\Program Files\Apache\Tomcat 5.0
Tomcat base: C:\Program Files\Apache\Tomcat 5.0
Tomcat Temp: C:\Program Files\Apache\Tomcat 5.0\tempWhen I installed Tomcat it asks for a JVM. I pointed the installation to: C:\j2sdk1.4.2\jre is that ok.
Erro message I get is:java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.stopServer()
at java.lang.Class.getMethod(Class.java:978)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:318)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:394)
Thanks
Vito
Scott AndersonParticipantVito,
When I installed Tomcat it asks for a JVM. I pointed the installation to: C:\j2sdk1.4.2\jre is that ok.
That’s OK, but it has nothing to do with the JDK used to start Tomcat within MyEclipse. Please navigate to Window > Preferences > MyEclipse > Application Servers > Tomcat 5 > JDK. Make sure that the top level directory (ie. NOT /jre) for a full JDK has been specified. If not, please specify one. Something like ‘C:\j2sdk1.4.2’ will be great.
org.apache.catalina.startup.Catalina.stopServer()
This is odd since this is the Stop command, not the Start command. Please double check that you’re issuing a Start, not a Stop. Also, please be sure you’ve configured the Tomcat 5 connector, not the Tomcat 4 connector for use with Tomcat 5.
–Scott
MyEclipse SupportFirst, please make sure that Tomcat isn’t already running outside of MyEclipse.
vitodcMemberHi Scott.
1- Yes I did specify the top level directory for a full JDK.
2- I get two messages. One for Stop and the Other for Start.
3- I did configure the Tomcat 5 connector.
4- Tomcat is set to manual in the Windows Services. (Then I try to start via MyEclipse)Any other suggestions?
Vito
Scott AndersonParticipantVito,
Did you make any changes at all to the classpath? The class in question is located in C:\Program Files\Apache\Tomcat 5.0\server\lib\catalina.jar on your system. Does the jar exist at this location in your installation? Does it include Catalina.class?
There’s obviously something wrong with your configuration or installation if this can’t be found because catalina.jar is added to the classpath automatically by the plugin. Very odd.
–Scott
MyEclipse Support
vitodcMemberHi Scott,
I am sorry to bother you.
Yes the class is in the C:\Program Files\Apache\Tomcat 5.0\server\lib\catalina.jar and yes it does include the Catalina.class file.I was wondering can you send me the links to the three softwares that you installed on your machine that work?
Eclipse
MyEclipse
Tomcat 5
JavaMaybe that may be my problem?????????
Thanks
vitodcMemberHi Scott,
Also within MyEclipse, is there a place that I would need to configure the port number?
I did that during the Tomcat install.Vito
Scott AndersonParticipantVito,
I was wondering can you send me the links to the three softwares that you installed on your machine that work?
Good idea. Here they are:
Eclipse 2.1.1: http://download2.eclipse.org/downloads/drops/R-2.1.1-200306271545/download.php?dropFile=eclipse-SDK-2.1.1-win32.zip
JDK 1.4.2: http://java.sun.com/webapps/download/Redirect/106753868/5847479377282807053505607246086069333228071972022813600060192859339008063305596058473206-3866/j2sdk-1_4_2_01-windows-i586-iftw.exe But that link looks like it will time out so it’s basically the SDK link on this page: http://java.sun.com/j2se/1.4.2/download.html
Tomcat 5: http://www.tux.org/pub/net/apache/dist/jakarta/tomcat-5/v5.0.12-beta/bin/jakarta-tomcat-5.0.12.exe
MyEclipse 2.6.2: http://www.myeclipseide.com/modules.php?op=modload&name=Downloads&file=index&req=getit&lid=21That pretty much does it. All software was installed with default settings according to instructions. For Tomcat, I didn’t set it up as a windows service.
Also within MyEclipse, is there a place that I would need to configure the port number?
No. When you start Tomcat it will simply start on the port you configured it to start on externally.
–Scott
MyEclipse Support -
AuthorPosts