Error 403 when saving an XForm - J2EE + Orbeon

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

Error 403 when saving an XForm - J2EE + Orbeon

bgawel
Hello,

I'm trying to integrate a J2EE application with Orbeon (separate deployment).
I went through the Wiki site http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications and was able to display an XForm generated by JSP in Form Runner.

However when I try to save the rendered form in Form Runner, I get an error in the popup window: "There was an error communication with the database. Please contact the application administrator".
The Orbeon's log file (attached - orbeon403.zip) shows the error 403: "Access to the specified resource () has been forbidden".
It tries to put data via the link:
method: "PUT", URL: "http://localhost:8080/[my-application-context]/fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml

Why is this happening?

--
Kind Regards,
  Bartek Gawel
Reply | Threaded
Open this post in threaded view
|

Re: Error 403 when saving an XForm - J2EE + Orbeon

bgawel
I will try to answer my own question:
I cannot use Form Runner to process XForms from my J2EE application because I cannot take control over the buttons added by Form Runner.
So when I click on the "Save" button provided by Form Runner, Orbeon creates an absolute URL as:
http://localhost:8080/[my-application-context] + /fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml
(according to this http://wiki.orbeon.com/forms/doc/developer-guide/orbeon-forms-xforms-tutorial#TOC-Adding-a-save-button it should resolve absolute paths against http://localhost:8080/orbeon/)

A new question is: Is it possible to configure this behavior, in other words: to control in Orbeon how an absolute URL is created?

--
Regards,
 Bartek Gawel


bgawel wrote
Hello,

I'm trying to integrate a J2EE application with Orbeon (separate deployment).
I went through the Wiki site http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications and was able to display an XForm generated by JSP in Form Runner.

However when I try to save the rendered form in Form Runner, I get an error in the popup window: "There was an error communication with the database. Please contact the application administrator".
The Orbeon's log file (attached - orbeon403.zip) shows the error 403: "Access to the specified resource () has been forbidden".
It tries to put data via the link:
method: "PUT", URL: "http://localhost:8080/[my-application-context]/fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml

Why is this happening?

--
Kind Regards,
  Bartek Gawel
Reply | Threaded
Open this post in threaded view
|

Re: Re: Error 403 when saving an XForm - J2EE + Orbeon

Erik Bruchez
Administrator
So you are producing a Form Runner-compatible form in your own web
app, and forwarding that to the Orbeon Forms app, si that right?

Could you describe your use case in details? Could you instead just
redirect to a Form Runner URL, e.g.:

/orbeon/fr/acme/myform/new

-Erik

On Tue, Aug 7, 2012 at 5:40 AM, bgawel
<[hidden email]> wrote:

> I will try to answer my own question:
> I cannot use Form Runner to process XForms from my J2EE application because
> I cannot take control over the buttons added by Form Runner.
> So when I click on the "Save" button provided by Form Runner, Orbeon creates
> an absolute URL as:
> http://localhost:8080/[my-application-context] +
> /fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml
> (according to this
> http://wiki.orbeon.com/forms/doc/developer-guide/orbeon-forms-xforms-tutorial#TOC-Adding-a-save-button
> it should resolve absolute paths against http://localhost:8080/orbeon/)
>
> A new question is: Is it possible to configure this behavior, in other
> words: to control in Orbeon how an absolute URL is created?
>
> --
> Regards,
>  Bartek Gawel
>
>
>
> bgawel wrote
>>
>> Hello,
>>
>> I'm trying to integrate a J2EE application with Orbeon (separate
>> deployment).
>> I went through the Wiki site
>> http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications
>> and was able to display an XForm generated by JSP in Form Runner.
>>
>> However when I try to save the rendered form in Form Runner, I get an
>> error in the popup window: "There was an error communication with the
>> database. Please contact the application administrator".
>> The Orbeon's log file (attached -
>> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n4655584/orbeon403.zip
>> orbeon403.zip ) shows the error 403: "Access to the specified resource ()
>> has been forbidden".
>> It tries to put data via the link:
>> method: "PUT", URL:
>> "http://localhost:8080/[my-application-context]/fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml
>>
>> Why is this happening?
>>
>> --
>> Kind Regards,
>>   Bartek Gawel
>>
>
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Error-403-when-saving-an-XForm-J2EE-Orbeon-tp4655584p4655586.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
>


--
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: Error 403 when saving an XForm - J2EE + Orbeon

bgawel
Yes, I produce a Form Runner-compatible form,
then I use JSP to decorate the form,
and finally I forward the form to Orbeon via the Orbeon Forms XForms filter
-> the form is rendered by Form Runner but the Form Runner's buttons don't work.
So I cannot just forward to /orbeon/fr/acme/myform/new because I want to use JSP to produce XForms.

I was wrong thinking that it could work because according to your own words: http://orbeon-forms-ops-users.24843.n4.nabble.com/Rendering-a-for-created-by-form-builder-in-a-Java-application-td3452944.html#a3459358 (if I had found it earlier, I wouldn't have raised this issue) the above configuration makes only sense for plain XForms.

But let say:
a) if I would really like to do what I described above, then the best way to achieve this would be to provide my own buttons or patch the Runner's buttons, am I right?
b) I wouldn't decorate XForms with JSP but I would link to Runner's pages. How could I make Form Runner redirect to my application having a form submitted/saved?

--
Regards,
 Bartek Gawel

Erik Bruchez wrote
So you are producing a Form Runner-compatible form in your own web
app, and forwarding that to the Orbeon Forms app, si that right?

Could you describe your use case in details? Could you instead just
redirect to a Form Runner URL, e.g.:

/orbeon/fr/acme/myform/new

-Erik

On Tue, Aug 7, 2012 at 5:40 AM, bgawel
<[hidden email]> wrote:
> I will try to answer my own question:
> I cannot use Form Runner to process XForms from my J2EE application because
> I cannot take control over the buttons added by Form Runner.
> So when I click on the "Save" button provided by Form Runner, Orbeon creates
> an absolute URL as:
> http://localhost:8080/[my-application-context] +
> /fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml
> (according to this
> http://wiki.orbeon.com/forms/doc/developer-guide/orbeon-forms-xforms-tutorial#TOC-Adding-a-save-button
> it should resolve absolute paths against http://localhost:8080/orbeon/)
>
> A new question is: Is it possible to configure this behavior, in other
> words: to control in Orbeon how an absolute URL is created?
>
> --
> Regards,
>  Bartek Gawel
>
>
>
> bgawel wrote
>>
>> Hello,
>>
>> I'm trying to integrate a J2EE application with Orbeon (separate
>> deployment).
>> I went through the Wiki site
>> http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications
>> and was able to display an XForm generated by JSP in Form Runner.
>>
>> However when I try to save the rendered form in Form Runner, I get an
>> error in the popup window: "There was an error communication with the
>> database. Please contact the application administrator".
>> The Orbeon's log file (attached -
>> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n4655584/orbeon403.zip
>> orbeon403.zip ) shows the error 403: "Access to the specified resource ()
>> has been forbidden".
>> It tries to put data via the link:
>> method: "PUT", URL:
>> "http://localhost:8080/[my-application-context]/fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml
>>
>> Why is this happening?
>>
>> --
>> Kind Regards,
>>   Bartek Gawel
>>
>
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Error-403-when-saving-an-XForm-J2EE-Orbeon-tp4655584p4655586.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
>


--
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: Error 403 when saving an XForm - J2EE + Orbeon

bgawel
Coming back to the problem:
I have created a simple servlet that forwards requests /fr/* to Orbeon, so when Runner requests [my-application-context]/fr/service/persistence/crud/[app-name]/[form-name]/data/[document-id]/data.xml on save, it is forwarded to orbeon/fr/service/persistence/crud/[app-name]/[form-name]/data/[document-id]/data.xml and the data is persisted.

But can somebody give me a clue how to make Runner redirect to my application after submission?

--
Bartek

bgawel wrote
Yes, I produce a Form Runner-compatible form,
then I use JSP to decorate the form,
and finally I forward the form to Orbeon via the Orbeon Forms XForms filter
-> the form is rendered by Form Runner but the Form Runner's buttons don't work.
So I cannot just forward to /orbeon/fr/acme/myform/new because I want to use JSP to produce XForms.

I was wrong thinking that it could work because according to your own words: http://orbeon-forms-ops-users.24843.n4.nabble.com/Rendering-a-for-created-by-form-builder-in-a-Java-application-td3452944.html#a3459358 (if I had found it earlier, I wouldn't have raised this issue) the above configuration makes only sense for plain XForms.

But let say:
a) if I would really like to do what I described above, then the best way to achieve this would be to provide my own buttons or patch the Runner's buttons, am I right?
b) I wouldn't decorate XForms with JSP but I would link to Runner's pages. How could I make Form Runner redirect to my application having a form submitted/saved?

--
Regards,
 Bartek Gawel

Erik Bruchez wrote
So you are producing a Form Runner-compatible form in your own web
app, and forwarding that to the Orbeon Forms app, si that right?

Could you describe your use case in details? Could you instead just
redirect to a Form Runner URL, e.g.:

/orbeon/fr/acme/myform/new

-Erik

On Tue, Aug 7, 2012 at 5:40 AM, bgawel
<[hidden email]> wrote:
> I will try to answer my own question:
> I cannot use Form Runner to process XForms from my J2EE application because
> I cannot take control over the buttons added by Form Runner.
> So when I click on the "Save" button provided by Form Runner, Orbeon creates
> an absolute URL as:
> http://localhost:8080/[my-application-context] +
> /fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml
> (according to this
> http://wiki.orbeon.com/forms/doc/developer-guide/orbeon-forms-xforms-tutorial#TOC-Adding-a-save-button
> it should resolve absolute paths against http://localhost:8080/orbeon/)
>
> A new question is: Is it possible to configure this behavior, in other
> words: to control in Orbeon how an absolute URL is created?
>
> --
> Regards,
>  Bartek Gawel
>
>
>
> bgawel wrote
>>
>> Hello,
>>
>> I'm trying to integrate a J2EE application with Orbeon (separate
>> deployment).
>> I went through the Wiki site
>> http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications
>> and was able to display an XForm generated by JSP in Form Runner.
>>
>> However when I try to save the rendered form in Form Runner, I get an
>> error in the popup window: "There was an error communication with the
>> database. Please contact the application administrator".
>> The Orbeon's log file (attached -
>> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n4655584/orbeon403.zip
>> orbeon403.zip ) shows the error 403: "Access to the specified resource ()
>> has been forbidden".
>> It tries to put data via the link:
>> method: "PUT", URL:
>> "http://localhost:8080/[my-application-context]/fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml
>>
>> Why is this happening?
>>
>> --
>> Kind Regards,
>>   Bartek Gawel
>>
Reply | Threaded
Open this post in threaded view
|

Re: Re: Error 403 when saving an XForm - J2EE + Orbeon

bgawel
A response to my last question can be found here: http://orbeon-forms-ops-users.24843.n4.nabble.com/How-to-add-a-piece-of-javascript-when-saving-a-form-successfully-in-form-runner-portlet-td4655643.html

xforms:load on fr-data-save-done

bgawel wrote
Coming back to the problem:
I have created a simple servlet that forwards requests /fr/* to Orbeon, so when Runner requests [my-application-context]/fr/service/persistence/crud/[app-name]/[form-name]/data/[document-id]/data.xml on save, it is forwarded to orbeon/fr/service/persistence/crud/[app-name]/[form-name]/data/[document-id]/data.xml and the data is persisted.

But can somebody give me a clue how to make Runner redirect to my application after submission?

--
Bartek

bgawel wrote
Yes, I produce a Form Runner-compatible form,
then I use JSP to decorate the form,
and finally I forward the form to Orbeon via the Orbeon Forms XForms filter
-> the form is rendered by Form Runner but the Form Runner's buttons don't work.
So I cannot just forward to /orbeon/fr/acme/myform/new because I want to use JSP to produce XForms.

I was wrong thinking that it could work because according to your own words: http://orbeon-forms-ops-users.24843.n4.nabble.com/Rendering-a-for-created-by-form-builder-in-a-Java-application-td3452944.html#a3459358 (if I had found it earlier, I wouldn't have raised this issue) the above configuration makes only sense for plain XForms.

But let say:
a) if I would really like to do what I described above, then the best way to achieve this would be to provide my own buttons or patch the Runner's buttons, am I right?
b) I wouldn't decorate XForms with JSP but I would link to Runner's pages. How could I make Form Runner redirect to my application having a form submitted/saved?

--
Regards,
 Bartek Gawel

Erik Bruchez wrote
So you are producing a Form Runner-compatible form in your own web
app, and forwarding that to the Orbeon Forms app, si that right?

Could you describe your use case in details? Could you instead just
redirect to a Form Runner URL, e.g.:

/orbeon/fr/acme/myform/new

-Erik

On Tue, Aug 7, 2012 at 5:40 AM, bgawel
<[hidden email]> wrote:
> I will try to answer my own question:
> I cannot use Form Runner to process XForms from my J2EE application because
> I cannot take control over the buttons added by Form Runner.
> So when I click on the "Save" button provided by Form Runner, Orbeon creates
> an absolute URL as:
> http://localhost:8080/[my-application-context] +
> /fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml
> (according to this
> http://wiki.orbeon.com/forms/doc/developer-guide/orbeon-forms-xforms-tutorial#TOC-Adding-a-save-button
> it should resolve absolute paths against http://localhost:8080/orbeon/)
>
> A new question is: Is it possible to configure this behavior, in other
> words: to control in Orbeon how an absolute URL is created?
>
> --
> Regards,
>  Bartek Gawel
>
>
>
> bgawel wrote
>>
>> Hello,
>>
>> I'm trying to integrate a J2EE application with Orbeon (separate
>> deployment).
>> I went through the Wiki site
>> http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications
>> and was able to display an XForm generated by JSP in Form Runner.
>>
>> However when I try to save the rendered form in Form Runner, I get an
>> error in the popup window: "There was an error communication with the
>> database. Please contact the application administrator".
>> The Orbeon's log file (attached -
>> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n4655584/orbeon403.zip
>> orbeon403.zip ) shows the error 403: "Access to the specified resource ()
>> has been forbidden".
>> It tries to put data via the link:
>> method: "PUT", URL:
>> "http://localhost:8080/[my-application-context]/fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml
>>
>> Why is this happening?
>>
>> --
>> Kind Regards,
>>   Bartek Gawel
>>
Reply | Threaded
Open this post in threaded view
|

Re: Re: Error 403 when saving an XForm - J2EE + Orbeon

bgawel
There is even a better solution to this problem - "Workflow send button" (http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Workflow-send-button).
Not only is it possible to configure where Orbeon should redirect after submission but also we get document-id, application's name, form's name and data submitted by a user.

--
Bartek

bgawel wrote
A response to my last question can be found here: http://orbeon-forms-ops-users.24843.n4.nabble.com/How-to-add-a-piece-of-javascript-when-saving-a-form-successfully-in-form-runner-portlet-td4655643.html

xforms:load on fr-data-save-done

bgawel wrote
Coming back to the problem:
I have created a simple servlet that forwards requests /fr/* to Orbeon, so when Runner requests [my-application-context]/fr/service/persistence/crud/[app-name]/[form-name]/data/[document-id]/data.xml on save, it is forwarded to orbeon/fr/service/persistence/crud/[app-name]/[form-name]/data/[document-id]/data.xml and the data is persisted.

But can somebody give me a clue how to make Runner redirect to my application after submission?

--
Bartek

bgawel wrote
Yes, I produce a Form Runner-compatible form,
then I use JSP to decorate the form,
and finally I forward the form to Orbeon via the Orbeon Forms XForms filter
-> the form is rendered by Form Runner but the Form Runner's buttons don't work.
So I cannot just forward to /orbeon/fr/acme/myform/new because I want to use JSP to produce XForms.

I was wrong thinking that it could work because according to your own words: http://orbeon-forms-ops-users.24843.n4.nabble.com/Rendering-a-for-created-by-form-builder-in-a-Java-application-td3452944.html#a3459358 (if I had found it earlier, I wouldn't have raised this issue) the above configuration makes only sense for plain XForms.

But let say:
a) if I would really like to do what I described above, then the best way to achieve this would be to provide my own buttons or patch the Runner's buttons, am I right?
b) I wouldn't decorate XForms with JSP but I would link to Runner's pages. How could I make Form Runner redirect to my application having a form submitted/saved?

--
Regards,
 Bartek Gawel

Erik Bruchez wrote
So you are producing a Form Runner-compatible form in your own web
app, and forwarding that to the Orbeon Forms app, si that right?

Could you describe your use case in details? Could you instead just
redirect to a Form Runner URL, e.g.:

/orbeon/fr/acme/myform/new

-Erik

On Tue, Aug 7, 2012 at 5:40 AM, bgawel
<[hidden email]> wrote:
> I will try to answer my own question:
> I cannot use Form Runner to process XForms from my J2EE application because
> I cannot take control over the buttons added by Form Runner.
> So when I click on the "Save" button provided by Form Runner, Orbeon creates
> an absolute URL as:
> http://localhost:8080/[my-application-context] +
> /fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml
> (according to this
> http://wiki.orbeon.com/forms/doc/developer-guide/orbeon-forms-xforms-tutorial#TOC-Adding-a-save-button
> it should resolve absolute paths against http://localhost:8080/orbeon/)
>
> A new question is: Is it possible to configure this behavior, in other
> words: to control in Orbeon how an absolute URL is created?
>
> --
> Regards,
>  Bartek Gawel
>
>
>
> bgawel wrote
>>
>> Hello,
>>
>> I'm trying to integrate a J2EE application with Orbeon (separate
>> deployment).
>> I went through the Wiki site
>> http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications
>> and was able to display an XForm generated by JSP in Form Runner.
>>
>> However when I try to save the rendered form in Form Runner, I get an
>> error in the popup window: "There was an error communication with the
>> database. Please contact the application administrator".
>> The Orbeon's log file (attached -
>> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n4655584/orbeon403.zip
>> orbeon403.zip ) shows the error 403: "Access to the specified resource ()
>> has been forbidden".
>> It tries to put data via the link:
>> method: "PUT", URL:
>> "http://localhost:8080/[my-application-context]/fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml
>>
>> Why is this happening?
>>
>> --
>> Kind Regards,
>>   Bartek Gawel
>>
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Error 403 when saving an XForm - J2EE + Orbeon

Erik Bruchez
Administrator
Yes that's right!

Note that document id/app/form name are only there in recent builds
(not in 3.9).

-Erik

On Thu, Aug 30, 2012 at 10:02 AM, bgawel
<[hidden email]> wrote:

> There is even a better solution to this problem - "Workflow send button"
> (http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Workflow-send-button).
> Not only is it possible to configure where Orbeon should redirect after
> submission but also we get document-id, application's name, form's name and
> data submitted by a user.
>
> --
> Bartek
>
>
> bgawel wrote
>>
>> A response to my last question can be found here:
>> http://orbeon-forms-ops-users.24843.n4.nabble.com/How-to-add-a-piece-of-javascript-when-saving-a-form-successfully-in-form-runner-portlet-td4655643.html
>>
>> xforms:load on fr-data-save-done
>>
>>
>> bgawel wrote
>>>
>>> Coming back to the problem:
>>> I have created a simple servlet that forwards requests /fr/* to Orbeon,
>>> so when Runner requests
>>> [my-application-context]/fr/service/persistence/crud/[app-name]/[form-name]/data/[document-id]/data.xml
>>> on save, it is forwarded to
>>> orbeon/fr/service/persistence/crud/[app-name]/[form-name]/data/[document-id]/data.xml
>>> and the data is persisted.
>>>
>>> But can somebody give me a clue how to make Runner redirect to my
>>> application after submission?
>>>
>>> --
>>> Bartek
>>>
>>>
>>> bgawel wrote
>>>>
>>>> Yes, I produce a Form Runner-compatible form,
>>>> then I use JSP to decorate the form,
>>>> and finally I forward the form to Orbeon via the Orbeon Forms XForms
>>>> filter
>>>> -> the form is rendered by Form Runner but the Form Runner's buttons
>>>> don't work.
>>>> So I cannot just forward to /orbeon/fr/acme/myform/new because I want to
>>>> use JSP to produce XForms.
>>>>
>>>> I was wrong thinking that it could work because according to your own
>>>> words:
>>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/Rendering-a-for-created-by-form-builder-in-a-Java-application-td3452944.html#a3459358
>>>> (if I had found it earlier, I wouldn't have raised this issue) the above
>>>> configuration makes only sense for plain XForms.
>>>>
>>>> But let say:
>>>> a) if I would really like to do what I described above, then the best
>>>> way to achieve this would be to provide my own buttons or patch the
>>>> Runner's buttons, am I right?
>>>> b) I wouldn't decorate XForms with JSP but I would link to Runner's
>>>> pages. How could I make Form Runner redirect to my application having a
>>>> form submitted/saved?
>>>>
>>>> --
>>>> Regards,
>>>>  Bartek Gawel
>>>>
>>>>
>>>> Erik Bruchez wrote
>>>>>
>>>>> So you are producing a Form Runner-compatible form in your own web
>>>>> app, and forwarding that to the Orbeon Forms app, si that right?
>>>>>
>>>>> Could you describe your use case in details? Could you instead just
>>>>> redirect to a Form Runner URL, e.g.:
>>>>>
>>>>> /orbeon/fr/acme/myform/new
>>>>>
>>>>> -Erik
>>>>>
>>>>> On Tue, Aug 7, 2012 at 5:40 AM, bgawel
>>>>> &lt;Bartlomiej.GAWEL@.europa&gt; wrote:
>>>>>> I will try to answer my own question:
>>>>>> I cannot use Form Runner to process XForms from my J2EE application
>>>>>> because
>>>>>> I cannot take control over the buttons added by Form Runner.
>>>>>> So when I click on the "Save" button provided by Form Runner, Orbeon
>>>>>> creates
>>>>>> an absolute URL as:
>>>>>> http://localhost:8080/[my-application-context] +
>>>>>> /fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml
>>>>>> (according to this
>>>>>> http://wiki.orbeon.com/forms/doc/developer-guide/orbeon-forms-xforms-tutorial#TOC-Adding-a-save-button
>>>>>> it should resolve absolute paths against
>>>>>> http://localhost:8080/orbeon/)
>>>>>>
>>>>>> A new question is: Is it possible to configure this behavior, in other
>>>>>> words: to control in Orbeon how an absolute URL is created?
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>>  Bartek Gawel
>>>>>>
>>>>>>
>>>>>>
>>>>>> bgawel wrote
>>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> I'm trying to integrate a J2EE application with Orbeon (separate
>>>>>>> deployment).
>>>>>>> I went through the Wiki site
>>>>>>> http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications
>>>>>>> and was able to display an XForm generated by JSP in Form Runner.
>>>>>>>
>>>>>>> However when I try to save the rendered form in Form Runner, I get an
>>>>>>> error in the popup window: "There was an error communication with the
>>>>>>> database. Please contact the application administrator".
>>>>>>> The Orbeon's log file (attached -
>>>>>>> http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n4655584/orbeon403.zip
>>>>>>> orbeon403.zip ) shows the error 403: "Access to the specified
>>>>>>> resource ()
>>>>>>> has been forbidden".
>>>>>>> It tries to put data via the link:
>>>>>>> method: "PUT", URL:
>>>>>>> "http://localhost:8080/[my-application-context]/fr/service/persistence/crud/Test/Form0/data/e084344ae29a0962a10116956016c5fd/data.xml
>>>>>>>
>>>>>>> Why is this happening?
>>>>>>>
>>>>>>> --
>>>>>>> Kind Regards,
>>>>>>>   Bartek Gawel
>>>>>>>
>>>>>
>>>>
>>>
>>
>
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Error-403-when-saving-an-XForm-J2EE-Orbeon-tp4655584p4655697.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
>


--
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