Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Issues with JDBCLoginModule

Hi all,

I am re-sending this mail, I haven't received any comments yet.  I am trying to get JDBCLoginModule to work through
JAASLoginService.  I have checked to make sure that all related jar files are under WEB-INF/lib of the web application
that this issue is happening in.  I am using Jetty in an embedded mode, I am just wondering if there are class loading
attributes that must be set when the server object is created in order to make this to work.

Thanks,

Ike




From:        Ike Ikonne/Dallas/IBM@IBMUS
To:        jetty-users@xxxxxxxxxxx
Date:        03/27/2011 12:26 AM
Subject:        [jetty-users] Issues with JDBCLoginModule
Sent by:        jetty-users-bounces@xxxxxxxxxxx




Hi all,

I am having an issue trying to get JDBCLoginModule to load the jdbc driver from embedded Jetty; here is my jaas configuration.

When I try the same thing just using regular POJO program, I am able to connect to same database.  Is there any further configuration

to be done when using JDBCLoginModule from Jetty?


     org.eclipse.jetty.plus.jaas.spi.JDBCLoginModule sufficient

     debug="true"

     dbUrl="jdbc:derby://localhost:1527/usersDB"

     dbUserName="admin"

       dbPassword="admin"

     dbDriver="org.apache.derby.jdbc.ClientDriver"

     userTable="USERS"

     userField="userName"

     credentialField="credential"

     userRoleTable="USERROLES"

     userRoleUserField="userName"

     userRoleRoleField="userRole";



javax.security.auth.login.LoginException: java.sql.SQLException: No suitable driver found for jdbc:derby://localhost:1527/usersDB

       at org.eclipse.jetty.plus.jaas.spi.AbstractLoginModule.login(AbstractLoginModule.java:249)

       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

       at java.lang.reflect.Method.invoke(Unknown Source)

       at javax.security.auth.login.LoginContext.invoke(Unknown Source)

       at javax.security.auth.login.LoginContext.access$000(Unknown Source)

       at javax.security.auth.login.LoginContext$4.run(Unknown Source)

       at java.security.AccessController.doPrivileged(Native Method)

       at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)

       at javax.security.auth.login.LoginContext.login(Unknown Source)

       at org.eclipse.jetty.plus.jaas.JAASLoginService.login(JAASLoginService.java:203)

       at org.eclipse.jetty.security.authentication.FormAuthenticator.validateRequest(FormAuthenticator.java:174)

       at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:417)

       at org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:182)

       at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:933)

       at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:362)

       at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867)

       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

       at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245)

       at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)

       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)

       at org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:159)

       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)

       at org.eclipse.jetty.server.Server.handle(Server.java:334)

       at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)

       at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007)

       at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747)

       at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209)

       at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)

       at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)

       at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)

       at java.lang.Thread.run(Unknown Source)




_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top