Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] HttpServletRequestAdapter

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] HttpServletRequestAdapter


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: [OpenSAML] HttpServletRequestAdapter
  • Date: Thu, 18 Sep 2008 19:49:00 +0200
  • Openpgp: id=146B2514
  • Organization: SWITCH

I would recommend that you go read up on SLF4J. The appropriate logging
framework you need to use is going to depend on your environment. I can
tell you the IdP uses logback.

Bailo, John wrote:
> I've been struggling with HttpServletRequestAdapter for the past week.
>
> Is there some attribute I'm missing in my form? I've taken out all the
> INPUT elements and it still throws an exception. My jsp form is:
>
> <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
> pageEncoding="ISO-8859-1"%>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd";>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
> <title>Insert title here</title>
> </head>
> <body>
> <form name="edit" action="sevlet3" method="post">
> <input type="submit" >
> </form>
> </body>
> </html>
>
> The sevlet3 doGet/doPost method consists of two lines:
>
> messageContext = new BasicSAMLMessageContext();
>
> messageContext.setInboundMessageTransport(
> new HttpServletRequestAdapter(request));
>
>
> The exception thrown from the second line is:
>
> 10:25:03,200 ERROR [[sevlet3]] Servlet.service() for servlet sevlet3
> threw exception
> java.lang.NoSuchFieldError: name
> at org.slf4j.impl.SimpleLogger.<init>(SimpleLogger.java:83)
> at
> org.slf4j.impl.SimpleLoggerFactory.getLogger(SimpleLoggerFactory.java:67
> )
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:103)
> at
> org.opensaml.ws.transport.http.HttpServletRequestAdapter.<init>(HttpServ
> letRequestAdapter.java:40)
> at com.bowne.servlet3.sevlet3.doGet(sevlet3.java:44)
> at com.bowne.servlet3.sevlet3.doPost(sevlet3.java:55)
> 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.
>

--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
,
http://www.switch.ch




Archive powered by MHonArc 2.6.16.

Top of Page