webloigc 使用 spring-loaded 报错,java.lang.SecurityException: 无法定位登录配置
2014-05-09 11:03
721 查看
spring-loaded是spring的一个开源项目,用于解决热部署的问题,类似于jrebel,但是jrebel是需要付费的,而spring-loaded则不需要,背景就先说到这,现在回归正传。今天按照官方指导文档,在weblogic的启动脚本(starWeblogic.bat)的SAVE_JAVA_OPTIONS中增加如下配置:
天下无免费的午餐,使用开源工具的道路总是坎坷的,启动的时候就报错了,报错如下:
-javaagent:D:\devtools\spring_loaded\springloaded-1.2.0.RELEASE.jar -noverify
天下无免费的午餐,使用开源工具的道路总是坎坷的,启动的时候就报错了,报错如下:
java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springsource.loaded.ri.ReflectiveInterceptor.jlrConstructorNewInstance(ReflectiveInterceptor.java:1002) at org.springsource.loaded.ri.ReflectiveInterceptor.jlClassNewInstance(ReflectiveInterceptor.java:989) at weblogic.security.service.PrincipalAuthenticator.loadConfFileForJVM(PrincipalAuthenticator.java:210) at weblogic.security.service.PrincipalAuthenticator.initialize(PrincipalAuthenticator.java:134) at weblogic.security.service.PrincipalAuthenticator.<init>(PrincipalAuthenticator.java:320) at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doATN(CommonSecurityServiceManagerDelegateImpl.java:720) at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:504) at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:840) at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealms(CommonSecurityServiceManagerDelegateImpl.java:869) at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1028) at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875) at weblogic.security.SecurityService.start(SecurityService.java:141) at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: java.lang.SecurityException: 无法定位登录配置 at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:93) ... 19 more Caused by: java.io.IOException: 无法定位登录配置 at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250) at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:91) ... 19 more由于spring-loaded相关资料比较少,找了很久都没有找到对应的解决方案,笔者就死马当活马医,既然你报错说没有找到配置,我就给你一个吧,不过只给你空的,在配置中再加一点东西,修改成这样。
-javaagent:D:\devtools\spring_loaded\springloaded-1.2.0.RELEASE.jar -noverify-Djava.security.auth.login.config=D:/devtools/spring_loaded/file.conf这个file.conf是一个空的文件,奇迹发生了,居然好了,具体原因还没细找,先在这里分享一下。
相关文章推荐
- Will not attempt to authenticate using SASL (java.lang.SecurityException: 无法定位登录配置)
- Eclipse下调试HBase程序报“Will not attempt to authenticate using SASL (java.lang.SecurityException : 无法定位登”
- oracle10g登录em后,提示“java.lang.Exception: Exception in sending Request :: null” 错误,导致EM无法使用
- spring事务配置Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.SessionFactoryImplemento
- Spring异常解决 java.lang.NullPointerException,配置spring管理hibernate时出错
- eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: org.springframework.web.c
- java.lang.SecurityException: No permission to write APN settings问题的定位小结
- spring+hibernate工程使用JNDI连接部署至websphere,报错Caused by: java.lang.ClassNotFoundException: oracle.sql.BLO
- java.lang.SecurityException: Filter of class org.apache.catalina.ssi.SSIFilter is privileged and cannot be loaded by this web application
- 使用spring+junit4时_java.lang.ExceptionInInitializerError
- spring-data-redis用配置类连接时,抛异常Cannot get Jedis connection; nested exception is java.lang.NullPointerE
- 我遇到的bug_使用spring+junit4时_java.lang.ExceptionInInitializerError
- eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: org.springframework.web.c
- 【spring-security】nested exception is java.lang.ClassNotFoundException: org.springframework.security.
- 使用spring+junit4时抛java.lang.ExceptionInInitializerError
- Android 6.0 使用蓝牙BLE 时 报错:java.lang.SecurityException:Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOC
- spring-data-redis用配置类连接时,抛异常Cannot get Jedis connection; nested exception is java.lang.NullPointerEx
- 在maven项目中使用apache cxf中遇到异常 java.lang.ClassCastException: org.springframework.web.filter.CharacterEncodingFilter cannot be cast to javax.servlet.Filter
- [Spring实战系列] - No.12 Java配置 SpringMVC + Spring Security + Hibernate 多用户登录
- Spring 使用注解注入,调用类实例出现 java.lang.NullPointException 问题的解决方法