java - application migrate from java6 to java7 -


i using proprietary application server ( sip protocol ) in using embedded tomcat ( http protocol ). running java 1.6u21.

now want use java 1.7u51 have compiled code on java1.7u51.when start server , getting below error :

org.apache.catalina.lifecycleexception: failed start component [org.apache.catalina.session.standardmanager[]]     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154)     @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5294)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559)     @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549)     @ java.util.concurrent.futuretask.run(futuretask.java:262)     @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)     @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)     @ java.lang.thread.run(thread.java:744) caused by: java.lang.illegalaccesserror: tried access class sun.security.provider.sunentries class sun.security.provider.sun     @ sun.security.provider.sun.<init>(sun.java:55)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:57)     @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45)     @ java.lang.reflect.constructor.newinstance(constructor.java:526)     @ java.lang.class.newinstance(class.java:374)     @ sun.security.jca.providerconfig$2.run(providerconfig.java:221)     @ sun.security.jca.providerconfig$2.run(providerconfig.java:206)     @ java.security.accesscontroller.doprivileged(native method)     @ sun.security.jca.providerconfig.doloadprovider(providerconfig.java:206)     @ sun.security.jca.providerconfig.getprovider(providerconfig.java:187)     @ sun.security.jca.providerlist.getprovider(providerlist.java:232)     @ sun.security.jca.providerlist.getservice(providerlist.java:330)     @ sun.security.jca.getinstance.getinstance(getinstance.java:157)     @ java.security.cert.certificatefactory.getinstance(certificatefactory.java:183)     @ sun.security.pkcs.pkcs7.parsesigneddata(pkcs7.java:271)     @ sun.security.pkcs.pkcs7.parse(pkcs7.java:158)     @ sun.security.pkcs.pkcs7.parse(pkcs7.java:126)     @ sun.security.pkcs.pkcs7.<init>(pkcs7.java:108)     @ sun.security.util.signaturefileverifier.<init>(signaturefileverifier.java:96)     @ java.util.jar.jarverifier.processentry(jarverifier.java:286)     @ java.util.jar.jarverifier.update(jarverifier.java:218)     @ java.util.jar.jarfile.initializeverifier(jarfile.java:345)     @ java.util.jar.jarfile.getinputstream(jarfile.java:412)     @ sun.misc.urlclasspath$jarloader$2.getinputstream(urlclasspath.java:775)     @ sun.misc.resource.cachedinputstream(resource.java:77)     @ sun.misc.resource.getbytebuffer(resource.java:160)     @ java.net.urlclassloader.defineclass(urlclassloader.java:436)     @ java.net.urlclassloader.access$100(urlclassloader.java:71)     @ java.net.urlclassloader$1.run(urlclassloader.java:361)     @ java.net.urlclassloader$1.run(urlclassloader.java:355)     @ java.security.accesscontroller.doprivileged(native method)     @ java.net.urlclassloader.findclass(urlclassloader.java:354)     @ java.lang.classloader.loadclass(classloader.java:425)     @ java.lang.classloader.loadclass(classloader.java:412)     @ sun.misc.launcher$appclassloader.loadclass(launcher.java:308)     @ java.lang.classloader.loadclass(classloader.java:358)     @ sun.security.jca.providerconfig$2.run(providerconfig.java:215)     @ sun.security.jca.providerconfig$2.run(providerconfig.java:206) 

i searched on net , found java.lang.illegalaccesserror comes when have compiled src on diff java version , running app on different version. in case have compiled , running app both on java1.7u51.

any thoughts why getting issue.

fyi...i using embedded tomcat 7.

it looks more of jar version problem. if using third party jars ensure proper version in class path , recompile whole application again , check it


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -