Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Orbeon Forms doesn't deploy on JBoss 7 (it does on previous versions of JBoss) #146

Closed
ebruchez opened this Issue Apr 11, 2012 · 8 comments

Comments

Projects
None yet
3 participants

@ghost ghost assigned avernet Apr 11, 2012

Collaborator

ebruchez commented Apr 12, 2012

Also check whether an update to JBoss 7 might have taken care of the issue.

Any progress on this? I'm trying to deploy on a recent build of JBoss 7.2.0 and am getting similar errors

Servlet Context Listener - Error initializing the WebAppContext: java.lang.Error: no implementation of regexp was found
    at com.sun.msv.datatype.xsd.regex.RegExpFactory.createFactory(RegExpFactory.java:28) [msv-xsdlib-20070407_orbeon_20100309.jar:]
    at com.sun.msv.datatype.xsd.AnyURIType.createRegExp(AnyURIType.java:175) [msv-xsdlib-20070407_orbeon_20100309.jar:]
    at com.sun.msv.datatype.xsd.AnyURIType.<clinit>(AnyURIType.java:128) [msv-xsdlib-20070407_orbeon_20100309.jar:]
    at com.sun.msv.datatype.xsd.DatatypeFactory.getTypeByName(DatatypeFactory.java:195) [msv-xsdlib-20070407_orbeon_20100309.jar:]
    at com.sun.msv.datatype.xsd.ngimpl.DataTypeLibraryImpl.getType(DataTypeLibraryImpl.java:32) [msv-xsdlib-20070407_orbeon_20100309.jar:]
    at com.sun.msv.datatype.xsd.ngimpl.DataTypeLibraryImpl.createDatatypeBuilder(DataTypeLibraryImpl.java:36) [msv-xsdlib-20070407_orbeon_20100309.jar:]
    at com.sun.msv.reader.trex.ng.DataState.startSelf(DataState.java:58) [msv-20081113_orbeon_20081209.jar:]
    at com.sun.msv.reader.State.init(State.java:153) [msv-20081113_orbeon_20081209.jar:]
    at com.sun.msv.reader.GrammarReader.pushState(GrammarReader.java:576) [msv-20081113_orbeon_20081209.jar:]
    at com.sun.msv.reader.SimpleState.startElement(SimpleState.java:71) [msv-20081113_orbeon_20081209.jar:]
    at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527) [classes.jar:1.6.0_33]
    at com.sun.msv.reader.trex.TREXBaseReader.startElement(TREXBaseReader.java:184) [msv-20081113_orbeon_20081209.jar:]
    at com.sun.msv.reader.trex.ng.RELAXNGReader.startElement(RELAXNGReader.java:524) [msv-20081113_orbeon_20081209.jar:]
    at com.sun.msv.reader.trex.ng.comp.RELAXNGCompReader.startElement(RELAXNGCompReader.java:197) [msv-20081113_orbeon_20081209.jar:]
    at orbeon.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:497) [xerces-xercesImpl-2_9_orbeon_20070711.jar:]

and

Error initializing the WebAppContext: java.lang.NoClassDefFoundError: Could not initialize class com.sun.msv.datatype.xsd.AnyURIType

    at com.sun.msv.datatype.xsd.DatatypeFactory.getTypeByName(DatatypeFactory.java:195) [msv-xsdlib-20070407_orbeon_20100309.jar:]
    at com.sun.msv.datatype.xsd.ngimpl.DataTypeLibraryImpl.getType(DataTypeLibraryImpl.java:32) [msv-xsdlib-20070407_orbeon_20100309.jar:]
    at com.sun.msv.datatype.xsd.ngimpl.DataTypeLibraryImpl.createDatatypeBuilder(DataTypeLibraryImpl.java:36) [msv-xsdlib-20070407_orbeon_20100309.jar:]
    at com.sun.msv.reader.trex.ng.DataState.startSelf(DataState.java:58) [msv-20081113_orbeon_20081209.jar:]
    at com.sun.msv.reader.State.init(State.java:153) [msv-20081113_orbeon_20081209.jar:]
    at com.sun.msv.reader.GrammarReader.pushState(GrammarReader.java:576) [msv-20081113_orbeon_20081209.jar:]
    at com.sun.msv.reader.SimpleState.startElement(SimpleState.java:71) [msv-20081113_orbeon_20081209.jar:]
    at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527) [classes.jar:1.6.0_33]
    at com.sun.msv.reader.trex.TREXBaseReader.startElement(TREXBaseReader.java:184) [msv-20081113_orbeon_20081209.jar:]
    at com.sun.msv.reader.trex.ng.RELAXNGReader.startElement(RELAXNGReader.java:524) [msv-20081113_orbeon_20081209.jar:]
    at com.sun.msv.reader.trex.ng.comp.RELAXNGCompReader.startElement(RELAXNGCompReader.java:197) [msv-20081113_orbeon_20081209.jar:]
    at orbeon.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:497) [xerces-xercesImpl-2_9_orbeon_20070711.jar:]
Collaborator

ebruchez commented Jul 13, 2012

We have a tentative fix for this.

@ebruchez ebruchez closed this in 7521efc Jul 13, 2012

Collaborator

ebruchez commented Jul 13, 2012

You can now drop orbeon.war into JBoss 7 and it works out of the box. Tested with JBoss AS 7.1.1.Final "Brontes".

Great, grabbed the nightly build from last night, deployed it (and then installed the licence and deployed again :-) and it seems to be working fine now with the jboss 7.2.0.Alpha nightly build that I am currently using.

thanks for that.

Forgot to ask, will there be an official PE release with this fix? (3.9.2??)

thanks

Collaborator

ebruchez commented Jul 16, 2012

At this time we haven't committed to release a 3.9.2 but 4.0 for sure will include this fix. There is a chance that replacing one of the MSV JAR files on top of 3.9.1 will work:

https://github.com/orbeon/orbeon-forms/blob/master/lib/src/msv-xsdlib-20070407_orbeon_20120712.jar?raw=true

However, we haven't tried this yet.

Collaborator

ebruchez commented Jul 17, 2012

We have confirmed that you can take 3.9.1 and replace the JAR mentioned above and Orbeon Forms deploys fine into JBoss 7.

(Note that you also need to uncomment the resource-ref entry in jboss-web.xml as described in the documentation.)

We have updated the installation notes to cover 3.9.1 here:

http://wiki.orbeon.com/forms/doc/developer-guide/admin/installing#TOC-JBoss-7-with-Orbeon-Forms-3.9.1

@ebruchez ebruchez modified the milestones: 4.0.1, 4.x (to review) Mar 20, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment