Hi Carsten,
Thanks for suggesting me the right jar. After that I needed some more jars
as
    1. commons-httpclient-3.1.jar
    2. openxri-client-1.0.1.jar
    3. openxri-syntax-1.0.1.jar
    4. xercesImpl-2.9.1.jar
    5. htmlparser.jar
    6. xml-security-1.0.4.jar
    7. xalan-2.6.0.jar

Now it is throwing me

org/apache/xpath/compiler/FuncLoader (500)

The requested URL /jcrdev/openid resulted in an error in
org.apache.sling.samples.jcrdev.servlets.SampleConsumerServlet.
Exception:

java.lang.NoClassDefFoundError: org/apache/xpath/compiler/FuncLoader
        at org.openxri.xml.XRD.(XRD.java:108)
        at org.openid4java.discovery.Discovery.(Discovery.java:58)
        at org.openid4java.consumer.ConsumerManager.(ConsumerManager.java:51)
        at 
org.apache.sling.samples.jcrdev.servlets.SampleConsumerServlet.authRequest(SampleConsumerServlet.java:93)
        at 
org.apache.sling.samples.jcrdev.servlets.SampleConsumerServlet.doPost(SampleConsumerServlet.java:67)
        at 
org.apache.sling.samples.jcrdev.servlets.SampleConsumerServlet.doGet(SampleConsumerServlet.java:59)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at 
org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:462)
        at 
org.apache.sling.engine.impl.SlingMainServlet.processRequest(SlingMainServlet.java:419)
        at 
org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:48)
        at 
org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:54)
        at 
org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:59)
        at 
org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:52)
        at 
org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:273)
        at 
org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:171)
        at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
        at 
org.ops4j.pax.web.service.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:51)
        at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
        at 
org.ops4j.pax.web.service.internal.HttpServiceContext.handle(HttpServiceContext.java:87)
        at 
org.ops4j.pax.web.service.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:63)
        at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
        at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at 
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
        at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

But the class already stays in xalan-2.6.0.jar. If you have any idea please
share with me.

Regards,
Tanmay


On Thu, Jun 4, 2009 at 12:16 PM, Carsten Ziegeler <cziege...@apache.org>wrote:

> Tanmay Barman wrote:
> > Hi all,
> > I was trying to integrate openid in my project that is based on sling 3.
> I
> > was trying with openid4java api. But I am having the following error
> >
> > java.lang.NoClassDefFoundError:
> > org/apache/commons/httpclient/methods/RequestEntity
> Hi,
>
> the class in question has been added to httpclient in version 3.0, so
> you need to add commons httpclient 3.1 or similar to your bundles.
>
> Regards
> Carsten
>
> >       at
> org.apache.sling.samples.jcrdev.servlets.SampleConsumerServlet.authRequest(SampleConsumerServlet.java:93)
> >       at
> org.apache.sling.samples.jcrdev.servlets.SampleConsumerServlet.doPost(SampleConsumerServlet.java:67)
> >       at
> org.apache.sling.samples.jcrdev.servlets.SampleConsumerServlet.doGet(SampleConsumerServlet.java:59)
> >       at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> >       at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> >       at
> org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:462)
> >       at
> org.apache.sling.engine.impl.SlingMainServlet.processRequest(SlingMainServlet.java:419)
> >       at
> org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:48)
> >       at
> org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:54)
> >       at
> org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:59)
> >       at
> org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:52)
> >       at
> org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:273)
> >       at
> org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:171)
> >       at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> >       at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> >       at
> org.ops4j.pax.web.service.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:51)
> >       at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> >       at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
> >       at
> org.ops4j.pax.web.service.internal.HttpServiceContext.handle(HttpServiceContext.java:87)
> >       at
> org.ops4j.pax.web.service.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:63)
> >       at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> >       at org.mortbay.jetty.Server.handle(Server.java:324)
> >       at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> >       at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
> >       at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
> >       at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> >       at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> >       at
> org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
> >       at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
> >
> > I have also included commons-httpclient-2.0.2.jar in my felix
> > environment. If anyone has some idea about that problem please let me
> > know.
> >
> >
> > Regards,
> >
> > Tanmay
> >
>
>
> --
> Carsten Ziegeler
> cziege...@apache.org
>

Reply via email to