[Java lista] Tomcat Glassfish problema classloader Security ???
Peter Verhas
peter at verhas.com
2009. Aug. 26., Sze, 14:13:59 CEST
Melyik JAR?
Hmm...
groowiki\target\groowiki-1.0.2-SNAPSHOT\WEB-INF\lib>dir
groowiki\target\groowiki-1.0.2-SNAPSHOT\WEB-INF\lib tartalma:
2009.08.26. 14:11 <DIR> .
2009.08.26. 14:11 <DIR> ..
2007.12.10. 18:25 62,983 activation-1.1.jar
2007.09.06. 13:39 654,735 ant-optional-1.5.1.jar
2007.04.25. 16:04 63,966 avalon-framework-4.1.3.jar
2009.06.10. 18:59 163,910 bcpg-jdk15-143.jar
2009.06.10. 18:59 1,632,822 bcprov-jdk15-143.jar
2007.09.06. 13:39 188,671 commons-beanutils-1.7.0.jar
2007.09.06. 13:39 168,760 commons-beanutils-core-1.7.0.jar
2007.09.06. 13:39 46,725 commons-codec-1.3.jar
2009.01.14. 11:46 575,389 commons-collections-3.2.1.jar
2007.09.06. 13:39 248,153 commons-configuration-1.4.jar
2007.09.06. 13:38 143,602 commons-digester-1.8.jar
2007.12.27. 14:59 53,082 commons-fileupload-1.2.jar
2007.12.27. 18:21 83,619 commons-io-1.3.jar
2007.09.06. 13:39 285,104 commons-jxpath-1.2.jar
2009.02.13. 15:00 261,809 commons-lang-2.4.jar
2008.01.02. 20:03 31,605 commons-logging-1.0.3.jar
2007.04.25. 16:04 52,915 commons-logging-1.1.jar
2007.04.25. 15:50 26,202 commons-logging-api-1.0.4.jar
2009.08.04. 13:07 4,503,584 groovy-all-1.6.4.jar
2009.08.21. 22:53 32,431 groowiki-editions-1.2.0-SNAPSHOT.jar
2009.08.18. 15:38 10,819 groowiki-papi-0.0.1-SNAPSHOT.jar
2009.08.18. 15:44 26,789 groowiki-papimpl-1.0.0-SNAPSHOT.jar
2009.08.22. 01:50 65,425 jakarta-oro-2.0.7.jar
2007.09.06. 13:39 135,368 jdom-b9.jar
2007.12.17. 14:14 53,799 jms-1.1.jar
2008.07.01. 16:37 365,858 jmxri-1.2.1.jar
2007.01.22. 17:08 102,394 jmxtools-1.2.1.jar
2009.08.05. 17:00 14,543 license3j-1.0.0-SNAPSHOT.jar
2008.07.03. 15:39 391,834 log4j-1.2.15.jar
2007.04.25. 16:04 72,150 logkit-1.0.1.jar
2008.01.11. 16:52 388,864 mail-1.4.jar
2007.04.25. 15:50 65,261 oro-2.0.8.jar
2009.08.22. 01:55 112,635 picocontainer-1.2.jar
2009.08.22. 04:26 140,580 radeox-1.1.1.jar
2009.05.13. 13:42 1,838,335 SVNKit-1.3.0.jar
2009.02.13. 15:00 419,521 velocity-1.6.1.jar
2009.06.29. 10:53 43,769 velocity-tools-generic-1.4.jar
2007.09.06. 13:39 1,499,244 xerces-1.2.3.jar
2006.09.02. 13:46 109,318 xml-apis-1.0.b2.jar
39 fájl 15,136,573 bájt
2 könyvtár 30,711,455,744 bájt szabad
groowiki\target\groowiki-1.0.2-SNAPSHOT\WEB-INF\lib>
2009/8/26 István Viczián <viczian.istvan at gmail.com>:
> Szia,
>
> hol a JAR? Alkalmazásban WEB-INF/lib? Én első körben megpróbálnám a
> Tomcat lib-jébe tenni, vagy a WEB-INF/lib-be, meg még pár helyre,
> kevésbé tudományosan.
>
> Viczi
>
> 2009/8/26 Peter Verhas <peter at verhas.com>:
>> Írtam egy programot, amelyiket a Bouncycastle crypto jar-ját
>> használja. És gondom van vele. Tomcat 5.5-ön elindítva nem működik.
>> (excpetion-t bemásoltam). A hiba valahol ott van, hogy a servlet init
>> részében inicializálom a crypto provider-t, úgy, hogy létrehozok egy
>> olyan osztályt, amiben szerepel a
>>
>> static {
>> Security.addProvider(new BouncyCastleProvider());
>> }
>>
>> kódrészlet. Persze lehet, class loader már ezelőtt (az init futása
>> előtt) betöltötte az osztályt, de elvileg annak sem kellene bajnak
>> lennie.
>>
>> Én ugyan direktben hívom a BouncyCastle kódjait, de ő maga a Security
>> rendszeren keresztül (tehát a PGP implementációjuk alá bekerülhet más
>> security provider is), és ott hasal el.
>>
>> Glassfish v3 prelude alatt is hasonlóan nem működik, de ott más hibát
>> ad, de érezhetően hasonló a gondja.
>>
>> glassfish-v2ur2 jól működik, Tomcat 6.0 jól működik. MI lehet ez?
>>
>>
>> Péter
>>
>> Tomcat 5.5 exception:
>>
>>
>> INFO: Illegal access: this web application instance has been stopped
>> already. Could not load
>> org.bouncycastle.jce.provider.asymmetric.ec.Signature$ecDSA. The
>> eventual following stack trace is caused by an error thrown for
>> debugging purposes as well as to attempt to terminate the thread which
>> caused the illegal access, and has no functional impact.
>> java.lang.IllegalStateException
>> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1272)
>> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
>> at java.security.Provider$Service.getImplClass(Provider.java:1262)
>> at java.security.Provider$Service.newInstance(Provider.java:1220)
>> at java.security.Signature.isSpi(Signature.java:255)
>> at java.security.Signature.getInstance(Signature.java:200)
>> at com.sun.net.ssl.internal.ssl.JsseJce.getSignature(JsseJce.java:197)
>> at com.sun.net.ssl.internal.ssl.JsseJce.isEcAvailable(JsseJce.java:156)
>> at com.sun.net.ssl.internal.ssl.CipherSuite$KeyExchange.isAvailable(CipherSuite.java:271)
>> at com.sun.net.ssl.internal.ssl.CipherSuite.isAvailable(CipherSuite.java:143)
>> at com.sun.net.ssl.internal.ssl.CipherSuiteList.buildAvailableCache(CipherSuiteList.java:210)
>> at com.sun.net.ssl.internal.ssl.CipherSuiteList.getDefault(CipherSuiteList.java:233)
>> at com.sun.net.ssl.internal.ssl.SSLSocketImpl.init(SSLSocketImpl.java:508)
>> at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:451)
>> at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:56)
>> at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createSSLSocket(SVNSocketFactory.java:68)
>> at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.connect(HTTPConnection.java:183)
>> at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:323)
>> at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:273)
>> at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:261)
>> at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516)
>> at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
>> at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:999)
>> at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.checkPath(DAVRepository.java:217)
>> at com.verhas.groowiki.svnkit.SvnHandler.getNewRepositoryObject(SvnHandler.java:170)
>> at com.verhas.groowiki.portal.GroowikiMain.doGetInitializedProperly(GroowikiMain.java:263)
>> at com.verhas.groowiki.portal.GroowikiMain.doGet(GroowikiMain.java:203)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>> at com.verhas.groowiki.filter.AuthenticationFilter.doAuthentication(AuthenticationFilter.java:144)
>> at com.verhas.groowiki.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:179)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
>> at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>> at java.lang.Thread.run(Thread.java:619)
>> 2009.08.21. 10:44:46 org.apache.catalina.loader.WebappClassLoader loadClass
>>
>>
>> ClassFish v3prelude exception:
>>
>> SEVERE: StandardWrapperValve[main]: PWC1406: Servlet.service() for
>> servlet main threw exception
>> java.lang.ThreadDeath
>> at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1344)
>> at java.security.Provider$Service.getImplClass(Provider.java:1262)
>> at java.security.Provider$Service.newInstance(Provider.java:1220)
>> at java.security.Signature.isSpi(Signature.java:255)
>> at java.security.Signature.getInstance(Signature.java:200)
>> at com.sun.net.ssl.internal.ssl.JsseJce.getSignature(JsseJce.java:197)
>> at com.sun.net.ssl.internal.ssl.JsseJce.isEcAvailable(JsseJce.java:156)
>> at com.sun.net.ssl.internal.ssl.CipherSuite$KeyExchange.isAvailable(CipherSuite.java:271)
>> at com.sun.net.ssl.internal.ssl.CipherSuite.isAvailable(CipherSuite.java:143)
>> at com.sun.net.ssl.internal.ssl.CipherSuiteList.buildAvailableCache(CipherSuiteList.java:210)
>> at com.sun.net.ssl.internal.ssl.CipherSuiteList.getDefault(CipherSuiteList.java:233)
>> at com.sun.net.ssl.internal.ssl.SSLSocketImpl.init(SSLSocketImpl.java:508)
>> at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:451)
>> at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:56)
>> at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createSSLSocket(SVNSocketFactory.java:68)
>> at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.connect(HTTPConnection.java:183)
>> at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:323)
>> at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:273)
>> at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:261)
>> at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:516)
>> at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:98)
>> at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:999)
>> at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.checkPath(DAVRepository.java:217)
>> at com.verhas.groowiki.svnkit.SvnHandler.getNewRepositoryObject(SvnHandler.java:170)
>> at com.verhas.groowiki.portal.GroowikiMain.doGetInitializedProperly(GroowikiMain.java:263)
>> at com.verhas.groowiki.portal.GroowikiMain.doGet(GroowikiMain.java:203)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>> at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:337)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
>> at com.verhas.groowiki.filter.AuthenticationFilter.doAuthentication(AuthenticationFilter.java:144)
>> at com.verhas.groowiki.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:179)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
>> at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:460)
>> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
>> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
>> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
>> at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
>> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
>> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
>> at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
>> at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
>> at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
>> at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
>> at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
>> at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
>> at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
>> at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
>> at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
>> at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>> at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>> at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>> at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
>> at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
>> at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
>> at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
>> _______________________________________________
>> Javalist mailing list
>> Javalist at javagrund.hu
>> http://javagrund.hu/mailman/listinfo/javalist
>>
> _______________________________________________
> Javalist mailing list
> Javalist at javagrund.hu
> http://javagrund.hu/mailman/listinfo/javalist
>
>
--
Verhás Péter
ügyvezető
Verhás & Verhás Szoftver Manufaktúra Kft.
peter at verhas.com
t: +36(30)9306805
További információk a(z) Javalist levelezőlistáról