- This topic has 5 replies, 2 voices, and was last updated 21 years, 2 months ago by Scott Anderson.
-
AuthorPosts
-
danshinMemberWhen I try to start Tomcat 4, I get the following error:
A configuration error occurred during startup. Please verify the preference field with the prompt: Tomcat JDK name
My setting for Tomcat JDK has j2re1.4.1_01 in the drop down list with nothing in the Optional Java VM Arguments.
Scott AndersonParticipantThe problem is that you’re using a JRE instead of a full JDK to start Tomcat. I used the forum search feature and looked for ‘Tomcat JDK’ and found this thread which details it for you.
https://www.genuitec.com/forums/topic/starting-tomcat-from-within-myeclipse/&highlight=tomcat+jdkInformation on this is also contained in the MyEclipse User Guide’s web development tutorial.
–Scott
MyEclipse Support
danshinMemberScott,
How do I point it to the full JDK? Also how do I modify or delete the existing TOMCAT JDK setup?Thank you,
Dan
Scott AndersonParticipantGood question. The JDK’s are installed in Window > Preferences > Java > Installed JRE’s. First, you need to be sure you really have a full JDK installed on your machine because your current directory, j2re1.4.1_01 is not one. We have a link on our download page to get you to a complete JDK download easily. Once that is installed, create a new entry in the preference page and set the installation directory to the top-level directory of the new JDK installation (something like j2sdk1.4.1_03, or whatever). Once that is done, go back to the Tomcat > JDK preference page and tell it to use the new one you just added.
–Scott
MyEclipse Support
danshinMemberScott,
I added a new entry for the Tomcat JDK and now I don’t get that error.What shows on the console from that action is below:
Catalina.stop: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.<init>(Socket.java:291) at java.net.Socket.<init>(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Is this correct? First line of the console saids connection refused.
Scott AndersonParticipantFrom this trace it looked like you accidentally told the server to stop, without it being started previously.
Catalina.stop: java.net.ConnectException: Connection refused:
See, it’s from Catalina.stop, which is the stop command. The connection is being refused because Tomcat isn’t running.
How about trying to start it again.
–Scott
MyEclipse Support -
AuthorPosts