Orbeon Forms XForms Engine with Java Applications, don't work..

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

Orbeon Forms XForms Engine with Java Applications, don't work..

sce
Hi, help me please


1. I deploy Orbeon to TomCat7.0 follow the installation instructions. Then I ran to check that orbeon runs (localhost:8080/orbeon/home/). it work


I'm folow instruction (http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications) for Integrated deployment.

2. I created new java file (it is servlet which call jsp file), put in folder "Tomcat 7.0\webapps\orbeon\WEB-INF\classes" and compile.

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class HomeServlet extends HttpServlet
{
   public void doGet(HttpServletRequest req, HttpServletResponse resp)
       throws ServletException, IOException
   {  
                req.getSession();
      getServletContext().getRequestDispatcher("/home.jsp").forward(req, resp);
   }
}





3. Next, I created jsp file and insert data my form, which i created use orbeon builder.

4. Next I add in web.xml:

    <filter>
        <filter-name>orbeon-xforms-filter</filter-name>
        <filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>orbeon-xforms-filter</filter-name>
        <url-pattern>/xforms-jsp/*</url-pattern>
       
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
    </filter-mapping>


and,

      <servlet> 
        <servlet-name>HomeServlet</servlet-name> 
        <servlet-class>HomeServlet</servlet-class> 
     </servlet>

      <servlet-mapping> 
        <servlet-name>HomeServlet</servlet-name> 
        <url-pattern>/xforms-jsp/home</url-pattern> 
      </servlet-mapping>


5. Next, I restarted my TomCat and check my servlet (localhost:8080/orbeon/xforms-jsp/home), but nothing work.. I see "Orbeon Forms - An Error has Occurred"

Please help me



sce
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon Forms XForms Engine with Java Applications, don't work..

sce
log:


2014-02-03 09:38:39,550 INFO  ProcessorService  - /xforms-renderer - Received request
2014-02-03 09:38:39,683 INFO  ProcessorService  - /orbeon/fr/service/i18n/fr-resources/TEST/TEST - Received request
2014-02-03 09:38:39,690 INFO  PageFlowControllerProcessor  - not found {controller: "oxf:/page-flow.xml", method: "GET", path: "/orbeon/fr/service/i18n/fr-resources/TEST/TEST", resource: "/apps/orbeon/page-flow.xml"}
2014-02-03 09:38:39,709 INFO  ProcessorService  - /orbeon/fr/service/i18n/fr-resources/TEST/TEST - Timing: 25
2014-02-03 09:38:39,717 ERROR XFormsServer  - xforms-submit-error - setting throwable {throwable: "
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|xf:submission for submission id: fr-get-fr-resources, error code received when submitting instance: 404               |
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack                                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.xforms.submission.XFormsSubmissionException                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|.orbeon.oxf.xforms.submission.XFormsModelSubmission|getReplacer                   |XFormsModelSubmission.java    | 731|
|rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        | 101|
|rg.orbeon.oxf.xforms.submission.RegularSubmission$1|call                          |RegularSubmission.java        |  71|
|org.orbeon.oxf.xforms.submission.BaseSubmission    |submitCallable                |BaseSubmission.java           |  99|
|org.orbeon.oxf.xforms.submission.RegularSubmission |connect                       |RegularSubmission.java        | 124|
|rbeon.oxf.xforms.submission.CacheableSubmission$1$1|load                          |CacheableSubmission.java      | 146|
|orbeon.oxf.xforms.XFormsServerSharedInstancesCache$|org$orbeon$oxf$xforms$XFormsSe|XFormsServerSharedInstancesCac|  80|
|erSharedInstancesCache$$anonfun$findContentOrLoad$1|apply                         |XFormsServerSharedInstancesCac|  88|
|erSharedInstancesCache$$anonfun$findContentOrLoad$1|apply                         |XFormsServerSharedInstancesCac|  88|
|scala.Option                                       |orElse                        |Option.scala                  | 257|
|orbeon.oxf.xforms.XFormsServerSharedInstancesCache$|findContentOrLoad             |XFormsServerSharedInstancesCac|  88|
|.orbeon.oxf.xforms.XFormsServerSharedInstancesCache|findContentOrLoad             |XFormsServerSharedInstancesCac|    |
|.orbeon.oxf.xforms.submission.CacheableSubmission$1|call                          |CacheableSubmission.java      | 117|
|.orbeon.oxf.xforms.submission.CacheableSubmission$1|call                          |CacheableSubmission.java      | 109|
|org.orbeon.oxf.xforms.submission.BaseSubmission    |submitCallable                |BaseSubmission.java           |  99|
|rg.orbeon.oxf.xforms.submission.CacheableSubmission|connect                       |CacheableSubmission.java      | 207|
|.orbeon.oxf.xforms.submission.XFormsModelSubmission|doSubmit                      |XFormsModelSubmission.java    | 464|
|.orbeon.oxf.xforms.submission.XFormsModelSubmission|performDefaultAction          |XFormsModelSubmission.java    | 296|
|.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply$mcV$sp                  |Dispatch.scala                | 137|
|.oxf.xforms.event.Dispatch$$anonfun$dispatchEvent$1|apply                         |Dispatch.scala                |  73|
|---8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<---|
|org.apache.catalina.core.ApplicationDispatcher     |processRequest                |ApplicationDispatcher.java    | 487|
|org.apache.catalina.core.ApplicationDispatcher     |doForward                     |ApplicationDispatcher.java    | 412|
|org.apache.catalina.core.ApplicationDispatcher     |forward                       |ApplicationDispatcher.java    | 339|
|org.orbeon.oxf.servlet.OrbeonXFormsFilter          |doFilter                      |OrbeonXFormsFilter.java       | 121|
|org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter              |ApplicationFilterChain.java   | 243|
|org.apache.catalina.core.ApplicationFilterChain    |doFilter                      |ApplicationFilterChain.java   | 210|
|org.apache.catalina.core.StandardWrapperValve      |invoke                        |StandardWrapperValve.java     | 222|
|org.apache.catalina.core.StandardContextValve      |invoke                        |StandardContextValve.java     | 123|
|org.apache.catalina.authenticator.AuthenticatorBase|invoke                        |AuthenticatorBase.java        | 502|
|org.apache.catalina.core.StandardHostValve         |invoke                        |StandardHostValve.java        | 171|
|org.apache.catalina.valves.ErrorReportValve        |invoke                        |ErrorReportValve.java         | 100|
|org.apache.catalina.valves.AccessLogValve          |invoke                        |AccessLogValve.java           | 953|
|org.apache.catalina.core.StandardEngineValve       |invoke                        |StandardEngineValve.java      | 118|
|org.apache.catalina.connector.CoyoteAdapter        |service                       |CoyoteAdapter.java            | 409|
|org.apache.coyote.http11.AbstractHttp11Processor   |process                       |AbstractHttp11Processor.java  |1044|
|e.coyote.AbstractProtocol$AbstractConnectionHandler|process                       |AbstractProtocol.java         | 607|
|.apache.tomcat.util.net.JIoEndpoint$SocketProcessor|run                           |JIoEndpoint.java              | 313|
|java.util.concurrent.ThreadPoolExecutor            |runWorker                     |                              |    |
|java.util.concurrent.ThreadPoolExecutor$Worker     |run                           |                              |    |
|java.lang.Thread                                   |run                           |                              |    |
+----------------------------------------------------------------------------------------------------------------------+"}
2014-02-03 09:38:39,733 ERROR PageFlowControllerProcessor  - error caught {controller: "oxf:/ops/xforms/xforms-renderer-page-flow.xml", method: "GET", path: "/xforms-renderer"}
2014-02-03 09:38:39,754 ERROR PageFlowControllerProcessor  -
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------|
|An empty sequence is not allowed as the first argument of xxf:format-message()                                        |
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack                                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/ops/xforms/xforms-renderer-page-flow.xml                                     |reading page model data output|  23|
|······················································································································|
|element=<page path="/xforms-renderer" model="xforms-renderer.xpl"/>                                                   |
|model  =xforms-renderer.xpl                                                                                           |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/ops/xforms/xforms-renderer.xpl                                               |executing processor           |  98|
|······················································································································|
|element=<p:processor name="oxf:pipeline">[...]</p:processor>                                                          |
|name   ={http://www.orbeon.com/oxf/processors}pipeline                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/config/epilogue.xpl                                                          |executing processor           |  60|
|······················································································································|
|element=<p:processor name="oxf:pipeline">[...]</p:processor>                                                          |
|name   ={http://www.orbeon.com/oxf/processors}pipeline                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/config/epilogue-servlet.xpl                                                  |reading processor output      |  31|
|······················································································································|
|element=<p:param type="input" name="xformed-data"/>                                                                   |
|name   =xformed-data                                                                                                  |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/config/epilogue.xpl                                                          |reading processor output      |  41|
|······················································································································|
|element=<p:output name="xformed-data" id="xformed-data"/>                                                             |
|name   =xformed-data                                                                                                  |
|id     =xformed-data                                                                                                  |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/ops/pfc/xforms-epilogue.xpl                                                  |reading processor output      |  95|
|······················································································································|
|element=<p:output name="data" ref="xformed-data"/>                                                                    |
|name   =data                                                                                                          |
|ref    =xformed-data                                                                                                  |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/ops/pfc/xforms-epilogue.xpl                                                  |reading processor output      |  88|
|······················································································································|
|element=<p:output name="data" id="xincluded-data"/>                                                                   |
|name   =data                                                                                                          |
|id     =xincluded-data                                                                                                |
|----------------------------------------------------------------------------------------------------------------------|
|oxf:/ops/pfc/xforms-epilogue.xpl                                                  |reading processor output      |  77|
|······················································································································|
|element=<p:output name="document" id="xhtml-data"/>                                                                   |
|name   =document                                                                                                      |
|id     =xhtml-data                                                                                                    |
|----------------------------------------------------------------------------------------------------------------------|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.saxon.trans.XPathException                                                                      |
|----------------------------------------------------------------------------------------------------------------------|
|org.orbeon.saxon.expr.Expression                   |typeError                     |Expression.java               | 981|
|org.orbeon.saxon.expr.CardinalityChecker           |evaluateItem                  |CardinalityChecker.java       | 277|
|org.orbeon.saxon.expr.Expression                   |evaluateAsString              |Expression.java               | 442|
|rg.orbeon.oxf.xforms.function.FunctionSupport$class|stringArgument                |FunctionSupport.scala         |  26|
|on.oxf.xforms.function.xxforms.XXFormsFormatMessage|stringArgument                |XXFormsFormatMessage.scala    |  24|
|on.oxf.xforms.function.xxforms.XXFormsFormatMessage|evaluateItem                  |XXFormsFormatMessage.scala    |  30|
|on.oxf.xforms.function.xxforms.XXFormsFormatMessage|evaluateItem                  |XXFormsFormatMessage.scala    |  24|
|org.orbeon.saxon.expr.Expression                   |iterate                       |Expression.java               | 370|
|org.orbeon.saxon.expr.FirstItemExpression          |evaluateItem                  |FirstItemExpression.java      |  94|
|org.orbeon.saxon.functions.StringFn                |evaluateItem                  |StringFn.java                 |  41|
|org.orbeon.saxon.expr.Expression                   |iterate                       |Expression.java               | 370|
|org.orbeon.saxon.sxpath.XPathExpression            |iterate                       |XPathExpression.java          | 141|
|org.orbeon.oxf.util.PooledXPathExpression          |org$orbeon$oxf$util$PooledXPat|PooledXPathExpression.scala   | 176|
|ression$$anonfun$evaluateSingleKeepNodeInfoOrNull$1|apply                         |PooledXPathExpression.scala   | 124|
|org.orbeon.oxf.util.DynamicVariable                |withValue                     |DynamicVariable.scala         |  42|
|org.orbeon.oxf.util.XPath$                         |withFunctionContext           |XPath.scala                   |  53|
|org.orbeon.oxf.util.PooledXPathExpression          |evaluateSingleKeepNodeInfoOrNu|PooledXPathExpression.scala   | 123|
|eon.oxf.util.XPathCache$$anonfun$evaluateAsString$1|apply                         |XPathCache.scala              | 314|
|eon.oxf.util.XPathCache$$anonfun$evaluateAsString$1|apply                         |XPathCache.scala              | 314|
|org.orbeon.oxf.util.XPathCache$                    |withEvaluation                |XPathCache.scala              | 509|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.common.ValidationException                                                                  |
|----------------------------------------------------------------------------------------------------------------------|
|org.orbeon.oxf.common.OrbeonLocationException$     |wrapException                 |OrbeonLocationException.scala |  60|
|org.orbeon.oxf.util.XPath$                         |handleXPathException          |XPath.scala                   | 184|
|org.orbeon.oxf.util.XPathCache$                    |withEvaluation                |XPathCache.scala              | 519|
|org.orbeon.oxf.util.XPathCache$                    |evaluateAsString              |XPathCache.scala              | 313|
|orbeon.oxf.xforms.control.ControlXPathSupport$class|evaluateAsString              |ControlXPathSupport.scala     |  86|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.common.OXFException                                                                         |
|----------------------------------------------------------------------------------------------------------------------|
|ms.XFormsError$$anonfun$handleNonFatalXFormsError$2|apply                         |XFormsError.scala             |  83|
|ms.XFormsError$$anonfun$handleNonFatalXFormsError$2|apply                         |XFormsError.scala             |  83|
|org.orbeon.oxf.xforms.XFormsError$                 |fatalOrNot                    |XFormsError.scala             | 101|
|org.orbeon.oxf.xforms.XFormsError$                 |handleNonFatalXFormsError     |XFormsError.scala             |  83|
|org.orbeon.oxf.xforms.XFormsError$                 |handleNonFatalXPathError      |XFormsError.scala             |  66|
|orbeon.oxf.xforms.control.ControlXPathSupport$class|evaluateAsString              |ControlXPathSupport.scala     |  91|
|org.orbeon.oxf.xforms.control.XFormsControl        |evaluateAsString              |XFormsControl.scala           |  47|
|eon.oxf.xforms.control.controls.XFormsOutputControl|evaluateValue                 |XFormsOutputControl.scala     |  74|
|.orbeon.oxf.xforms.control.XFormsValueControl$class|evaluateImpl                  |XFormsValueControl.scala      |  80|
|eon.oxf.xforms.control.controls.XFormsOutputControl|evaluateImpl                  |XFormsOutputControl.scala     |  57|
|org.orbeon.oxf.xforms.control.XFormsControl        |evaluate                      |XFormsControl.scala           | 207|
|beon.oxf.xforms.control.ControlBindingSupport$class|setBindingContext             |ControlBindingSupport.scala   | 102|
|org.orbeon.oxf.xforms.control.XFormsControl        |setBindingContext             |XFormsControl.scala           |  47|
|beon.oxf.xforms.control.ControlBindingSupport$class|evaluateBindingAndValues      |ControlBindingSupport.scala   |  59|
|org.orbeon.oxf.xforms.control.XFormsControl        |evaluateBindingAndValues      |XFormsControl.scala           |  47|
|org$orbeon$oxf$xforms$control$Controls$$buildTree$1|apply                         |Controls.scala                | 123|
|org$orbeon$oxf$xforms$control$Controls$$buildTree$1|apply                         |Controls.scala                | 116|
|scala.Option                                       |map                           |Option.scala                  | 145|
|org.orbeon.oxf.xforms.control.Controls$            |org$orbeon$oxf$xforms$control$|Controls.scala                | 115|
|orms$control$Controls$$buildTree$1$$anonfun$apply$2|apply                         |Controls.scala                | 126|
|---8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<---|
|orms.xbl.ModelContainer$$anonfun$initializeModels$2|apply                         |XBLContainer.scala            | 192|
|orms.xbl.ModelContainer$$anonfun$initializeModels$2|apply                         |XBLContainer.scala            | 190|
|ction.TraversableLike$WithFilter$$anonfun$foreach$1|apply                         |TraversableLike.scala         | 772|
|scala.collection.IndexedSeqOptimized$class         |foreach                       |IndexedSeqOptimized.scala     |  33|
|scala.collection.mutable.ArrayOps$ofRef            |foreach                       |ArrayOps.scala                | 108|
|scala.collection.TraversableLike$WithFilter        |foreach                       |TraversableLike.scala         | 771|
|org.orbeon.oxf.xforms.xbl.ModelContainer$class     |initializeModels              |XBLContainer.scala            | 190|
|org.orbeon.oxf.xforms.xbl.XBLContainer             |initializeModels              |XBLContainer.scala            |  53|
|org.orbeon.oxf.xforms.xbl.ModelContainer$class     |initializeModels              |XBLContainer.scala            | 187|
|org.orbeon.oxf.xforms.xbl.XBLContainer             |initializeModels              |XBLContainer.scala            |  53|
|org.orbeon.oxf.xforms.XFormsContainingDocument$1   |run                           |XFormsContainingDocument.java | 242|
|ion.XFormsAPI$$anonfun$withContainingDocumentJava$1|apply$mcV$sp                  |XFormsAPI.scala               |  54|
|ion.XFormsAPI$$anonfun$withContainingDocumentJava$1|apply                         |XFormsAPI.scala               |  54|
|ion.XFormsAPI$$anonfun$withContainingDocumentJava$1|apply                         |XFormsAPI.scala               |  54|
|org.orbeon.oxf.util.DynamicVariable                |withValue                     |DynamicVariable.scala         |  42|
|org.orbeon.oxf.xforms.action.XFormsAPI$            |withContainingDocument        |XFormsAPI.scala               |  59|
|org.orbeon.oxf.xforms.action.XFormsAPI$            |withContainingDocumentJava    |XFormsAPI.scala               |  53|
|org.orbeon.oxf.xforms.action.XFormsAPI             |withContainingDocumentJava    |XFormsAPI.scala               |    |
|org.orbeon.oxf.xforms.XFormsContainingDocument     |initialize                    |XFormsContainingDocument.java | 231|
|org.orbeon.oxf.xforms.XFormsContainingDocument     |<init>                        |XFormsContainingDocument.java | 219|
|----------------------------------------------------------------------------------------------------------------------|
|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.xforms.XFormsContainingDocument     |<init>                        |XFormsContainingDocument.java | 221|
|org.orbeon.oxf.xforms.processor.XFormsToSomething$3|read                          |XFormsToSomething.java        | 157|
|org.orbeon.oxf.xforms.processor.XFormsToSomething$3|read                          |XFormsToSomething.java        | 138|
|org.orbeon.oxf.processor.ProcessorImpl             |readCacheInputAsObject        |ProcessorImpl.java            | 363|
|org.orbeon.oxf.xforms.processor.XFormsToSomething  |doIt                          |XFormsToSomething.java        | 137|
|org.orbeon.oxf.xforms.processor.XFormsToSomething  |access$000                    |XFormsToSomething.java        |  46|
|org.orbeon.oxf.xforms.processor.XFormsToSomething$1|readImpl                      |XFormsToSomething.java        |  64|
|essor.impl.ProcessorOutputImpl$TopLevelOutputFilter|read                          |ProcessorOutputImpl.java      | 258|
|org.orbeon.oxf.processor.impl.ProcessorOutputImpl  |read                          |ProcessorOutputImpl.java      | 404|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 262|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 266|
|rocessor.xinclude.XIncludeProcessor$$anon$1$$anon$3|read                          |XIncludeProcessor.scala       |  95|
|rocessor.xinclude.XIncludeProcessor$$anon$1$$anon$3|read                          |XIncludeProcessor.scala       |  91|
|org.orbeon.oxf.processor.ProcessorImpl             |readCacheInputAsObject        |ProcessorImpl.java            | 363|
|on.oxf.processor.xinclude.XIncludeProcessor$$anon$1|readImpl                      |XIncludeProcessor.scala       |  91|
|essor.impl.ProcessorOutputImpl$TopLevelOutputFilter|read                          |ProcessorOutputImpl.java      | 258|
|org.orbeon.oxf.processor.impl.ProcessorOutputImpl  |read                          |ProcessorOutputImpl.java      | 404|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 262|
|---8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<---|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 262|
|orbeon.oxf.processor.pipeline.PipelineProcessor$1$1|run                           |PipelineProcessor.java        |  93|
|org.orbeon.oxf.processor.pipeline.PipelineProcessor|executeChildren               |PipelineProcessor.java        | 680|
|org.orbeon.oxf.processor.pipeline.PipelineProcessor|access$000                    |PipelineProcessor.java        |  60|
|g.orbeon.oxf.processor.pipeline.PipelineProcessor$1|readImpl                      |PipelineProcessor.java        |  91|
|essor.impl.ProcessorOutputImpl$TopLevelOutputFilter|read                          |ProcessorOutputImpl.java      | 258|
|org.orbeon.oxf.processor.impl.ProcessorOutputImpl  |read                          |ProcessorOutputImpl.java      | 404|
|processor.pipeline.choose.ConcreteChooseProcessor$1|readImpl                      |ConcreteChooseProcessor.java  | 125|
|essor.impl.ProcessorOutputImpl$TopLevelOutputFilter|read                          |ProcessorOutputImpl.java      | 258|
|org.orbeon.oxf.processor.impl.ProcessorOutputImpl  |read                          |ProcessorOutputImpl.java      | 404|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 262|
|ssor.pipeline.PipelineProcessor$InternalTopOutput$1|run                           |PipelineProcessor.java        | 536|
|org.orbeon.oxf.processor.pipeline.PipelineProcessor|executeParents                |PipelineProcessor.java        | 697|
|org.orbeon.oxf.processor.pipeline.PipelineProcessor|access$400                    |PipelineProcessor.java        |  60|
|cessor.pipeline.PipelineProcessor$InternalTopOutput|readImpl                      |PipelineProcessor.java        | 532|
|essor.impl.ProcessorOutputImpl$TopLevelOutputFilter|read                          |ProcessorOutputImpl.java      | 258|
|org.orbeon.oxf.processor.impl.ProcessorOutputImpl  |read                          |ProcessorOutputImpl.java      | 404|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 262|
|org.orbeon.oxf.processor.ProcessorImpl             |readInputAsSAX                |ProcessorImpl.java            | 266|
|org.orbeon.oxf.processor.NullSerializer            |start                         |NullSerializer.java           |  28|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.common.OXFException                                                                         |
|----------------------------------------------------------------------------------------------------------------------|
|org.orbeon.oxf.processor.NullSerializer            |start                         |NullSerializer.java           |  30|
|g.orbeon.oxf.processor.pipeline.PipelineProcessor$4|run                           |PipelineProcessor.java        | 618|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.common.ValidationException                                                                  |
|----------------------------------------------------------------------------------------------------------------------|
|org.orbeon.oxf.common.OrbeonLocationException$     |wrapException                 |OrbeonLocationException.scala |  60|
|org.orbeon.oxf.common.OrbeonLocationException      |wrapException                 |OrbeonLocationException.scala |    |
|g.orbeon.oxf.processor.pipeline.PipelineProcessor$4|run                           |PipelineProcessor.java        | 620|
|org.orbeon.oxf.processor.pipeline.PipelineProcessor|executeChildren               |PipelineProcessor.java        | 680|
|org.orbeon.oxf.processor.pipeline.PipelineProcessor|start                         |PipelineProcessor.java        | 615|
|f.processor.pipeline.choose.ConcreteChooseProcessor|start                         |ConcreteChooseProcessor.java  | 230|
|g.orbeon.oxf.processor.pipeline.PipelineProcessor$4|run                           |PipelineProcessor.java        | 618|
|org.orbeon.oxf.processor.pipeline.PipelineProcessor|executeChildren               |PipelineProcessor.java        | 680|
|org.orbeon.oxf.processor.pipeline.PipelineProcessor|start                         |PipelineProcessor.java        | 615|
|ller.PageFlowControllerProcessor$PageOrServiceRoute|process                       |PageFlowControllerProcessor.sc| 475|
|g.orbeon.oxf.controller.PageFlowControllerProcessor|start                         |PageFlowControllerProcessor.sc| 166|
|org.orbeon.oxf.pipeline.InitUtils$                 |runProcessor                  |InitUtils.scala               |  82|
|org.orbeon.oxf.webapp.ProcessorService             |service                       |ProcessorService.scala        |  41|
|orbeon.oxf.servlet.OrbeonServlet$$anonfun$service$1|apply$mcV$sp                  |OrbeonServlet.scala           |  74|
|orbeon.oxf.servlet.OrbeonServlet$$anonfun$service$1|apply                         |OrbeonServlet.scala           |  67|
|orbeon.oxf.servlet.OrbeonServlet$$anonfun$service$1|apply                         |OrbeonServlet.scala           |  67|
|org.orbeon.oxf.util.ScalaUtils$                    |withRootException             |ScalaUtils.scala              | 118|
|org.orbeon.oxf.servlet.OrbeonServlet               |service                       |OrbeonServlet.scala           |  67|
|javax.servlet.http.HttpServlet                     |service                       |HttpServlet.java              | 728|
|org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter              |ApplicationFilterChain.java   | 305|
|---8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<---|
|org.apache.catalina.core.ApplicationDispatcher     |processRequest                |ApplicationDispatcher.java    | 487|
|org.apache.catalina.core.ApplicationDispatcher     |doForward                     |ApplicationDispatcher.java    | 412|
|org.apache.catalina.core.ApplicationDispatcher     |forward                       |ApplicationDispatcher.java    | 339|
|org.orbeon.oxf.servlet.OrbeonXFormsFilter          |doFilter                      |OrbeonXFormsFilter.java       | 121|
|org.apache.catalina.core.ApplicationFilterChain    |internalDoFilter              |ApplicationFilterChain.java   | 243|
|org.apache.catalina.core.ApplicationFilterChain    |doFilter                      |ApplicationFilterChain.java   | 210|
|org.apache.catalina.core.StandardWrapperValve      |invoke                        |StandardWrapperValve.java     | 222|
|org.apache.catalina.core.StandardContextValve      |invoke                        |StandardContextValve.java     | 123|
|org.apache.catalina.authenticator.AuthenticatorBase|invoke                        |AuthenticatorBase.java        | 502|
|org.apache.catalina.core.StandardHostValve         |invoke                        |StandardHostValve.java        | 171|
|org.apache.catalina.valves.ErrorReportValve        |invoke                        |ErrorReportValve.java         | 100|
|org.apache.catalina.valves.AccessLogValve          |invoke                        |AccessLogValve.java           | 953|
|org.apache.catalina.core.StandardEngineValve       |invoke                        |StandardEngineValve.java      | 118|
|org.apache.catalina.connector.CoyoteAdapter        |service                       |CoyoteAdapter.java            | 409|
|org.apache.coyote.http11.AbstractHttp11Processor   |process                       |AbstractHttp11Processor.java  |1044|
|e.coyote.AbstractProtocol$AbstractConnectionHandler|process                       |AbstractProtocol.java         | 607|
|.apache.tomcat.util.net.JIoEndpoint$SocketProcessor|run                           |JIoEndpoint.java              | 313|
|java.util.concurrent.ThreadPoolExecutor            |runWorker                     |                              |    |
|java.util.concurrent.ThreadPoolExecutor$Worker     |run                           |                              |    |
|java.lang.Thread                                   |run                           |                              |    |
+----------------------------------------------------------------------------------------------------------------------+ {}
2014-02-03 09:38:39,763 INFO  ProcessorService  - /xforms-renderer - Timing: 213
2014-02-03 09:38:39,778 INFO  ProcessorService  - /config/theme/error.css - Received request
2014-02-03 09:38:39,780 INFO  ProcessorService  - /config/theme/error.css - Timing: 2
sce wrote
Hi, help me please


1. I deploy Orbeon to TomCat7.0 follow the installation instructions. Then I ran to check that orbeon runs (localhost:8080/orbeon/home/). it work


I'm folow instruction (http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications) for Integrated deployment.

2. I created new java file (it is servlet which call jsp file), put in folder "Tomcat 7.0\webapps\orbeon\WEB-INF\classes" and compile.

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class HomeServlet extends HttpServlet
{
   public void doGet(HttpServletRequest req, HttpServletResponse resp)
       throws ServletException, IOException
   {  
                req.getSession();
      getServletContext().getRequestDispatcher("/home.jsp").forward(req, resp);
   }
}





3. Next, I created jsp file and insert data my form, which i created use orbeon builder.

4. Next I add in web.xml:

    <filter>
        <filter-name>orbeon-xforms-filter</filter-name>
        <filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>orbeon-xforms-filter</filter-name>
        <url-pattern>/xforms-jsp/*</url-pattern>
       
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
    </filter-mapping>


and,

      <servlet> 
        <servlet-name>HomeServlet</servlet-name> 
        <servlet-class>HomeServlet</servlet-class> 
     </servlet>

      <servlet-mapping> 
        <servlet-name>HomeServlet</servlet-name> 
        <url-pattern>/xforms-jsp/home</url-pattern> 
      </servlet-mapping>


5. Next, I restarted my TomCat and check my servlet (localhost:8080/orbeon/xforms-jsp/home), but nothing work.. I see "Orbeon Forms - An Error has Occurred"

Please help me
sce wrote
Hi, help me please


1. I deploy Orbeon to TomCat7.0 follow the installation instructions. Then I ran to check that orbeon runs (localhost:8080/orbeon/home/). it work


I'm folow instruction (http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications) for Integrated deployment.

2. I created new java file (it is servlet which call jsp file), put in folder "Tomcat 7.0\webapps\orbeon\WEB-INF\classes" and compile.

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class HomeServlet extends HttpServlet
{
   public void doGet(HttpServletRequest req, HttpServletResponse resp)
       throws ServletException, IOException
   {  
                req.getSession();
      getServletContext().getRequestDispatcher("/home.jsp").forward(req, resp);
   }
}





3. Next, I created jsp file and insert data my form, which i created use orbeon builder.

4. Next I add in web.xml:

    <filter>
        <filter-name>orbeon-xforms-filter</filter-name>
        <filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>orbeon-xforms-filter</filter-name>
        <url-pattern>/xforms-jsp/*</url-pattern>
       
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
    </filter-mapping>


and,

      <servlet> 
        <servlet-name>HomeServlet</servlet-name> 
        <servlet-class>HomeServlet</servlet-class> 
     </servlet>

      <servlet-mapping> 
        <servlet-name>HomeServlet</servlet-name> 
        <url-pattern>/xforms-jsp/home</url-pattern> 
      </servlet-mapping>


5. Next, I restarted my TomCat and check my servlet (localhost:8080/orbeon/xforms-jsp/home), but nothing work.. I see "Orbeon Forms - An Error has Occurred"

Please help me
sce wrote
Hi, help me please


1. I deploy Orbeon to TomCat7.0 follow the installation instructions. Then I ran to check that orbeon runs (localhost:8080/orbeon/home/). it work


I'm folow instruction (http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications) for Integrated deployment.

2. I created new java file (it is servlet which call jsp file), put in folder "Tomcat 7.0\webapps\orbeon\WEB-INF\classes" and compile.

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class HomeServlet extends HttpServlet
{
   public void doGet(HttpServletRequest req, HttpServletResponse resp)
       throws ServletException, IOException
   {  
                req.getSession();
      getServletContext().getRequestDispatcher("/home.jsp").forward(req, resp);
   }
}





3. Next, I created jsp file and insert data my form, which i created use orbeon builder.

4. Next I add in web.xml:

    <filter>
        <filter-name>orbeon-xforms-filter</filter-name>
        <filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>orbeon-xforms-filter</filter-name>
        <url-pattern>/xforms-jsp/*</url-pattern>
       
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
    </filter-mapping>


and,

      <servlet> 
        <servlet-name>HomeServlet</servlet-name> 
        <servlet-class>HomeServlet</servlet-class> 
     </servlet>

      <servlet-mapping> 
        <servlet-name>HomeServlet</servlet-name> 
        <url-pattern>/xforms-jsp/home</url-pattern> 
      </servlet-mapping>


5. Next, I restarted my TomCat and check my servlet (localhost:8080/orbeon/xforms-jsp/home), but nothing work.. I see "Orbeon Forms - An Error has Occurred"

Please help me
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon Forms XForms Engine with Java Applications, don't work..

Alessandro  Vernet
Administrator
Hi,

The output of your servlet should be rendered as XForms. What does your servlet output? It should be well-formed XML with XHTML+XForms. It looks to me like you could be outputting a Form Runner page; is this correct? I am afraid that while there were some attempts to make this work, but that at this point this isn't supported.

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

Re: Orbeon Forms XForms Engine with Java Applications, don't work..

sce
hello,

I want output from my servlet form from builder.
I copy src from builder and paste in my jsp page. But don't work this.

if i delete in code all tag's <fr> on jsp page, orbeon don't send error.

my question, how integrated in my servlet form from builder?
 
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon Forms XForms Engine with Java Applications, don't work..

Erik Bruchez
Administrator
Using separate deployment with a form produced by Form Builder is experimental at best. Our recommendation is to not do that, and instance run Form Builder-produced forms from Form Runner.

-Erik