Re: What is missing from Restlet?

2008-11-15 Thread Tamás Cservenák
Hi there,

as integration i meant making those two (restlet + jsecurity) to play
together. But in fact, we are using out-of-the-box (slightly
nexus-ified) JSecurity Servlet filters, thus our Restlet Application
is completely unaware of being protected (unless resources where we
use it explicitly).

The integration is more Plexus + JSecurity way, and also we
integrated Plexus + Restlet, thus all major stuff is simply a Plexus
Component (something like spring managed bean).

All our related code is in our Spice OSS SVN (that makes our life spicey):
http://svn.sonatype.org/spice/trunk/

In short:
plexus-restlet-bridge -- is the restlet + plexus integration
plexus-jsecurity-realms -- are various JSecurity Realm implementations
(allowing us to do a lot of magic, ie. using LDAP for auth/authz and
if failing, falling back to local XML for example, it is great for
transitions)

JSecurity is very flexible piece of software, and almost all you have
to do is implement a Realm to hook it in into whatever you want. It is
not an aggressive library, that is clearly proved by Nexus already:
you can simply envelope a web application (in this case a Restlet
Application that is run in ServletServer) into JSecurity with their
SerlvetFilters almost without any changes (the simplest/static
solution would need some web.xml tweaking and that's all!).

You can grep some info from here too:
https://docs.sonatype.com/display/NX/Nexus+Security+FAQ

Hope helps,
~t~

On Sat, Nov 15, 2008 at 8:46 AM, Jeff Ramsdale [EMAIL PROTECTED] wrote:
 Tamás Cservenák wrote:

 Hi all,

 JSecurity is a really cool piece of software, and is really easy to
 integrate with restlet. In Nexus, we have it integrated pretty easily.

 Is that code you can donate back or a pattern you can divulge? A blog post
 maybe?

 ~t~

 Thanks,

 -jeff





-- 
Thanks,
~t~


Static files: no available connector for FILE

2008-11-15 Thread Matt
WARNING: No available server connector supports the required protocols: FILE .
Please add the JAR of a matching connector to your classpath.

Which jar file contains the connector implementation for the FILE protocol?
Here is what I'm including:

org.restlet.jar
com.noelios.restlet.jar
com.noelios.restlet.ext.simple_3.1.jar
org.simpleframework_3.1/org.simpleframework.jar






Re: Static files: no available connector for FILE

2008-11-15 Thread keke
Have you add FILE protocol into your Component?
Like

component.getClients.add(Protocol.FILE)

On Sun, Nov 16, 2008 at 12:54 PM, Matt [EMAIL PROTECTED] wrote:

 WARNING: No available server connector supports the required protocols:
 FILE .
 Please add the JAR of a matching connector to your classpath.

 Which jar file contains the connector implementation for the FILE protocol?
 Here is what I'm including:

 org.restlet.jar
 com.noelios.restlet.jar
 com.noelios.restlet.ext.simple_3.1.jar
 org.simpleframework_3.1/org.simpleframework.jar







-- 
Cheers,
Keke
-
We paranoid love life