Hassan Rasheed | 1 May 2007 17:31
Picon
Favicon

Access Control Handler for Jetty

Hello,

My goal is to write a Jetty Handler that can communicate with an XACML 
Policy Decision Point to perform some basic access control tasks.  So 
far I have a handler that can intercept an incoming request, and 
communicate with the XACML PDP, but I am having problems sending the 
requests which are approved on to the next handler (in this case a 
resource handler because I'm just starting with the OneHandler example).

I tried to make a class that extends HandlerWrapper like 
SecurityHandler.  And I have seen some of the other HandlerWrappers that 
call super.handle(), but that doesnt seem to be working for me.  Any 
suggestions on how I should proceed next?  Thanks.

Hassan

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Lead Spectrum | 1 May 2007 21:28
Favicon

Do you have Opt In Leads in bulk?

They need to have:  Name, Address, City, State, Zip Code, Phone Number, Email Address, Ip Address and
Date/Time Stamp.

If you have other fields on the leads like:  Website, DOB and Etc.  That would be fine but not mandatory.

Need 6 million Total.  Must be no older than 3 months!  Need these leads today.. thanks

Lee Watson
Lead Spectrum

PS:  We just paid a company called (BELOW) $500.00 for 10 million fresh optins.  We were taken for a ride..  Paid
her by Western Union and she dissappeared off the planet the minute she received it!!  DO NOT EVER SEND ANY
MONEY TO HER! 

Her company info is:
Alpha Services
Nicole Copeland
Palmer, AK  99645

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

(Continue reading)

Greg Wilkins | 2 May 2007 06:01
Gravatar

Stable Release 6.1.2


Jetty stable release 6.1.2 is now available via http://jetty.mortbay.org

This release has had many improvements, fixes, optimizations and
stabilization over 6.1.1.

Thanks to all those who have contributed to the project and who
have tested the pre-releases and release candidates.

jetty-6.1.2 - 1 May 2007
 + Improved unavailabile handling
 + sendError resets output state
 + Fixed session invalidation error in WadiSessionManager
 + Updated Wadi to version 2.0-M3
 + Added static member definition in WadiSessionManager
 + JETTY-322 fix ajp cpong response and close handling
 + JETTY-324 fix ant plugin
 + JETTY-328 updated jboss

jetty-6.1.2rc5 - 24 April 2007
 + set default keystore for SslSocketConnector
 + removed some compile warnings
 + Allow jsp-file to be / or /*
 + JETTY-305 delayed connection destroy
 + JETTY-309 handle close in multivalue connection fields.
 + JETTY-309 force writable status of endpoints.
 + JETTY-314 fix for possible NPE in Request.isRequestedSessionIdValid

jetty-6.1.2rc4 - 19 April 2007
 + JETTY-294 Fixed authentication reset
(Continue reading)

Michael Gratton | 2 May 2007 17:06

setting contextpath for ajp requests?


Hi guys,

I would like to use one instance of Jetty to host a number of webapps
for entire web sites, using Apache 2.2's mod_proxy+mod_proxy_ajp.

For example, if I have two sites, they would each have a separate web
app deployed in the same instance of Jetty but with different context
paths. The mapping from web site to context path might look something
like:

Apache request    Jetty request
www.site1.com/ -> /some-webapp/
www.site2.com/ -> /some-other-app/

The only way I have managed to get this working is to have an instance
of Jetty for each site and app, and for each to have a file
in ./contexts that sets the context path for its app to be '/'.

So, I guess my question is whether it is possible to configure one
instance of Jetty to handle requests for the two apps but make it appear
to each of them that their context paths are '/'?

I see that with 6.1.2 setting the context path is now supported, but I
don't think that is possible using mod_proxy+mod_proxy_ajp.

Cheers,
/Mike

--

-- 
(Continue reading)

Jan Bartel | 3 May 2007 01:42

Re: setting contextpath for ajp requests?

Hi Michael,

I think you might want to check out the info on how to configure
virtual hosts with Jetty:

http://docs.codehaus.org/display/JETTY/Virtual+hosts

cheers
Jan

Michael Gratton wrote:
> Hi guys,
> 
> I would like to use one instance of Jetty to host a number of webapps
> for entire web sites, using Apache 2.2's mod_proxy+mod_proxy_ajp.
> 
> For example, if I have two sites, they would each have a separate web
> app deployed in the same instance of Jetty but with different context
> paths. The mapping from web site to context path might look something
> like:
> 
> Apache request    Jetty request
> www.site1.com/ -> /some-webapp/
> www.site2.com/ -> /some-other-app/
> 
> The only way I have managed to get this working is to have an instance
> of Jetty for each site and app, and for each to have a file
> in ./contexts that sets the context path for its app to be '/'.
> 
> So, I guess my question is whether it is possible to configure one
(Continue reading)

Christian Karlsson | 3 May 2007 14:30
Picon

Request parameter encoding

Hi all!

I've embedded Jetty 5.1.12 in a java standalone application.
I'm listening for requests that sends an xml string as a parameter.

My problem is that the XML is declared to be UTF-8 but when I do
                String trans = request.getParameter("trans");
the resulting string is already decoded into iso8859-1.
So when I parse the string (which contains Scandinavian characters ÅÄÖ) I get the error:

org.dom4j.DocumentException: Invalid byte 2 of 2-byte UTF-8 sequence. Nested exception: Invalid byte 2 of 2-byte UTF-8 sequence.

Any suggestions?

Thx,
Christian
--
Christian Karlsson

Låt din dator hjälpa till i forskningen:
http://www.worldcommunitygrid.org/team/viewTeamInfo.do?teamId=H2MLSSW0JR1
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support
Michael Gratton | 3 May 2007 17:23

Re: setting contextpath for ajp requests?

On Thu, 2007-05-03 at 09:42 +1000, Jan Bartel wrote:
> I think you might want to check out the info on how to configure
> virtual hosts with Jetty:

Ahh, great, that worked like a charm. I never thought to try it because
it didn't seem like it would work using the AJP connector.

I don't suppose you know what the efficiency of having a large number of
virtual hosts is, do you? Is it a linear search for matching webapps for
each request? Speaking of which, I wonder about the same for Apache...

Thanks!
/Mike

--

-- 
Michael Gratton <michael <at> quuxo.com>     
Quuxo Software <http://web.quuxo.com/>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support
JoachimMartin | 3 May 2007 17:33

mvn jetty:run in background


I'd like to use the maven jetty:run plugin to start my webapp in the
background prior to running some Test Cases.

The key would be that the call to Start would have to return after the
container was initialized so the remaining mvn goals could execute.  We are
trying to automate Web Services testing without having the main container
(jboss) running.

Is this possible using the Jetty API?  How hard would it be to modify the
mvn plugin to do this?

We could execute a background process to do this, but I'd like to make sure
that the container is running and context initialized before I start the
tests.

Thanks --Joachim
--

-- 
View this message in context: http://www.nabble.com/mvn-jetty%3Arun-in-background-tf3686953.html#a10306422
Sent from the Jetty Support mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

chivotario | 3 May 2007 21:58
Picon
Picon
Favicon

Re: Jetty embedded & Spring Pitchfork (EJB3)...


Is it possible at least to run Pitchfork (or any other EJB container) on an
embedded jetty server ? 

chivotario wrote:
> 
> Hi,
> 
> I'm trying to run the same example posted at the wiki
> (http://docs.codehaus.org/display/JETTY/Jetty+and+Spring+EJB3+(Pitchfork)) 
> on a Jetty Embedded server.
> I've created the xml files,  coded both EchoBean , Echo interface and
> EchoTest class, Echo.jsp ,  built jetty-spring jars from jetty's source
> with m2 , and put all pitchfork jars + dependencies on my classpath ,
> unfortunately i'm getting a java.lang.NullPointerException when executing
> the EchoTest.echo() method from the jsp page.
> 
> My embedded jetty server is configured this way : 
> 
>         Context root = new Context(servlet_contexts, "/pdb",
> Context.SESSIONS);
>         root.setResourceBase("web/jsp");
>         root.addServlet(new ServletHolder(new
> org.apache.jasper.servlet.JspServlet()), "*.jsp");
> 
> Structure :
>          web
>           +--- jsp
>                    +----META-INF
>                            spring-ejb-jar.xml
>                    +----WEB-INF
>                            applicationContext.xml
>                   Echo.jsp
> 
> Did i missed some configuration ?
> 
> Regards. 
> 
> 
> 
> 
> 

--

-- 
View this message in context: http://www.nabble.com/Jetty-embedded---Spring-Pitchfork-%28EJB3%29...-tf3654299.html#a10312116
Sent from the Jetty Support mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Martin Gilday | 4 May 2007 00:46

Re: mvn jetty:run in background

You can start up Jetty inside your tests rather than in a Maven phase. 
A simple server = new Server; server.start(); will do it.  We have a
simple Singleton to keep the same server running for the whole test
suite.  See
http://today.java.net/pub/a/today/2007/04/12/embedded-integration-testing-of-web-applications.html
for a very good article on the subject.

Hope that helps,
Martin.

----- Original message -----
From: "JoachimMartin" <jmartin <at> path-works.com>
To: jetty-support <at> lists.sourceforge.net
Date: Thu, 3 May 2007 08:33:18 -0700 (PDT)
Subject: [Jetty-support] mvn jetty:run in background

I'd like to use the maven jetty:run plugin to start my webapp in the
background prior to running some Test Cases.

The key would be that the call to Start would have to return after the
container was initialized so the remaining mvn goals could execute.  We
are
trying to automate Web Services testing without having the main
container
(jboss) running.

Is this possible using the Jetty API?  How hard would it be to modify
the
mvn plugin to do this?

We could execute a background process to do this, but I'd like to make
sure
that the container is running and context initialized before I start the
tests.

Thanks --Joachim
-- 
View this message in context:
http://www.nabble.com/mvn-jetty%3Arun-in-background-tf3686953.html#a10306422
Sent from the Jetty Support mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support


Gmane