在JBoss AS 7上部署Orbeon

时间:2011-10-15 19:41:00

标签: jboss orbeon

我们正在尝试在JBoss AS 7上部署Orbeon Forms 3.9并收到以下错误:

15:34:36,621 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/adg-xforms]] (MSC service thread 1-2) Exception sending context initialized event to listener instance of class org.orbeon.oxf.webapp.OrbeonServletContextListenerDelegate: org.orbeon.oxf.common.OXFException: no implementation of regexp was found.
    at org.orbeon.oxf.webapp.OrbeonServletContextListenerDelegate.contextInitialized(OrbeonServletContextListenerDelegate.java:43) [orbeon.jar:]
    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]
    at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]

15:34:36,670 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error listenerStart
15:34:36,670 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Context [/adg-xforms] startup failed due to previous errors
15:34:36,682 ERROR [stderr] (MSC service thread 1-2) Starting Orbeon Forms 3.8.0.201005141856 CE

15:34:36,693 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/adg-xforms]] (MSC service thread 1-2) Exception sending context destroyed event to listener instance of class org.orbeon.oxf.webapp.OrbeonServletContextListenerDelegate: org.orbeon.oxf.common.OXFException: Could not initialize class com.sun.msv.datatype.xsd.AnyURIType
    at org.orbeon.oxf.webapp.OrbeonServletContextListenerDelegate.contextDestroyed(OrbeonServletContextListenerDelegate.java:52) [orbeon.jar:]
    at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3465) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
    at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3970) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3888) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
    at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]
    at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]

您是否支持JBoss AS 7或尝试在此应用服务器上部署orbeon的任何人。

2 个答案:

答案 0 :(得分:1)

我刚刚将xsdlib-20030225.jar添加到lib目录中(这只是我必须提交的一个; -O)。这是一个HACK,我不知道它有什么影响,不知道是否有任何副作用......但它到目前为止有效; - )

这是用JBoss AS 7.1.1.Final“Brontes”测试的。

请按照以下步骤操作:

  • 适用于Orbeon Forms PE

    • 解压缩orbeon.war
    • 将您的license.xml文件放在WEB-INF/resources/config/license.xml
    • re-zip orbeon.war
  • 使用bin/standalone.sh

  • 启动独立服务器
  • orbeon.war放入JBoss standalone/deployments文件夹

source

答案 1 :(得分:0)

班级装载者的喜悦。 MSV中的某些代码尝试加载com.sun.msv.datatype.xsd.AnyURIType,这不应该因为此类位于WEB-INF/lib/msv-xsdlib-20070407_orbeon_20100309.jar而失败。我怀疑由于类加载器在JBoss中的结构方式,Orbeon最终使用了来自JBoss的MSV版本,该版本无法加载AnyURIType,这是一个只有Orbeon附带的jar。但我可能错了。

这种类型的特定于应用程序服务器的问题可能需要相当费时才能解决。因此,我建议您使用Tomcat或让Orbeon在Development Support subscription下为您解决此问题。