2 Replies Latest reply on Mar 11, 2002 7:51 PM by 3004

    Could not find Web application "/mnt/windows/bea/wlserver6.0/./config/generic

    3004

      Dear all,


      I'm trying to start weblogic server 6.0 on my machine, but I get the following
      message:
      <Feb 7, 2002 1:20:18 PM GMT+00:00> <Error> <HTTP> <[HTTP genericServer] Could
      not find Web application "/mnt/windows/bea/wlserver6.0/./config/generic/applications/.wl_temp_do_not_delete/wl_local_comp35562.war"
      java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar file
      at weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoader.java:196)


      The file path is incorrect. There is one dot too many.
      /mnt/windows/bea/wlserver6.0/./config/generic/...


      I checked the config.xml file and it seems fine. Here is the header of the file:
      <Domain
      Name="examples"
      >
      <Server
      Name="examplesServer"
      ListenPort="7001"
      AcceptBacklog="50"
      AdministrationPort="0"
      ClusterWeight="1"
      ConsoleInputEnabled="false"
      DGCIdlePeriodsUntilTimeout="2"
      DefaultProtocol="t3"
      DefaultSecureProtocol="t3s"
      ExecuteQueues=""
      HttpdEnabled="true"
      JavaCompiler="/mnt/windows/bea/jdk130/bin/javac"
      SocketReaderTimeoutMaxMillis="10"
      NativeIOEnabled="true"
      TransactionLogFilePrefix="./config/examples/logs/"
      TunnelingClientPingSecs="45"
      TunnelingClientTimeoutDebuggingEnabled="false"
      TunnelingClientTimeoutSecs="40"
      XMLRegistry="examplesXMLRegistry"
      >
      <WebServer
      DefaultWebApp="DefaultWebApp_examplesServer"
      LogFileName="./config/examples/logs/access.log"
      LoggingEnabled="true"
      Name="examplesServer"
      />
      <SSL
      ListenPort="7002"
      Enabled="true"
      ServerCertificateChainFileName="./config/examples/ca.pem"
      ServerCertificateFileName="./config/examples/democert.pem"
      ServerKeyFileName="./config/examples/demokey.pem"
      TrustedCAFileName="./config/examples/ca.pem"
      PeerValidationEnforced="0"
      />
      <Log
      FileName="./config/examples/logs/weblogic.log"
      />
      </Server>
      <Application
      Deployed="true"
      Name="DefaultWebApp_examplesServer"
      Path="config/examples/applications"
      >
      <WebAppComponent
      Name="DefaultWebApp_examplesServer"
      Targets="examplesServer"
      URI="DefaultWebApp_examplesServer"
      />
      </Application>


      Before starting the server I setup the environment variables like this:
      export WL_HOME=/mnt/windows/bea/wlserver6.0
      export APPLICATIONS=$WL_HOME/config/generic/applications
      export CLIENT_CLASSES=$WL_HOME/config/generic/clientclasses
      export SERVER_CLASSES=$WL_HOME/config/generic/serverclasses
      export EX_WEBAPP_CLASSES=$WL_HOME/config/generic/applications/genericWebApp/WEB-INF/classes
      CLASSPATH=$JAVA_HOME/lib/tools.jar:$WL_HOME/lib/weblogic_sp.jar:$WL_HOME/lib/weblogic.jar
      CLASSPATH=$CLASSPATH:$WL_HOME/samples/eval/cloudscape/lib/cloudscape.jar:$CLIENT_CLASSES:$SERVER_CLASSES
      CLASSPATH=$CLASSPATH:$EX_WEBAPP_CLASSES:/mnt/windows/bea
      export CLASSPATH
      PATH=$PATH:$WL_HOME/bin
      PATH=$PATH:$JAVA_HOME/bin
      export PATH


      To start the server I use the following command:
      $JAVA_HOME/bin/java -hotspot -ms64m -mx64m -classpath $CLASSPATH -Dweblogic.Domain=generic
      -Dweblogic.Name=genericServer \
      -Dbea.home=/mnt/windows/bea -Dcloudscape.system.home=./samples/eval/cloudscape/data
      \
      -Djava.security.policy=/mnt/windows/bea/wlserver6.0/lib/weblogic.policy weblogic.Server
      -Dweblogic.management.password=provence &



      Any idea?
      Stephane
      stephaneeybert@hotmail.com


        • 1. Re: Could not find Web application "/mnt/windows/bea/wlserver6.0/./config/generic
          3004
          Looks like WEB-INF/web.xml file is missing in one of
          your WebApp's. Can you make sure that you have
          this file before starting the server.
          Also delete all the files in .wl_temp_do_not_delete files
          and restart the server.

          Stephane wrote:
          Dear all,

          I'm trying to start weblogic server 6.0 on my machine, but I get the following
          message:
          <Feb 7, 2002 1:20:18 PM GMT+00:00> <Error> <HTTP> <[HTTP genericServer] Could
          not find Web application "/mnt/windows/bea/wlserver6.0/./config/generic/applications/.wl_temp_do_not_delete/wl_local_comp35562.war"
          java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar file
          at weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoader.java:196)

          The file path is incorrect. There is one dot too many.
          /mnt/windows/bea/wlserver6.0/./config/generic/...

          I checked the config.xml file and it seems fine. Here is the header of the file:
          <Domain
          Name="examples"
          >
          <Server
          Name="examplesServer"
          ListenPort="7001"
          AcceptBacklog="50"
          AdministrationPort="0"
          ClusterWeight="1"
          ConsoleInputEnabled="false"
          DGCIdlePeriodsUntilTimeout="2"
          DefaultProtocol="t3"
          DefaultSecureProtocol="t3s"
          ExecuteQueues=""
          HttpdEnabled="true"
          JavaCompiler="/mnt/windows/bea/jdk130/bin/javac"
          SocketReaderTimeoutMaxMillis="10"
          NativeIOEnabled="true"
          TransactionLogFilePrefix="./config/examples/logs/"
          TunnelingClientPingSecs="45"
          TunnelingClientTimeoutDebuggingEnabled="false"
          TunnelingClientTimeoutSecs="40"
          XMLRegistry="examplesXMLRegistry"
          >
          <WebServer
          DefaultWebApp="DefaultWebApp_examplesServer"
          LogFileName="./config/examples/logs/access.log"
          LoggingEnabled="true"
          Name="examplesServer"
          />
          <SSL
          ListenPort="7002"
          Enabled="true"
          ServerCertificateChainFileName="./config/examples/ca.pem"
          ServerCertificateFileName="./config/examples/democert.pem"
          ServerKeyFileName="./config/examples/demokey.pem"
          TrustedCAFileName="./config/examples/ca.pem"
          PeerValidationEnforced="0"
          />
          <Log
          FileName="./config/examples/logs/weblogic.log"
          />
          </Server>
          <Application
          Deployed="true"
          Name="DefaultWebApp_examplesServer"
          Path="config/examples/applications"
          >
          <WebAppComponent
          Name="DefaultWebApp_examplesServer"
          Targets="examplesServer"
          URI="DefaultWebApp_examplesServer"
          />
          </Application>

          Before starting the server I setup the environment variables like this:
          export WL_HOME=/mnt/windows/bea/wlserver6.0
          export APPLICATIONS=$WL_HOME/config/generic/applications
          export CLIENT_CLASSES=$WL_HOME/config/generic/clientclasses
          export SERVER_CLASSES=$WL_HOME/config/generic/serverclasses
          export EX_WEBAPP_CLASSES=$WL_HOME/config/generic/applications/genericWebApp/WEB-INF/classes
          CLASSPATH=$JAVA_HOME/lib/tools.jar:$WL_HOME/lib/weblogic_sp.jar:$WL_HOME/lib/weblogic.jar
          CLASSPATH=$CLASSPATH:$WL_HOME/samples/eval/cloudscape/lib/cloudscape.jar:$CLIENT_CLASSES:$SERVER_CLASSES
          CLASSPATH=$CLASSPATH:$EX_WEBAPP_CLASSES:/mnt/windows/bea
          export CLASSPATH
          PATH=$PATH:$WL_HOME/bin
          PATH=$PATH:$JAVA_HOME/bin
          export PATH

          To start the server I use the following command:
          $JAVA_HOME/bin/java -hotspot -ms64m -mx64m -classpath $CLASSPATH -Dweblogic.Domain=generic
          -Dweblogic.Name=genericServer \
          -Dbea.home=/mnt/windows/bea -Dcloudscape.system.home=./samples/eval/cloudscape/data
          \
          -Djava.security.policy=/mnt/windows/bea/wlserver6.0/lib/weblogic.policy weblogic.Server
          -Dweblogic.management.password=provence &

          Any idea?
          Stephane
          stephaneeybert@hotmail.com
          • 2. Deploying the application...
            3004

            Hello,

            First thanks very much to you for having answered my call for help. Thank you!

            I have progressed and improved the setup.
            Here is a more detailled explanation of the problem.

            I have an application sitting in the auto deploying ./applications/ directory
            on a domain.


            The domain name is "generic".


            The directory tree is:

            ./config/generic/applications/
            ./config/generic/applications/.wl_temp_do_not_delete/
            ./config/generic/applications/DefaultWebApp_genericServer/
            ./config/generic/applications/generic-web-app/
            ./config/generic/applications/generic-web-app/generic-web-app.ear


            After unpacking the generic-web-app.ear file, the directory now contains:

            ./config/generic/applications/generic-web-app/generic-web-app.ear
            ./config/generic/applications/generic-web-app/META-INF/
            ./config/generic/applications/generic-web-app/generic-web-app.war


            After unpacking the generic-web-app.war file, the directory now contains:

            ./config/generic/applications/generic-web-app/META-INF/
            ./config/generic/applications/generic-web-app/WEB-INF/
            ./config/generic/applications/generic-web-app/generic-web-app.ear
            ./config/generic/applications/generic-web-app/generic-web-app.war
            ./config/generic/applications/generic-web-app/html/
            ./config/generic/applications/generic-web-app/index.html
            ./config/generic/applications/generic-web-app/javadoc/
            ./config/generic/applications/generic-web-app/jsp/


            At first I do not unpack the jar files.


            When starting bea weblogic 6.0 I get the following message:

            <Error> <HTTP> <[HTTP genericServer] Could not find Web application
            "/mnt/windows/bea/wlserver6.0/./config/generic/applications/.wl_temp_do_not_delete/wl_local_comp4571.war"
            java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar file


            Every time weblogic is started, it creates a temporary file, like the file .wl_temp_do_not_delete/wl_local_comp4571.war.
            But in my case, it creates the file .wl_temp_do_not_delete/wl_local_comp4572.war.
            And it references the file wl_local_comp4571.war.
            You can see a difference in the two numbers.


            The exact number doesn't matter very much (here 4571 and 4572).
            The fact is that whatever the number generated, the number referenced (here 4571)

            is different of the number in the file (here 4572).


            There seems to be a problem with the numbering scheme for this temporary file...


            This problem and its related message occurs only if the .ear file is not unpacked.


            Now if I unpack the generic-web-app.ear file in the applications/generic-web-app/
            directory,
            and if I also unpack the generic-web-app.war file int the applications/generic-web-app/
            directory,
            then I don't get this previous message and weblogic starts fine.
            I can then run my application without any problems, JSP pages are displayed, custom
            tags work fine.


            But if I don't unpack the generic-web-app.ear file, I get the error message.


            If I unpack the generic-web-app.ear file but do not unpack the generic-web-app.war
            file, then I get the following message:

            <Feb 10, 2002 2:27:06 AM GMT+00:00> <Info> <Logging> <Only log messages of severity
            "Error" or worse will be displayed in this window. This can be changed at Admin
            Console> generic> Servers> genericServer> Logging> Debugging> Stdout severity
            threshold>
            javax.xml.parsers.FactoryConfigurationError: java.lang.ClassNotFoundException:
            weblogic.xml.jaxp.RegistrySAXParserFactory
            at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:150)


            So as I said, by just unpacking the two jar files, and not moving any files, everything
            works fine.
            It's like weblogic cannot unpack correctly automatically the jar files of the
            application.
            Strange.


            Here is my classpath:

            export BEA_HOME=/mnt/windows/bea
            export WL_HOME=$BEA_HOME/wlserver6.0


            CLASSPATH=$JAVA_HOME/lib/tools.jar
            CLASSPATH=$CLASSPATH:$BEA_HOME
            CLASSPATH=$CLASSPATH:$WL_HOME/lib/ejb20.jar
            CLASSPATH=$CLASSPATH:$WL_HOME/lib/jms450.jar
            CLASSPATH=$CLASSPATH:$WL_HOME/lib/jms451.jar
            CLASSPATH=$CLASSPATH:$WL_HOME/lib/jms500.jar
            CLASSPATH=$CLASSPATH:$WL_HOME/lib/jms510.jar
            CLASSPATH=$CLASSPATH:$WL_HOME/lib/weblogic.jar
            CLASSPATH=$CLASSPATH:$WL_HOME/lib/weblogic_sp.jar
            CLASSPATH=$CLASSPATH:$WL_HOME/lib/weblogic_sp0.jar
            CLASSPATH=$CLASSPATH:$WL_HOME/lib/wleorb.jar
            CLASSPATH=$CLASSPATH:$WL_HOME/lib/xmlx.jar
            CLASSPATH=$CLASSPATH:$WL_HOME/lib/zac.jar
            CLASSPATH=$CLASSPATH:$WL_HOME/samples/eval/cloudscape/lib/cloudscape.jar
            CLASSPATH=$CLASSPATH:$CLIENT_CLASSES:$SERVER_CLASSES
            CLASSPATH=$CLASSPATH:$EX_WEBAPP_CLASSES
            export CLASSPATH


            Here is how I start the server:

            $JAVA_HOME/bin/java -hotspot \
            -ms64m -mx64m \
            -classpath $CLASSPATH \
            -Dweblogic.RootDirectory=/mnt/windows/bea/wlserver6.0 \
            -Dbea.home=/mnt/windows/bea \
            -Djava.security.policy=/mnt/windows/bea/wlserver6.0/lib/weblogic.policy \
            -Dweblogic.Domain=generic \
            -Dweblogic.Name=genericServer \
            weblogic.Server \
            -Dweblogic.management.password=mypassword &


            Here is the config.xml file:

            <Domain
            Name="generic"
            >

            <Server
            Name="genericServer"
            ListenPort="7001"
            AcceptBacklog="50"
            AdministrationPort="0"
            ClusterWeight="1"
            ConsoleInputEnabled="false"
            DGCIdlePeriodsUntilTimeout="2"
            DefaultProtocol="t3"
            DefaultSecureProtocol="t3s"
            ExecuteQueues=""
            HttpdEnabled="true"
            JavaCompiler="/usr/local/jdk1.3.1/bin/javac"
            SocketReaderTimeoutMaxMillis="10"
            NativeIOEnabled="true"
            TransactionLogFilePrefix="./config/generic/logs/"
            TunnelingClientPingSecs="45"
            TunnelingClientTimeoutDebuggingEnabled="false"
            TunnelingClientTimeoutSecs="40"
            XMLRegistry="genericXMLRegistry"
            >

            <WebServer
            DefaultWebApp="DefaultWebApp_genericServer"
            LogFileName="./config/generic/logs/access.log"
            LoggingEnabled="true"
            Name="genericServer"
            />

            <Log
            FileName="./config/generic/logs/weblogic.log"
            />

            </Server>

            <Application
            Deployed="true"
            Name="DefaultWebApp_genericServer"
            Path="config/generic/applications"
            >

            <WebAppComponent
            Name="DefaultWebApp_genericServer"
            Targets="genericServer"
            URI="DefaultWebApp_genericServer"
            />

            </Application>

            <Application
            Deployed="true"
            Name="generic-web-app"
            Path="config/generic/applications/generic-web-app"
            >

            <WebAppComponent
            Name="generic-web-app"
            Targets="genericServer"
            URI="generic-web-app.ear"
            />

            </Application>


            Here is the ./config/generic/applications/generic-web-app/META-INF/application.xml
            file

            <application>

            <display-name>The generic web-application</display-name>

            <module>
            <web>
            <web-uri>generic-web-app.war</web-uri>
            <context-root>/</context-root>
            </web>
            </module>

            <security-role>
            <role-name>users</role-name>
            </security-role>

            </application>




            Any idea?
            Stephane
            stephaneeybert@hotmail.com

            [Config.xml]