SV: Re: SV: Re: SV: Re: relative address in submission

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

SV: Re: SV: Re: SV: Re: relative address in submission

rakkie
Hi,

That is exactly the way I tried with a nullpointer exception as a result.
See attached log file
I have tried with both with build 201004210200 CE and release dev-3.7.1.200905272119

//Robert

--- Den tors 2010-04-22 skrev Alessandro Vernet <[hidden email]>:

Från: Alessandro Vernet <[hidden email]>
Ämne: [ops-users] Re: SV: Re: SV: Re: relative address in submission
Till: [hidden email]
Datum: torsdag 22 april 2010 01:36

Robert,

This should work as well.

If your app is deployed on http://localhost:8080/my-app
And Orbeon Forms is deployed on http://localhost:8080/orbeon
And resource="/my-service"
This should hit http://localhost:8080/my-app/my-service

Alex

On Tue, Apr 20, 2010 at 6:39 AM, Robert <rakkie_se@...> wrote:

>
> Hi,
>
> The thing is that I'm using orbeon in a separate deployment as described here:
> http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications
>
> so the service (controller) I submit to is not deployed under the orbeon context
>
> //Robert
>
> --- Den tis 2010-04-20 skrev Alistair Miles <alimanfoo@...>:
>
> Från: Alistair Miles <alimanfoo@...>
> Ämne: [ops-users] Re: SV: Re: relative address in submission
> Till: ops-users@...
> Datum: tisdag 20 april 2010 13:38
>
> Hi Robert,
>
> I find that if I have the Orbeon war deployed at...
>
> http://localhost:8080/orbeon
>
> ...I can use paths like...
>
> /myservice
>
> ...in a submission @resource attribute and the submission gets sent
> to...
>
> http://localhost:8080/orbeon/myservice
>
> Hth
>
> Alistair
>
> On Tue, Apr 20, 2010 at 08:24:55AM +0000, Robert wrote:
> > Hi,
> >
> > Thanks for the response...
> >
> > Well, when I use an absolute address it works.
> >
> > http://localhost:8080/web-frontend/e-services/form_submit/cases - WORKS
> > /e-services/form_submit/cases - DOESN'T WORK
> >
> >
> > //Robert
> >
> >
> > --- Den sön 2010-04-18 skrev Louis Ratzesberger <hankr@...>:
> >
> > Från: Louis Ratzesberger <hankr@...>
> > Ämne: [ops-users] Re: relative address in submission
> > Till: ops-users@...
> > Datum: söndag 18 april 2010 06:26
> >
> >
> > Hi Robert,
> >
> > I don't know .... probably.
> >
> > However, I think you have a different problem, as you should
> > get a different result if there is no target to receive the submission.
> > Try it with an absolute address to a service endpoint that you know
> > works.
> >
> > I believe it will handle an exception from a bad submission address more
> > gracefully, but perhaps it doesn't if what is returned is the 404 error
> > page, which is html and not XML.
> >
> > Cheers,
> > Hank



--
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.log (48K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: SV: Re: SV: Re: SV: Re: relative address in submission

Erik Bruchez-3
Robert,

The line that fails is:

final boolean isDefaultContext = requestDispatcher.isDefaultContext();

So the requestDispatcher is null.

This can happen if servletContext.getContext(path) is null. It seems like in your case, some servlet context is not found.

Did you set crossContext="true" on both servlet contexts?

-Erik

On Thu, Apr 22, 2010 at 1:19 AM, Robert <[hidden email]> wrote:
Hi,

That is exactly the way I tried with a nullpointer exception as a result.
See attached log file
I have tried with both with build 201004210200 CE and release dev-3.7.1.200905272119

//Robert

--- Den tors 2010-04-22 skrev Alessandro Vernet <[hidden email]>:

Från: Alessandro Vernet <[hidden email]>
Ämne: [ops-users] Re: SV: Re: SV: Re: relative address in submissionDatum: torsdag 22 april 2010 01:36


Robert,

This should work as well.

If your app is deployed on http://localhost:8080/my-app
And Orbeon Forms is deployed on http://localhost:8080/orbeon
And resource="/my-service"
This should hit http://localhost:8080/my-app/my-service

Alex

On Tue, Apr 20, 2010 at 6:39 AM, Robert <rakkie_se@...> wrote:
>
> Hi,
>
> The thing is that I'm using orbeon in a separate deployment as described here:
> http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications
>
> so the service (controller) I submit to is not deployed under the orbeon context
>
> //Robert
>
> --- Den tis 2010-04-20 skrev Alistair Miles <alimanfoo@...>:
>
> Från: Alistair Miles <alimanfoo@...>
> Ämne: [ops-users] Re: SV: Re: relative address in submission
> Till: ops-users@...
> Datum: tisdag 20 april 2010 13:38
>
> Hi Robert,
>
> I find that if I have the Orbeon war deployed at...
>
> http://localhost:8080/orbeon
>
> ...I can use paths like...
>
> /myservice
>
> ...in a submission @resource attribute and the submission gets sent
> to...
>
> http://localhost:8080/orbeon/myservice
>

> Hth
>
> Alistair
>
> On Tue, Apr 20, 2010 at 08:24:55AM +0000, Robert wrote:
> > Hi,
> >
> > Thanks for the response...
> >
> > Well, when I use an absolute address it works.
> >
> > http://localhost:8080/web-frontend/e-services/form_submit/cases - WORKS
> > /e-services/form_submit/cases - DOESN'T WORK
> >
> >
> > //Robert
> >
> >
> > --- Den sön 2010-04-18 skrev Louis Ratzesberger <hankr@...>:
> >
> > Från: Louis Ratzesberger <hankr@...>
> > Ämne: [ops-users] Re: relative address in submission
> > Till: ops-users@...
> > Datum: söndag 18 april 2010 06:26
> >
> >
> > Hi Robert,
> >
> > I don't know .... probably.
> >
> > However, I think you have a different problem, as you should
> > get a different result if there is no target to receive the submission.
> > Try it with an absolute address to a service endpoint that you know
> > works.
> >
> > I believe it will handle an exception from a bad submission address more
> > gracefully, but perhaps it doesn't if what is returned is the 404 error
> > page, which is html and not XML.
> >
> > Cheers,
> > Hank




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