Simon Kaegi | 2 Jan 16:55
Picon

Re: Jetty Security Handler

Hi Amit,

You can provide basic yes/no authentication by registering your
servlets/resources with a custom HttpContext and implementing
HttpContext.handleSecurity().
This has been used to support BASIC authentication with UserAdmin although
I'm not aware of an open source implementation.

If you're doing something a bit more sophisticated where you need to
decouple your HttpContext from your authentication then you might want to
write a Servlet Filter. Unfortunately the OSGi Http Service does not
currently provide Filter support however you can wrap your Servlets and
Resources fairly easily. See FilterServletAdaptor in "cvsroot/eclipse"
"equinox-incubator/org.eclipse.equinox.http.helper"

-Simon

equinox-dev-bounces@... wrote on 12/30/2007 06:56:55 AM:

> Hello Equinox Developers,
>
> I am using Jetty osgi bundle v5_1_11, but now I find myself  needing
> to add a security handler  to support basic http and looking at the
> properties exposed in the OSGI/metatype/config.xml, I don't see that
> it has been exposed (I couldn't find it in the code -Let me know if I
> missed something). Has anyone worked on providing such a
> functionality in the  OSGi context? What would you recommend?
>
> Best,
> Amit
(Continue reading)

Amit Kumar | 2 Jan 17:43
Picon

Re: Jetty Security Handler

Thanks Simon,
I ended up writing a custom HttpContext that does the basic  
authentication.

Best,
Amit
On Jan 2, 2008, at 9:55 AM, Simon Kaegi wrote:

> Hi Amit,
>
> You can provide basic yes/no authentication by registering your
> servlets/resources with a custom HttpContext and implementing
> HttpContext.handleSecurity().
> This has been used to support BASIC authentication with UserAdmin  
> although
> I'm not aware of an open source implementation.
>
> If you're doing something a bit more sophisticated where you need to
> decouple your HttpContext from your authentication then you might  
> want to
> write a Servlet Filter. Unfortunately the OSGi Http Service does not
> currently provide Filter support however you can wrap your Servlets  
> and
> Resources fairly easily. See FilterServletAdaptor in "cvsroot/eclipse"
> "equinox-incubator/org.eclipse.equinox.http.helper"
>
> -Simon
>
> equinox-dev-bounces@... wrote on 12/30/2007 06:56:55 AM:
>
(Continue reading)

Martin Lippert | 3 Jan 21:22
Picon
Favicon
Gravatar

Re: AOSGi is not recognized after installing features

First of all, Happy New Year to all!!!

And Hi Oren!

The new year starts good: I found our problem and fixed it. :-)

The reason was a wrong folder layout of the feature within the zip 
download. A new fixed version is ready for download:

http://www.eclipse.org/equinox/incubator/aspects/downloads/org.aspectj.osgi_1.0.3a_archive.zip

Sorry again for the long delay. Promise to be more responsive from now on...

Cheers,
-Martin

Oren Mishali wrote:
 > Hi Martin,
 >
 > Have you tried to reproduce the bug? It is quite a limitation since I 
cannot
 > install additional plug-ins...
 >
 > Oren
 >
 > -----Original Message-----
 > From: equinox-dev-bounces@...
 > [mailto:equinox-dev-bounces@...] On Behalf Of Martin Lippert
 > Sent: Wednesday, October 24, 2007 10:11 AM
 > To: Equinox development mailing list
(Continue reading)

John Arthorne | 4 Jan 21:15
Picon

Copyright comments


I have noticed a few Java classes added lately with no copyright comments. This is just a friendly reminder to ensure you add copyright comments in new Java files. A common culprit is that you might not have the "generate comments" checkbox selected in the New Java Class wizard. Also, since we've just rolled over into a new year, make sure your "New Java files" template has the ${year} variable to ensure the correct year is inserted:

/*******************************************************************************
 * Copyright (c) ${year} <your name or company> and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     <your name or company> - initial API and implementation
 *******************************************************************************/



David R Stevenson | 4 Jan 21:41
Picon
Favicon

Re: Copyright comments


Thanks for the reminder, John.

When I went to change the year I discovered a recently added option that will make it less likely to miss the comments. Somewhere between 3.4M1 and 3.4M3 the checkbox shown below was added to the Code Templates preferences:



When that is turned on, then the Generate Comments check box in the New Mumble dialog defaults to check'd so you have to uncheck it to lose the copyright.

        - Dave
__________________________________

Dave Stevenson
dstevens-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org
Phone: 503-578-3578; T/L 775-3578




[equinox-dev] Copyright comments

John Arthorne to: equinox-dev
01/04/2008 12:17 PM

Sent by: equinox-dev-bounces-j9T/66MeVpFAfugRpC6u6w@public.gmane.org

Please respond to Equinox development mailing list <equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org>







I have noticed a few Java classes added lately with no copyright comments. This is just a friendly reminder to ensure you add copyright comments in new Java files. A common culprit is that you might not have the "generate comments" checkbox selected in the New Java Class wizard. Also, since we've just rolled over into a new year, make sure your "New Java files" template has the ${year} variable to ensure the correct year is inserted:

/*******************************************************************************
* Copyright (c) ${year} <your name or company> and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*     <your name or company> - initial API and implementation
*******************************************************************************/



_______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Picon
Favicon

Re: Copyright comments

Should we be setting up project-specific settings for these templates for the p2 projects?
As best I can tell, we are all relying on workspace defaults to get this right.

susan
David R Stevenson/Redmond/IBM <at> IBMUS




          David R Stevenson/Redmond/IBM <at> IBMUS
          Sent by: equinox-dev-bounces-j9T/66MeVpFAfugRpC6u6w@public.gmane.org

          01/04/2008 12:41 PM
          Please respond to Equinox development mailing list



To: Equinox development mailing list <equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org>
cc:
Subject: Re: [equinox-dev] Copyright comments



Thanks for the reminder, John.

When I went to change the year I discovered a recently added option that will make it less likely to miss the comments. Somewhere between 3.4M1 and 3.4M3 the checkbox shown below was added to the Code Templates preferences:



When that is turned on, then the Generate Comments check box in the New Mumble dialog defaults to check'd so you have to uncheck it to lose the copyright.

- Dave
__________________________________

Dave Stevenson
dstevens-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org
Phone: 503-578-3578; T/L 775-3578



[equinox-dev] Copyright comments

John Arthorne to: equinox-dev
01/04/2008 12:17 PM

Sent by: equinox-dev-bounces <at> eclipse.org

Please respond to Equinox development mailing list <equinox-dev <at> eclipse.org>






I have noticed a few Java classes added lately with no copyright comments. This is just a friendly reminder to ensure you add copyright comments in new Java files. A common culprit is that you might not have the "generate comments" checkbox selected in the New Java Class wizard. Also, since we've just rolled over into a new year, make sure your "New Java files" template has the ${year} variable to ensure the correct year is inserted:

/*******************************************************************************
* Copyright (c) ${year} <your name or company> and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* <your name or company> - initial API and implementation
*******************************************************************************/



_______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev
Dave Syer | 4 Jan 22:28
Picon
Gravatar

Jetty and commons logging


I just had a terrible time getting a simple web app integration to work
because of a version mismatch between bundles. I assume that the folks here
have something to do with the bundles I was trying to use
(http://repo1.maven.org/eclipse), but please correct me if I am wrong. 

The issue is to do with the fact that the jetty plugin, in maven notation
org.mortbay:jetty, has a dependence on commons logging, in OSGi notation
org.apache.commons.logging;version=[1.0.0,2.0.0). But the only commons
logging bundles I could find do not specify a version (hence the default
version 0.0.0 does not match).

Looks like it should be a common problem? I had to hack the jetty plugin to
remove the version range.  Is there a better solution?  Can someone deploy a
new build of the jetty plugin without the restriction? (The opposite
solution, to change commons-logging, doesn't appeal because I'd far rather
use the jcl104-over-sl4j version, which also doesn't specify a version.)
--

-- 
View this message in context: http://www.nabble.com/Jetty-and-commons-logging-tp14625344p14625344.html
Sent from the Equinox - Dev mailing list archive at Nabble.com.

Jeff McAffer | 4 Jan 23:14
Picon

Re: Jetty and commons logging


Dave,

Try and get the stuff from Eclipse rather than Maven.  We have no idea what is in that maven repo nor do we have any control over the form of the dependencies that might be listed in the maven markup. Teh commons logging bundle that comes from Eclipse does have version numbers so I don't know what's up with ones you are seeing.

Jeff



Dave Syer <david_syer-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
Sent by: equinox-dev-bounces-j9T/66MeVpFAfugRpC6u6w@public.gmane.org

01/04/2008 04:28 PM

Please respond to
Equinox development mailing list <equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org>

To
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
cc
Subject
[equinox-dev] Jetty and commons logging






I just had a terrible time getting a simple web app integration to work
because of a version mismatch between bundles. I assume that the folks here
have something to do with the bundles I was trying to use
(http://repo1.maven.org/eclipse), but please correct me if I am wrong.

The issue is to do with the fact that the jetty plugin, in maven notation
org.mortbay:jetty, has a dependence on commons logging, in OSGi notation
org.apache.commons.logging;version=[1.0.0,2.0.0). But the only commons
logging bundles I could find do not specify a version (hence the default
version 0.0.0 does not match).

Looks like it should be a common problem? I had to hack the jetty plugin to
remove the version range.  Is there a better solution?  Can someone deploy a
new build of the jetty plugin without the restriction? (The opposite
solution, to change commons-logging, doesn't appeal because I'd far rather
use the jcl104-over-sl4j version, which also doesn't specify a version.)
--
View this message in context: http://www.nabble.com/Jetty-and-commons-logging-tp14625344p14625344.html
Sent from the Equinox - Dev mailing list archive at Nabble.com.

_______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Niclas Hedhman | 5 Jan 06:07
Favicon
Gravatar

Re: Jetty and commons logging

On Saturday 05 January 2008 05:28, Dave Syer wrote:

> The issue is to do with the fact that the jetty plugin, in maven notation
> org.mortbay:jetty, has a dependence on commons logging, in OSGi notation
> org.apache.commons.logging;version=[1.0.0,2.0.0). But the only commons
> logging bundles I could find do not specify a version (hence the default
> version 0.0.0 does not match).

If you use Pax Logging from OPS4J, it probably solves your problem. Pax Logger 
is explicitly created to handle legacy logging APIs and route those into a 
shared Log Service implementation backed by Log4J.

More info at http://www.ops4j.org/projects/pax/logging/

Cheers
--

-- 
Niclas Hedhman, Software Developer

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug
Dave Syer | 5 Jan 10:47
Picon
Gravatar

Re: Jetty and commons logging


Jeff McAffer wrote:
> 
> Try and get the stuff from Eclipse rather than Maven.
> 

Oops, my apologies.  Where is the Maven repo at Eclipse then?  That one at
repo1.maven.org was the nearest thing I could find.

Dave.
--

-- 
View this message in context: http://www.nabble.com/Jetty-and-commons-logging-tp14625344p14631427.html
Sent from the Equinox - Dev mailing list archive at Nabble.com.


Gmane