1 Reply Latest reply on Jan 13, 2011 3:02 AM by Jean-Frederic Clere

    JBoss Web in JBoss6 AS and GlobalNamingResources

    Frank Delin Newbie

      Hello all,

       

      Our group is trying to move from an environment with discrete tomcat and jboss servers to having JBoss also perform our servlet needs. 

       

      I'm in the process of configuring JBoss AS 6.0 and when I add a GlobalNamingResources section to the <server> portion of deploy/jbossweb.sar/server.xml I get the follwing error:

       

      14:49:02,944 ERROR [AbstractKernelController] Error installing to Start: name=WebServer state=Create: org.jboss.xb.binding.JBossXBException: Failed to parse source: xml_stream@

      3,28

              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:224) [jbossxb.jar:2.0.3.GA]

              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:193) [jbossxb.jar:2.0.3.GA]

              at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:143) [jbossxb.jar:2.0.3.GA]

              at org.jboss.web.tomcat.service.deployers.TomcatService.startService(TomcatService.java:208) [:6.0.0.Final]

              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:355) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

              at org.jboss.system.ServiceMBeanSupport.pojoStart(ServiceMBeanSupport.java:195) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

       

      .....

      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: GlobalNamingResources not found as a child of Server in unordered_sequence: Listener* Service* attributes?

              at org.jboss.xb.binding.sunday.unmarshalling.ElementPosition.nextPosition(ElementPosition.java:199) [jbossxb.jar:2.0.3.GA]

              at org.jboss.xb.binding.sunday.unmarshalling.ElementPosition.startParticle(ElementPosition.java:475) [jbossxb.jar:2.0.3.GA]

              at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:202) [jbossxb.jar:2.0.3.GA]

              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.startElement(SaxJBossXBParser.java:401) [jbossxb.jar:2.0.3.GA]

      ......

       

      The pertinent section of server.xml

       

      <Server>

       

          <GlobalNamingResources>   

              <Environment name="openelisJNDI" type="java.lang.String"

                           value="/usr/pub/http/var/jndi/jndi.properties"/>

          </GlobalNamingResources>

       

      The rest of the file is the distributed version, no local changes.

       

      Any help would be appreciated,

       

      Thanks,

       

      Frank