Hello all, I believe I made a topic awhile back, that wasn't fully answered, nor can I find it, so I'm posting again.
According to "Configuration" http://shiro.apache.org/configuration.html SecurityManager from an INI resource We can create the SecurityManager instance from an INI resource path. Resources can be acquired from the file system, classpath, or URLs when prefixed with file:, classpath:, or url: respectively. This example uses a Factory to ingest a shiro.ini file from the root of the classpath and return the SecurityManager instance: import org.apache.shiro.SecurityUtils; import org.apache.shiro.util.Factory; import org.apache.shiro.mgt.SecurityManager; import org.apache.shiro.config.IniSecurityManagerFactory; ... Factory<SecurityManager> factory = new IniSecurityManagerFactory("classpath:shiro.ini"); SecurityManager securityManager = factory.getInstance(); SecurityUtils.setSecurityManager(securityManager); I'm curious where does my ini file need to be in my "JavaFX Application" which should be exactly the same as a normal one. I understand that in a web application it goes witrhin the WEB-INF or w/e folder, but what about here? I tried the default package, I tried my package and doing both above and "classpath:pkgname.shiro.ini" I tried the WEB-INF, also and nothing... Anyone have any idea where I can put this so I can read it properly? Ruight now I am using the absolute path to my ini file... Thanks all :) -- View this message in context: http://shiro-user.582556.n2.nabble.com/Creating-securitymanager-from-ini-cannot-read-file-in-classpath-tp7580331.html Sent from the Shiro User mailing list archive at Nabble.com.
