I'm currently evaluating Orbeon forms. The demo forms work well when I install a 4.6-CE binary but they produce errors when I attempt to run a build from the master branch. Attached is an example of an error that I receive. Thank you for any suggestions you are able to offer.
Aaron Spike This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. Orbeon Forms - An Error has Occurred.html (84K) Download Attachment |
Pay no attention to the version number on that error page. The version I'm experiencing this with is "Orbeon Forms 4.7.0.pre.201409251704 CE".
This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
http://discuss.orbeon.com/Error-loading-Form-Runner-home-and-no-orbeon-log-td4658744.html
The thread linked above talks about a very similar issue to the one I am experiencing. When I attempt to import the sample data using and from Intellij I get an error: "../src/orbeon/orbeon-forms/build.xml:1190: XMLDB exception caught: HTTP server returned unexpected status: Forbidden" Aaron Spike This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Hi Aaron,
Are you running the exist-import-sample-data-to-localhost task? If it fails from IntelliJ, can you try from the command line, just in case there is a difference? Alex
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Same problem with ant on the command line:
I'm almost certainly doing something simple incorrectly. I'm very inexperienced with the java ecosystem and tooling. I'm trying to work my way through the orbeon docs but to be honest I find them a little confusing. It seems they are scattered between an old outdated site and github, but not all of the docs on github are linked together. What's the best entry point to the docs? Is there any sort of architectural overview that I could use to get an idea about how these components should be able to communicate in a well functioning system. Right now I'm troubleshooting blind. Aaron Spike On Thursday, September 25, 2014 4:28:52 PM UTC-5, Alessandro Vernet wrote: Hi Aaron, This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Sorry, I pasted the wrong error:
BUILD FAILED /home/spikeac/src/orbeon/orbeon-forms/build.xml:1190: XMLDB exception caught: HTTP server returned unexpected status: Forbidden On Monday, September 29, 2014 8:57:32 AM UTC-5, Aaron Spike wrote:
This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Is logging configured differently in the release war than in the "exploded" war I'm building out of the source? Similarly to the thread I linked above I'm not getting an orbeon.log file from my build. In the release war I see WEB-INF/resources/config/log4j.xml but this path doesn't exist in my build war. Creating it doesn't seem to have an effect. I see WEB-INF/classes/config/log4j.xml in my war, but modifying that file to enable logging hasn't worked yet either.
This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
I think I've unraveled the logging. I'll do a brain dump here so that you can correct me and in case it is helpful for the next poor newb who stumbles in here wondering why the orbeon.log file is missing.
Watching the tomcat service logs in /var/log/messages I saw: 2014-09-29T13:23:25.668927-05:00 linux-e0qr tomcat.service[17629]: INFO: Deploying configuration descriptor /var/cache/tomcat/Catalina/localhost/orbeon-build.xml 2014-09-29T13:23:30.428473-05:00 linux-e0qr tomcat.service[17629]: Starting Orbeon Forms 4.7.0.pre.201409291448 CE 2014-09-29T13:23:30.442898-05:00 linux-e0qr tomcat.service[17629]: Initializing Resource Manager with: {oxf.resources.priority.0=org.orbeon.oxf.resources.FilesystemResourceManagerFactory, oxf.resources.priority.1=org.orbeon.oxf.resources.FilesystemResourceManagerFactory, oxf.resources.priority.4.oxf.resources.filesystem.sandbox-directory=/home/spikeac/src/orbeon/orbeon-forms/src/resources-packaged, oxf.resources.priority.5=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory, org.orbeon.oxf.resources.WebAppResourceManagerImplWebAppContext=org.orbeon.oxf.webapp.ServletWebAppContext@5eaf41ae, oxf.resources.priority.0.oxf.resources.filesystem.sandbox-directory=/home/spikeac/src/orbeon/orbeon-forms/src/resources-local, oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManagerFactory, oxf.resources.priority.2=org.orbeon.oxf.resources.FilesystemResourceManagerFactory, oxf.resources.priority.3=org.orbeon.oxf.resources.WebAppResourceManagerFactory, oxf.resources.priority.3.oxf.resources.webapp.rootdir=/WEB-INF/resources, oxf.resources.priority.1.oxf.resources.filesystem.sandbox-directory=/home/spikeac/src/orbeon/orbeon-forms/src/test/resources, oxf.resources.priority.2.oxf.resources.filesystem.sandbox-directory=/home/spikeac/src/orbeon/orbeon-forms/src/resources, oxf.resources.priority.4=org.orbeon.oxf.resources.FilesystemResourceManagerFactory} 2014-09-29T13:23:30.453394-05:00 linux-e0qr tomcat.service[17629]: Using run mode: dev 2014-09-29T13:23:30.454350-05:00 linux-e0qr tomcat.service[17629]: Using properties file: oxf:/config/properties-dev.xml The "Initializing Resource Manager" line looked interesting so I copied it into a text editor and re-organized it a little: Initializing Resource Manager with: { oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManagerFactory, org.orbeon.oxf.resources.WebAppResourceManagerImplWebAppContext=org.orbeon.oxf.webapp.ServletWebAppContext@56272054, oxf.resources.priority.0=org.orbeon.oxf.resources.FilesystemResourceManagerFactory, oxf.resources.priority.1=org.orbeon.oxf.resources.FilesystemResourceManagerFactory, oxf.resources.priority.2=org.orbeon.oxf.resources.FilesystemResourceManagerFactory, oxf.resources.priority.3=org.orbeon.oxf.resources.WebAppResourceManagerFactory, oxf.resources.priority.4=org.orbeon.oxf.resources.FilesystemResourceManagerFactory oxf.resources.priority.5=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory, oxf.resources.priority.0.oxf.resources.filesystem.sandbox-directory=/home/spikeac/src/orbeon/orbeon-forms/src/resources-local, oxf.resources.priority.1.oxf.resources.filesystem.sandbox-directory=/home/spikeac/src/orbeon/orbeon-forms/src/test/resources, oxf.resources.priority.2.oxf.resources.filesystem.sandbox-directory=/home/spikeac/src/orbeon/orbeon-forms/src/resources, oxf.resources.priority.3.oxf.resources.webapp.rootdir=/WEB-INF/resources, oxf.resources.priority.4.oxf.resources.filesystem.sandbox-directory=/home/spikeac/src/orbeon/orbeon-forms/src/resources-packaged, } The last 5 lines must be where Orbeon looks for configuration, folder-by-folder in order until it finds the resource it is looking for. Back to /var/log/messages. "Using properties file: oxf:/config/properties-dev.xml" seems relevant. I don't know what "oxf" means but I'll assume that it refers to the search path we just discovered. Walking through the folders the last one "src/resources-packaged" contains a "config/properties-dev.xml". There is nothing about log4j in that file, but there are a number of includes. Checking the first include " <xi:include href="oxf:/config/properties-base.xml"/>", we find "<property as="xs:anyURI" name="oxf.log4j-config" value="oxf:/config/log4j.xml"/>". Excellent, walking back to through the seach path we find a "config/log4j.xml" in "src/test/resources". This file must be the file that controls the logging behavior of the dev environment war by default. Here's what I, as a complete newb, found surprising: 1) The *log4j.xml files that orbeon creates in the war directory do not control logging. (They aren't even in the running as far as I can tell.) 2) There is no "resources/config" directory in the war. (I tried creating one and it didn't help because...) 3) Even if there were the config from "src/test/resources" is found first. In the end, I copied "build/orbeon-war/WEB-INF/classes/config/log4j.xml" to "src/resources-local/config/log4j.xml" and everything is happy. I now have control of the logging behavior. I think this should have been easier. I'm guessing I just missed this line of explanation in the docs. Hopefully someone else will benefit from my mistake. :-) Aaron Spike This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
From what I see it appears that I've missed a step that either initializes the internal DB or grants access to connect to it. I can't connect to the internal exist db using the exist-db client application. I can't run This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
In reply to this post by Aaron Spike
I can't run `ant exist-import-sample-data-to-localhost`. I can't connect to the internal exist-db with the exist client. As far as I can tell I must have missed a step somewhere that authorizes access to exist or initializes that database.
I've seen a few different errors in my logs now. Here's the most recent: 2014-09-29 14:38:00,869 ERROR XmlRpcErrorLogger - Failed to create XmlRpcServer: Failed to initialize XMLRPC interface: database instance 'exist' is not available org.apache.xmlrpc.XmlRpcException: Failed to initialize XMLRPC interface: database instance 'exist' is not available at org.exist.xmlrpc.RpcServlet$XmldbRequestProcessorFactoryFactory.getRequestProcessorFactory(RpcServlet.java:82) at org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.newXmlRpcHandler(AbstractReflectiveHandlerMapping.java:183) at org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.registerPublicMethods(AbstractReflectiveHandlerMapping.java:169) at org.exist.xmlrpc.RpcServlet$DefaultHandlerMapping.loadDefault(RpcServlet.java:93) at org.exist.xmlrpc.RpcServlet.newXmlRpcHandlerMapping(RpcServlet.java:68) at org.apache.xmlrpc.webserver.XmlRpcServlet.init(XmlRpcServlet.java:99) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:865) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:136) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1810) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: org.exist.EXistException: database instance 'exist' is not available at org.exist.storage.BrokerPool.getInstance(BrokerPool.java:291) at org.exist.xmlrpc.XmldbRequestProcessorFactory.<init>(XmldbRequestProcessorFactory.java:58) at org.exist.xmlrpc.RpcServlet$XmldbRequestProcessorFactoryFactory.getRequestProcessorFactory(RpcServlet.java:79) ... 22 more Caused by: org.exist.EXistException: database instance 'exist' is not available at org.exist.storage.BrokerPool.getInstance(BrokerPool.java:291) at org.exist.xmlrpc.XmldbRequestProcessorFactory.<init>(XmldbRequestProcessorFactory.java:58) at org.exist.xmlrpc.RpcServlet$XmldbRequestProcessorFactoryFactory.getRequestProcessorFactory(RpcServlet.java:79) at org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.newXmlRpcHandler(AbstractReflectiveHandlerMapping.java:183) at org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.registerPublicMethods(AbstractReflectiveHandlerMapping.java:169) at org.exist.xmlrpc.RpcServlet$DefaultHandlerMapping.loadDefault(RpcServlet.java:93) at org.exist.xmlrpc.RpcServlet.newXmlRpcHandlerMapping(RpcServlet.java:68) at org.apache.xmlrpc.webserver.XmlRpcServlet.init(XmlRpcServlet.java:99) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:865) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:136) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1810) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
My saga continues. At some point yesterday my error changed from "not available" to "not found". This uncovered another mistake I was making. After initially failing to get the development build to work, I wanted to test the production built to make sure my setup wasn't at fault. I moved the dev build to a different context "orbeon-build" and installed the production build in "orbeon". You can't do this. Reading build.xml this morning I realized that all of the URIs are hard coded to the "orbeon" context. Yesterday I deleted the production war to eliminate potential sources of error. That was when the message changed. So after moving my development build back to the "orbeon" context, doing a git pull and a clean build I tried to load the data again. I still got the "not available" error. Then I remembered a post that I had read where Alessandro Vernet suggested that someone access a page and get 404 before loading the data:
http://discuss.orbeon.com/Error-loading-Form-Runner-home-and-no-orbeon-log-td4658744.html#a4658758 I thought that this was just to show that the data wasn't there before the load. Evidently it does more. Loading the data after accessing a page worked. What I found surprising: needing to access a 404 page before data would load successfully. Aaron Spike This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
I got it working! My last error was:
"Name [jdbc/oracle_tomcat] is not bound in this Context. Unable to find [jdbc]." The problem was similar to my previous issue with log4j.xml. The src/test/resources/config/properties-local.xml was being found before the others. Copying the template to resources-local fixed the issue and now my development build is working equivalently to the production build. This electronic communication, including any attached documents, may contain confidential and/or legally privileged information that is intended only for use by the recipient(s) named above. If you have received this communication in error, please notify the sender immediately and delete the communication and any attachments. Views expressed by the author do not necessarily represent those of Martin Luther College. -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
Administrator
|
Excellent, glad it's working now!
-Erik |
Free forum by Nabble | Edit this page |