Используем JCP в связке с WebSphere 7.0
При выполнении:
Код:
keyStore.load(null, null);
возникает следующая ошибка:
[2/11/13 15:18:04:750 GMT+04:00] 0000001e JCPLogger E ru.CryptoPro.JCP.tools.SelfTester checkClass Corrupted: ru.CryptoPro.JCP.KeyStore.JCPKeyStore
java.lang.Exception: URL is incorrect
at ru.CryptoPro.JCP.tools.SelfTester.checkClass(Unknown Source)
at ru.CryptoPro.JCP.tools.l.a(Unknown Source)
at ru.CryptoPro.JCP.KeyStore.JCPKeyStore.engineLoad(Unknown Source)
at java.security.KeyStore.load(KeyStore.java:414)
at ru.neoflex.crypto.xml.XMLSigner.<init>(XMLSigner.java:52)
at ru.neoflex.gisadapter.http.TestServlet.<init>(TestServlet.java:30)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1345)
at java.beans.Beans.instantiate(Beans.java:184)
at java.beans.Beans.instantiate(Beans.java:75)
at com.ibm.ws.webcontainer.servlet.ServletWrapper$1.run(ServletWrapper.java:1909)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java:1900)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1795)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:98)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:1037)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:958)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:637)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:435)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:304)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1319)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:610)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:944)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2046)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:110)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:949)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604)
и предупреждение:
[2/11/13 15:18:06:026 GMT+04:00] 00000027 JCPLogger W ru.CryptoPro.JCP.tools.SelfTester run SelfTester's test �23 failed
ru.CryptoPro.JCP.tools.SelfTesterException: java.io.IOException: java.lang.IllegalArgumentException: length not equals serial length
at ru.CryptoPro.JCP.tools.SelfTests$TestLicense.run(Unknown Source)
at ru.CryptoPro.JCP.tools.SelfTester.b(Unknown Source)
at ru.CryptoPro.JCP.tools.SelfTester.a(Unknown Source)
at ru.CryptoPro.JCP.tools.SelfTester.run(Unknown Source)
at java.lang.Thread.run(Thread.java:736)
Caused by: ru.CryptoPro.JCP.tools.LicenseException: java.io.IOException: java.lang.IllegalArgumentException: length not equals serial length
at ru.CryptoPro.JCP.tools.License.checkExist(Unknown Source)
... 5 more
Caused by: java.security.PrivilegedActionException: java.io.IOException: java.lang.IllegalArgumentException: length not equals serial length
at java.security.AccessController.doPrivileged(AccessController.java:255)
... 6 more
Caused by: java.io.IOException: java.lang.IllegalArgumentException: length not equals serial length
at ru.CryptoPro.JCP.tools.AbstractLicense.<init>(Unknown Source)
at ru.CryptoPro.JCP.tools.License.<init>(Unknown Source)
at ru.CryptoPro.JCP.tools.x.run(Unknown Source)
at java.security.AccessController.doPrivileged(AccessController.java:251)
... 6 more
Caused by: java.lang.IllegalArgumentException: length not equals serial length
at ru.CryptoPro.JCP.tools.AbstractLicense.delSeparators(Unknown Source)
at ru.CryptoPro.JCP.tools.AbstractLicense.a(Unknown Source)
... 10 more
Подскажите, в чём проблема?
Отредактировано пользователем 11 февраля 2013 г. 14:31:59(UTC)
| Причина: Не указана