Installation of Orbeon Forms to JBoss 5.1

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Installation of Orbeon Forms to JBoss 5.1

George Al
Hello,

I am new to Orbeon forms and XForms in general. I have managed to install Orbeon Forms to Tomcat and play with the example applications. I am writing to you, because I am experiencing problems with the installation of Orbeon forms to JBoss 5.1.0 GA.

I have tried all the latest Orbeon forms versions available (3.6.0, 3.7.1, as well as the nightly build). None of them seem to work, and in the output of JBoss I receive various error messages (mostly class cast exceptions).

The Orbeon application is deployed (as I can open http://localhost:8080/orbeon/) but when I try to run an application (e.g., http://localhost:8080/orbeon/xforms-hello/), the form does not load, and I just see a class cast exception (org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl cannot be cast to javax.xml.datatype.DatatypeFactory).

My JBoss Installation is clean (orbeon is the one an only application installed according to the official guidelines). Do you have an idea of how this problem can be solved?

Thank you in advance.


George



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Installation of Orbeon Forms to JBoss 5.1

marnold
George + everyone,

Have you made any progress with this error?

I am getting the exact same error on a fresh JBoss 5.1 install, and a
fresh JBoss 4.2.3 install.

So is this guy: http://www.nabble.com/3.7.1-fails-on-JBoss-5.1-td24512199.html

Orbeon Forms 3.7.1 doesn't seem to work out-of-the-box with JBoss,
which is a bit strange, since it works with Tomcat.

If anyone could assist this would be really appreciated.

Thanks,
Malcolm.


2009/7/16 George Al <[hidden email]>:

> Hello,
>
> I am new to Orbeon forms and XForms in general. I have managed to install
> Orbeon Forms to Tomcat and play with the example applications. I am writing
> to you, because I am experiencing problems with the installation of Orbeon
> forms to JBoss 5.1.0 GA.
>
> I have tried all the latest Orbeon forms versions available (3.6.0, 3.7.1,
> as well as the nightly build). None of them seem to work, and in the output
> of JBoss I receive various error messages (mostly class cast exceptions).
>
> The Orbeon application is deployed (as I can open
> http://localhost:8080/orbeon/) but when I try to run an application (e.g.,
> http://localhost:8080/orbeon/xforms-hello/), the form does not load, and I
> just see a class cast exception
> (org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl cannot be cast to
> javax.xml.datatype.DatatypeFactory).
>
> My JBoss Installation is clean (orbeon is the one an only application
> installed according to the official guidelines). Do you have an idea of how
> this problem can be solved?
>
> Thank you in advance.
>
>
> George
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Installation of Orbeon Forms to JBoss 5.1

SPorvin
You might try doing what we did for JBoss 4.2.1 GA and Forms 3.7.1. We had the same logging conflicts and had to do the following:

1. Renamed Orbeon logging Jars
a. C:\Apps\JBoss\jboss-4.2.1.GA\server\default\deploy\orbeon.war\WEB-INF\lib\private\commons-logging-1_0_4.jar” to “commons-logging-1_0_4.jar.bak”
b. C:\Apps\JBoss\jboss-4.2.1.GA\server\default\deploy\orbeon.war\WEB-INF\lib\log4j-1_2_15.jar to log4j-1_2_15.jar.bak

2. Ensure C:\Apps\JBoss\jboss-4.2.1.GA\server\default\deploy\orbeon.war\WEB-INF\jboss-web.xml has everything commented out
   <?xml version="1.0" encoding="UTF-8"?>
   <jboss-web>
      
      
      
      
      
   
   
   
   
   </jboss-web>

3. Changed the following parameter in c:/Apps/JBoss/jboss-4.2.1.GA/server/default/deploy/orbeon.war/WEB-INF/web.xml from true to false
   <context-param>
      <param-name>oxf.initialize-logging</param-name>
      <param-value>false</param-value>
   </context-param>

4. Copied the desired category sections from  c:/Apps/JBoss/jboss-4.2.1.GA/server/default/deploy/orbeon.war/WEB-INF/resources/config/log4j.xml to the JBoss log configuration file: c:/Apps/JBoss/jboss-4.2.1.GA/server/default/conf/jboss-log4j.xml

At that point, the logging errors & the example errors stopped and we got the logging we wanted. There were occasions when we might receive an ERROR in the log for an example the first time it is run, but the examples still run fine.

Hope this helps,

Steve




malcolm arnold wrote
George + everyone,

Have you made any progress with this error?

I am getting the exact same error on a fresh JBoss 5.1 install, and a
fresh JBoss 4.2.3 install.

So is this guy: http://www.nabble.com/3.7.1-fails-on-JBoss-5.1-td24512199.html

Orbeon Forms 3.7.1 doesn't seem to work out-of-the-box with JBoss,
which is a bit strange, since it works with Tomcat.

If anyone could assist this would be really appreciated.

Thanks,
Malcolm.
Reply | Threaded
Open this post in threaded view
|

Re: Installation of Orbeon Forms to JBoss 5.1

gsdgsd
Steve,
Thanks for your suggestion. I have tried implementing what you have outlined below (JBoss 5.1 + Orbeon 3.7.1). I could get further than what i was originally. However besides what you have outlined i also had to remove the xercesImpl.jar from the endorsed directory of JBoss.

I am now getting another exception.

14:23:39,546 ERROR [[exist-rest-servlet]] Servlet.service() for servlet exist-re
st-servlet threw exception
javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.Doc
umentBuilderFactoryImpl not found
        at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
        at org.exist.http.RESTServer.doPost(RESTServer.java:677)
        at org.exist.http.servlets.EXistServlet.doPost(EXistServlet.java:510)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:235)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)


Any suggestions welcome.
Thanks in advance
rk


SPorvin wrote
You might try doing what we did for JBoss 4.2.1 GA and Forms 3.7.1. We had the same logging conflicts and had to do the following:

1. Renamed Orbeon logging Jars
a. C:\Apps\JBoss\jboss-4.2.1.GA\server\default\deploy\orbeon.war\WEB-INF\lib\private\commons-logging-1_0_4.jar” to “commons-logging-1_0_4.jar.bak”
b. C:\Apps\JBoss\jboss-4.2.1.GA\server\default\deploy\orbeon.war\WEB-INF\lib\log4j-1_2_15.jar to log4j-1_2_15.jar.bak

2. Ensure C:\Apps\JBoss\jboss-4.2.1.GA\server\default\deploy\orbeon.war\WEB-INF\jboss-web.xml has everything commented out
   <?xml version="1.0" encoding="UTF-8"?>
   <jboss-web>
      
      
      
      
      
   
   
   
   
   </jboss-web>

3. Changed the following parameter in c:/Apps/JBoss/jboss-4.2.1.GA/server/default/deploy/orbeon.war/WEB-INF/web.xml from true to false
   <context-param>
      <param-name>oxf.initialize-logging</param-name>
      <param-value>false</param-value>
   </context-param>

4. Copied the desired category sections from  c:/Apps/JBoss/jboss-4.2.1.GA/server/default/deploy/orbeon.war/WEB-INF/resources/config/log4j.xml to the JBoss log configuration file: c:/Apps/JBoss/jboss-4.2.1.GA/server/default/conf/jboss-log4j.xml

At that point, the logging errors & the example errors stopped and we got the logging we wanted. There were occasions when we might receive an ERROR in the log for an example the first time it is run, but the examples still run fine.

Hope this helps,

Steve




malcolm arnold wrote
George + everyone,

Have you made any progress with this error?

I am getting the exact same error on a fresh JBoss 5.1 install, and a
fresh JBoss 4.2.3 install.

So is this guy: http://www.nabble.com/3.7.1-fails-on-JBoss-5.1-td24512199.html

Orbeon Forms 3.7.1 doesn't seem to work out-of-the-box with JBoss,
which is a bit strange, since it works with Tomcat.

If anyone could assist this would be really appreciated.

Thanks,
Malcolm.