Error loading Form Runner home and no orbeon.log

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

Error loading Form Runner home and no orbeon.log

ali112
Hi again,

As I said before, I'm trying to build Orbeon Forms following this doc: https://github.com/orbeon/orbeon-forms/wiki/Building-Orbeon-Forms

I can get everything working fine less Form Runner home page and it isn't creating the orbeon.log. Below I list the step-by-step I followed as well as the results I got:

(I'm using JDK 1.6.0.45, JRE 6, and Tomcat 7.0.55.zip in a Windows 7 Ultimate x64.
I installed both suggested plugins Scala and File Watchers in IntelliJ IDEA 13.1.4 Ultimate)

        1. I cloned the Orbeon branch 4.6-ce with Git Bash 1.9.4;
        2. Opened the project (C:\myproject\4.6-ce\orbeon-forms) with IntelliJ;
        3. Accepted the dialog box: "The project 'orbeon-forms' has an older format and will be converted";
        4. It indexed the project files and I see on File > Project Structure..., 6 errors found:
       
       

        5. Build > Make Project (Compilation completed successfully with 102_warnings.txt);
        6. Build > orbeon > orbeon-war (Ant build completed successfully);
        7. Manually created the directory orbeon-forms/src/resources-local (Is this path right?);
        8. Created a new context in Tomcat's server.xml as suggested on wiki;
        9. Set JAVA_OPTS in C:\apache-tomcat-7.0.55\bin\setenv.bat:
                set ORBEON_MEMORY_OPTS=-Xms300m -Xmx1000m -XX:MaxPermSize=256m -verbosegc -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintGCDetails
                set ORBEON_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=61155,suspend=n,server=y
                set JAVA_OPTS=-ea %ORBEON_MEMORY_OPTS% %ORBEON_DEBUG_OPTS% -Dapple.awt.UIElement=true
        10. Went to http://localhost:8080/orbeon/ (Orbeon Home loads and Form Builder works fine (I can create forms, save and input data), but content can't load in Form Runner home page. I just keep getting the following dialog box message when I try to access http://localhost:8080/orbeon/fr/ : "Unable to complete action: There was an error running the process. Please contact the application administrator." Additionally, all form examples lead to an Orbeon's Page Not Found.

ADDITIONAL INFO:

I tested it in Chrome and IE with cleaned cache.

Besides 4.6-ce, I also tested with 4.5-ce and 4.7.0.pre.201408221852 CE, and I got the same results. The last one required me a JDK 1.7, so I installed it and used it but got the same results. I tested with 4.1-ce as well and got some additional errors.

I tried to get the orbeon.log by setting an absolute path in orbeon-forms/build/orbeon-war/WEB-INF/classes/config/log4j.xml without success.

I Build > orbeon > orbeon-dist-war and deployed it to /webapps and got Form Runner home page working as well as orbeon.log. Not to mention the form example pages. It worked even that I got 2 errors and 2 warnings during the creation of the war file:
   Warnings:
        - log4j:WARN No appenders could be found for logger (org.exist.util.ConfigurationHelper).
        - log4j:WARN Please initialize the log4j system properly.
   Errors:
        - Cannot find mime-type kind for 831113e3ef799f2c9f57ee0b10f789a8951360ba.bin. Treating it as a binary.
        - Cannot find mime-type kind for 831113e3ef799f2c9f57ee0b10f789a8951360ba.bin. Treating it as a binary.

Am I missing something?
Reply | Threaded
Open this post in threaded view
|

Re: Error loading Form Runner home and no orbeon.log

Alessandro  Vernet
Administrator
Hi,

It's really hard to say what goes wrong without being able to poke around in your precise environment. Does it work for you if you're not using IntelliJ, but just run `ant orbeon-war` from the command line?

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

Re: Error loading Form Runner home and no orbeon.log

ali112
Hi Alex,

I tried it and got the same results. :(

Does it require some external library?
Reply | Threaded
Open this post in threaded view
|

Re: Error loading Form Runner home and no orbeon.log

Alessandro  Vernet
Administrator
Hi,

OK, I think you're almost there; you're most likely just missing the import of the sample forms into the built-in eXist database. So to summarize:

1. ant clean (just to make sure, to start from scratch)
2. ant orbeon-war
3. mkdir src/resources-local
4. In Tomcat's directory, create conf/Catalina/localhost/orbeon.xml with the following content (adjusting docBase to point to your build/orbeon-war directory inside the directory where you built Orbeon Forms): <Context docBase="/home/codio/workspace/build/orbeon-war" reloadable="false" override="true" allowLinking="true" crossContext="true"/>
5. Start Tomcat, got to http://localhost:8080/orbeon/fr/orbeon/bookshelf/summary, which gets you a 404.
6. ant exist-import-sample-data-to-localhost
7. Try again, and this time you should be good.

You'll let us know if this works for you.

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

Re: Error loading Form Runner home and no orbeon.log

ali112
Hi Alex,

Thanks for taking the time to help me out.

I followed your instructions and got the sample forms working well this time. But I have still getting the error on orbeon/fr page and it is not logging in orbeon.log.

I tried it two times starting from scratch. The second one I tried on Windows Security Mode but both ways resulted the same.

ant orbeon-war BUILD SUCCESSFUL with 1 warning:

[javac] c:\myproject\4.6-ce2\orbeon-forms\build.xml:362: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds.

ant exist-import-sample-data-to-localhost BUILD SUCCESSFUL with 2 warnings:

[xdb:store] log4j:WARN No appenders could be found for logger (org.exist.util.ConfigurationHelper).
[xdb:store] log4j:WARN Please initialize the log4j system properly.
Reply | Threaded
Open this post in threaded view
|

Re: Error loading Form Runner home and no orbeon.log

Alessandro  Vernet
Administrator
The warning you mention don't seem to worrying to me. What is the issue you're seeing when going to orbeon/fr? If a page not found, then maybe it is just because you're missing a slash after fr, i.e. the URL should end with orbeon/fr/.

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

Re: Error loading Form Runner home and no orbeon.log

ali112
When I execute the ant against orbeon-war whether by command line or IntelliJ I can't get the orbeon.log updated and Form Runner home page loading properly. This is what I get when I click on the link or type manually http://localhost:8080/orbeon/fr/



But when I create the dist-war it is working properly, both Form Runner home page and orbeon.log.
Reply | Threaded
Open this post in threaded view
|

Re: Error loading Form Runner home and no orbeon.log

Alessandro  Vernet
Administrator
There should be a more specific error in your orbeon.log. If you can't figure it out, could you remove the orbeon.log, restart Tomcat, reproduce the problem, and attach it to your response here?

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

Re: Error loading Form Runner home and no orbeon.log

ali112
This post was updated on .
STARTING TOMCAT

This is the catalina.bat run log: catalina-bat-run-log.txt


ACCESSING http://localhost:8080/orbeon/fr/ ON A CHROME BROWSER

With ant orbeon-war I can't get the orbeon.log, but I could copy the log from the Tomcat window: orbeon-fr-log.txt (This is the log you requested)

With orbeon-dist-war I can get the orbeon.log and the Form Runner Home works fine. This is the orbeon.log: orbeon-dist-war-log.txt

Also, remembering that I attached a file with 102 warnings about the project compilation. It is in the first post, item 5. I don't know if it can help as well as the other logs I attached, but I did it just in case.

Can I use Orbeon with Java 7 or is it just recommended with Java 6?

-Ali :)
Reply | Threaded
Open this post in threaded view
|

Re: Error loading Form Runner home and no orbeon.log

ali112
Another user solved the remain problems: http://discuss.orbeon.com/Trouble-with-demo-forms-in-pre-4-7-master-branch-td4659018.html

I am also adding the solution to this topic to make it easier for others find it, clearer and straight.

The following instructions serve to correct the set up to development build work equivalently to the production build:

To be able to get the orbeon.log
Copy "build/orbeon-war/WEB-INF/classes/config/log4j.xml"
to "src/resources-local/config/log4j.xml".

To be able to get Form Runner Home Page working properly
Cut "src/test/resources/config/properties-local.xml"
to "src/resources-local/properties-local.xml".

The error that the instruction above correct: "Name [jdbc/oracle_tomcat] is not bound in this Context. Unable to find [jdbc]." The .xml needs to be moved because it is being found before the others.

I opened a new topic about a new problem related this time with IntelliJ 14.0.1: http://discuss.orbeon.com/Set-up-Orbeon-with-IntelliJ-14-0-1-tp4659262.html

Hope it can help others.
Cheers!
Reply | Threaded
Open this post in threaded view
|

Re: Error loading Form Runner home and no orbeon.log

Alessandro  Vernet
Administrator
Hi Ali,

I'm glad you found a solution to those JDBC setup issue.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet