Skip to Content.
Sympa Menu

mace-opensaml-users - Re: opensaml in WebLogic 10.1

Subject: OpenSAML user discussion

List archive

Re: opensaml in WebLogic 10.1


Chronological Thread 
  • From: Jon Solanu <>
  • To:
  • Subject: Re: opensaml in WebLogic 10.1
  • Date: Mon, 18 May 2009 13:27:15 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ho9ZacEi4/8Iz5MbDjKYwgt13Q4fDWiFOCwAY8izT5cmN6zIWfcr++dKJ8UgyjbTrE E31wC/5ZwQiiBxrenjKs3CUO/WP3IMra+EAtL+SJembH6trP9vwl1zGCG5628kUB28oa mq76bdHCWBtxuvE3S7+LJK3aQQ0HzsWJbYGl4=

Looks like there's a different error the first time the code attempts to execute.  However commons-logging-api.jar and comments-logging.jar are in the classpath.



####<May 18, 2009 1:19:30 PM EDT> <Error> <HTTP> <SC2A6744> <AdminServer> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1242667170344> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@b44232 - appName: '_appsdir_TestWebApp_war', name: 'TestWebApp.war', context-path: '/TestWebApp'] Root cause of ServletException.
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
    at org.apache.xml.security.Init.<clinit>(Unknown Source)
    at org.opensaml.DefaultBootstrap.initializeXMLSecurity(DefaultBootstrap.java:103)
    at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:79)
    at test.SAML.<init>(SAML.java:72)
    at test.tst.processRequest(tst.java:52)
    at test.tst.doGet(tst.java:80)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)

On Mon, May 18, 2009 at 12:34 PM, Jon Solanu <> wrote:
I am attempting to use opensaml in a WebLogic 10MP1 project and am receiving the following message.  
I have been able to run a junit test case against the samez code with no problems but deploying to WebLogic gives the following message.
The xmlsec-1.4.2 jar file is in the WEB-INF/lib directory of this sample project and I added a property to the startup too explicitly define an endorced directory for the XML parsing libs.

Using opensaml 2.2.3.jar files.

java.lang.NoClassDefFoundError: org/apache/xml/security/Init
at org.opensaml.DefaultBootstrap.initializeXMLSecurity(DefaultBootstrap.java:103)
at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:79)
at test.SAML.(SAML.java:72)
at test.tst.processRequest(tst.java:52)
at test.tst.doGet(tst.java:79)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)




Archive powered by MHonArc 2.6.16.

Top of Page