TongWeb启动异常:java.lang.reflect.InvocationTargetException

启动TongWeb时报了这样的异常:

[2012-05-10 15:52:59] [INFO] [core] [Starting TongWeb Server...]
[2012-05-10 15:53:00] [INFO] [security] [Security Manager is disabled.]
[2012-05-10 15:53:03] [INFO] [cluster] [Cluster is disabled.]
[2012-05-10 15:53:03] [WARNING] [System.out] [java.lang.reflect.InvocationTargetException]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at java.lang.reflect.Method.invoke(Method.java:597)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at com.tongweb.server.PELaunch.main(PELaunch.java:394)]
[2012-05-10 15:53:03] [WARNING] [System.out] [Caused by: java.lang.NoClassDefFoundError: sun/security/pkcs11/SunPKCS11]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at java.lang.Class.forName0(Native Method)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at java.lang.Class.forName(Class.java:169)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at com.tongweb.pluggable.PluggableFeatureFactoryBaseImpl.invoke(PluggableFeatureFactoryBaseImpl.java:84)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at $Proxy0.getSecuritySupport(Unknown Source)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at com.tongweb.security.SecurityUtil.getSecuritySupport(SecurityUtil.java:362)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at com.tongweb.security.SSLUtils.<clinit>(SSLUtils.java:96)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at com.tongweb.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:97)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at com.tongweb.server.ApplicationServer.onInitialization(ApplicationServer.java:232)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at com.tongweb.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:105)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at com.tongweb.server.PEMain.run(PEMain.java:385)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at com.tongweb.server.PEMain.main(PEMain.java:314)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  ... 5 more]
[2012-05-10 15:53:03] [WARNING] [System.out] [Caused by: java.lang.ClassNotFoundException: sun.security.pkcs11.SunPKCS11]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at java.security.AccessController.doPrivileged(Native Method)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at java.lang.ClassLoader.loadClass(ClassLoader.java:307)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at com.tongweb.api.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:143)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  at java.lang.ClassLoader.loadClass(ClassLoader.java:248)]
[2012-05-10 15:53:03] [WARNING] [System.out] [  ... 16 more]
[2012-05-10 15:53:03] [INFO] [core] [Stopping tongweb application server...]


    各种服务器都会报这样的异常,原因也是众说纷纭,因服务器不同而异,后来发现启动Tongweb时的JDK没有配对,所以下次再报这样的异常时,检查一下你的启动程序的JDK的路径是否指定正确。


你可能感兴趣的:(jdk,manager,Security,服务器,application)