Grails
  1. Grails
  2. GRAILS-1925

grails prod war misses xercesImpl.jar

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.0-RC1
    • Fix Version/s: 1.0-RC2
    • Component/s: Project infrastructure
    • Labels:
      None
    • Environment:
      Tomcat 5.5, JDK 1.5

      Description

      When I run my application using "grails run-app" everything is fine. Creating a WAR using "grails prod war" produces a WAR which throws an XNIException.

      I found the required xercesImpl.jar is missing in WEB-INF/lib.

      As this blocks the created WAR to be used on production systems without administrators help I assume this has blocker priority.

        Activity

        Hide
        Jürgen Jatzkowski added a comment -

        Maybe the priority can be lowered to critical as it is possible to work around this by just copying the xercesIMpl.jar in the lib directory of the project.
        Not nice, but a work around.

        Show
        Jürgen Jatzkowski added a comment - Maybe the priority can be lowered to critical as it is possible to work around this by just copying the xercesIMpl.jar in the lib directory of the project. Not nice, but a work around.
        Hide
        Jürgen Jatzkowski added a comment -

        I think this is the code which needs to be changed/added:

        old: [scripts/Package.groovy, line 232]

        ...
        "jaxen-*.jar",
        "xstream-1.2.1.jar",
        ...

        new:

        ...
        "jaxen-*.jar",
        "xercesImpl.jar",
        "xstream-1.2.1.jar",
        ...

        Show
        Jürgen Jatzkowski added a comment - I think this is the code which needs to be changed/added: old: [scripts/Package.groovy, line 232] ... "jaxen-*.jar", "xstream-1.2.1.jar", ... new: ... "jaxen-*.jar", "xercesImpl.jar", "xstream-1.2.1.jar", ...
        Hide
        Graeme Rocher added a comment -

        Note the war config has moved to grails-app/conf/Config.groovy. You will need this in your Config.groovy file:

        // WAR dependency config
        grails.war.dependencies = [
            "ant.jar",
            "ant-launcher.jar",
            "hibernate3.jar",
            "jdbc2_0-stdext.jar",
            "jta.jar",
            "groovy-all-*.jar",
            "springmodules-sandbox.jar",
            "standard-${servletVersion}.jar",
            "jstl-${servletVersion}.jar",
            "antlr-*.jar",
            "cglib-*.jar",
            "dom4j-*.jar",
            "ehcache-*.jar",
            "junit-*.jar",
            "commons-logging-*.jar",
            "sitemesh-*.jar",
            "spring-*.jar",
            "log4j-*.jar",
            "ognl-*.jar",
            "hsqldb-*.jar",
            "commons-lang-*.jar",
            "commons-collections-*.jar",
            "commons-beanutils-*.jar",
            "commons-pool-*.jar",
            "commons-dbcp-*.jar",
            "commons-cli-*.jar",
            "commons-validator-*.jar",
            "commons-fileupload-*.jar",
            "commons-io-*.jar",
            "commons-io-*.jar",
            "*oro-*.jar",
            "jaxen-*.jar",
            "xercesImpl.jar",
            "xstream-1.2.1.jar",
            "xpp3_min-1.1.3.4.O.jar"
        ]
        
        grails.war.java5.dependencies = [
            "hibernate-annotations.jar",
            "ejb3-persistence.jar",
        ]
        
        Show
        Graeme Rocher added a comment - Note the war config has moved to grails-app/conf/Config.groovy. You will need this in your Config.groovy file: // WAR dependency config grails.war.dependencies = [ "ant.jar" , "ant-launcher.jar" , "hibernate3.jar" , "jdbc2_0-stdext.jar" , "jta.jar" , "groovy-all-*.jar" , "springmodules-sandbox.jar" , "standard-${servletVersion}.jar" , "jstl-${servletVersion}.jar" , "antlr-*.jar" , "cglib-*.jar" , "dom4j-*.jar" , "ehcache-*.jar" , "junit-*.jar" , "commons-logging-*.jar" , "sitemesh-*.jar" , "spring-*.jar" , "log4j-*.jar" , "ognl-*.jar" , "hsqldb-*.jar" , "commons-lang-*.jar" , "commons-collections-*.jar" , "commons-beanutils-*.jar" , "commons-pool-*.jar" , "commons-dbcp-*.jar" , "commons-cli-*.jar" , "commons-validator-*.jar" , "commons-fileupload-*.jar" , "commons-io-*.jar" , "commons-io-*.jar" , "*oro-*.jar" , "jaxen-*.jar" , "xercesImpl.jar" , "xstream-1.2.1.jar" , "xpp3_min-1.1.3.4.O.jar" ] grails.war.java5.dependencies = [ "hibernate-annotations.jar" , "ejb3-persistence.jar" , ]
        Hide
        Graeme Rocher added a comment -

        Bulk closing bunch of resolved issues

        Show
        Graeme Rocher added a comment - Bulk closing bunch of resolved issues

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            Jürgen Jatzkowski
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development