Deploying java-idp-testbed

Philip Brusten philip.brusten at kuleuven.be
Tue Jun 9 05:07:28 EDT 2015


Hi,

I'm trying to deploy the java-idp-testbed project, but I'm bumping into 
several problems.
I followed the instruction from 
https://wiki.shibboleth.net/confluence/display/IDP30/DevelopmentEnvironmentSetup 

I have used all the trunk versions of the projects java-opensaml, 
java-identity-provider & java-idp-testbed.

1. Jetty.xml is pointing to the wrong location in de pom.xml of 
java-idp-testbed:
<jettyXml>
                         ${idp.home}/system/conf/jetty.xml
</jettyXml>

I changed the path to: 
/.autofs/homes/users/user/idp3/java-identity-provider/trunk/idp-distribution/src/main/resources/embedded/jetty-base/etc/jetty.xml

2. Next I'm getting java.lang.ClassNotFoundException: 
net.shibboleth.utilities.jetty9.DelegateToApplicationSslContextFactory, 
although the dependency is there in the POM file:

        <dependency>
<groupId>net.shibboleth.utilities.jetty9</groupId>
             <artifactId>jetty9-dta-ssl</artifactId>
             <version>1.0-SNAPSHOT</version>
             <scope>runtime</scope>
         </dependency>

I tried changing the scope to 'compile', but without success.
Since I don't need the SOAP-channel for initial testing I commented the 
httpsSOAPConnector and shibContextFactory blocks in jetty.xml

3. Now I'm able to start the Jetty Server using "mvn jetty:run"
[INFO] Configuring Jetty for project: idp-testbed
[INFO] webAppSourceDirectory not set. Trying src/main/webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = 
/.autofs/homes/users/user/idp3/java-idp-testbed/trunk/target/classes
[INFO] Configuring Jetty from xml configuration file = 
/.autofs/homes/users/user/idp3/java-identity-provider/trunk/idp-distribution/src/main/resources/embedded/jetty-base/etc/jetty.xml
org.eclipse.jetty.ssl.password : changeit
[INFO] Context path = /
[INFO] Tmp directory = 
/.autofs/homes/users/user/idp3/java-idp-testbed/trunk/target/tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides = src/main/resources/test/override-web.xml
[INFO] web.xml file = 
file:/.autofs/homes/users/user/idp3/java-idp-testbed/trunk/src/main/webapp/WEB-INF/web.xml 

[INFO] Webapp directory = 
/.autofs/homes/users/user/idp3/java-idp-testbed/trunk/src/main/webapp
[INFO] jetty-9.2.11.v20150529
[INFO] No Spring WebApplicationInitializer types detected on classpath
[INFO] Initializing Spring root WebApplicationContext
[INFO] Initializing Spring FrameworkServlet 'sp'
[INFO] Initializing Spring FrameworkServlet 'test'
[INFO] Started 
o.e.j.m.p.JettyWebAppContext at 76332405{/,file:/.autofs/homes/users/user/idp3/java-idp-testbed/trunk/src/main/webapp/,AVAILABLE}{file:/.autofs/homes/users/user/idp3/java-idp-testbed/trunk/src/main/webapp/} 

[INFO] Started ServerConnector at 448892f1{HTTP/1.1}{localhost:8080}
[INFO] Started ServerConnector at 67a38{SSL-http/1.1}{localhost:8443}
[INFO] Started @17432ms
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 10 seconds.

I can open the "Testbed Execution Menu" at http://localhost:8080
But any calls to http://localhost:8080/idp ends up in a HTTP/404.

Am I missing something obvious here?

I'm using IntelliJ as IDE, but I think that shouldn't matter since it's 
a maven project.

Thank you for the support!

Philip


More information about the dev mailing list