facebook

MyEclipse Tomcat server suddenly crashes

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #339306 Reply

    jehanjaleel
    Member

    Hi,

    I deployed a web app in MyEclipse Tomcat server and it was working but then after I added some jars to resolve some missing library exceptions, the server suddenly stopped working. If I go the Servers tab and right click on the server and choose either “Run” or “Debug”, the response is the same. The sever starts up, what is below is printed to the console, and then the server dies. Meaning it terminates (it shows as “Stopped” on the Servers tab) . I tried restarting MyEclipse and even my computer.

    Any help?

    May 21, 2013 6:11:15 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Users\thinkpad\AppData\Local\MyEclipse for Spring\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;C:\Users\thinkpad\AppData\Local\MyEclipse for Spring\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_9.0.0.me201109141806\tomcat\bin
    May 21, 2013 6:11:15 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    May 21, 2013 6:11:15 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 386 ms
    May 21, 2013 6:11:15 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    May 21, 2013 6:11:15 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
    May 21, 2013 6:11:16 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun’s JavaServer Faces implementation (1.2_04-b07-FCS) for context ‘/mturk-web’
    log4j:WARN No appenders could be found for logger (com.freedomoss.crowdcontrol.listener.CheckDatabaseVersionListener).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

    #339317 Reply

    jehanjaleel,

    Sorry that you are seeing this issue.

    Can you please switch to a new workspace and go to Window > Preferences > MyEclipse > Servers > Integrated sandbox > MyEclipse Tomcat > click “Restore MyEclipse tomcat server installation” and then try running the MyEclipse Tomcat server.

    If you are still facing any issues, can you please answer some more questions to help us investigate further :
    1) Can you please share your installation details from MyEclipse > Installation summary > Installation details ?
    2) Can you please mention exactly what jars you added and where did you add them ? Did you add them in the tomcat directory or to the web app ?

    #339341 Reply

    jehanjaleel
    Member

    Hi,

    I was able to resolve that issue with your suggestion of creating new workspace. Now I am facing another issue. In my tomcat context.xml file (located in conf folder) I had to make the following entry to create a datasource..

    <Resource name=”jdbc/mturkds” auth=”Container” type=”javax.sql.DataSource”
    maxActive=”50″ maxIdle=”-1″ maxWait=”-1″
    username=”root” password=”lpr419″ driverClassName=”com.mysql.jdbc.Driver”
    url=”jdbc:mysql://localhost:3306/mturk?characterEncoding=UTF-8″/>

    But after making this change I get the following exception when server starts…

    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class ‘com.mysql.jdbc.Driver’

    Now I have the jar for the mysql driver in my application’s WEB-INF/lib folder but I was reading in some forum posts that it also needs to be in the “TOMCAT_HOME/common/lib directory”. But in MyEclipse tomcat I see no such directory.

    I also tried creating a common\lib directory at “<workspace>\.metadata\.me_tcat” but this also did not work. It still gives that exception.

    Thanks again for all your help.

    #339357 Reply

    jehanjaleel,

    You need to copy the mysql jar file to <MyEclipse installation dir>/plugins/com.genuitec.eclipse.easie.tomcat.myeclipse_xxxxxxxxx/tomcat/lib folder.

    Please take a look at this thread for more information on MyEclipse files and folders :
    https://www.genuitec.com/forums/topic/installation-where-are-the-myeclipse-files-and-folders/

    I would suggest you use another instance of Tomcat instead of using MyEclipse Tomcat. You can setup a connector by pointing it to another instance of Tomcat 6. Let me know if you need any further assistance.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: MyEclipse Tomcat server suddenly crashes

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