History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-1925
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Graeme Rocher
Reporter: Jürgen Jatzkowski
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Grails

grails prod war misses xercesImpl.jar

Created: 01/Dec/07 11:07 AM   Updated: 03/Dec/07 04:23 AM
Component/s: Project infrastructure
Affects Version/s: 1.0-RC1
Fix Version/s: 1.0-RC2

Time Tracking:
Not Specified

Environment: Tomcat 5.5, JDK 1.5


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jürgen Jatzkowski - 01/Dec/07 11:33 AM
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.

Jürgen Jatzkowski - 02/Dec/07 07:52 AM
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",
...


Graeme Rocher - 03/Dec/07 04:23 AM
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",
]