Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] openSaml and Eclipse

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] openSaml and Eclipse


Chronological Thread 
  • From: "Anil Saldhana" <>
  • To:
  • Subject: Re: [OpenSAML] openSaml and Eclipse
  • Date: Mon, 15 Sep 2008 13:17:36 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=t8e0qM3Dd/lYd04T6vwwzDzwl02gHUTetnBlXng2ZIMc9X1jqWYnH4bqtUwM+3sMLT eUbkiD9DIJ7F+HS0jb9MMEHMXjttmaB7REEX3wbipy6RrggPCcw9BGz7qQ5brH+H7zVP w3rhFfVxroAMuxbM8QnwK6UWTcaYDvfyBylzM=

My classpath file
-------------------

 <classpathentry kind="var" path="M2_REPO/opensaml/opensaml/2.1.0/opensaml-2.1.0.jar"/>
  <classpathentry kind="var" path="M2_REPO/junit/junit/4.4/junit-4.4.jar"/>
   <classpathentry kind="var" path="M2_REPO/opensaml/xmltooling/1.0.1/xmltooling-1.0.1.jar"/>
   <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.5.0/slf4j-api-1.5.0.jar"/>
   <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.5.0/slf4j-log4j12-1.5.0.jar"/>
        <classpathentry kind="var" path="M2_REPO/apache-log4j/log4j/1.2.14/log4j-1.2.14.jar"/>
        <classpathentry kind="var" path="M2_REPO/apache-xmlsec/xmlsec/1.3.0/xmlsec-1.3.0.jar"/>
        <classpathentry kind="var" path="M2_REPO/apache-logging/commons-logging-api/1.0.3/commons-logging-api-1.0.3.jar"/>
        <classpathentry kind="var" path="M2_REPO/apache-velocity/velocity/1.5/velocity-1.5.jar"/>
        <classpathentry kind="var" path="M2_REPO/apache-collections/commons-collections/3.1/commons-collections-3.1.jar"/>
        <classpathentry kind="var" path="M2_REPO/apache-lang/commons-lang/2.1/commons-lang-2.1.jar"/>
        <classpathentry kind="var" path="M2_REPO/opensaml/openws/1.1.0/openws-1.1.0.jar"/>
        <classpathentry kind="var" path="M2_REPO/joda-time/joda-time/1.5.2/joda-time-1.5.2.jar"/>



Basically add all the jars that are present in the opensaml 2.1 distribution (lib directory).


On Mon, Sep 15, 2008 at 1:12 PM, Bailo, John <> wrote:

 

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