[jboss-user] [Security & JAAS/JBoss] - Migration from tomcat 6.0.14 to JBoss 4.2.2

manoz82 do-not-reply at jboss.com
Thu Apr 10 10:05:16 EDT 2008


Hi All 

In my company we are currently developing a web application using apache tomcat 6.0.14 web server. 

We are considering a migration to JBoss AS 4.2.2.

We have a user database and a security realm defined in application.war/META-INF/context.xml :


  | <Realm  className="org.apache.catalina.realm.DataSourceRealm" debug="99"
  |           dataSourceName="jdbc/dbserver"
  |           localDataSource="true"
  |           userTable="user"
  |           digest="SHA-512"
  |           userNameCol="user_name"
  |           userCredCol="password"
  |           userRoleTable="user_role"
  |           roleNameCol="role"/>
  | 

Is there a way to use this configuration on JBoss ?

I have already read that the context.xml should be placed in the WEB-INF folder instead, but that doesn't seem to help

when I try logging in I get the following exception:


  | 
  | Exception performing authentication
  | javax.naming.NamingException: No naming context bound to this class loader
  | 	at org.apache.naming.ContextBindings.getClassLoader(ContextBindings.java:326)
  | 	at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:395)
  | 	at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:283)
  | 	at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
  | 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
  | 	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
  | 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  | 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  | 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  | 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
  | 	at java.lang.Thread.run(Unknown Source)
  | 
  | 

Any ideas?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143190#4143190

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143190



More information about the jboss-user mailing list