6 Replies Latest reply on Feb 29, 2012 10:14 AM by Wolf-Dieter Fink

    Need help in resolving a problem.

    Mandar Joglekar Newbie

      Hi All,

       

      I'm trying to deploy a new ear under JBoss and I'm getting the following error. Any help in resolving this error will be appreciated:

       

       

      12:57:32,604 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/Eclipse%20Install/eclipse/jboss-5.1.0.GA/server/default/deploy/sharEAR.ear/ state=Not Installed mode=Manual requiredState=Parse

       

      org.jboss.deployers.spi.DeploymentException

       

       

       

        • 1. Re: Need help in resolving a problem.
          Wolf-Dieter Fink Master

          Welcome to the forum Mandar,

           

          Do you see more details in your log? Please attach the logfile.

           

          Also you should be a bit more clear in the subject, most of threads are asking for help resolving a problem

          • 2. Re: Need help in resolving a problem.
            Mandar Joglekar Newbie

            Sorry for not attaching the entire log file.

             

            Here is entire log.

             

            15:01:21,646 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/C:/Eclipse%20Install/eclipse/jboss-5.1.0.GA/server/default/deploy/sharEAR.ear/ state=Not Installed mode=Manual requiredState=Parse
            org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/Eclipse%20Install/eclipse/jboss-5.1.0.GA/server/default/deploy/sharEAR.ear/shar.war/
            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:362)
            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:322)
            at org.jboss.deployment.JBossWebAppParsingDeployer.createMetaData(JBossWebAppParsingDeployer.java:103)
            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:294)
            at org.jboss.deployment.JBossWebAppParsingDeployer.createMetaData(JBossWebAppParsingDeployer.java:75)
            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:234)
            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
            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:361)
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
            at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
            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: loader-repository cannot appear in this position. Expected content of jboss-web is unordered_sequence: security-role* max-active-sessions? webservice-description* class-loading? jacc-star-role-allow? message-destination* servlet* replication-config? passivation-config? context-root? security-domain? virtual-host* use-session-cookies? depends* {unordered_sequence jndiEnvironmentRefsGroup}?
            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:256)
            at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)
            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:348)
            ... 36 more
            Caused by: org.jboss.xb.binding.JBossXBRuntimeException: loader-repository cannot appear in this position. Expected content of jboss-web is unordered_sequence: security-role* max-active-sessions? webservice-description* class-loading? jacc-star-role-allow? message-destination* servlet* replication-config? passivation-config? context-root? security-domain? virtual-host* use-session-cookies? depends* {unordered_sequence jndiEnvironmentRefsGroup}?
            at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:449)
            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.xinclude.XIncludeHandler.startElement(Unknown Source)
            at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(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)
            ... 44 more

            • 3. Re: Need help in resolving a problem.
              Wolf-Dieter Fink Master

              Looks like as a wrong jboss-web.xml in your sharEAR.ear

               

              Mandar Joglekar wrote:

               

              Caused by: org.jboss.xb.binding.JBossXBRuntimeException: loader-repository cannot appear in this position. Expected content of jboss-web is unordered_sequence: security-role* max-active-sessions? webservice-description* class-loading? jacc-star-role-allow? message-destination* servlet* replication-config? passivation-config? context-root? security-domain? virtual-host* use-session-cookies? depends* {unordered_sequence jndiEnvironmentRefsGroup}?

              • 4. Re: Need help in resolving a problem.
                Mandar Joglekar Newbie

                Hi Wolf-Dieter Fink ,

                 

                Thank you for this reply. This is my jboss-web.xml file. Can you please point out to me what's wrong in this file? Thank you,

                 

                 

                 

                 

                 

                 

                 

                 

                 

                <?

                 

                xml version="1.0" encoding="UTF-8"

                ?>

                <

                 

                jboss-web

                >

                 

                <resource-ref

                >

                 

                <res-ref-name>jdbc/sharDS</res-ref-name

                >

                 

                <res-type>javax.sql.DataSource</res-type

                >

                 

                <jndi-name>java:comp/env/jdbc/sharDS</jndi-name

                >

                 

                </resource-ref

                >

                 

                <loader-repository> tld.mydomain:loader=shar.war </loader-repository

                >

                </

                 

                jboss-web

                >

                • 5. Re: Need help in resolving a problem.
                  Mandar Joglekar Newbie

                  Hi Wolf-Dieter Fink,

                   

                  Thank you for the reply. I also have jboss-classloading.xml as follows:

                   

                   

                   

                   

                   

                   

                   

                   

                  <?

                   

                  xml version="1.0" encoding="UTF-8"

                  ?>

                  <

                   

                  classloading xmlns=

                  "urn:jboss:classloading:1.0"

                  domain

                   

                  =

                  "shar.war"

                  parent-domain

                   

                  =

                  "sharEAR.ear"

                  export-all

                   

                  =

                  "NON_EMPTY"

                  import-all

                   

                  ="true"

                  >

                  </

                   

                  classloading

                  >

                   

                   

                  and I also have web.xml as follows:

                  <?

                  xml version="1.0" encoding="UTF-8"

                  ?>

                  <!

                  DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"

                  >

                  <

                  web-app

                  >

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                   

                  <display-name>shar</display-name

                  >

                   

                   

                  <description>Sears Holdings Accounts Receivable Application</description

                  >

                   

                   

                  <!--

                  - Key of the system property that should specify the root directory of this

                  - web app. Applied by WebAppRootListener or Log4jConfigListener.

                  -->

                   

                  <context-param

                  >

                   

                  <param-name>webAppRootKey</param-name

                  >

                   

                  <param-value>klog.logdir</param-value

                  >

                   

                  </context-param

                  >

                   

                   

                  <!--

                  - Location of the Log4J config file, for initialization and refresh checks.

                  - Applied by Log4jConfigListener.

                  -->

                   

                  <context-param

                  >

                   

                  <param-name>log4jConfigLocation</param-name

                  >

                   

                  <param-value>/WEB-INF/log4j.properties</param-value

                  >

                   

                  </context-param

                  >

                   

                   

                  <!--

                  - Configures Log4J for this web app.

                  - As this context specifies a context-param "log4jConfigLocation", its file path

                  - is used to load the Log4J configuration, including periodic refresh checks.

                  -->

                   

                    

                   

                  <servlet

                  >

                   

                  <servlet-name>action</servlet-name

                  >

                   

                  <servlet-class>org.apache.struts.action.ActionServlet</servlet-class

                  >

                   

                  <init-param

                  >

                   

                  <param-name>config</param-name

                  >

                   

                  <param-value>/WEB-INF/struts-config.xml</param-value

                  >

                   

                  </init-param

                  >

                   

                  <init-param

                  >

                   

                  <param-name>debug</param-name

                  >

                   

                  <param-value>2</param-value

                  >

                   

                  </init-param

                  >

                   

                  <init-param

                  >

                   

                  <param-name>detail</param-name

                  >

                   

                  <param-value>2</param-value

                  >

                   

                  </init-param

                  >

                   

                  <load-on-startup>0</load-on-startup

                  >

                   

                  </servlet

                  >

                   

                  <servlet-mapping

                  >

                   

                  <servlet-name>action</servlet-name

                  >

                   

                  <url-pattern>*.do</url-pattern

                  >

                   

                  </servlet-mapping

                  >

                   

                  <taglib id="TagLibRef_1"

                  >

                   

                  <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri

                  >

                   

                  <taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location

                  >

                   

                  </taglib

                  >

                   

                  <taglib id="TagLibRef_2"

                  >

                   

                  <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri

                  >

                   

                  <taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location

                  >

                   

                  </taglib

                  >

                   

                  <taglib id="TagLibRef_3"

                  >

                   

                  <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri

                  >

                   

                  <taglib-location>/WEB-INF/tlds/struts-logic.tld</taglib-location

                  >

                   

                  </taglib

                  >

                   

                  <taglib id="TagLibRef_4"

                  >

                   

                  <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri

                  >

                   

                  <taglib-location>/WEB-INF/tlds/struts-template.tld</taglib-location

                  >

                   

                  </taglib

                  >

                   

                  <taglib

                  >

                   

                  <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri

                  >

                   

                  <taglib-location>/WEB-INF/tlds/struts-nested.tld</taglib-location

                  >

                   

                  </taglib

                  >

                   

                  <taglib

                  >

                   

                  <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri

                  >

                   

                  <taglib-location>/WEB-INF/tlds/struts-tiles.tld</taglib-location

                  >

                   

                  </taglib

                  >

                   

                  <taglib id="TagLibRef_13"

                  >

                   

                  <taglib-uri>http://jakarta.apache.org/taglibs/mailer-1.0</taglib-uri

                  >

                   

                  <taglib-location>/WEB-INF/lib/mailer.jar</taglib-location

                  >

                   

                  </taglib

                  >

                   

                  <resource-ref id="DB2_DataSource"

                  >

                   

                  <description>This is the DB2 Data Source definition for the SHAR Application</description

                  >

                   

                  <res-ref-name>jdbc/sharDS</res-ref-name

                  >

                   

                  <res-type>javax.sql.DataSource</res-type

                  >

                   

                  <res-auth>Application</res-auth

                  >

                   

                  <res-sharing-scope>Shareable</res-sharing-scope

                  >

                   

                  </resource-ref

                  >

                  </

                   

                  web-app

                  >

                  • 6. Re: Need help in resolving a problem.
                    Wolf-Dieter Fink Master

                    If you add a doctype to your xml and use a XML editor (i.e. JEdit with XML plugins) you can easily see whether the XML is well formed or not.

                    Also you might have a look into the JBOSS/dosc/schema directory where the schemas are located.

                    If you look to 'jboss-web_5_1.xsd' you see a simple example.

                     

                       The class-loading element allows one to override the default class loading behavior of the web container.

                        Examples:

                        <class-loading java2ClassLoadingCompliance='false'/>

                        <class-loading java2ClassLoadingCompliance='false'>

                           <loader-repository loaderRepositoryClass='dot.com.LoaderRepository'>

                             ...

                           </loader-repository>

                         </class-loading>

                     

                    For more details about classloading see the JBOss wiki

                     

                    My tip: surround your loader-repository with <class-loading> as you can see in the Exception.