Hello,

I have a file Shiro.ini:

[main]
ds = org.firebirdsql.jdbc.FBDataSource
ds.serverName = localhost
ds.user = SYSDBA
ds.password = masterkey
ds.databaseName = WebSKS
jdbcRealm = org.apache.shiro.realm.jdbc.JdbcRealm
jdbcRealm.dataSource = $ds
jdbcRealm.permissionsLookupEnabled = true 
authc = org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter
authc.loginUrl = /login/
 
[urls]
/login/ = authc 
 
[urls]
/ login / = authc

This results in an error such content:

Exception in thread "main" org.apache.shiro.config.ConfigurationException:
Unable to instantiate class [org.firebirdsql.jdbc.FBDataSource] for object
named 'ds'.  Please ensure you've specified the fully qualified class name
correctly.
        at
org.apache.shiro.config.ReflectionBuilder.createNewInstance(ReflectionBuilder.java:151)
        at
org.apache.shiro.config.ReflectionBuilder.buildObjects(ReflectionBuilder.java:119)
        at
org.apache.shiro.config.IniSecurityManagerFactory.buildInstances(IniSecurityManagerFactory.java:161)
        at
org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:124)
        at
org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager(IniSecurityManagerFactory.java:102)
        at
org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:88)
        at
org.apache.shiro.config.IniSecurityManagerFactory.createInstance(IniSecurityManagerFactory.java:46)
        at
org.apache.shiro.config.IniFactorySupport.createInstance(IniFactorySupport.java:123)
        at
org.apache.shiro.util.AbstractFactory.getInstance(AbstractFactory.java:47)
        at pl.cba.lukaszbaczek.ShiroTutorial.App.main(App.java:28)
Caused by: org.apache.shiro.util.UnknownClassException: Unable to load class
named [org.firebirdsql.jdbc.FBDataSource] from the thread context, current,
or system/application ClassLoaders.  All heuristics have been exhausted. 
Class could not be found.
        at org.apache.shiro.util.ClassUtils.forName(ClassUtils.java:148)
        at org.apache.shiro.util.ClassUtils.newInstance(ClassUtils.java:164)
        at
org.apache.shiro.config.ReflectionBuilder.createNewInstance(ReflectionBuilder.java:144)
        ... 9 more

"Please ensure you've specified the fully qualified class name correctly.."

The text of the above error message is.

I checked and the file FBDataSource.class is in the specified location.




--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Firebird-GWT-Dispatch-tp7580404p7580410.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to