2 Replies Latest reply on Feb 1, 2011 12:48 PM by Peter Johnson

    DeploymentExeption in jboss 5.1

    mike tihonchik Newbie

      I am getting error on the JBoss 5.1 start up:

       

      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/dev/datatrak/branches/eae_reb
      ase/deploy/datatrak.ear/abcfs.war/
              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDepl
      oyerWithOutput.java:362)
              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDepl
      oyerWithOutput.java:322)
              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDepl
      oyerWithOutput.java:294)
              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWith
      Output.java:234)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1225)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
              at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
              at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53
      )
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:
      403)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)
              at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileServi
      ce.java:308)
              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
              at org.jboss.Main.boot(Main.java:221)
              at org.jboss.Main$1.run(Main.java:556)
              at java.lang.Thread.run(Thread.java:619)
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Element {http://java.sun.com/xml/ns/j2ee}web-a
      pp is not bound as a global element.
              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
              at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
              at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:189)
              at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:166)
              at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)
              at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)
              at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:
      304)
              at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:
      286)
              at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:203)
              at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDepl
      oyerWithOutput.java:348)
              ... 34 more
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Element {http://java.sun.com/xml/ns/j2ee}web-app is not bound a
      s a global element.
              at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:660)
              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:
      401)
              at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
              at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
              at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
              at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
              ... 43 more
      
      

       

      I have seen couple of discussions here pertaining to this problem, and most of them suggested changing web.xml file. This is my original web.xml

       

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.3"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http:/java.sun.com/dtd/web-app_2_3.dtd">
      
               <listener>
        <listener-class>
            org.springframework.web.context.request.RequestContextListener
        </listener-class>
      </listener>
          <servlet>
              <servlet-name>springapp</servlet-name>
              <servlet-class>com.abcfs.springsupport.ABCDispatcherServlet</servlet-class>
              <load-on-startup>1</load-on-startup>
            </servlet>
        <servlet>
          <servlet-name>NavServlet</servlet-name>
          <servlet-class>com.seqtek.pml.nav.NavServlet</servlet-class>
          <init-param>
            <param-name>PMLConfigFile</param-name>
            <param-value>conf/pml-config.xml</param-value>
          </init-param>
          <init-param>
            <!-- Point back to datatrak dir so that it doesn't default to jboss/server/default/bin -->
            <param-name>PMLBaseDir</param-name>
            <param-value>C:/dev/datatrak/trunk</param-value>
          </init-param>
          <init-param>
            <param-name>logLevel</param-name>
            <param-value>SEVERE</param-value>
          </init-param>
           <init-param>
             <param-name>deleteEventsDaemon</param-name>
             <param-value>com.seqtek.abcfs.dt.scheduling.DeleteEventsDaemon</param-value>
           </init-param>
          <init-param>
             <param-name>incrementalServiceDaemon</param-name>
             <param-value>com.seqtek.abcfs.dt.pos.IncrementalServiceDaemon</param-value>
           </init-param>
           <init-param>
             <param-name>employeeEventSummaryDaemon</param-name>
             <param-value>com.seqtek.abcfs.dt.scheduling.EmployeeEventSummaryDaemon</param-value>
           </init-param>
           <init-param>
             <param-name>autoRunClubAccountDaemon</param-name>
             <param-value>com.seqtek.abcfs.dt.pos.AutoRunClubAccountDaemon</param-value>
           </init-param>
           <init-param>
             <param-name>reportDeamon</param-name>
             <param-value>com.seqtek.abcfs.dt.reportwizard.ReportDeamon</param-value>
           </init-param>
           <init-param>
             <param-name>reportDeamonThreads</param-name>
             <param-value>1</param-value>
           </init-param>
           <init-param>
              <param-name>load-on-startup</param-name>
              <param-value>1</param-value>
           </init-param>
           <load-on-startup>5</load-on-startup>
        </servlet>
      
         <servlet>
            <servlet-name>SimplePdf</servlet-name>
            <servlet-class>com.seqtek.abcfs.dt.common.SimplePdf</servlet-class>
         </servlet>
      
      
         <servlet>
            <servlet-name>DatatrakStatus</servlet-name>
            <servlet-class>com.seqtek.abcfs.dt.common.DatatrakStatus</servlet-class>
         </servlet>
      
      
         <servlet>
            <servlet-name>GatewayListener</servlet-name>
            <servlet-class>com.seqtek.abcfs.dt.integration.GatewayListenerServlet</servlet-class>
         </servlet>
      
      
         <servlet>
            <servlet-name>dwr-invoker</servlet-name>
            <display-name>DWR Servlet</display-name>
            <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
            <!--INIT-PARAM = loglevel - The valid values are: FATAL, ERROR, WARN (the default), INFO and DEBUG.-->
            <init-param>
             <param-name>logLevel</param-name>
             <param-value>FATAL</param-value>
            </init-param>
            <!--INIT-PARAM = debug enables TEST mode should not be used in live deployment (DEVELOPMENT ONLY)
            as it could give an attacker a lot of information about the services that you export.-->
            <!--
            <init-param>
              <param-name>debug</param-name>
              <param-value>true</param-value>
            </init-param>
            -->
         </servlet>
      
      
         <servlet-mapping>
            <servlet-name>SimplePdf</servlet-name>
            <url-pattern>/pdf</url-pattern>
         </servlet-mapping>
      
      
         <servlet-mapping>
            <servlet-name>DatatrakStatus</servlet-name>
            <url-pattern>/datatrakstatus</url-pattern>
         </servlet-mapping>
      
      
        <servlet-mapping>
          <servlet-name>GatewayListener</servlet-name>
          <url-pattern>/gatewaylistener</url-pattern>
        </servlet-mapping>
      
      
        <servlet-mapping>
          <servlet-name>NavServlet</servlet-name>
          <url-pattern>*.pml</url-pattern>
        </servlet-mapping>
      
      
        <servlet-mapping>
          <servlet-name>NavServlet</servlet-name>
          <url-pattern>/NavServlet</url-pattern>
        </servlet-mapping>
      
      
         <servlet-mapping>
           <servlet-name>dwr-invoker</servlet-name>
           <url-pattern>/dwr/*</url-pattern>
         </servlet-mapping>
      
      
          <servlet-mapping>
              <servlet-name>springapp</servlet-name>
              <url-pattern>*.spr</url-pattern>
            </servlet-mapping>
      
      
         <error-page>
            <exception-type>java.lang.Throwable</exception-type>
            <location>/jsp/errorPage.jsp</location>
         </error-page>
      
      
         <error-page>
            <error-code>500</error-code>
            <location>/jsp/errorPage.jsp</location>
         </error-page>
      
        <taglib>
           <taglib-uri>widgets</taglib-uri>
           <taglib-location>/jsp/widgets.tld</taglib-location>
         </taglib>
      
      </web-app>
      
      

       

      I changed it to this:

       

      <web-app version="2.5" 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_2_5.xsd">
      

       

      however, problem still exists. Any suggestions????

        • 1. Re: DeploymentExeption in jboss 5.1
          mike tihonchik Newbie

          ok, little progress.

          I used web-app declaration for 2.4

           

          <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
          http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
          

           

          and got different error in the log:

           

                  at java.lang.Thread.run(Thread.java:619)
          Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.2.4.a: Invalid content was fo
          und starting with element 'display-name'. One of '{"http://java.sun.com/xml/ns/j2ee":servlet-class, "http://java.sun.com
          /xml/ns/j2ee":jsp-file}' is expected. @ vfsfile:/C:/dev/datatrak/branches/eae_rebase/deploy/datatrak.ear/abcfs.war/WEB-I
          NF/web.xml[81,21]
                  at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
                  at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
                  at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:189)
                  at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:166)
                  at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)
                  at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)
                  at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:
          304)
                  at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:
          286)
                  at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:203)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDepl
          oyerWithOutput.java:348)
                  ... 34 more
          Caused by: org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-na
          
          • 2. DeploymentExeption in jboss 5.1
            Peter Johnson Master

            The second error message is at least clearer: the <dislay-name> element is not a valid subelement of <servlet>. So remove that element.