[Geoserver-devel] [jira] Created: (GEOS-4399) Make geoserver.war working on JBoss 6 Final

Make geoserver.war working on JBoss 6 Final
-------------------------------------------

                 Key: GEOS-4399
                 URL: http://jira.codehaus.org/browse/GEOS-4399
             Project: GeoServer
          Issue Type: Improvement
    Affects Versions: 2.1-RC2
            Reporter: Fredrik Holmqvist
            Assignee: Andrea Aime
            Priority: Minor

JBoss 6 Final have several issues with GeoServer:
* annotation scanning get stuck in recursive loop causing stack overflow
* incompatible versions of xml parsers causing class cast exception.

While this is not a problem in GeoServer, adding configuration for jboss can solve this. I do not know if this is desirable, but at least I document it here.
The following files need to be added to WEB-INF:
* context.xml
* jboss-classloading.xml
* jboss-scanning.xml

{code:title=WEB-INF/context.xml|borderStyle=solid}
<?xml version="1.0" encoding="UTF-8"?>
<!-- To use GeoServers xml parsers and not JBoss6 as they seem incompatible -->
<Context/>
{code}

{code:title=WEB-INF/jboss-classloading.xml|borderStyle=solid}
<?xml version="1.0" encoding="UTF-8"?>
<!-- To use GeoServers xml parsers and not JBoss6 as they seem incompatible -->
<classloading xmlns="urn:jboss:classloading:1.0"
    name="geoserver.war"
    domain="GeoserverDomain"
    export-all="NON_EMPTY"
    import-all="true">
</classloading>
{code}

{code:title=WEB-INF/jboss-scanning.xml|borderStyle=solid}
<?xml version="1.0" encoding="UTF-8"?>
<!-- Turn of jee annotation scanning. JBoss 6 don't handle cyclic dependcies, and GeoServer don't have annotations so it is faster anyways. -->
<scanning xmlns="urn:jboss:scanning:1.0"/>
{code}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira