facebook

Tomcat 7 problems

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #319161 Reply

    skiabox
    Member

    I am trying to run a simple jsp project using MyEclipse with no luck so far.
    Here is the console log :

    
    Aug 22, 2011 10:37:50 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:/Library/Tomcat/bin
    Aug 22, 2011 10:37:51 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-bio-8080"]
    Aug 22, 2011 10:37:51 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
    Aug 22, 2011 10:37:51 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 817 ms
    Aug 22, 2011 10:37:51 PM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    Aug 22, 2011 10:37:51 PM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.19
    Aug 22, 2011 10:37:51 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory .myeclipse
    Aug 22, 2011 10:37:53 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra 2.1.2 (FCS 20110613) for context '/.myeclipse'
    Aug 22, 2011 10:37:53 PM com.sun.faces.spi.InjectionProviderFactory createInstance
    INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
    Aug 22, 2011 10:37:54 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/.myeclipse is unusable.
    Aug 22, 2011 10:37:54 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory .settings
    Aug 22, 2011 10:37:55 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra 2.1.2 (FCS 20110613) for context '/.settings'
    Aug 22, 2011 10:37:55 PM com.sun.faces.spi.InjectionProviderFactory createInstance
    INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
    Aug 22, 2011 10:37:55 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/.settings is unusable.
    Aug 22, 2011 10:37:55 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory catalina-ant
    Aug 22, 2011 10:37:56 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra 2.1.2 (FCS 20110613) for context '/catalina-ant'
    Aug 22, 2011 10:37:56 PM com.sun.faces.spi.InjectionProviderFactory createInstance
    INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
    Aug 22, 2011 10:37:56 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/catalina-ant is unusable.
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory docs
    Aug 22, 2011 10:37:56 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/docs is unusable.
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory examples
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
    Aug 22, 2011 10:37:56 PM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    Aug 22, 2011 10:37:56 PM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    Aug 22, 2011 10:37:56 PM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeAdded('com.sun.faces.patternCache', '{}')
    Aug 22, 2011 10:37:56 PM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeAdded('com.sun.faces.config.WebConfiguration', 'com.sun.faces.config.WebConfiguration@575e6691')
    Aug 22, 2011 10:37:56 PM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('com.sun.faces.config.WebConfiguration', 'com.sun.faces.config.WebConfiguration@575e6691')
    Aug 22, 2011 10:37:56 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/examples is unusable.
    Aug 22, 2011 10:37:56 PM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@1ee7ccd7')
    Aug 22, 2011 10:37:56 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory host-manager
    Aug 22, 2011 10:37:57 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/host-manager is unusable.
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory jakarta-taglibs-standard-1.1.2
    Aug 22, 2011 10:37:57 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra 2.1.2 (FCS 20110613) for context '/jakarta-taglibs-standard-1.1.2'
    Aug 22, 2011 10:37:57 PM com.sun.faces.spi.InjectionProviderFactory createInstance
    INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
    Aug 22, 2011 10:37:57 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/jakarta-taglibs-standard-1.1.2 is unusable.
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory jstltest
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
    Aug 22, 2011 10:37:57 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/jstltest is unusable.
    Aug 22, 2011 10:37:57 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory manager
    Aug 22, 2011 10:37:58 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/manager is unusable.
    Aug 22, 2011 10:37:58 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory MyProject1
    Aug 22, 2011 10:37:58 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra 2.1.2 (FCS 20110613) for context '/MyProject1'
    Aug 22, 2011 10:37:58 PM com.sun.faces.spi.InjectionProviderFactory createInstance
    INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
    Aug 22, 2011 10:37:58 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/MyProject1 is unusable.
    Aug 22, 2011 10:37:58 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory ROOT
    Aug 22, 2011 10:37:58 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/_ is unusable.
    Aug 22, 2011 10:37:58 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory servletExamples
    Aug 22, 2011 10:37:59 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra 2.1.2 (FCS 20110613) for context '/servletExamples'
    Aug 22, 2011 10:37:59 PM com.sun.faces.spi.InjectionProviderFactory createInstance
    INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
    Aug 22, 2011 10:37:59 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/servletExamples is unusable.
    Aug 22, 2011 10:37:59 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory store
    Aug 22, 2011 10:37:59 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/store is unusable.
    Aug 22, 2011 10:37:59 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory stylesheet
    Aug 22, 2011 10:37:59 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Mojarra 2.1.2 (FCS 20110613) for context '/stylesheet'
    Aug 22, 2011 10:38:00 PM com.sun.faces.spi.InjectionProviderFactory createInstance
    INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
    Aug 22, 2011 10:38:00 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/stylesheet is unusable.
    Aug 22, 2011 10:38:00 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory test
    Aug 22, 2011 10:38:00 PM org.apache.jasper.EmbeddedServletOptions <init>
    SEVERE: The scratchDir you specified: /Library/Tomcat/work/Catalina/localhost/test is unusable.
    Aug 22, 2011 10:38:00 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8080"]
    Aug 22, 2011 10:38:00 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-8009"]
    Aug 22, 2011 10:38:00 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 9246 ms
    
    

    The tomcat server seem to run and the application seems deployed but when I go to the url : http://localhost:8080/MyProject1/
    I get the following error :

    
    HTTP Status 404 - /MyProject1/
    
    type Status report
    
    message /MyProject1/
    
    description The requested resource (/MyProject1/) is not available.
    
    Apache Tomcat/7.0.19
    

    Thank you.

    (I have deployed numerous projects manually in the past so it is a problem of MyEclipse and not of tomcat 7)

    #319180 Reply

    support-joy
    Member

    skiabox,

    Based on your log messages it appears that tomcat 7 has started and there are no issues logged.

    HTTP Status 404 – /MyProject1/

    type Status report

    message /MyProject1/

    description The requested resource (/MyProject1/) is not available.

    Apache Tomcat/7.0.19

    Have you verified what is the welcome-file name under web.xml? 404 indicates file not found. I think you could be missing the application welcome file.

    Please answer below queries –
    1. What is your installation detail? Open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Detail and copy and paste the same here
    2. What is your version-id and build-id? From menu options click on Help > About MyEclipse Enterprise Workbench and copy and paste version-id and build-id here
    3. Check your problems tab and look for any issue reported. (Window > Show / View > Problems)
    4. Refer your .log file located at [your workspace dir]/.metadata/.log and look for relevant issues logged

    To verify that the issue is not with MyEclipse or tomcat 7, do the following –
    1. From menu options click on MyEclipse > Examples on Demand
    2. This will open – examples on demand browser
    3. Check out any project by clicking on the [install] button
    4. For e.g if you check-out “SimpleJSPExample”, right click on the same > run as > MyEclipse Server Application > tomcat 7.x
    5. Open a web browser and check the output here – http://localhost:8080/SimpleJSPExample/

    Let me know how this works for you.

    #319182 Reply

    skiabox
    Member

    1.———————————————-

    
    *** Date: 
    Tuesday, August 23, 2011 11:23:32 AM EEST
    
    ** System properties:
    OS=MacOSX
    OS version=10.7.1
    Java version=1.6.0_26
    
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 9.1
    Build id: 9.1-20110701
    
    
    *** Eclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 9.1
    Build id: 9.1-20110701
    
    
    
    
    
    
    Eclipse startup command=-os
    macosx
    -ws
    cocoa
    -arch
    x86_64
    -showsplash
    -launcher
    /Applications/MyEclipse/MyEclipse 9.app/Contents/Profile/myeclipse.app/Contents/MacOS/myeclipse
    -name
    Myeclipse
    --launcher.library
    /Applications/MyEclipse/MyEclipse 9.app/Contents/Profile/myeclipse.app/Contents/MacOS//../../../../../../Common/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1.R36x_v20100810/eclipse_1309.so
    -startup
    /Applications/MyEclipse/MyEclipse 9.app/Contents/Profile/myeclipse.app/Contents/MacOS/../../../../../../Common/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
    -install
    /Applications/MyEclipse/MyEclipse 9.app/Contents/Profile
    -configuration
    /Applications/MyEclipse/MyEclipse 9.app/Contents/Profile/configuration
    -keyring
    /Users/skiabox/.eclipse_keyring
    -showlocation
    -vm
    /System/Library/Frameworks/JavaVM.framework
    
    
    

    2.—————————————–

    
    MyEclipse Enterprise Workbench
    
    Version: 9.1
    Build id: 9.1-20110701
    

    3.——————————————
    No problems

    4.——————————————
    No problems

    The example is working fine.

    #319183 Reply

    skiabox
    Member

    After MyProject1 there are two folders : src and WebRoot

    #319185 Reply

    skiabox
    Member

    I tried http://localhost:8080/MyProject1/WebRoot/ and it worked.
    Is this WebRoot folder mandatory to all apps?

    #319188 Reply

    support-joy
    Member

    skiabox ,

    Whenever you create a web project in MyEclipse, it creates 2 sub-folders – src and webroot. Webroot is the root folder which consists of web contents and resources such as JSP / html files, taglibs, etc. src contains java source code. If you are not familiar with MyEclipse, I suggest you go through our educational material available here – http://www.myeclipseide.com/module-htmlpages-display-pid-7.html

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Tomcat 7 problems

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