Hi and thank you Richard for quick answer!

I'm not sure how I should get classes, and so I have tried several
ways. Here is a little more information:

At first I expected that httpbundle gets SSL classes from the class
path, and because

com/sun/net/ssl/internal/ssl/Provider.class

is in jsse.jar

I thought it would be enough to insert jsse.jar to the class path. It
seems like it doesn't work that way.. Well, now I edited Felix's
config file and inserted line

 com.sun.net.ssl.internal.ssl.Provider; \

under org.osgi.framework.system.packages. After this the mentioned
error message disappears, but I get another one, where
javax/net/ssl/SSLPeerUnverifiedException can't be found.

ERROR: Error starting
file:../signbundles/bundle/org.apache.felix.http.jetty-0.9.0-SNAPSHOT.jar
(org.osgi.framework.BundleException: Activator start error.)
java.lang.NoClassDefFoundError: javax/net/ssl/SSLPeerUnverifiedException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at 
org.apache.felix.http.jetty.Activator.initializeHTTPS(Activator.java:236)
        at 
org.apache.felix.http.jetty.Activator.initializeJetty(Activator.java:169)
        at org.apache.felix.http.jetty.Activator.start(Activator.java:115)
        at 
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
        at org.apache.felix.framework.Felix._startBundle(Felix.java:1536)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
        at 
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
        at 
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
        at java.lang.Thread.run(Thread.java:619)

This  javax/net/ssl/SSLPeerUnverifiedException.class is also in
jsse.jar. When I add line

javax.net.ssl.SSLPeerUnverifiedException; \

to the Felix's configuration file, errors do not disappear like when I
added mentioned com.sun.net.ssl.internal.ssl.Provider; \ line..

Does the mentioned third way mean that I should set up jetty's pom.xml
to import SLL classes (in fact it seems that they are already imported
dynamically), but I'm not sure about exports..

Any help is welcome!

Best regards,

-Teemu Väisänen



2007/10/30, Richard S. Hall <[EMAIL PROTECTED]>:
> It looks like you are expecting to get
>
> com/sun/net/ssl/internal/ssl/Provider
>
> from the class path, but it is not on the class path or you have not
> properly exported it. Where do you expect your bundles to get this class?
>
> If from the class path, then you need to add it to the
> org.osgi.framework.system.packages in Felix' config file.
>
> If you expect to get it from another bundle, then you have to add it to
> that bundle's exports and make sure that client bundles import it.
>
> -> richard
>
> Väisänen Teemu wrote:
> > Hello all.
> >
> > I have a problem when enabling https in Jetty. My config file of
> > Sfelix can be found from
> > http://www.ee.oulu.fi/~tuv/config.properties.sfelix.txt
> >
> > When running Felix with similar properties, outputs (error) are similar.
> >
> > jsse.jar is in classpath.
> >
> > Thank you for any help!
> >
> > Best regards
> > Teemu Väisänen
> >
> >
> > Welcome to Felix.
> > =================
> >
> > DEBUG: WIRE: 1.0 -> org.ungoverned.osgi.service.shell -> 1.0
> > DEBUG: WIRE: 1.0 -> org.osgi.service.startlevel -> 0
> > DEBUG: WIRE: 1.0 -> org.apache.felix.shell -> 1.0
> > DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0
> > DEBUG: WIRE: 1.0 -> org.osgi.service.packageadmin -> 0
> > DEBUG: WIRE: 2.0 -> org.apache.felix.shell -> 1.0
> > DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0
> > DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0
> > DEBUG: WIRE: 3.0 -> org.osgi.service.obr -> 3.0
> > -> DEBUG: WIRE: 3.0 -> org.apache.felix.shell -> 1.0
> > DEBUG: WIRE: 5.0 -> org.apache.felix.shell.gui -> 5.0
> > DEBUG: WIRE: 5.0 -> javax.swing -> 0
> > DEBUG: WIRE: 5.0 -> org.osgi.framework -> 0
> > DEBUG: WIRE: 5.0 -> javax.swing.event -> 0
> > DEBUG: WIRE: 6.0 -> javax.swing.border -> 0
> > DEBUG: WIRE: 6.0 -> org.apache.felix.shell.gui -> 5.0
> > DEBUG: WIRE: 6.0 -> org.apache.felix.shell -> 1.0
> > DEBUG: WIRE: 6.0 -> javax.swing.tree -> 0
> > DEBUG: WIRE: 6.0 -> javax.swing -> 0
> > DEBUG: WIRE: 6.0 -> javax.swing.table -> 0
> > DEBUG: WIRE: 6.0 -> org.osgi.framework -> 0
> > DEBUG: WIRE: 6.0 -> org.osgi.service.packageadmin -> 0
> > DEBUG: WIRE: 6.0 -> javax.swing.event -> 0
> > DEBUG: WIRE: 6.0 -> org.osgi.service.obr -> 3.0
> > DEBUG: WIRE: 7.0 -> javax.servlet -> 4.0
> > DEBUG: WIRE: 7.0 -> org.osgi.framework -> 0
> > DEBUG: WIRE: 7.0 -> org.osgi.service.http -> 7.0
> > DEBUG: WIRE: 7.0 -> javax.servlet.http -> 4.0
> > DEBUG: WIRE: 7.0 -> javax.net.ssl -> 0
> > ERROR: Error starting
> > file:../signbundles/bundle/org.apache.felix.http.jetty-0.9.0-SNAPSHOT.jar
> > (org.osgi.framework.BundleException: Activator start error.)
> > java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider
> >         at java.lang.Class.forName0(Native Method)
> >         at java.lang.Class.forName(Class.java:169)
> >         at 
> > org.apache.felix.http.jetty.Activator.initializeHTTPS(Activator.java:236)
> >         at 
> > org.apache.felix.http.jetty.Activator.initializeJetty(Activator.java:169)
> >         at org.apache.felix.http.jetty.Activator.start(Activator.java:115)
> >         at 
> > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
> >         at org.apache.felix.framework.Felix._startBundle(Felix.java:1536)
> >         at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
> >         at 
> > org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
> >         at 
> > org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
> >         at java.lang.Thread.run(Thread.java:619)
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to