Results 1 to 1 of 1
- 11-26-2011, 08:13 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 28
- Rep Power
- 0
Eclipse, Shiro custom realm problem
Hi,
First time trying to use Shiro on GAE in a test application. Before, got Shiro work on with standard realm and the use of shiro.ini (built-in username/password in ini file).
I first read tutorials available on net, and to turn my working shiro-GAE to a realm-customized state, sub-classed:
and this class is in:Java Code:public class GaeRealm extends AuthorizingRealm
and the realm is addressed in shiro.ini as:Java Code:package server.infrastructure.shirogae;
Have no warning, no compile time error. On running I get:Java Code:[main] gaeRealm = server.infrastructure.shirogae.GaeRealm; authc.loginUrl = /authme/login.jsp authc.usernameParam = user authc.passwordParam = pass authc.successUrl = /resume/p1.jsp securityManager.realms = $gaeRealm
It says:Java Code:Nov 26, 2011 6:41:21 PM com.google.apphosting.utils.jetty.JettyLogger info INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Nov 26, 2011 6:41:24 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml INFO: Successfully processed D:\eclipse-mish\wkspc1\GAERealm\war\WEB-INF/appengine-web.xml Nov 26, 2011 6:41:24 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml INFO: Successfully processed D:\eclipse-mish\wkspc1\GAERealm\war\WEB-INF/web.xml Nov 26, 2011 6:41:45 PM org.apache.shiro.web.servlet.AbstractFilter init SEVERE: Unable to start Filter: [Unable to instantiate class [/server.infrastructure.shirogae.GaeRealm;] for object named 'gaeRealm'. Please ensure you've specified the fully qualified class name correctly.]. org.apache.shiro.config.ConfigurationException: Unable to instantiate class [/server.infrastructure.shirogae.GaeRealm;] for object named 'gaeRealm'. Please ensure you've specified the fully qualified class name correctly. at org.apache.shiro.config.ReflectionBuilder.createNewInstance(ReflectionBuilder.java:143) at org.apache.shiro.config.ReflectionBuilder.buildObjects(ReflectionBuilder.java:114) at org.apache.shiro.config.IniSecurityManagerFactory.buildInstances(IniSecurityManagerFactory.java:170) ...
but well, I have the fully qualified class name already there!Java Code:Please ensure you've specified the fully qualified class name correctly.
Could anyone please suggest an attack to this problem? I googled and googled and now even don't have any idea!
Similar Threads
-
eclipse shiro classpath problem...
By kievari in forum EclipseReplies: 4Last Post: 09-28-2011, 12:25 PM -
Eclipse plugin, custom errors
By X-ion in forum EclipseReplies: 3Last Post: 02-22-2010, 11:24 AM -
AutoCompile in Eclipse Custom Editor
By SSG_JJV in forum EclipseReplies: 2Last Post: 01-29-2009, 04:09 AM -
Tomcat Realm DES encrypted passwords
By Tokajac in forum Web FrameworksReplies: 4Last Post: 07-15-2008, 12:32 AM -
Generating Code Automatically Using Custom code Template In Eclipse
By JavaForums in forum EclipseReplies: 1Last Post: 04-26-2007, 03:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks