/media/work1/opensource/testrest/target/testrest-0.0.1-SNAPSHOT/META-INF/context.xml (No such file or directory)

Apache's JIRA Issue Tracker | Glen Mazza | 4 years ago
  1. 0

    Hi, I switched from the Codehaus to the Apache Tomcat plugin for Apache CXF's REST archetype: For "mvn clean install" to work with the new plugin I needed to add an empty META-INF/context.xml file: This file was never needed by the Codehaus plugin. If I didn't add it for the Apache one, "mvn clean install" returns this error: [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ testrest --- [INFO] Skipping execution of surefire because it has already been run for this configuration [INFO] [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ testrest --- [INFO] Packaging webapp [INFO] Assembling webapp [testrest] in [/media/work1/opensource/testrest/target/testrest-0.0.1-SNAPSHOT] [INFO] Processing war project [INFO] Copying webapp resources [/media/work1/opensource/testrest/src/main/webapp] [INFO] Webapp assembled in [29 msecs] [INFO] Building war: /media/work1/opensource/testrest/target/testrest-0.0.1-SNAPSHOT.war [INFO] WEB-INF/web.xml already added, skipping [INFO] [INFO] <<< tomcat7-maven-plugin:2.0:run-war (start-tomcat) @ testrest <<< [INFO] [INFO] --- tomcat7-maven-plugin:2.0:run-war (start-tomcat) @ testrest --- [INFO] Running war on http://localhost:56114/jaxrs-service [INFO] Creating Tomcat server configuration at /media/work1/opensource/testrest/target/tomcat [INFO] create webapp with contextPath: /jaxrs-service Dec 08, 2012 2:37:48 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-56114"] Dec 08, 2012 2:37:48 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Tomcat Dec 08, 2012 2:37:48 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.30 Dec 08, 2012 2:37:48 PM org.apache.catalina.startup.ContextConfig processContextConfig SEVERE: Missing context.xml: file:/media/work1/opensource/testrest/target/testrest-0.0.1-SNAPSHOT/META-INF/context.xml /media/work1/opensource/testrest/target/testrest-0.0.1-SNAPSHOT/META-INF/context.xml (No such file or directory) at Method) at<init>( at<init>( at at at at org.apache.catalina.startup.ContextConfig.processContextConfig( at org.apache.catalina.startup.ContextConfig.contextConfig( at org.apache.catalina.startup.ContextConfig.init( at org.apache.catalina.startup.ContextConfig.lifecycleEvent( at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent( at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent( at org.apache.catalina.util.LifecycleBase.setStateInternal( at org.apache.catalina.util.LifecycleBase.init( at org.apache.catalina.util.LifecycleBase.start( at org.apache.catalina.core.ContainerBase$ at org.apache.catalina.core.ContainerBase$ at java.util.concurrent.FutureTask$Sync.innerRun( at at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at Once I added the context.xml file (with just an empty <context/> element) to the project the new plugin ran fine like the old one. Is there something wrong with my archetype's pom (link at the top) requiring me to create this empty context.xml file? If not, then it looks like a bug in the plugin -- I shouldn't be required to create an empty META-INF/context.xml file when using this plugin -- it should be able to default to whatever defaults it is using with this empty file I'm now providing it.

    Apache's JIRA Issue Tracker | 4 years ago | Glen Mazza /media/work1/opensource/testrest/target/testrest-0.0.1-SNAPSHOT/META-INF/context.xml (No such file or directory)
  2. 0

    ImportControl module throws

    GitHub | 3 years ago | oslater cannot initialize module TreeWalker - Cannot set property 'file' in module ImportControl to 'checkstyle_import_control.xml': Unable to load checkstyle_import_control.xml
  3. 0

    Illegal character in path at index 0: \\xsl\\index.xsl

    GitHub | 3 years ago | shailendrasoni D:\Shailendra\pp\projects\tcp2\rultor\rultor-web\target\test-classes\META-INF\MANIFEST.MF (The system cannot find the path specified)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [#LOGBACK-893] Corrupted Joran exception output - JIRA | 1 year ago /SOME_PATH/logback.xml (Нет такого файла или каталога)
  6. 0

    CMU Sphinx / Forums / Sphinx4 Help:How to add new acoustic model to sphinx 4 | 11 months ago
    edu.cmu.sphinx.util.props.PropertyException: new.cd_cont_100/means (No such file or directory)

  1. serious2monkeys 2 times, last 3 days ago
  2. davidvanlaatum 2 times, last 1 week ago
  3. balintn 1 times, last 6 months ago
  4. bpbhat77 1 times, last 8 months ago
8 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis


    /media/work1/opensource/testrest/target/testrest-0.0.1-SNAPSHOT/META-INF/context.xml (No such file or directory)

  2. Java RT
    1. Method)
    6 frames
  3. Glassfish Core
    1. org.apache.catalina.startup.ContextConfig.processContextConfig(
    2. org.apache.catalina.startup.ContextConfig.contextConfig(
    3. org.apache.catalina.startup.ContextConfig.init(
    4. org.apache.catalina.startup.ContextConfig.lifecycleEvent(
    5. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
    6. org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
    7. org.apache.catalina.util.LifecycleBase.setStateInternal(
    8. org.apache.catalina.util.LifecycleBase.init(
    9. org.apache.catalina.util.LifecycleBase.start(
    10. org.apache.catalina.core.ContainerBase$
    11. org.apache.catalina.core.ContainerBase$
    11 frames
  4. Java RT
    1. java.util.concurrent.FutureTask$Sync.innerRun(
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(
    4. java.util.concurrent.ThreadPoolExecutor$
    5 frames