missing sandbox directory causes orbeon to fail to startup

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

missing sandbox directory causes orbeon to fail to startup

bwallis42
I have the following config in my orbeon web.xml
    <context-param>
        <param-name>oxf.resources.priority.0</param-name>
        <param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.0.oxf.resources.filesystem.sandbox-directory</param-name>
        <param-value>${web.app.data}/orbeon</param-value>
    </context-param>

(where ${web.app.data} expands to a valid path for an existing directory)

and the properties-local.xml file in the orbeon war has the following at the end

    <!-- Include the site specific property values. -->
    <xi:include href="oxf:/config/configurable-properties.xml" />

Now if I start up with the directory ${web.app.data}/orbeon missing I get the error included below. This seems wrong to me. If the directory "config" or the file "configurable-properties.xml" is missing that is fine, it is just ignored but if the containing directory is missing it causes orbeon to fail to startup.

perhaps just logging a warning and setting hasSandbox to false would be a better result since all that has happened is that the optional configuration is missing and so is its containing directory.



17:31:20,603 INFO  [Orbeon$] Starting Orbeon Forms 4.10.0.201508261723 PE
17:31:20,615 INFO  [Orbeon$] Initializing Resource Manager with: {oxf.resources.priority.0=org.orbeon.oxf.resources.FilesystemResourceManagerFactory, oxf.resources.priority.5=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory, org.orbeon.oxf.resources.WebAppResourceManagerImplWebAppContext=org.orbeon.oxf.webapp.ServletWebAppContext@5e54bf3f, oxf.resources.priority.0.oxf.resources.filesystem.sandbox-directory=/Users/bwallis/InfoMedix/JBoss/UDR4/udr_home/appdata/orbeon, oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManagerFactory, oxf.resources.priority.3=org.orbeon.oxf.resources.WebAppResourceManagerFactory, oxf.resources.priority.3.oxf.resources.webapp.rootdir=/WEB-INF/resources}
17:31:20,621 INFO  [Orbeon$] Using run mode: prod
17:31:20,624 INFO  [Orbeon$] Using properties file: oxf:/config/properties-prod.xml
17:31:20,771 ERROR [ProcessorService] Exception when running context creation

+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|Root directory /Users/bwallis/InfoMedix/JBoss/UDR4/udr_home/appdata/orbeon does not refer to a valid directory        |
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack                                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.common.OXFException                                                                         |
|----------------------------------------------------------------------------------------------------------------------|
|.orbeon.oxf.resources.FilesystemResourceManagerImpl|<init>                        |FilesystemResourceManagerImpl.|  44|
|beon.oxf.resources.FilesystemResourceManagerFactory|makeInstance                  |FilesystemResourceManagerFacto|  29|
|rg.orbeon.oxf.resources.PriorityResourceManagerImpl|<init>                        |PriorityResourceManagerImpl.ja|  78|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.common.OXFException                                                                         |
|----------------------------------------------------------------------------------------------------------------------|
|rg.orbeon.oxf.resources.PriorityResourceManagerImpl|<init>                        |PriorityResourceManagerImpl.ja|  82|
|orbeon.oxf.resources.PriorityResourceManagerFactory|makeInstance                  |PriorityResourceManagerFactory|  31|
|org.orbeon.oxf.resources.ResourceManagerWrapper    |instance                      |ResourceManagerWrapper.java   |  63|
|processor.generator.URLGenerator$OXFResourceHandler|readXML                       |URLGenerator.java             | 866|
|org.orbeon.oxf.processor.generator.URLGenerator$1  |readImpl                      |URLGenerator.java             | 538|
|essor.impl.ProcessorOutputImpl$TopLevelOutputFilter|read                          |ProcessorOutputImpl.java      | 257|
|org.orbeon.oxf.processor.impl.ProcessorOutputImpl  |read                          |ProcessorOutputImpl.java      | 394|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.common.ValidationException                                                                  |
|----------------------------------------------------------------------------------------------------------------------|
|org.orbeon.oxf.common.OrbeonLocationException$     |wrapException                 |OrbeonLocationException.scala |  60|
|org.orbeon.oxf.common.OrbeonLocationException      |wrapException                 |OrbeonLocationException.scala |    |
|org.orbeon.oxf.processor.impl.ProcessorOutputImpl  |read                          |ProcessorOutputImpl.java      | 397|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 262|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsDOM4J              |ProcessorImpl.java            | 279|
|org.orbeon.oxf.processor.ProcessorImpl$2           |read                          |ProcessorImpl.java            | 309|
|org.orbeon.oxf.processor.ProcessorImpl$2           |read                          |ProcessorImpl.java            | 307|
|org.orbeon.oxf.processor.ProcessorImpl             |readCacheInputAsObject        |ProcessorImpl.java            | 363|
|org.orbeon.oxf.processor.ProcessorImpl             |readCacheInputAsDOM4J         |ProcessorImpl.java            | 307|
|org.orbeon.oxf.processor.DOMSerializer             |runGetDocument                |DOMSerializer.scala           |  49|
|org.orbeon.oxf.properties.Properties               |update                        |Properties.java               | 141|
|org.orbeon.oxf.properties.Properties               |instance                      |Properties.java               |  94|
|org.orbeon.oxf.properties.Properties               |init                          |Properties.java               |  76|
|org.orbeon.oxf.webapp.Orbeon$                      |initialize                    |Orbeon.scala                  |  73|
|org.orbeon.oxf.webapp.OrbeonWebApp$$anonfun$1      |apply                         |WebAppContext.scala           | 117|
|org.orbeon.oxf.webapp.OrbeonWebApp$$anonfun$1      |apply                         |WebAppContext.scala           | 117|
|scala.collection.mutable.MapLike$class             |getOrElseUpdate               |MapLike.scala                 | 194|
|g.orbeon.oxf.webapp.ParametersAndAttributes$$anon$1|getOrElseUpdate               |WebAppContext.scala           |  93|
|org.orbeon.oxf.webapp.OrbeonWebApp$class           |$init$                        |WebAppContext.scala           | 117|
|org.orbeon.oxf.webapp.ServletWebAppContext         |<init>                        |WebAppContext.scala           | 122|
|org.orbeon.oxf.webapp.WebAppContext$               |apply                         |WebAppContext.scala           | 167|
|org.orbeon.oxf.pipeline.InitUtils$                 |runWithServletContext         |InitUtils.scala               | 170|
|ervletContextListener$$anonfun$contextInitialized$1|apply$mcV$sp                  |OrbeonServletContextListener.s|  40|
|ervletContextListener$$anonfun$contextInitialized$1|apply                         |OrbeonServletContextListener.s|  40|
|ervletContextListener$$anonfun$contextInitialized$1|apply                         |OrbeonServletContextListener.s|  40|
|org.orbeon.oxf.util.ScalaUtils$                    |withRootException             |ScalaUtils.scala              |  83|
|org.orbeon.oxf.webapp.OrbeonServletContextListener |contextInitialized            |OrbeonServletContextListener.s|  39|
|org.apache.catalina.core.StandardContext           |contextListenerStart          |StandardContext.java          |3369|
|org.apache.catalina.core.StandardContext           |start                         |StandardContext.java          |3828|
|jboss.web.tomcat.service.deployers.TomcatDeployment|performDeployInternal         |TomcatDeployment.java         | 294|
|jboss.web.tomcat.service.deployers.TomcatDeployment|performDeploy                 |TomcatDeployment.java         | 146|
|org.jboss.web.deployers.AbstractWarDeployment      |start                         |AbstractWarDeployment.java    | 476|
|org.jboss.web.deployers.WebModule                  |startModule                   |WebModule.java                | 118|
|org.jboss.web.deployers.WebModule                  |start                         |WebModule.java                |  95|
|sun.reflect.NativeMethodAccessorImpl               |invoke0                       |NativeMethodAccessorImpl.java |    |
|sun.reflect.NativeMethodAccessorImpl               |invoke                        |NativeMethodAccessorImpl.java |  57|
|sun.reflect.DelegatingMethodAccessorImpl           |invoke                        |DelegatingMethodAccessorImpl.j|  43|
|java.lang.reflect.Method                           |invoke                        |Method.java                   | 606|
|org.jboss.mx.interceptor.ReflectedDispatcher       |invoke                        |ReflectedDispatcher.java      | 157|
|org.jboss.mx.server.Invocation                     |dispatch                      |Invocation.java               |  96|
|---8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<---|
|.jboss.dependency.plugins.AbstractControllerContext|install                       |AbstractControllerContext.java| 379|
|org.jboss.dependency.plugins.AbstractController    |install                       |AbstractController.java       |2044|
|org.jboss.dependency.plugins.AbstractController    |incrementState                |AbstractController.java       |1083|
|org.jboss.dependency.plugins.AbstractController    |executeOrIncrementStateDirectl|AbstractController.java       |1322|
|org.jboss.dependency.plugins.AbstractController    |resolveContexts               |AbstractController.java       |1246|
|org.jboss.dependency.plugins.AbstractController    |resolveContexts               |AbstractController.java       |1139|
|org.jboss.dependency.plugins.AbstractController    |change                        |AbstractController.java       | 939|
|org.jboss.dependency.plugins.AbstractController    |change                        |AbstractController.java       | 654|
|org.jboss.deployers.plugins.deployers.DeployersImpl|change                        |DeployersImpl.java            |1983|
|org.jboss.deployers.plugins.deployers.DeployersImpl|process                       |DeployersImpl.java            |1076|
|org.jboss.deployers.plugins.main.MainDeployerImpl  |process                       |MainDeployerImpl.java         | 679|
|.server.profileservice.deployers.MainDeployerPlugin|process                       |MainDeployerPlugin.java       | 106|
|ependency.ProfileControllerContext$DelegateDeployer|process                       |ProfileControllerContext.java | 143|
|jboss.profileservice.dependency.ProfileDeployAction|deploy                        |ProfileDeployAction.java      | 151|
|jboss.profileservice.dependency.ProfileDeployAction|installActionInternal         |ProfileDeployAction.java      |  94|
|jboss.kernel.plugins.dependency.InstallsAwareAction|installAction                 |InstallsAwareAction.java      |  54|
|jboss.kernel.plugins.dependency.InstallsAwareAction|installAction                 |InstallsAwareAction.java      |  42|
|ndency.plugins.action.SimpleControllerContextAction|simpleInstallAction           |SimpleControllerContextAction.|  62|
|ndency.plugins.action.AccessControllerContextAction|install                       |AccessControllerContextAction.|  71|
|dependency.plugins.AbstractControllerContextActions|install                       |AbstractControllerContextActio|  51|
|.jboss.dependency.plugins.AbstractControllerContext|install                       |AbstractControllerContext.java| 379|
|org.jboss.dependency.plugins.AbstractController    |install                       |AbstractController.java       |2044|
|org.jboss.dependency.plugins.AbstractController    |incrementState                |AbstractController.java       |1083|
|org.jboss.dependency.plugins.AbstractController    |executeOrIncrementStateDirectl|AbstractController.java       |1322|
|org.jboss.dependency.plugins.AbstractController    |resolveContexts               |AbstractController.java       |1246|
|org.jboss.dependency.plugins.AbstractController    |resolveContexts               |AbstractController.java       |1139|
|org.jboss.dependency.plugins.AbstractController    |change                        |AbstractController.java       | 939|
|org.jboss.dependency.plugins.AbstractController    |change                        |AbstractController.java       | 654|
|ncy.ProfileActivationWrapper$BasicProfileActivation|start                         |ProfileActivationWrapper.java | 190|
|.profileservice.dependency.ProfileActivationWrapper|start                         |ProfileActivationWrapper.java |  87|
|.profileservice.dependency.ProfileActivationService|activateProfile               |ProfileActivationService.java | 215|
|.profileservice.dependency.ProfileActivationService|activate                      |ProfileActivationService.java | 159|
|leservice.bootstrap.AbstractProfileServiceBootstrap|activate                      |AbstractProfileServiceBootstra| 112|
|resolver.BasicResolverFactory$ProfileResolverFacade|deploy                        |BasicResolverFactory.java     |  87|
|leservice.bootstrap.AbstractProfileServiceBootstrap|start                         |AbstractProfileServiceBootstra|  91|
|ofileservice.bootstrap.BasicProfileServiceBootstrap|start                         |BasicProfileServiceBootstrap.j| 132|
|ofileservice.bootstrap.BasicProfileServiceBootstrap|start                         |BasicProfileServiceBootstrap.j|  56|
|org.jboss.bootstrap.impl.base.server.AbstractServer|startBootstraps               |AbstractServer.java           | 827|
|rap.impl.base.server.AbstractServer$StartServerTask|run                           |AbstractServer.java           | 417|
|java.lang.Thread                                   |run                           |Thread.java                   | 744|
+----------------------------------------------------------------------------------------------------------------------+
17:31:20,772 ERROR [[/orbeon]] Exception sending context initialized event to listener instance of class org.orbeon.oxf.webapp.OrbeonServletContextListener: javax.servlet.ServletException: org.orbeon.oxf.common.OXFException: Root directory /Users/bwallis/InfoMedix/JBoss/UDR4/udr_home/appdata/orbeon does not refer to a valid directory
	at org.orbeon.oxf.webapp.OrbeonServletContextListener$$anonfun$contextInitialized$2.apply(OrbeonServletContextListener.scala:39) [:]
	at org.orbeon.oxf.webapp.OrbeonServletContextListener$$anonfun$contextInitialized$2.apply(OrbeonServletContextListener.scala:39) [:]
	at org.orbeon.oxf.util.ScalaUtils$.withRootException(ScalaUtils.scala:87) [:]
	at org.orbeon.oxf.webapp.OrbeonServletContextListener.contextInitialized(OrbeonServletContextListener.scala:39) [:]
	at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369) [:]
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828) [:]
	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.1.0.Final]
	at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.1.0.Final]
	at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:476) [:6.1.0.Final]
	at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.1.0.Final]
	at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.1.0.Final]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_45]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.7.0_45]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_45]
	at java.lang.reflect.Method.invoke(Method.java:606) [:1.7.0_45]
	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]
	at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) [:2.2.0.SP2]
	at com.sun.proxy.$Proxy42.start(Unknown Source)
	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53) [:2.2.0.SP2]
	at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41) [:2.2.0.SP2]
	at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301) [:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.system.ServiceController.doChange(ServiceController.java:671) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20111019)]
	at org.jboss.system.ServiceController.start(ServiceController.java:443) [:6.1.0.Final (Build SVNTag:JBoss_6.1.0.Final date: 20111019)]
	at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189) [:6.1.0.Final]
	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102) [:6.1.0.Final]
	at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49) [:6.1.0.Final]
	at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:63) [:2.2.2.GA]
	at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.2.GA]
	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.2.GA]
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.2.GA]
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.2.GA]
	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.2.GA]
	at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.2.GA]
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.2.GA]
	at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.2.GA]
	at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.2.GA]
	at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.1.0.Final]
	at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
	at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]
	at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]
	at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.SP2]
	at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.SP2]
	at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]
	at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]
	at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]
	at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]
	at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]
	at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]
	at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]
	at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.1.0.Final]
	at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.1.0.Final]
	at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]
	at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]
	at java.lang.Thread.run(Thread.java:744) [:1.7.0_45]
Caused by: org.orbeon.oxf.common.OXFException: Root directory /Users/bwallis/InfoMedix/JBoss/UDR4/udr_home/appdata/orbeon does not refer to a valid directory
	at org.orbeon.oxf.resources.FilesystemResourceManagerImpl.<init>(FilesystemResourceManagerImpl.java:44) [:]
	at org.orbeon.oxf.resources.FilesystemResourceManagerFactory.makeInstance(FilesystemResourceManagerFactory.java:29) [:]
	at org.orbeon.oxf.resources.PriorityResourceManagerImpl.<init>(PriorityResourceManagerImpl.java:78) [:]
	at org.orbeon.oxf.resources.PriorityResourceManagerFactory.makeInstance(PriorityResourceManagerFactory.java:31) [:]
	at org.orbeon.oxf.resources.ResourceManagerWrapper.instance(ResourceManagerWrapper.java:63) [:]
	at org.orbeon.oxf.processor.generator.URLGenerator$OXFResourceHandler.readXML(URLGenerator.java:866) [:]
	at org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl(URLGenerator.java:538) [:]
	at org.orbeon.oxf.processor.impl.ProcessorOutputImpl$TopLevelOutputFilter.read(ProcessorOutputImpl.java:257) [:]
	at org.orbeon.oxf.processor.impl.ProcessorOutputImpl.read(ProcessorOutputImpl.java:394) [:]
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsSAX(ProcessorImpl.java:262) [:]
	at org.orbeon.oxf.processor.ProcessorImpl.readInputAsDOM4J(ProcessorImpl.java:279) [:]
	at org.orbeon.oxf.processor.ProcessorImpl$2.read(ProcessorImpl.java:309) [:]
	at org.orbeon.oxf.processor.ProcessorImpl$2.read(ProcessorImpl.java:307) [:]
	at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:363) [:]
	at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsDOM4J(ProcessorImpl.java:307) [:]
	at org.orbeon.oxf.processor.DOMSerializer.runGetDocument(DOMSerializer.scala:49) [:]
	at org.orbeon.oxf.properties.Properties.update(Properties.java:141) [:]
	at org.orbeon.oxf.properties.Properties.instance(Properties.java:94) [:]
	at org.orbeon.oxf.properties.Properties.init(Properties.java:76) [:]
	at org.orbeon.oxf.webapp.Orbeon$.initialize(Orbeon.scala:73) [:]
	at org.orbeon.oxf.webapp.OrbeonWebApp$$anonfun$1.apply(WebAppContext.scala:117) [:]
	at org.orbeon.oxf.webapp.OrbeonWebApp$$anonfun$1.apply(WebAppContext.scala:117) [:]
	at scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:194) [:]
	at org.orbeon.oxf.webapp.ParametersAndAttributes$$anon$1.getOrElseUpdate(WebAppContext.scala:93) [:]
	at org.orbeon.oxf.webapp.OrbeonWebApp$class.$init$(WebAppContext.scala:117) [:]
	at org.orbeon.oxf.webapp.ServletWebAppContext.<init>(WebAppContext.scala:122) [:]
	at org.orbeon.oxf.webapp.WebAppContext$.apply(WebAppContext.scala:167) [:]
	at org.orbeon.oxf.pipeline.InitUtils$.runWithServletContext(InitUtils.scala:170) [:]
	at org.orbeon.oxf.webapp.OrbeonServletContextListener$$anonfun$contextInitialized$1.apply$mcV$sp(OrbeonServletContextListener.scala:40) [:]
	at org.orbeon.oxf.webapp.OrbeonServletContextListener$$anonfun$contextInitialized$1.apply(OrbeonServletContextListener.scala:40) [:]
	at org.orbeon.oxf.webapp.OrbeonServletContextListener$$anonfun$contextInitialized$1.apply(OrbeonServletContextListener.scala:40) [:]
	at org.orbeon.oxf.util.ScalaUtils$.withRootException(ScalaUtils.scala:83) [:]
	... 85 more
Reply | Threaded
Open this post in threaded view
|

Re: missing sandbox directory causes orbeon to fail to startup

Alessandro  Vernet
Administrator
Hi Brian,

If I put <xi:include href="oxf:/config/configurable-properties.xml"/> in my properties-local.xml, when I start Tomcat, I get an error "Cannot find resource: /config/configurable-properties.xml", the web app fails to start, which is consistent to what you're seeing when your directory ${web.app.data}/orbeon is missing, isn't it?

Mar 05, 2016 5:04:17 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 05, 2016 5:04:17 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/orbeon] startup failed due to previous errors

In both cases, something is quite wrong, and it doesn't seem unreasonable to me not to start the web app at all (instead of trying to proceed with a warning in the log).

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: missing sandbox directory causes orbeon to fail to startup

bwallis42
I don't think it is quite the same as if there isn't a configurable-properties.xml, there is one in the war file in the path WEB-INF/resources/config/configurable-properties.xml and I would expect that this would be found and included but if there is one in the other external location then it would be used instead.

This works if the sandbox directory exists but gets an error if the sandbox directory doesn't.

I agree that if a configurable-properties file cannot be found for the include then that would be an error, but if it can be found and included (from within the war) then should the missing sandbox directory be an error?

This isn't a big issue, I just create the empty directory and it works as expected. It will just be an annoyance when that directory is not missing on a new install at a customer site.

thanks
brian...
Reply | Threaded
Open this post in threaded view
|

Re: missing sandbox directory causes orbeon to fail to startup

Alessandro  Vernet
Administrator
Hi Brian,

You're saying that you'd like Orbeon Forms to start without any error even if the directory pointed to by oxf.resources.filesystem.sandbox-directory does not exist?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: missing sandbox directory causes orbeon to fail to startup

bwallis42
Correct.

As I said earlier, not a big issue, but I'm sure it will save a few customer issues in the future. A warning about the missing configuration directory would seem to be more appropriate than failing to start.

thanks,
brian...