1 Reply Latest reply on Dec 11, 2015 9:44 AM by Benjamin Maurer

    Deployment issues "could not read entries: java.io.FileNotFoundException"

    Benjamin Maurer Newbie

      Hello,

      I'm trying to modernize our Seam Application  running on JBoss 7.1.1.Final. Right now I'm replacing Ant with Maven and am getting rid of some old stuff.

      But the new Maven built EAR won't deploy. The old ant build would run. There certainly are quite some changes, because the whole build process has changed

      and I have gotten rid of some old code already.

       

      When starting I get erros like these (Unfortunately, for some reason, they are in German, I'll try my best to translate):

       

      WARN  [org.jboss.seam.deployment.URLScanner] (MSC service thread 1-12) could not read entries: java.io.FileNotFoundException: C:\jboss-as-7.1.1.Final\bin\content\myProg.ear\lib\jboss-seam-2.3.1.Final.jar (Das System kann den angegebenen Pfad nicht finden) //The system can't find the given path

       

      WARN  [org.jboss.seam.deployment.URLScanner] (MSC service thread 1-12) could not read entries: java.io.FileNotFoundException: C:\jboss-as-7.1.1.Final\bin\content\myProg.ear\logis3-web-1.0-SNAPSHOT.war\WEB-INF\classes (Das System kann den angegebenen Pfad nicht finden)

       

      WARN  [org.jboss.seam.deployment.URLScanner] (MSC service thread 1-12) could not read entries: java.io.FileNotFoundException: C:\jboss-as-7.1.1.Final\bin\content\myProg.ear\jboss-seam-2.3.1.Final.jar (Das System kann den angegebenen Pfad nicht finden)

       

      WARN  [org.jboss.seam.deployment.URLScanner] (MSC service thread 1-12) could not read entries: java.io.FileNotFoundException: C:\jboss-as-7.1.1.Final\bin\content\myProg.ear\myProg-ejb-1.0-SNAPSHOT.jar (Das System kann den angegebenen Pfad nicht finden)

      [...]

       

      Why is it even looking in bin\content?? The files do exist in the .ear file, but that is in \standalone\deployment

       

      The first error is here:

       

      ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (MSC service thread 1-12) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.NullPointerException

      at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:145) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

          at org.jboss.seam.init.Initialization.init(Initialization.java:813) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

          at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam-2.3.1.Final.jar:2.3.1.Final]

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_80]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_80]

          at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]

       

      The application.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <application 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/application_6.xsd" version="6">

        <display-name>myProg-ear</display-name>

        <initialize-in-order>true</initialize-in-order>

        <module>

          <ejb>myProg-ejb-1.0-SNAPSHOT.jar</ejb>

        </module>

        <module>

          <web>

            <web-uri>myProg-web-1.0-SNAPSHOT.war</web-uri>

            <context-root>/</context-root>

          </web>

        </module>

        <module>

          <java>jboss-seam-2.3.1.Final.jar</java>

        </module>

        <library-directory>lib</library-directory>

      </application>

       

      The root of my Ear contains my JAR, WAR and the jboss-seam.jar (like in http://docs.jboss.org/seam/2.3.1.Final/reference/html/configuration.html#d0e24864)

       

      Any ideas??