I am trying to install and run Jetty 7 for the Shibboleth Identity Provider on my server, but i get this error:
[iam@web333 jetty]$ java -jar start.jar jetty.port=27335
2013-06-29 12:01:47.490:WARN:oejx.XmlConfiguration:Config error at <Call name="addConnector">| <Arg>| <New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">| <Arg>| <New class="net.shibboleth.utilities.jetty7.DelegateToApplicationSslContextFactory">| <Set name="keyStore">/home/iam/opt/shibboleth-idp/credentials/idp.jks</Set>| <Set name="keyStorePassword">*****</Set>| </New>| </Arg>| <Set name="port">27335</Set>| <Set name="maxIdleTime">30000</Set>| </New>| </Arg>| </Call> java.lang.ClassNotFoundException: net.shibboleth.utilities.jetty7.DelegateToApplicationSslContextFactory
Exception in thread "main" java.lang.ClassNotFoundException: net.shibboleth.utilities.jetty7.DelegateToApplicationSslContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at org.eclipse.jetty.util.Loader.loadClass(Loader.java:100)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.nodeClass(XmlConfiguration.java:354)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:754)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1126)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1029)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:777)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1126)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1029)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:722)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:388)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:343)
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:296)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1247)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1182)
I followed this guide: https://wiki.shibboleth.net/confluence/display/SHIB2/IdPJetty7Prepare and i modify the ports 8080 and 8443 to my port 27335 in the jetty.xml and jetty-ssl.xml config files.
And also in shib-delegatessl.xml i have modified the port 8443 to 27335.
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<Call name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
<Arg>
<New class="net.shibboleth.utilities.jetty7.DelegateToApplicationSslContextFactory">
<Set name="keyStore">/home/iam/opt/shibboleth-idp/credentials/idp.jks</Set>
<Set name="keyStorePassword">********</Set>
</New>
</Arg>
<Set name="port">27335</Set>
<Set name="maxIdleTime">30000</Set>
</New>
</Arg>
</Call>
</Configure>
How do I fix this error? and how can i test Jetty if it works? Thank you very much.
Best regards!
The jar containing the net.shibboleth.utilities.jetty7.DelegateToApplicationSslContextFactory
class needs to be in the server classpath.
Do this:
${jetty.home}/lib/ext
directory.Test that they are present on the server classpath by executing the following command.
$ java -jar start.jar --list-config
Start Jetty like you did before.