Skip to Content.
Sympa Menu

mace-opensaml-users - openSaml and Eclipse

Subject: OpenSAML user discussion

List archive

openSaml and Eclipse


Chronological Thread 
  • From: "Bailo, John" <>
  • To: <>
  • Subject: openSaml and Eclipse
  • Date: Mon, 15 Sep 2008 14:12:10 -0400

Title: Welcome to the list

 

I’m having some trouble getting my openSAML2 build environment to work in Eclipse.

 

I’ve added the opensaml-2.1.0 jar as an External Jar to my project.

 

I’ve also added all the jars inside the \lib folder and I checked each jar in my Project/Java Build Path/Order and Export tab

 

I am using two lines of code so far in the POST method of a servlet:

 

        messageContext = new BasicSAMLMessageContext();

         

       

        messageContext.setInboundMessageTransport(

                  new HttpServletRequestAdapter(request));

 

 

However, after I submit the POST from a jsp form, I receive this error, as if the secondary jar cannot be found:

 

java.lang.NoClassDefFoundError: org/opensaml/ws/transport/InTransport
        java.lang.Class.getDeclaredConstructors0(Native Method)
        java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
        java.lang.Class.getConstructor0(Class.java:2671)
        java.lang.Class.newInstance0(Class.java:321)
        java.lang.Class.newInstance(Class.java:303)
        org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
        org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
        java.lang.Thread.run(Thread.java:595)

 

CONFIDENTIALITY NOTICE: The information in this Internet email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. 




Archive powered by MHonArc 2.6.16.

Top of Page