Re: [jetty-users] why does jetty-plus bundle not import javax.security.* package?

2011-12-08 Thread Hugues Malphettes
Thanks a lot!
Let's discuss on the bug about the import of sun's implementation of
xml.bind.
Hugues

On Fri, Dec 9, 2011 at 3:14 PM, Guofeng Zhang  wrote:

>  This issue is for 8.0.4. 7.5.4 works well for my application.
>
> ** **
>
> The following share what I have done for our application.
>
> ** **
>
> I deployed Jetty 8.0.4 on Felix framework 4.0.2. I used to use JAAS for my
> web application. When the framework deploy jetty-plus, it said that:
>
> Caused by:
>
> java.lang.ClassNotFoundException: javax.security.auth.login.LoginException
> not found by org.eclipse.jetty.plus [31]
>
> at
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
> 
>
> ...
>
> at
> org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:748)
> 
>
> 
>
> at
> org.eclipse.jetty.osgi.boot.internal.webapp.JettyContextHandlerServic
>
> ...
>
> at java.lang.Thread.run(Thread.java:662)
>
> ** **
>
> so I added javax.security.* in Import-Package for jetty-plus. For my web
> bundle, I need to import com.sun.security.auth.login in Import-Package for
> com.sun.security.auth.login.ConfigFile. I use jetty-web.xml configure
> JAASLoginService.
>
>
>
> Then it works well. 
>
> ** **
>
> It also needs to add:
>
> com.sun.xml.internal.bind.v2,\   --- this line is for jetty-jaspi
>
> com.sun.security.auth.login
>
> in felix’s config.properties to make the system bundle export the required
> package.
>
> ** **
>
> Anyway, if jetty-plus works well, for other missing package, we could deal
> it with well.
>
> ** **
>
> By fixing bug 359329 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=359329),
> and add the following in maven-bundle-plugin of jetty-jaspi’s pom.xml,
> JASPI also works well on Felix.
>
> 
>
>   
>
> 
>
>   *
>
> 
>
> 
>
>   org.eclipse.jetty.security.jaspi,
>
>   org.eclipse.jetty.security.jaspi.modules
>
> 
>
>   
>
> 
>
> ** **
>
> I opened a bug 336140 for it.****
>
> ** **
>
> Thanks
>
> ** **
>
> Guofeng
>
> ** **
>
> ** **
>
> *From:* jetty-users-boun...@eclipse.org [mailto:
> jetty-users-boun...@eclipse.org] *On Behalf Of *Hugues Malphettes
> *Sent:* Friday, December 09, 2011 12:15 PM
> *To:* JETTY user mailing list
> *Subject:* Re: [jetty-users] why does jetty-plus bundle not import
> javax.security.* package?
>
> ** **
>
> ** **
>
> On Fri, Dec 9, 2011 at 11:55 AM, Guofeng Zhang 
> wrote:
>
> Hi,
>
>  
>
> In the jetty-plus’s pom file, there is the line in maven-bundle-plugin
> configuration:
>
>   !javax.sql.*;!javax.security.*;!...
>
> This means that it does not import packages under javax.security. But the
> classes like JAASLoginService in org.eclipse.jetty.plus.jaas and its
> subpackage import javax.security.auth and its sub-package.
>
>  
>
> So jetty-plus bundle does not work on OGSi platform when you use JAAS.
>
>  
>
> Right?
>
> Perfectly right. If I remember well, we had some issues with the packaging
> of javax.security in orbit. We added it to orbit later as the bundle
> javax.security.auth.message<http://www.eclipse.org/downloads/download.php?r=1&file=/tools/orbit/downloads/drops/S20111201180206/repository/plugins/javax.security.auth.message_1.0.0.v20110806.jar>
>
> We probably omitted to fix the code since then.
> Could you file a bug about it so we can fix it?
>
> Even better would be if you could give it a shot and let us know if it
> works for you: none of the projects I work on are using JAAS in OSGi I am
> afraid.
> Thanks,
> Hugues
>
>   
>
> Thanks
>
>  
>
> Guofeng
>
>  
>
>
> ___
> jetty-users mailing list
> jetty-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>  ** **
>
> ___
> jetty-users mailing list
> jetty-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>
___
jetty-users mailing list
jetty-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/jetty-users


Re: [jetty-users] why does jetty-plus bundle not import javax.security.* package?

2011-12-08 Thread Guofeng Zhang
This issue is for 8.0.4. 7.5.4 works well for my application.

The following share what I have done for our application.

I deployed Jetty 8.0.4 on Felix framework 4.0.2. I used to use JAAS for my web 
application. When the framework deploy jetty-plus, it said that:
Caused by:
java.lang.ClassNotFoundException: javax.security.auth.login.LoginException not 
found by org.eclipse.jetty.plus [31]
at 
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
...
at 
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:748)

at org.eclipse.jetty.osgi.boot.internal.webapp.JettyContextHandlerServic
...
at java.lang.Thread.run(Thread.java:662)

so I added javax.security.* in Import-Package for jetty-plus. For my web 
bundle, I need to import com.sun.security.auth.login in Import-Package for 
com.sun.security.auth.login.ConfigFile. I use jetty-web.xml configure 
JAASLoginService.

Then it works well.

It also needs to add:
com.sun.xml.internal.bind.v2,\   --- this line is for jetty-jaspi
com.sun.security.auth.login
in felix’s config.properties to make the system bundle export the required 
package.

Anyway, if jetty-plus works well, for other missing package, we could deal it 
with well.

By fixing bug 359329 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=359329), 
and add the following in maven-bundle-plugin of jetty-jaspi’s pom.xml, JASPI 
also works well on Felix.

  

  *


  org.eclipse.jetty.security.jaspi,
  org.eclipse.jetty.security.jaspi.modules

  


I opened a bug 336140 for it.

Thanks

Guofeng


From: jetty-users-boun...@eclipse.org [mailto:jetty-users-boun...@eclipse.org] 
On Behalf Of Hugues Malphettes
Sent: Friday, December 09, 2011 12:15 PM
To: JETTY user mailing list
Subject: Re: [jetty-users] why does jetty-plus bundle not import 
javax.security.* package?


On Fri, Dec 9, 2011 at 11:55 AM, Guofeng Zhang 
mailto:guof...@radvision.com>> wrote:
Hi,

In the jetty-plus’s pom file, there is the line in maven-bundle-plugin 
configuration:
  !javax.sql.*;!javax.security.*;!...
This means that it does not import packages under javax.security. But the 
classes like JAASLoginService in org.eclipse.jetty.plus.jaas and its subpackage 
import javax.security.auth and its sub-package.

So jetty-plus bundle does not work on OGSi platform when you use JAAS.

Right?
Perfectly right. If I remember well, we had some issues with the packaging of 
javax.security in orbit. We added it to orbit later as the bundle 
javax.security.auth.message<http://www.eclipse.org/downloads/download.php?r=1&file=/tools/orbit/downloads/drops/S20111201180206/repository/plugins/javax.security.auth.message_1.0.0.v20110806.jar>

We probably omitted to fix the code since then.
Could you file a bug about it so we can fix it?

Even better would be if you could give it a shot and let us know if it works 
for you: none of the projects I work on are using JAAS in OSGi I am afraid.
Thanks,
Hugues

Thanks

Guofeng


___
jetty-users mailing list
jetty-users@eclipse.org<mailto:jetty-users@eclipse.org>
https://dev.eclipse.org/mailman/listinfo/jetty-users

___
jetty-users mailing list
jetty-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/jetty-users


Re: [jetty-users] why does jetty-plus bundle not import javax.security.* package?

2011-12-08 Thread Hugues Malphettes
On Fri, Dec 9, 2011 at 11:55 AM, Guofeng Zhang wrote:

>  Hi,
>
> ** **
>
> In the jetty-plus’s pom file, there is the line in maven-bundle-plugin
> configuration:
>
>   !javax.sql.*;!javax.security.*;!...
>
> This means that it does not import packages under javax.security. But the
> classes like JAASLoginService in org.eclipse.jetty.plus.jaas and its
> subpackage import javax.security.auth and its sub-package.
>
> ** **
>
> So jetty-plus bundle does not work on OGSi platform when you use JAAS.
>
> ** **
>
> Right?
>
Perfectly right. If I remember well, we had some issues with the packaging
of javax.security in orbit. We added it to orbit later as the bundle
javax.security.auth.message

We probably omitted to fix the code since then.
Could you file a bug about it so we can fix it?

Even better would be if you could give it a shot and let us know if it
works for you: none of the projects I work on are using JAAS in OSGi I am
afraid.
Thanks,
Hugues

> 
>
> ** **
>
> Thanks
>
> ** **
>
> Guofeng
>
> ** **
>
> ___
> jetty-users mailing list
> jetty-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>
___
jetty-users mailing list
jetty-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/jetty-users


Re: [jetty-users] why does jetty-plus bundle not import javax.security.* package?

2011-12-08 Thread Guofeng Zhang
This is for 8.0.4. it is well defined in 7.5.4. I think OSGi support is not 
merged compleleted to 8.0 branch.

From: jetty-users-boun...@eclipse.org [mailto:jetty-users-boun...@eclipse.org] 
On Behalf Of Guofeng Zhang
Sent: Friday, December 09, 2011 11:55 AM
To: jetty-users
Subject: [jetty-users] why does jetty-plus bundle not import javax.security.* 
package?

Hi,

In the jetty-plus's pom file, there is the line in maven-bundle-plugin 
configuration:
  !javax.sql.*;!javax.security.*;!...
This means that it does not import packages under javax.security. But the 
classes like JAASLoginService in org.eclipse.jetty.plus.jaas and its subpackage 
import javax.security.auth and its sub-package.

So jetty-plus bundle does not work on OGSi platform when you use JAAS.

Right?

Thanks

Guofeng

___
jetty-users mailing list
jetty-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/jetty-users


[jetty-users] why does jetty-plus bundle not import javax.security.* package?

2011-12-08 Thread Guofeng Zhang
Hi,

In the jetty-plus's pom file, there is the line in maven-bundle-plugin 
configuration:
  !javax.sql.*;!javax.security.*;!...
This means that it does not import packages under javax.security. But the 
classes like JAASLoginService in org.eclipse.jetty.plus.jaas and its subpackage 
import javax.security.auth and its sub-package.

So jetty-plus bundle does not work on OGSi platform when you use JAAS.

Right?

Thanks

Guofeng

___
jetty-users mailing list
jetty-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/jetty-users