Dynamic datasource support in orbeon .. Help !!

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

Re: Re: Re: Re: Re: Re: Re: Dynamic datasource support in orbeon .. Help !!

karthik Jayaraman
Alex. I have my application1 from where i should forward the request to orbeon .. In the last post what i have attached is my application1 web.xml. The jsp present in the application 1 forward the request to orbeon (which is a separate application).. SO i cant understand what you mention in this quote
So i cant understand what you are suggesting.
And by the way i am forwarding the request not to a jsp page but to a form stored in the database
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Re: Re: Dynamic datasource support in orbeon .. Help !!

Alessandro  Vernet
Administrator
Karthik,

Your "application1" is setup for separate deployment. So if your JSP
is in a path handled by the filter, its output goes through Orbeon. If
you forward a request to Orbeon in the JSP, and then that output is
handled again by Orbeon, it will go twice through Orbeon, which will
get you unexpected results. So either remove the filter if you don't
need it, or do the forwarding from a JSP that is not handled by the
filter. I hope this makes more sense.

Alex

On Fri, Jul 2, 2010 at 8:02 PM, karthik Jayaraman <[hidden email]> wrote:

>
> Alex. I have my application1 from where i should forward the request to
> orbeon .. In the last post what i have attached is my application1 web.xml.
> The jsp present in the application 1 forward the request to orbeon (which is
> a separate application).. SO i cant understand what you mention in this
> quote
> So i cant understand what you are suggesting.
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Dynamic-datasource-support-in-orbeon-Help-tp2248429p2277066.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Re: Re: Dynamic datasource support in orbeon .. Help !!

karthik Jayaraman
This is the scenario.

Application1 as you mentioned is in a separate deployment.

A jsp page inside app1 forwards the request to orbeon. Then i should see the orbeon form retrieved in the browser.

I have included the orbeon filters in the application1 web.xml since it is mentioned in the doc for separate deployment.
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Re: Re: Dynamic datasource support in orbeon .. Help !!

karthik Jayaraman
Alessandro .? Any suggestions to resolve my issue >?
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Re: Re: Re: Dynamic datasource support in orbeon .. Help !!

Alessandro  Vernet
Administrator
In reply to this post by karthik Jayaraman
Karthik,

And have you checked that your JSP is outside of the path handled by
the the orbeon-xforms-filter (as you defined it in your web.xml), as
mentioned in my earlier message?

Alex

On Fri, Jul 2, 2010 at 8:14 PM, karthik Jayaraman <[hidden email]> wrote:

>
> This is the scenario.
>
> Application1 as you mentioned is in a separate deployment.
>
> A jsp page inside app1 forwards the request to orbeon. Then i should see the
> orbeon form retrieved in the browser.
>
> I have included the orbeon filters in the application1 web.xml since it is
> mentioned in the doc for separate deployment.
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Dynamic-datasource-support-in-orbeon-Help-tp2248429p2277071.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Re: Re: Re: Dynamic datasource support in orbeon .. Help !!

karthik Jayaraman
K i thought of making a clear picture this time.

The following is the content of web.xml of the "application 1"

---------------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
 
  <display-name>G3-Sample</display-name>
 
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>

</web-app>

---------------------------------------------------------------------------------------------------

and the following is the code belongs to request-orbeon.jsp in application1

---------------------------------------------------------------------------------------------------

<%
        try {
                ServletContext ctx2 = application.getContext("/orbeon");
                System.out.println("------------------------------Application context............"+ctx2);
                RequestDispatcher rd = ctx2.getRequestDispatcher("/fr/Test/Test/new");
                rd.forward(request, response);
        }
       
catch (Exception e) {
                System.out.println("Exception is .........." + e.getMessage());
        }
%>


---------------------------------------------------------------------------------------------------

I have already created a form and gave form name as Test and App name as Test, saved and published and tried the url

http://localhost:8080/orbeon/fr/Test/Test/new

and i am able to view the form.


The following is the content of my orbeon web.xml.

---------------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee">
    <display-name>Orbeon Forms 3.8.0.post.201006050300 PE</display-name>
    <description>
        Orbeon Forms is an open source, standard-based web forms solution, which
        includes Form Builder, a WYSIWYG browser-based authoring tool, and Form
        Runner, a runtime environment which facilitates the deployment and
        integration of a large number of complex forms. Orbeon Forms implements
        different technologies, such as XForms and Ajax, with no need for
        client-side software or plug-ins.
    </description>
   
    <context-param>
        <param-name>oxf.resources.factory</param-name>
        <param-value>org.orbeon.oxf.resources.PriorityResourceManagerFactory</param-value>
    </context-param>
   
   
   
   
    <context-param>
        <param-name>oxf.resources.priority.1</param-name>
        <param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.1.oxf.resources.webapp.rootdir</param-name>
        <param-value>/WEB-INF/resources</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.2</param-name>
        <param-value>org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory</param-value>
    </context-param>
   
   
    <context-param>
        <param-name>oxf.classloader.enable</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.classloader.ignore-packages</param-name>
        <param-value>java. javax. org.apache.log4j. org.xml. org.w3c.</param-value>
    </context-param>
   
    <context-param>
        <param-name>oxf.properties</param-name>
        <param-value>oxf:/config/properties.xml</param-value>
    </context-param>
   
    <context-param>
        <param-name>oxf.initialize-logging</param-name>
        <param-value>false</param-value>
    </context-param>
   
   
   
   
   
   
   
   
   
    <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>
   
    <listener>
        <listener-class>org.orbeon.oxf.webapp.OrbeonServletContextListenerDelegate</listener-class>
    </listener>
   
    <listener>
        <listener-class>org.orbeon.oxf.webapp.OrbeonSessionListenerDelegate</listener-class>
    </listener>
   
    <servlet>
        <servlet-name>orbeon-main-servlet</servlet-name>
        <servlet-class>org.orbeon.oxf.servlet.OrbeonServletDelegate</servlet-class>
       
        <init-param>
            <param-name>oxf.main-processor.name</param-name>
            <param-value>{http://www.orbeon.com/oxf/processors}page-flow</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.main-processor.input.controller</param-name>
            <param-value>oxf:/page-flow.xml</param-value>
        </init-param>
       
        <init-param>
            <param-name>oxf.error-processor.name</param-name>
            <param-value>{http://www.orbeon.com/oxf/processors}page-flow</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.error-processor.input.controller</param-name>
            <param-value>oxf:/config/error-page-flow.xml</param-value>
        </init-param>
       
        <init-param>
            <param-name>oxf.http.accept-methods</param-name>
            <param-value>get,post,head,put,delete</param-value>
        </init-param>
       
       
       
       
        <load-on-startup>1</load-on-startup>
    </servlet>
   
    <servlet>
        <servlet-name>orbeon-xforms-server-servlet</servlet-name>
        <servlet-class>org.orbeon.oxf.servlet.OrbeonServletDelegate</servlet-class>
       
        <init-param>
            <param-name>oxf.main-processor.name</param-name>
            <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.main-processor.input.config</param-name>
            <param-value>oxf:/ops/xforms/xforms-server.xpl</param-value>
        </init-param>
       
        <init-param>
            <param-name>oxf.error-processor.name</param-name>
            <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.error-processor.input.config</param-name>
            <param-value>oxf:/ops/xforms/xforms-server-error.xpl</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
   
    <servlet>
        <servlet-name>orbeon-renderer-servlet</servlet-name>
        <servlet-class>org.orbeon.oxf.servlet.OrbeonServletDelegate</servlet-class>
       
        <init-param>
            <param-name>oxf.main-processor.name</param-name>
            <param-value>{http://www.orbeon.com/oxf/processors}page-flow</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.main-processor.input.controller</param-name>
            <param-value>oxf:/ops/xforms/xforms-renderer-page-flow.xml</param-value>
        </init-param>
       
        <init-param>
            <param-name>oxf.error-processor.name</param-name>
            <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.error-processor.input.config</param-name>
            <param-value>oxf:/config/error.xpl</param-value>
        </init-param>
    </servlet>
    <servlet>
        <servlet-name>display-chart-servlet</servlet-name>
        <servlet-class>org.jfree.chart.servlet.DisplayChart</servlet-class>
        <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet>
        <servlet-name>exist-xmlrpc-servlet</servlet-name>
        <servlet-class>org.exist.xmlrpc.RpcServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>exist-rest-servlet</servlet-name>
        <servlet-class>org.exist.http.servlets.EXistServlet</servlet-class>
        <init-param>
            <param-name>basedir</param-name>
            <param-value>WEB-INF/</param-value>
        </init-param>
        <init-param>
            <param-name>configuration</param-name>
            <param-value>exist-conf.xml</param-value>
        </init-param>
        <init-param>
            <param-name>start</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet>
        <servlet-name>exist-webdav-servlet</servlet-name>
        <servlet-class>org.exist.http.servlets.WebDAVServlet</servlet-class>
        <init-param>
            <param-name>authentication</param-name>
            <param-value>basic</param-value>
        </init-param>
    </servlet>
    <servlet>
        <servlet-name>exist-atom-servlet</servlet-name>
        <servlet-class>org.exist.atom.http.AtomServlet</servlet-class>
        <init-param>
            <param-name>authentication</param-name>
            <param-value>basic</param-value>
        </init-param>
    </servlet>
   
   
   
    <servlet-mapping>
        <servlet-name>orbeon-main-servlet</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>orbeon-xforms-server-servlet</servlet-name>
        <url-pattern>/xforms-server/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>orbeon-renderer-servlet</servlet-name>
        <url-pattern>/xforms-renderer</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>exist-xmlrpc-servlet</servlet-name>
        <url-pattern>/exist/xmlrpc</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>exist-rest-servlet</servlet-name>
        <url-pattern>/exist/rest/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>exist-webdav-servlet</servlet-name>
        <url-pattern>/exist/webdav/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>exist-atom-servlet</servlet-name>
        <url-pattern>/exist/atom/*</url-pattern>
    </servlet-mapping>
   
   
   
    <servlet-mapping>
        <servlet-name>display-chart-servlet</servlet-name>
        <url-pattern>/chartDisplay</url-pattern>
    </servlet-mapping>
   
   
   
   
   
   
    <session-config>
        <session-timeout>720</session-timeout>
    </session-config>
</web-app>

---------------------------------------------------------------------------------------------------

Now i access application1's jsp file using the URL

http://localhost:8080/application-1/request-orbeon.jsp

and the response i see in the server is this

---------------------------------------------------------------------------------------------------
16:45:40,908 INFO  [ProcessorService] /fr/Dynamic-DataSource-Application/Test/Test/new/ - Received request

and all i get is only a blank page...


So i think the request is picked up by the orbeon but it does not process it ! Have i anything wrong here?

Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Re: Re: Re: Dynamic datasource support in orbeon .. Help !!

karthik Jayaraman
In reply to this post by Alessandro Vernet

K i thought of making a clear picture this time.

The following is the content of web.xml of the "application 1"

---------------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
version="2.5">
 
  <display-name>G3-Sample</display-name>
 
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>

</web-app>

---------------------------------------------------------------------------------------------------

and the following is the code with which i call the orbeon form

---------------------------------------------------------------------------------------------------

<%
        try {
                ServletContext ctx2 = application.getContext("/orbeon");
                System.out.println("------------------------------Application
context............"+ctx2);
                RequestDispatcher rd = ctx2.getRequestDispatcher("/fr/Test/Test/new");
                HttpServletRequest newRequest = new CustomRequest(request);
                rd.forward(newRequest, response);
        }
       
catch (Exception e) {
                System.out.println("Exception is .........." + e.getMessage());
        }
%>


---------------------------------------------------------------------------------------------------

I have already created a form and gave form name as Test and App name as
Test, saved and published and tried the url

http://localhost:8080/orbeon/fr/Test/Test/new

and i am able to view the form.


The following is the content of my orbeon web.xml.

---------------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/j2ee">
    <display-name>Orbeon Forms 3.8.0.post.201006050300 PE</display-name>
    <description>
        Orbeon Forms is an open source, standard-based web forms solution,
which
        includes Form Builder, a WYSIWYG browser-based authoring tool, and
Form
        Runner, a runtime environment which facilitates the deployment and
        integration of a large number of complex forms. Orbeon Forms
implements
        different technologies, such as XForms and Ajax, with no need for
        client-side software or plug-ins.
    </description>
    <!--Initialize main resource manager-->
    <context-param>
        <param-name>oxf.resources.factory</param-name>
       
<param-value>org.orbeon.oxf.resources.PriorityResourceManagerFactory</param-value>
    </context-param>
    <!-- Uncomment this for the filesystem resource manager -->
    <!--
    <context-param>
        <param-name>oxf.resources.priority.1</param-name>
       
<param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value>
    </context-param>
    <context-param>
       
<param-name>oxf.resources.priority.1.oxf.resources.filesystem.sandbox-directory</param-name>
        <param-value>/path/to/orbeon/src/resources</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.2</param-name>
       
<param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value>
    </context-param>
    <context-param>
       
<param-name>oxf.resources.priority.2.oxf.resources.webapp.rootdir</param-name>
        <param-value>/WEB-INF/resources</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.3</param-name>
       
<param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value>
    </context-param>
    <context-param>
       
<param-name>oxf.resources.priority.3.oxf.resources.filesystem.sandbox-directory</param-name>
        <param-value>/path/to/orbeon/src/resources-packaged</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.4</param-name>
       
<param-value>org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory</param-value>
    </context-param>-->
    <!-- End filesystem resource manager -->
    <!-- Uncomment this for the webapp resource manager -->
    <context-param>
        <param-name>oxf.resources.priority.1</param-name>
       
<param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value>
    </context-param>
    <context-param>
       
<param-name>oxf.resources.priority.1.oxf.resources.webapp.rootdir</param-name>
        <param-value>/WEB-INF/resources</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.resources.priority.2</param-name>
       
<param-value>org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory</param-value>
    </context-param>
    <!-- End webapp resource manager -->
    <!--Orbeon Class Loader-->
    <context-param>
        <param-name>oxf.classloader.enable</param-name>
        <param-value>false</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.classloader.ignore-packages</param-name>
        <param-value>java. javax. org.apache.log4j. org.xml.
org.w3c.</param-value>
    </context-param>
    <!--Set location of properties.xml (read by resource manager)-->
    <context-param>
        <param-name>oxf.properties</param-name>
        <param-value>oxf:/config/properties.xml</param-value>
    </context-param>
    <!--Determine whether logging initialization must take place-->
    <context-param>
        <param-name>oxf.initialize-logging</param-name>
        <param-value>false</param-value>
    </context-param>
    <!--Set context listener processors-->
    <!-- Uncomment this for the context listener processors -->
    <!--
    <context-param>
        <param-name>oxf.context-initialized-processor.name</param-name>
       
<param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
    </context-param>
    <context-param>
       
<param-name>oxf.context-initialized-processor.input.config</param-name>
        <param-value>oxf:/apps/context/context-initialized.xpl</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.context-destroyed-processor.name</param-name>
       
<param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
    </context-param>
    <context-param>
       
<param-name>oxf.context-destroyed-processor.input.config</param-name>
        <param-value>oxf:/apps/context/context-destroyed.xpl</param-value>
    </context-param>-->
    <!-- End context listener processors -->
    <!--Set session listener processors-->
    <!-- Uncomment this for the session listener processors -->
    <!--
    <context-param>
        <param-name>oxf.session-created-processor.name</param-name>
       
<param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.session-created-processor.input.config</param-name>
        <param-value>oxf:/apps/context/session-created.xpl</param-value>
    </context-param>
    <context-param>
        <param-name>oxf.session-destroyed-processor.name</param-name>
       
<param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
    </context-param>
    <context-param>
       
<param-name>oxf.session-destroyed-processor.input.config</param-name>
        <param-value>oxf:/apps/context/session-destroyed.xpl</param-value>
    </context-param>-->
    <!-- End session listener processors -->
    <!--All JSP files under /xforms-jsp go through the XForms filter-->
    <filter>
        <filter-name>orbeon-xforms-filter</filter-name>
       
<filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
        <!-- Uncomment this for the separate WAR deployment -->
        <!--
    <init-param>
        <param-name>oxf.xforms.renderer.context</param-name>
        <param-value>/orbeon</param-value>
    </init-param>-->
        <!-- End separate WAR deployment -->
    </filter>
    <filter-mapping>
        <filter-name>orbeon-xforms-filter</filter-name>
        <url-pattern>/xforms-jsp/*</url-pattern>
        <!--Servlet 2.4 configuration allowing the filter to run upon
forward in addition to request-->
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
    </filter-mapping>
    <!--Set context listener-->
    <listener>
       
<listener-class>org.orbeon.oxf.webapp.OrbeonServletContextListenerDelegate</listener-class>
    </listener>
    <!--Set session listener-->
    <listener>
       
<listener-class>org.orbeon.oxf.webapp.OrbeonSessionListenerDelegate</listener-class>
    </listener>
    <!--This is the main Orbeon Forms servlet-->
    <servlet>
        <servlet-name>orbeon-main-servlet</servlet-name>
       
<servlet-class>org.orbeon.oxf.servlet.OrbeonServletDelegate</servlet-class>
        <!--Set main processor-->
        <init-param>
            <param-name>oxf.main-processor.name</param-name>
           
<param-value>{http://www.orbeon.com/oxf/processors}page-flow</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.main-processor.input.controller</param-name>
            <param-value>oxf:/page-flow.xml</param-value>
        </init-param>
        <!--Set error processor-->
        <init-param>
            <param-name>oxf.error-processor.name</param-name>
           
<param-value>{http://www.orbeon.com/oxf/processors}page-flow</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.error-processor.input.controller</param-name>
            <param-value>oxf:/config/error-page-flow.xml</param-value>
        </init-param>
        <!--Set supported methods-->
        <init-param>
            <param-name>oxf.http.accept-methods</param-name>
            <param-value>get,post,head,put,delete</param-value>
        </init-param>
        <!--Set servlet initialization and destruction listeners-->
        <!-- Uncomment this for the servlet listener processors -->
        <!--
    <init-param>
        <param-name>oxf.servlet-initialized-processor.name</param-name>
       
<param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
    </init-param>
    <init-param>
       
<param-name>oxf.servlet-initialized-processor.input.config</param-name>
        <param-value>oxf:/apps/context/servlet-initialized.xpl</param-value>
    </init-param>
    <init-param>
        <param-name>oxf.servlet-destroyed-processor.name</param-name>
       
<param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
    </init-param>
    <init-param>
       
<param-name>oxf.servlet-destroyed-processor.input.config</param-name>
        <param-value>oxf:/apps/context/servlet-destroyed.xpl</param-value>
    </init-param>-->
        <!-- End servlet listener processors -->
        <load-on-startup>1</load-on-startup>
    </servlet>
    <!--This is the XForms Server servlet-->
    <servlet>
        <servlet-name>orbeon-xforms-server-servlet</servlet-name>
       
<servlet-class>org.orbeon.oxf.servlet.OrbeonServletDelegate</servlet-class>
        <!--Set main processor-->
        <init-param>
            <param-name>oxf.main-processor.name</param-name>
           
<param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.main-processor.input.config</param-name>
            <param-value>oxf:/ops/xforms/xforms-server.xpl</param-value>
        </init-param>
        <!--Set error processor-->
        <init-param>
            <param-name>oxf.error-processor.name</param-name>
           
<param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.error-processor.input.config</param-name>
           
<param-value>oxf:/ops/xforms/xforms-server-error.xpl</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <!--This is the XForms Renderer servlet, used to deploy Orbeon Forms as
a separate WAR-->
    <servlet>
        <servlet-name>orbeon-renderer-servlet</servlet-name>
       
<servlet-class>org.orbeon.oxf.servlet.OrbeonServletDelegate</servlet-class>
        <!--Set main processor-->
        <init-param>
            <param-name>oxf.main-processor.name</param-name>
           
<param-value>{http://www.orbeon.com/oxf/processors}page-flow</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.main-processor.input.controller</param-name>
           
<param-value>oxf:/ops/xforms/xforms-renderer-page-flow.xml</param-value>
        </init-param>
        <!--Set error processor-->
        <init-param>
            <param-name>oxf.error-processor.name</param-name>
           
<param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
        </init-param>
        <init-param>
            <param-name>oxf.error-processor.input.config</param-name>
            <param-value>oxf:/config/error.xpl</param-value>
        </init-param>
    </servlet>
    <servlet>
        <servlet-name>display-chart-servlet</servlet-name>
        <servlet-class>org.jfree.chart.servlet.DisplayChart</servlet-class>
        <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet>
        <servlet-name>exist-xmlrpc-servlet</servlet-name>
        <servlet-class>org.exist.xmlrpc.RpcServlet</servlet-class>
    </servlet>
    <servlet>
        <servlet-name>exist-rest-servlet</servlet-name>
        <servlet-class>org.exist.http.servlets.EXistServlet</servlet-class>
        <init-param>
            <param-name>basedir</param-name>
            <param-value>WEB-INF/</param-value>
        </init-param>
        <init-param>
            <param-name>configuration</param-name>
            <param-value>exist-conf.xml</param-value>
        </init-param>
        <init-param>
            <param-name>start</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet>
        <servlet-name>exist-webdav-servlet</servlet-name>
        <servlet-class>org.exist.http.servlets.WebDAVServlet</servlet-class>
        <init-param>
            <param-name>authentication</param-name>
            <param-value>basic</param-value>
        </init-param>
    </servlet>
    <servlet>
        <servlet-name>exist-atom-servlet</servlet-name>
        <servlet-class>org.exist.atom.http.AtomServlet</servlet-class>
        <init-param>
            <param-name>authentication</param-name>
            <param-value>basic</param-value>
        </init-param>
    </servlet>
    <!-- Uncomment this for the SQL examples -->
    <!--
    <servlet>
        <servlet-name>hsqldb-servlet</servlet-name>
        <servlet-class>org.hsqldb.Servlet</servlet-class>
        <init-param>
            <param-name>hsqldb.server.database</param-name>
            <param-value>orbeondb</param-value>
        </init-param>
        <load-on-startup>4</load-on-startup>
    </servlet>-->
    <!-- End SQL examples -->
    <servlet-mapping>
        <servlet-name>orbeon-main-servlet</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>orbeon-xforms-server-servlet</servlet-name>
        <url-pattern>/xforms-server/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>orbeon-renderer-servlet</servlet-name>
        <url-pattern>/xforms-renderer</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>exist-xmlrpc-servlet</servlet-name>
        <url-pattern>/exist/xmlrpc</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>exist-rest-servlet</servlet-name>
        <url-pattern>/exist/rest/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>exist-webdav-servlet</servlet-name>
        <url-pattern>/exist/webdav/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>exist-atom-servlet</servlet-name>
        <url-pattern>/exist/atom/*</url-pattern>
    </servlet-mapping>
    <!-- Uncomment this for the SQL examples -->
    <!--
    <servlet-mapping>
        <servlet-name>hsqldb-servlet</servlet-name>
        <url-pattern>/db</url-pattern>
    </servlet-mapping>-->
    <!-- End SQL examples -->
    <servlet-mapping>
        <servlet-name>display-chart-servlet</servlet-name>
        <url-pattern>/chartDisplay</url-pattern>
    </servlet-mapping>
    <!-- Uncomment this for the SQL examples -->
    <!--
    <resource-ref>
        <description>DataSource</description>
        <res-ref-name>jdbc/db</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>-->
    <!-- End SQL examples -->
    <!-- Uncomment this for the authentication example -->
    <!--
    <security-constraint>
        <web-resource-collection>
            <web-resource-name>Authentication example</web-resource-name>
            <url-pattern>/java-authentication/</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>orbeon-admin</role-name>
        </auth-constraint>
    </security-constraint>
    <login-config>
        <auth-method>FORM</auth-method>
        <form-login-config>
            <form-login-page>/java-authentication/login</form-login-page>
           
<form-error-page>/java-authentication/login-error</form-error-page>
        </form-login-config>
    </login-config>
    <security-role>
        <role-name>orbeon-admin</role-name>
    </security-role>-->
    <!-- End authentication example -->
    <session-config>
        <session-timeout>720</session-timeout>
    </session-config>
</web-app>

---------------------------------------------------------------------------------------------------

Now i access application1's jsp file using the URL

http://localhost:8080/application-1/request-orbeon.jsp

and the response i see in the server is this

---------------------------------------------------------------------------------------------------
16:45:40,908 INFO  [ProcessorService]
/fr/Dynamic-DataSource-Application/Dynamic-DataSource-Form/new/ - Received
request

and all i get is only a blank page...


So i think the request is picked up by the orbeon but it does not process it
! Have i anything wrong here?


--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Dynamic-datasource-support-in-orbeon-Help-tp2248429p2283215.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Dynamic datasource support in orbeon .. Help !!

Alessandro  Vernet
Administrator
Karthik,

I don't see anything wrong with your configuration files there, and
this should work. I am afraid that I can't help without spending more
time on this, trying to reproduce the exact problem you have, and
investigating it with a Java debugger. Unfortunately we don't have the
time to do this type of deep investigate for issue reported through
the mailing list, and can only do this for our clients. I hate to say
this, but I can only recommend you investigate this yourself, or you
consider one of our Development Support plans.

Alex

On Fri, Jul 9, 2010 at 6:30 AM, karthik Jayaraman <[hidden email]> wrote:

>
> K i thought of making a clear picture this time.
>
> The following is the content of web.xml of the "application 1"
>
> ---------------------------------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>
>  <display-name>G3-Sample</display-name>
>
>  <welcome-file-list>
>    <welcome-file>index.html</welcome-file>
>    <welcome-file>index.htm</welcome-file>
>    <welcome-file>index.jsp</welcome-file>
>    <welcome-file>default.html</welcome-file>
>    <welcome-file>default.htm</welcome-file>
>    <welcome-file>default.jsp</welcome-file>
>  </welcome-file-list>
>
> </web-app>
>
> ---------------------------------------------------------------------------------------------------
>
> and the following is the code with which i call the orbeon form
>
> ---------------------------------------------------------------------------------------------------
>
> <%
>        try {
>                ServletContext ctx2 = application.getContext("/orbeon");
>                System.out.println("------------------------------Application
> context............"+ctx2);
>                RequestDispatcher rd = ctx2.getRequestDispatcher("/fr/Test/Test/new");
>                HttpServletRequest newRequest = new CustomRequest(request);
>                rd.forward(newRequest, response);
>        }
>
> catch (Exception e) {
>                System.out.println("Exception is .........." + e.getMessage());
>        }
> %>
>
>
> ---------------------------------------------------------------------------------------------------
>
> I have already created a form and gave form name as Test and App name as
> Test, saved and published and tried the url
>
> http://localhost:8080/orbeon/fr/Test/Test/new
>
> and i am able to view the form.
>
>
> The following is the content of my orbeon web.xml.
>
> ---------------------------------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/j2ee">
>    <display-name>Orbeon Forms 3.8.0.post.201006050300 PE</display-name>
>    <description>
>        Orbeon Forms is an open source, standard-based web forms solution,
> which
>        includes Form Builder, a WYSIWYG browser-based authoring tool, and
> Form
>        Runner, a runtime environment which facilitates the deployment and
>        integration of a large number of complex forms. Orbeon Forms
> implements
>        different technologies, such as XForms and Ajax, with no need for
>        client-side software or plug-ins.
>    </description>
>    <!--Initialize main resource manager-->
>    <context-param>
>        <param-name>oxf.resources.factory</param-name>
>
> <param-value>org.orbeon.oxf.resources.PriorityResourceManagerFactory</param-value>
>    </context-param>
>    <!-- Uncomment this for the filesystem resource manager -->
>    <!--
>    <context-param>
>        <param-name>oxf.resources.priority.1</param-name>
>
> <param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value>
>    </context-param>
>    <context-param>
>
> <param-name>oxf.resources.priority.1.oxf.resources.filesystem.sandbox-directory</param-name>
>        <param-value>/path/to/orbeon/src/resources</param-value>
>    </context-param>
>    <context-param>
>        <param-name>oxf.resources.priority.2</param-name>
>
> <param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value>
>    </context-param>
>    <context-param>
>
> <param-name>oxf.resources.priority.2.oxf.resources.webapp.rootdir</param-name>
>        <param-value>/WEB-INF/resources</param-value>
>    </context-param>
>    <context-param>
>        <param-name>oxf.resources.priority.3</param-name>
>
> <param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value>
>    </context-param>
>    <context-param>
>
> <param-name>oxf.resources.priority.3.oxf.resources.filesystem.sandbox-directory</param-name>
>        <param-value>/path/to/orbeon/src/resources-packaged</param-value>
>    </context-param>
>    <context-param>
>        <param-name>oxf.resources.priority.4</param-name>
>
> <param-value>org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory</param-value>
>    </context-param>-->
>    <!-- End filesystem resource manager -->
>    <!-- Uncomment this for the webapp resource manager -->
>    <context-param>
>        <param-name>oxf.resources.priority.1</param-name>
>
> <param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value>
>    </context-param>
>    <context-param>
>
> <param-name>oxf.resources.priority.1.oxf.resources.webapp.rootdir</param-name>
>        <param-value>/WEB-INF/resources</param-value>
>    </context-param>
>    <context-param>
>        <param-name>oxf.resources.priority.2</param-name>
>
> <param-value>org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory</param-value>
>    </context-param>
>    <!-- End webapp resource manager -->
>    <!--Orbeon Class Loader-->
>    <context-param>
>        <param-name>oxf.classloader.enable</param-name>
>        <param-value>false</param-value>
>    </context-param>
>    <context-param>
>        <param-name>oxf.classloader.ignore-packages</param-name>
>        <param-value>java. javax. org.apache.log4j. org.xml.
> org.w3c.</param-value>
>    </context-param>
>    <!--Set location of properties.xml (read by resource manager)-->
>    <context-param>
>        <param-name>oxf.properties</param-name>
>        <param-value>oxf:/config/properties.xml</param-value>
>    </context-param>
>    <!--Determine whether logging initialization must take place-->
>    <context-param>
>        <param-name>oxf.initialize-logging</param-name>
>        <param-value>false</param-value>
>    </context-param>
>    <!--Set context listener processors-->
>    <!-- Uncomment this for the context listener processors -->
>    <!--
>    <context-param>
>        <param-name>oxf.context-initialized-processor.name</param-name>
>
> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
>    </context-param>
>    <context-param>
>
> <param-name>oxf.context-initialized-processor.input.config</param-name>
>        <param-value>oxf:/apps/context/context-initialized.xpl</param-value>
>    </context-param>
>    <context-param>
>        <param-name>oxf.context-destroyed-processor.name</param-name>
>
> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
>    </context-param>
>    <context-param>
>
> <param-name>oxf.context-destroyed-processor.input.config</param-name>
>        <param-value>oxf:/apps/context/context-destroyed.xpl</param-value>
>    </context-param>-->
>    <!-- End context listener processors -->
>    <!--Set session listener processors-->
>    <!-- Uncomment this for the session listener processors -->
>    <!--
>    <context-param>
>        <param-name>oxf.session-created-processor.name</param-name>
>
> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
>    </context-param>
>    <context-param>
>        <param-name>oxf.session-created-processor.input.config</param-name>
>        <param-value>oxf:/apps/context/session-created.xpl</param-value>
>    </context-param>
>    <context-param>
>        <param-name>oxf.session-destroyed-processor.name</param-name>
>
> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
>    </context-param>
>    <context-param>
>
> <param-name>oxf.session-destroyed-processor.input.config</param-name>
>        <param-value>oxf:/apps/context/session-destroyed.xpl</param-value>
>    </context-param>-->
>    <!-- End session listener processors -->
>    <!--All JSP files under /xforms-jsp go through the XForms filter-->
>    <filter>
>        <filter-name>orbeon-xforms-filter</filter-name>
>
> <filter-class>org.orbeon.oxf.servlet.OrbeonXFormsFilter</filter-class>
>        <!-- Uncomment this for the separate WAR deployment -->
>        <!--
>    <init-param>
>        <param-name>oxf.xforms.renderer.context</param-name>
>        <param-value>/orbeon</param-value>
>    </init-param>-->
>        <!-- End separate WAR deployment -->
>    </filter>
>    <filter-mapping>
>        <filter-name>orbeon-xforms-filter</filter-name>
>        <url-pattern>/xforms-jsp/*</url-pattern>
>        <!--Servlet 2.4 configuration allowing the filter to run upon
> forward in addition to request-->
>        <dispatcher>REQUEST</dispatcher>
>        <dispatcher>FORWARD</dispatcher>
>    </filter-mapping>
>    <!--Set context listener-->
>    <listener>
>
> <listener-class>org.orbeon.oxf.webapp.OrbeonServletContextListenerDelegate</listener-class>
>    </listener>
>    <!--Set session listener-->
>    <listener>
>
> <listener-class>org.orbeon.oxf.webapp.OrbeonSessionListenerDelegate</listener-class>
>    </listener>
>    <!--This is the main Orbeon Forms servlet-->
>    <servlet>
>        <servlet-name>orbeon-main-servlet</servlet-name>
>
> <servlet-class>org.orbeon.oxf.servlet.OrbeonServletDelegate</servlet-class>
>        <!--Set main processor-->
>        <init-param>
>            <param-name>oxf.main-processor.name</param-name>
>
> <param-value>{http://www.orbeon.com/oxf/processors}page-flow</param-value>
>        </init-param>
>        <init-param>
>            <param-name>oxf.main-processor.input.controller</param-name>
>            <param-value>oxf:/page-flow.xml</param-value>
>        </init-param>
>        <!--Set error processor-->
>        <init-param>
>            <param-name>oxf.error-processor.name</param-name>
>
> <param-value>{http://www.orbeon.com/oxf/processors}page-flow</param-value>
>        </init-param>
>        <init-param>
>            <param-name>oxf.error-processor.input.controller</param-name>
>            <param-value>oxf:/config/error-page-flow.xml</param-value>
>        </init-param>
>        <!--Set supported methods-->
>        <init-param>
>            <param-name>oxf.http.accept-methods</param-name>
>            <param-value>get,post,head,put,delete</param-value>
>        </init-param>
>        <!--Set servlet initialization and destruction listeners-->
>        <!-- Uncomment this for the servlet listener processors -->
>        <!--
>    <init-param>
>        <param-name>oxf.servlet-initialized-processor.name</param-name>
>
> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
>    </init-param>
>    <init-param>
>
> <param-name>oxf.servlet-initialized-processor.input.config</param-name>
>        <param-value>oxf:/apps/context/servlet-initialized.xpl</param-value>
>    </init-param>
>    <init-param>
>        <param-name>oxf.servlet-destroyed-processor.name</param-name>
>
> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
>    </init-param>
>    <init-param>
>
> <param-name>oxf.servlet-destroyed-processor.input.config</param-name>
>        <param-value>oxf:/apps/context/servlet-destroyed.xpl</param-value>
>    </init-param>-->
>        <!-- End servlet listener processors -->
>        <load-on-startup>1</load-on-startup>
>    </servlet>
>    <!--This is the XForms Server servlet-->
>    <servlet>
>        <servlet-name>orbeon-xforms-server-servlet</servlet-name>
>
> <servlet-class>org.orbeon.oxf.servlet.OrbeonServletDelegate</servlet-class>
>        <!--Set main processor-->
>        <init-param>
>            <param-name>oxf.main-processor.name</param-name>
>
> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
>        </init-param>
>        <init-param>
>            <param-name>oxf.main-processor.input.config</param-name>
>            <param-value>oxf:/ops/xforms/xforms-server.xpl</param-value>
>        </init-param>
>        <!--Set error processor-->
>        <init-param>
>            <param-name>oxf.error-processor.name</param-name>
>
> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
>        </init-param>
>        <init-param>
>            <param-name>oxf.error-processor.input.config</param-name>
>
> <param-value>oxf:/ops/xforms/xforms-server-error.xpl</param-value>
>        </init-param>
>        <load-on-startup>1</load-on-startup>
>    </servlet>
>    <!--This is the XForms Renderer servlet, used to deploy Orbeon Forms as
> a separate WAR-->
>    <servlet>
>        <servlet-name>orbeon-renderer-servlet</servlet-name>
>
> <servlet-class>org.orbeon.oxf.servlet.OrbeonServletDelegate</servlet-class>
>        <!--Set main processor-->
>        <init-param>
>            <param-name>oxf.main-processor.name</param-name>
>
> <param-value>{http://www.orbeon.com/oxf/processors}page-flow</param-value>
>        </init-param>
>        <init-param>
>            <param-name>oxf.main-processor.input.controller</param-name>
>
> <param-value>oxf:/ops/xforms/xforms-renderer-page-flow.xml</param-value>
>        </init-param>
>        <!--Set error processor-->
>        <init-param>
>            <param-name>oxf.error-processor.name</param-name>
>
> <param-value>{http://www.orbeon.com/oxf/processors}pipeline</param-value>
>        </init-param>
>        <init-param>
>            <param-name>oxf.error-processor.input.config</param-name>
>            <param-value>oxf:/config/error.xpl</param-value>
>        </init-param>
>    </servlet>
>    <servlet>
>        <servlet-name>display-chart-servlet</servlet-name>
>        <servlet-class>org.jfree.chart.servlet.DisplayChart</servlet-class>
>        <load-on-startup>2</load-on-startup>
>    </servlet>
>    <servlet>
>        <servlet-name>exist-xmlrpc-servlet</servlet-name>
>        <servlet-class>org.exist.xmlrpc.RpcServlet</servlet-class>
>    </servlet>
>    <servlet>
>        <servlet-name>exist-rest-servlet</servlet-name>
>        <servlet-class>org.exist.http.servlets.EXistServlet</servlet-class>
>        <init-param>
>            <param-name>basedir</param-name>
>            <param-value>WEB-INF/</param-value>
>        </init-param>
>        <init-param>
>            <param-name>configuration</param-name>
>            <param-value>exist-conf.xml</param-value>
>        </init-param>
>        <init-param>
>            <param-name>start</param-name>
>            <param-value>true</param-value>
>        </init-param>
>        <load-on-startup>2</load-on-startup>
>    </servlet>
>    <servlet>
>        <servlet-name>exist-webdav-servlet</servlet-name>
>        <servlet-class>org.exist.http.servlets.WebDAVServlet</servlet-class>
>        <init-param>
>            <param-name>authentication</param-name>
>            <param-value>basic</param-value>
>        </init-param>
>    </servlet>
>    <servlet>
>        <servlet-name>exist-atom-servlet</servlet-name>
>        <servlet-class>org.exist.atom.http.AtomServlet</servlet-class>
>        <init-param>
>            <param-name>authentication</param-name>
>            <param-value>basic</param-value>
>        </init-param>
>    </servlet>
>    <!-- Uncomment this for the SQL examples -->
>    <!--
>    <servlet>
>        <servlet-name>hsqldb-servlet</servlet-name>
>        <servlet-class>org.hsqldb.Servlet</servlet-class>
>        <init-param>
>            <param-name>hsqldb.server.database</param-name>
>            <param-value>orbeondb</param-value>
>        </init-param>
>        <load-on-startup>4</load-on-startup>
>    </servlet>-->
>    <!-- End SQL examples -->
>    <servlet-mapping>
>        <servlet-name>orbeon-main-servlet</servlet-name>
>        <url-pattern>/</url-pattern>
>    </servlet-mapping>
>    <servlet-mapping>
>        <servlet-name>orbeon-xforms-server-servlet</servlet-name>
>        <url-pattern>/xforms-server/*</url-pattern>
>    </servlet-mapping>
>    <servlet-mapping>
>        <servlet-name>orbeon-renderer-servlet</servlet-name>
>        <url-pattern>/xforms-renderer</url-pattern>
>    </servlet-mapping>
>    <servlet-mapping>
>        <servlet-name>exist-xmlrpc-servlet</servlet-name>
>        <url-pattern>/exist/xmlrpc</url-pattern>
>    </servlet-mapping>
>    <servlet-mapping>
>        <servlet-name>exist-rest-servlet</servlet-name>
>        <url-pattern>/exist/rest/*</url-pattern>
>    </servlet-mapping>
>    <servlet-mapping>
>        <servlet-name>exist-webdav-servlet</servlet-name>
>        <url-pattern>/exist/webdav/*</url-pattern>
>    </servlet-mapping>
>    <servlet-mapping>
>        <servlet-name>exist-atom-servlet</servlet-name>
>        <url-pattern>/exist/atom/*</url-pattern>
>    </servlet-mapping>
>    <!-- Uncomment this for the SQL examples -->
>    <!--
>    <servlet-mapping>
>        <servlet-name>hsqldb-servlet</servlet-name>
>        <url-pattern>/db</url-pattern>
>    </servlet-mapping>-->
>    <!-- End SQL examples -->
>    <servlet-mapping>
>        <servlet-name>display-chart-servlet</servlet-name>
>        <url-pattern>/chartDisplay</url-pattern>
>    </servlet-mapping>
>    <!-- Uncomment this for the SQL examples -->
>    <!--
>    <resource-ref>
>        <description>DataSource</description>
>        <res-ref-name>jdbc/db</res-ref-name>
>        <res-type>javax.sql.DataSource</res-type>
>        <res-auth>Container</res-auth>
>    </resource-ref>-->
>    <!-- End SQL examples -->
>    <!-- Uncomment this for the authentication example -->
>    <!--
>    <security-constraint>
>        <web-resource-collection>
>            <web-resource-name>Authentication example</web-resource-name>
>            <url-pattern>/java-authentication/</url-pattern>
>        </web-resource-collection>
>        <auth-constraint>
>            <role-name>orbeon-admin</role-name>
>        </auth-constraint>
>    </security-constraint>
>    <login-config>
>        <auth-method>FORM</auth-method>
>        <form-login-config>
>            <form-login-page>/java-authentication/login</form-login-page>
>
> <form-error-page>/java-authentication/login-error</form-error-page>
>        </form-login-config>
>    </login-config>
>    <security-role>
>        <role-name>orbeon-admin</role-name>
>    </security-role>-->
>    <!-- End authentication example -->
>    <session-config>
>        <session-timeout>720</session-timeout>
>    </session-config>
> </web-app>
>
> ---------------------------------------------------------------------------------------------------
>
> Now i access application1's jsp file using the URL
>
> http://localhost:8080/application-1/request-orbeon.jsp
>
> and the response i see in the server is this
>
> ---------------------------------------------------------------------------------------------------
> 16:45:40,908 INFO  [ProcessorService]
> /fr/Dynamic-DataSource-Application/Dynamic-DataSource-Form/new/ - Received
> request
>
> and all i get is only a blank page...
>
>
> So i think the request is picked up by the orbeon but it does not process it
> ! Have i anything wrong here?
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Dynamic-datasource-support-in-orbeon-Help-tp2248429p2283215.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Out of Office AutoReply: Re: Re: Re: Re: Re: Re: Re: Re: Dynamic datasource support in orbeon .. Help !!

pappleby
Out of Office AutoReply: Re: Re: Re: Re: Re: Re: Re: Re: Dynamic datasource support in orbeon .. Help !!

I am out of the office until 26th July

***********************************************************************************************

This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.

 

Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.

 

Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards.

***********************************************************************************************

The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG

 

Reply | Threaded
Open this post in threaded view
|

error summary and delete from repeat

Hřib Zdeněk
In reply to this post by karthik Jayaraman
Hi,

I tried to file this as a bug, but without success:

fr:error-summary can not deal with the case when there is a xforms:repeat with xform:input control on each item (table line) which has a validity constraint. The adding of the new items works fine - the validation errors are added also with correct position number. But when the item is deleted nothing happens - the error (with it position number) still apears in fr:error-summary. I had tried even this syntax:

<xforms:action ev:event="xforms-submit-done">
    <xforms:dispatch name="fr-clear" targetid="error-summary"/>
    <xforms:dispatch name="fr-unvisit-all" targetid="error-summary"/>
    <xforms:dispatch name="fr-visit-all" targetid="error-summary"/>
    <xforms:refresh/>
    <xforms:dispatch name="fr-update" targetid="error-summary"/>
</xforms:action>


Actualy I am now not working with fr:error-summary in my project as I am using the previous way from DMV forms. But I got the same problem in there - well different problem but with same result. Because the xforms-delete event happens on the instance, I am not able to bound it during the handler to the controls (eg.get an id of the control which was displayed as invalid on the form but now gets deleted). On the other hand, the xforms-invalid event happens on the controls and I am not able to bound them to the instance (eg.store an xpath in the error list during their handler). As the control Ids + position indexes are being used in the original DMV error summary I am not able to integrate those two worlds - I am not able to get the xpath nor parent element of the original position of the deleted item druing xforms-delete event and also I am not able to translate it to the repeat control which is using it.

Also the xforms:revalidate action can not force the xforms-inavlid events to be dispatched on all invalid controls on request so I am not able to clear the error list and repopulate it.

I had to solve this situation by manualy deleting the entries from the error list when someone clicks on "Delete item" trigger next to this xforms:repeat. For this purpose I am storing the id of the repeat control - result of the event('xxforms:repeat-ancestors') - in the error list during the xforms-invalid handler. But this has got limitation - eg.when there are 2 items, you delete the first one, the second one stays in the error list with number 2 but it should get number 1 instead as the source item of this error has now the position 1. This means that I will never be able to delete those errors anymore if the user deletes the last item and the errors will stay in the error list.

Does anyone have a better solution? I guess it would be best to have something like an event "xforms-disapear" dispatched on controls, which disapeared because the underlying data got deleted or are not relevant anymore. I tried the xxforms-nodeset-changed event but without success.

Zdeněk


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Out of Office AutoReply: error summary and delete from repeat

pappleby
Out of Office AutoReply: error summary and delete from repeat

I am out of the office until 26th July

***********************************************************************************************

This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.

 

Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.

 

Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards.

***********************************************************************************************

The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG

 

Reply | Threaded
Open this post in threaded view
|

Re: error summary and delete from repeat

Alessandro  Vernet
Administrator
In reply to this post by Hřib Zdeněk
Zdeněk,

A bug with a symptom very similar to the one you describe here has
been fixed a little less than 2 months ago:

http://forge.ow2.org/tracker/index.php?func=detail&aid=315041&group_id=168&atid=350207

Could you try grabbing a nightly build to check if that fixes your problem?

Alex

2010/7/14 Hřib Zdeněk <[hidden email]>:

> Hi,
>
> I tried to file this as a bug, but without success:
>
> fr:error-summary can not deal with the case when there is a xforms:repeat with xform:input control on each item (table line) which has a validity constraint. The adding of the new items works fine - the validation errors are added also with correct position number. But when the item is deleted nothing happens - the error (with it position number) still apears in fr:error-summary. I had tried even this syntax:
>
> <xforms:action ev:event="xforms-submit-done">
>    <xforms:dispatch name="fr-clear" targetid="error-summary"/>
>    <xforms:dispatch name="fr-unvisit-all" targetid="error-summary"/>
>    <xforms:dispatch name="fr-visit-all" targetid="error-summary"/>
>    <xforms:refresh/>
>    <xforms:dispatch name="fr-update" targetid="error-summary"/>
> </xforms:action>
>
>
> Actualy I am now not working with fr:error-summary in my project as I am using the previous way from DMV forms. But I got the same problem in there - well different problem but with same result. Because the xforms-delete event happens on the instance, I am not able to bound it during the handler to the controls (eg.get an id of the control which was displayed as invalid on the form but now gets deleted). On the other hand, the xforms-invalid event happens on the controls and I am not able to bound them to the instance (eg.store an xpath in the error list during their handler). As the control Ids + position indexes are being used in the original DMV error summary I am not able to integrate those two worlds - I am not able to get the xpath nor parent element of the original position of the deleted item druing xforms-delete event and also I am not able to translate it to the repeat control which is using it.
>
> Also the xforms:revalidate action can not force the xforms-inavlid events to be dispatched on all invalid controls on request so I am not able to clear the error list and repopulate it.
>
> I had to solve this situation by manualy deleting the entries from the error list when someone clicks on "Delete item" trigger next to this xforms:repeat. For this purpose I am storing the id of the repeat control - result of the event('xxforms:repeat-ancestors') - in the error list during the xforms-invalid handler. But this has got limitation - eg.when there are 2 items, you delete the first one, the second one stays in the error list with number 2 but it should get number 1 instead as the source item of this error has now the position 1. This means that I will never be able to delete those errors anymore if the user deletes the last item and the errors will stay in the error list.
>
> Does anyone have a better solution? I guess it would be best to have something like an event "xforms-disapear" dispatched on controls, which disapeared because the underlying data got deleted or are not relevant anymore. I tried the xxforms-nodeset-changed event but without success.
>
> Zdeněk
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Out of Office AutoReply: error summary and delete from repeat

pappleby
Out of Office AutoReply: error summary and delete from repeat

I am out of the office until 26th July

***********************************************************************************************

This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.

 

Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.

 

Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards.

***********************************************************************************************

The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG

 

12