#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    1
    Rep Power
    0

    Catalina exception


    hi,
    i have a problem to deploy my application on tomcat.
    If i try deploy a simple application, like a single jsp page there aren't errors, but if i upload my complete application, it's doesn't work.
    this is the complete log file:

    Mar 22, 2013 4:49:23 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: /root/java/jre/lib/amd64/server:/root/java/jre/lib/amd64:/root/java/jre/../lib/amd64::/root/java/jre/lib/amd64/server:/root/java/jre/lib/amd64:/root/java/jre/../lib/amd64:/root/gigaspaces/tools/cli/../../lib/platform/native:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
    Mar 22, 2013 4:49:23 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-bio-8080"]
    Mar 22, 2013 4:49:23 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
    Mar 22, 2013 4:49:23 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 926 ms
    Mar 22, 2013 4:49:24 PM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    Mar 22, 2013 4:49:24 PM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
    Mar 22, 2013 4:49:24 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive /root/gigaspaces/work/processing-units/miaapp_tomcat_1/ext/apache-tomcat-7.0.37/webapps/miaapp.war
    Mar 22, 2013 4:49:24 PM org.apache.catalina.loader.WebappLoader startInternal
    SEVERE: LifecycleException
    java.io.IOException: Failed to copy resources
    at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:996)
    at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:605)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5156)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Mar 22, 2013 4:49:24 PM org.apache.catalina.core.ContainerBase addChildInternal
    SEVERE: ContainerBase.addChild: start:
    org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/miaapp]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: org.apache.catalina.LifecycleException: Failed to start component [WebappLoader[/miaapp]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5156)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 11 more
    Caused by: org.apache.catalina.LifecycleException: start:
    at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:631)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 13 more
    Caused by: java.io.IOException: Failed to copy resources
    at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:996)
    at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:605)
    ... 14 more
    Mar 22, 2013 4:49:24 PM org.apache.catalina.startup.HostConfig deployWAR
    SEVERE: Error deploying web application archive /root/gigaspaces/work/processing-units/miaapp_tomcat_1/ext/apache-tomcat-7.0.37/webapps/miaapp.war
    java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/miaapp]]
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
    at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Mar 22, 2013 4:49:24 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /root/gigaspaces/work/processing-units/miaapp_tomcat_1/ext/apache-tomcat-7.0.37/webapps/host-manager
    Mar 22, 2013 4:49:24 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /root/gigaspaces/work/processing-units/miaapp_tomcat_1/ext/apache-tomcat-7.0.37/webapps/ROOT
    Mar 22, 2013 4:49:24 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /root/gigaspaces/work/processing-units/miaapp_tomcat_1/ext/apache-tomcat-7.0.37/webapps/examples
    Mar 22, 2013 4:49:24 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /root/gigaspaces/work/processing-units/miaapp_tomcat_1/ext/apache-tomcat-7.0.37/webapps/manager
    Mar 22, 2013 4:49:24 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /root/gigaspaces/work/processing-units/miaapp_tomcat_1/ext/apache-tomcat-7.0.37/webapps/docs
    Mar 22, 2013 4:49:24 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8080"]
    Mar 22, 2013 4:49:24 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-8009"]
    Mar 22, 2013 4:49:24 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 996 ms

    this is the xml file:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
          version="3.0">
      <display-name>miaapp</display-name>
      <welcome-file-list>
         <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
    </web-app>
    and this is all the libraries:
    antlr-2.7.6.jar
    aopalliance-1.0.jar
    apache-cassandra-0.7.0.jar
    asm-3.1.jar
    aspectjrt-1.6.9.jar
    aspectjweaver-1.6.8.jar
    avro-1.4.0-fixes.jar
    cglib-2.2.jar
    commons-beanutils-1.8.0.jar
    commons-codec-1.4.jar
    commons-collections-3.2.1.jar
    commons-digester-2.0.jar
    commons-lang-2.4.jar
    commons-logging-1.1.1.jar
    concurrentlinkedhashmap-lru-1.1.jar
    dom4j-1.6.1.jar
    guava-r06.jar
    hadoop-core-0.20.2-320.jar
    hadoop-streaming-0.20.2-320.jar
    hector-core-0.7.0-23.jar
    hibernate-commons-annotations-3.2.0.Final.jar
    hibernate-core-3.6.0.Final.jar
    hibernate-entitymanager-3.6.0.Final.jar
    hibernate-jpa-2.0-api-1.0.0.Final.jar
    hibernate-validator-4.1.0.Final.jar
    high-scale-lib-1.0.jar
    hsqldb-1.8.0.10.jar
    jackson-core-asl-1.4.0.jar
    jackson-mapper-asl-1.4.0.jar
    javassist-3.12.0.GA.jar
    javax.inject-1.jar
    jcl-over-slf4j-1.5.6.jar
    jetty-util-6.1.21.jar
    joda-time-1.6.2.jar
    joda-time-jsptags-1.0.2.jar
    jstl-1.2.jar
    jta-1.1.jar
    jug-2.0.0-asl.jar
    libthrift-0.5.jar
    log4j-1.2.16.jar
    perf4j-0.9.12.jar
    slf4j-api-1.5.6.jar
    slf4j-log4j12-1.5.6.jar
    snakeyaml-1.6.jar
    spring-aop-3.0.5.RELEASE.jar
    spring-asm-3.0.5.RELEASE.jar
    spring-beans-3.0.5.RELEASE.jar
    spring-binding-2.2.1.RELEASE.jar
    spring-context-3.0.5.RELEASE.jar
    spring-context-support-3.0.5.RELEASE.jar
    spring-core-3.0.5.RELEASE.jar
    spring-expression-3.0.5.RELEASE.jar
    spring-jdbc-3.0.5.RELEASE.jar
    spring-js-2.2.1.RELEASE.jar
    spring-js-resources-2.2.1.RELEASE.jar
    spring-orm-3.0.5.RELEASE.jar
    spring-security-acl-3.0.5.RELEASE.jar
    spring-security-config-3.0.5.RELEASE.jar
    spring-security-core-3.0.5.RELEASE.jar
    spring-security-taglibs-3.0.5.RELEASE.jar
    spring-security-web-3.0.5.RELEASE.jar
    spring-tx-3.0.5.RELEASE.jar
    spring-web-3.0.5.RELEASE.jar
    spring-webflow-2.2.1.RELEASE.jar
    spring-webmvc-3.0.5.RELEASE.jar
    tiles-api-2.2.2.jar
    tiles-core-2.2.2.jar
    tiles-jsp-2.2.2.jar
    tiles-servlet-2.2.2.jar
    tiles-template-2.2.2.jar
    validation-api-1.0.0.GA.jar

    is the first time i working with tomcat without help, and i have no idea how to fix this. Thx to everyone
  2. #2
  3. Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2004
    Location
    Superior, CO, USA
    Posts
    2,418
    Rep Power
    1713
    Simplify the issue. You said a single JSP works but you haven't explained why you need all of the jar files if you've got a web.xml that does basically nothing. My guess is that one of the jar files is trying to initialize something and it can't because it's missing a config file or some other resource. For example, the Hibernate jars may be trying to find a config file.

    Remove all of the jars and only add them if you need them. If your application doesn't need them then don't have them in there.

IMN logo majestic logo threadwatch logo seochat tools logo