facebook

MyEclipse 10 Tomcat Hangs on MAC OSX

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

    James Camire
    Member

    I just upgraded to MyEclipse 10 on Mac OSX version 10.7.2 (Lion). I am using Tomcat 7.0.22 and Java 1.6.0_29. Tomcat launches fine with the shipped webapps. When I try and run a simple web app from MyEclipse, the server hangs.

    The tomcat logs are empty and all file permissions seem correct. The same web apps run on the Windows version of MyEclipse 10 with no problem.

    Here is the log output from MyEclipse:

    Nov 14, 2011 3:40:28 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/Users/james/Library/Tomcat/apache-tomcat-7.0.22/bin
    Nov 14, 2011 3:40:28 PM org.apache.tomcat.util.digester.Digester endElement
    WARNING: No rules found matching ‘Server/Service/Engine/Host/context’.
    Nov 14, 2011 3:40:29 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler [“http-bio-9000”]
    Nov 14, 2011 3:40:29 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler [“ajp-bio-8009”]
    Nov 14, 2011 3:40:29 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1320 ms
    Nov 14, 2011 3:40:29 PM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    Nov 14, 2011 3:40:29 PM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.22
    Nov 14, 2011 3:40:29 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory binary
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
    Nov 14, 2011 3:40:31 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined

    #321068 Reply

    support-tony
    Keymaster

    jcamire,

    Sorry you are seeing this problem.

    I’m afraid I couldn’t replicate the problem. I updated to Lion 10.7.2, downloaded Tomcat 7.0.22 and set the default JRE to the Mac’s 1.6.0_29. I’m running the Cocoa 64 bit install of MyEclipse, though I don’t know if that should make a difference. I created a Web Project, adding nothing. I then used the context menu, Run As, to run the project on Tomcat 7. This is the console I got:

    Nov 15, 2011 7:33:01 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/Users/tony/Downloads/apache-tomcat-7.0.22/bin
    Nov 15, 2011 7:33:01 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-bio-8080"]
    Nov 15, 2011 7:33:01 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
    Nov 15, 2011 7:33:01 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1300 ms
    Nov 15, 2011 7:33:01 PM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    Nov 15, 2011 7:33:01 PM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.22
    Nov 15, 2011 7:33:01 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory docs
    Nov 15, 2011 7:33:02 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory examples
    Nov 15, 2011 7:33:02 PM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    Nov 15, 2011 7:33:02 PM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    Nov 15, 2011 7:33:02 PM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@34c7e8a7')
    Nov 15, 2011 7:33:02 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory host-manager
    Nov 15, 2011 7:33:02 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory manager
    Nov 15, 2011 7:33:02 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory ROOT
    Nov 15, 2011 7:33:02 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory Webby
    Nov 15, 2011 7:33:04 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra 2.0.3 (FCS b03) for context '/Webby'
    Nov 15, 2011 7:33:05 PM com.sun.faces.spi.InjectionProviderFactory createInstance
    INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
    Nov 15, 2011 7:33:06 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8080"]
    Nov 15, 2011 7:33:06 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-8009"]
    Nov 15, 2011 7:33:06 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 4739 ms

    Note, the root context for my web app is “Webby”.

    The console is different from yours in a few ways. I don’t get that early warning message, “No rules found matching ‘Server/Service/Engine/Host/context’. ” It then diverges after “org.apache.catalina.startup.HostConfig deployDirectory”.

    Have you modified the Tomcat set up in any way? Can you deploy the web app and then start Tomcat externally?

    #321090 Reply

    James Camire
    Member

    I created a new web app and was able to get it to run. I started adding capabilities one at a time and everything worked until I tried adding the DB connection. it looks like SQL Server JDBC drivers don’t work with the 1.6.0_29 update. I will try and resolve that issue. Thanks for the assist.

    #321109 Reply

    support-tony
    Keymaster

    jcamire,

    No problem. I hope you manage to sort out the DB drivers.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: MyEclipse 10 Tomcat Hangs on MAC OSX

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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