我的同事和我在相同的环境中:
启动时我的服务器没有问题;但是,他的服务器有以下错误:
SEVERE: Unable to load property source[com.springsource.tcserver.security.PropertyDecoder].
java.security.NoSuchAlgorithmException: PBEWithMD5AndDES SecretKeyFactory not available
at javax.crypto.SecretKeyFactory.<init>(DashoA13*..)
at javax.crypto.SecretKeyFactory.getInstance(DashoA13*..)
at com.springsource.tcserver.security.KeyDecoder.initCiphers(KeyDecoder.java:68)
at com.springsource.tcserver.security.KeyDecoder.<init>(KeyDecoder.java:48)
at com.springsource.tcserver.security.PropertyDecoder.<init>(PropertyDecoder.java:145)
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 java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.tomcat.util.digester.Digester.<clinit>(Digester.java:100)
at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:303)
at org.apache.catalina.startup.Catalina.load(Catalina.java:546)
at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
知道可能导致这种情况的原因吗?
答案 0 :(得分:0)
我不确定导致这种情况的原因,但升级到Java 7 Update 17
修复了它。