Andreas Sander | 1 Feb 2005 08:14
Picon
Favicon

Unexpected Redirect on POST request

Hello,

I use jetty as an embedded Webserver. The initialization is as follwing:

      MortbayServer = new HttpServer();
      SocketListener listener = new SocketListener();
      listener.setInetAddrPort(new InetAddrPort(ip, Integer.parseInt(port)));
      MortbayServer.addListener(listener);

      HttpContext context = new HttpContext();
      context.setContextPath("/soap");

      context.addHandler(new XMLHandler());
      MortbayServer.addContext(context);

      MortbayServer.start();

XMLHandler is a handler I have written myself and shall work as an embedded
SOAP-Server. It is based on AbstractHandler and implements only the handle()
function

Now following is happening: Everytime a client connects to me and sends a POST
request like this one:

POST /soap HTTP/1.1
Content-Type: text/xml
User-Agent: XML Spy
SOAPAction: "urn:#Anwenderanfrage"
Host: 192.168.1.101
Content-Length: 434
(Continue reading)

Chris Haynes | 1 Feb 2005 09:11
Picon

Re: Unexpected Redirect on POST request

In
 listener.setInetAddrPort(new InetAddrPort(ip, Integer.parseInt(port)));
what value does 'ip' have?

i.e. my first guess (and it is only that) is that it's something to do with the
actual address used here vs. the Host: value.

Chris Haynes

----- Original Message ----- 
From: "Andreas Sander" <asander <at> aurenz.de>
To: <jetty-support <at> lists.sourceforge.net>
Sent: Tuesday, February 01, 2005 7:14 AM
Subject: [Jetty-support] Unexpected Redirect on POST request

> Hello,
>
> I use jetty as an embedded Webserver. The initialization is as follwing:
>
>       MortbayServer = new HttpServer();
>       SocketListener listener = new SocketListener();
>       listener.setInetAddrPort(new InetAddrPort(ip, Integer.parseInt(port)));
>       MortbayServer.addListener(listener);
>
>       HttpContext context = new HttpContext();
>       context.setContextPath("/soap");
>
>       context.addHandler(new XMLHandler());
>       MortbayServer.addContext(context);
>
(Continue reading)

Andreas Sander | 1 Feb 2005 09:49
Picon
Favicon

Re: Unexpected Redirect on POST request

> 
> In
>  listener.setInetAddrPort(new InetAddrPort(ip, Integer.parseInt(port)));
> what value does 'ip' have?
> 
> i.e. my first guess (and it is only that) is that it's something to do with the
> actual address used here vs. the Host: value.
> 
> Chris Haynes

Hi Chris,

the Ip Address is "0.0.0.0". I also tried "192.168.1.101" the address where te
redirection points to, but the result is the same.

Andreas

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

vinod | 1 Feb 2005 12:19

Help - Newbie here


Hello everybody,

Can somebody pls tell me how to go about deploying an application inside
Jetty Server. All information in the docs and tutorial seem to be for
advanced users.

Pls help
Vinod

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Chris Haynes | 1 Feb 2005 13:15
Picon

Re: Help - Newbie here

When I was learning Jetty I:

1) Got the demo applications working first
2) Slowly, bit-by-bit, swapped out the demo bits and put my bits in their place

Do it slowly this way, and make sure each change does what you expect.  
This will also help you understand how it is all put togeather.

HTH

Chris Haynes

----- Original Message ----- 
From: <vinod <at> siparium.net>
To: <jetty-support <at> lists.sourceforge.net>
Sent: Tuesday, February 01, 2005 11:19 AM
Subject: [Jetty-support] Help - Newbie here

> 
> Hello everybody,
>  
> Can somebody pls tell me how to go about deploying an application inside
> Jetty Server. All information in the docs and tutorial seem to be for
> advanced users.
> 
> Pls help
> Vinod
> 
>  
> 
(Continue reading)

Heiner Westphal | 1 Feb 2005 13:49
Picon
Favicon

Re: Unexpected Redirect on POST request

Andreas,

try

   context.setRedirectNullPath(false);

to avoid the redirect. Otherwise you have to POST
to "/soap/" with trailing slash.

HTH,

Heiner

Andreas Sander wrote:
> Hello,
> 
> I use jetty as an embedded Webserver. The initialization is as follwing:
> 
>       MortbayServer = new HttpServer();
>       SocketListener listener = new SocketListener();
>       listener.setInetAddrPort(new InetAddrPort(ip, Integer.parseInt(port)));
>       MortbayServer.addListener(listener);
> 
>       HttpContext context = new HttpContext();
>       context.setContextPath("/soap");
> 
>       context.addHandler(new XMLHandler());
>       MortbayServer.addContext(context);
> 
>       MortbayServer.start();
(Continue reading)

Andreas Sander | 1 Feb 2005 14:29
Picon
Favicon

Re: Unexpected Redirect on POST request

> try
> 
>    context.setRedirectNullPath(false);

Thank you very much. That is the solution

Andreas

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Glenn Barnard | 1 Feb 2005 21:48

User Authentication WIthout web.xml

I've been digging through the docs and trying classes to try and get the user 
logon to work in my application without having to use web.xml. Am stumped. Can 
someone point me in the right direction. Thanks!!!!!

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Andreas Wöckl | 1 Feb 2005 22:38
Picon
Favicon

jetty session management

hi all!

We are running the jetty servlet container on our debian based firewall 
Gibraltar to enable webinterface administration. We noticed that every first 
visit of a jsp-site lasts a long time - the second visit rusn faster - jetty 
seems to cache. If I open a new browser window (new instance) the same happens 
again - so jetty does not seem to cache in general - it seems to cache on a per 
session base.

Anyone an idea what we could do for tuning

best regards

andreas wöckl

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Chirag Soni | 2 Feb 2005 11:09
Picon

RE: jetty help : adding ext. jars

hi,

thanks to Chris Haynes  &  DE BENEDICTIS DAVIDE , for help . I tried
the approach to install new JRE . But , the problem still persists .
Please help if possible .

regards,

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support


Gmane