facebook

Error starting Tomcat

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #197967 Reply

    danshin
    Member

    When 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.

    #197977 Reply

    Scott Anderson
    Participant

    The 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+jdk

    Information on this is also contained in the MyEclipse User Guide’s web development tutorial.

    –Scott
    MyEclipse Support

    #197989 Reply

    danshin
    Member

    Scott,
    How do I point it to the full JDK? Also how do I modify or delete the existing TOMCAT JDK setup?

    Thank you,
    Dan

    #197991 Reply

    Scott Anderson
    Participant

    Good 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

    #197995 Reply

    danshin
    Member

    Scott,
    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.

    #198007 Reply

    Scott Anderson
    Participant

    From 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

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Error starting Tomcat

You must be logged in to post in the forum log in