Sample simple-openid works on localhost, fails on server

59 views
Skip to first unread message

Nigel V Thomas

unread,
Feb 17, 2017, 12:07:59 PM2/17/17
to OpenID4Java
Hi all,

Not sure if this forum is still active, but worth a shot.

I am working on integrating my app with an Openid Authentication 2.0 server, and came across a strange problem with current version (1.0.0).

When I run the example locally through Jetty, I find that the example fails with class cast exception on the consumer_returnurl.jsp, after logging in as a user. 
The error is :

[Ljava.lang.Object; cannot be cast to [Lorg.apache.jasper.compiler.JavacErrorDetail;

RequestURI=/simple-openid/consumer_returnurl.jsp

Caused by:

java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lorg.apache.jasper.compiler.JavacErrorDetail;
	at org.apache.jasper.compiler.JDTJavaCompiler.compile(JDTJavaCompiler.java:466)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:360)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:581)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:459)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:231)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:629)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:453)
	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
	at org.mortbay.jetty.Server.handle(Server.java:303)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:452)
	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:721)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:509)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:349)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:320)
	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)



However, when I run the same code on a server, I get a different error, failing on the same page but with the error message - Failed to login!
The Identifier verified = verification.getVerifiedId(); has returned null however, I am not sure why, any ideas?

I have got this code working on localhost on Tomcat, and it runs through the login and auth okay.

Best wishes,
Nigel

 
Reply all
Reply to author
Forward
0 new messages