You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by AndyG <an...@orprovision.com> on 2013/02/13 16:04:19 UTC
Re: TempClassLoader issue
Was getting this same error attempting to do the same thing (SLF4J -
LOGBack).
Either removing the xercesImpl-2.9.1.jar from the lib directory
or setting
openejb.classloader.forced-skip=org.xml.saxr
..resolved the error. Which is the preferred solution?
Andy.
--
View this message in context: http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4660762.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: TempClassLoader issue
Posted by Romain Manni-Bucau <rm...@gmail.com>.
PS: didn't see the AMQ issue
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/2/28 Romain Manni-Bucau <rm...@gmail.com>
> basically openejb.classloader.forced-skip=org.xml.sax forces classloader
> first (webapp one for instance, temp one etc..) to not load it if the
> container (or jvm) provides it. That's probably a issue where some classes
> are loaded from the webapp and some others from the container.
>
> Would be great to see the origin.
>
> Maybe xerces (but i'd thought it was skipped)
>
> btw you can check URLClassLoaderFirst.shouldSkip (but you need to filter
> while debugging otherwise you'll still be debugging next year ;).
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/2/28 AndyG <an...@orprovision.com>
>
>> I will try to get you something, just really bogged down with work. I
>> hope I
>> can get some time tomorrow (Friday).
>>
>> If you have an idea or pointers as to why this issue is arising then
>> maybe I
>> can fix it in the process. Why does the following option fix it?
>>
>> openejb.classloader.forced-skip=org.xml.sax
>>
>> Andy.
>>
>> PS. I don't know if you have been tracking the remote ActiveMQ 'issue' on
>> the list - There's just no helping some people!?
>>
>>
>>
>> --
>> View this message in context:
>> http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4661076.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>
>
>
Re: TempClassLoader issue
Posted by Romain Manni-Bucau <rm...@gmail.com>.
basically openejb.classloader.forced-skip=org.xml.sax forces classloader
first (webapp one for instance, temp one etc..) to not load it if the
container (or jvm) provides it. That's probably a issue where some classes
are loaded from the webapp and some others from the container.
Would be great to see the origin.
Maybe xerces (but i'd thought it was skipped)
btw you can check URLClassLoaderFirst.shouldSkip (but you need to filter
while debugging otherwise you'll still be debugging next year ;).
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/2/28 AndyG <an...@orprovision.com>
> I will try to get you something, just really bogged down with work. I hope
> I
> can get some time tomorrow (Friday).
>
> If you have an idea or pointers as to why this issue is arising then maybe
> I
> can fix it in the process. Why does the following option fix it?
>
> openejb.classloader.forced-skip=org.xml.sax
>
> Andy.
>
> PS. I don't know if you have been tracking the remote ActiveMQ 'issue' on
> the list - There's just no helping some people!?
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4661076.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: TempClassLoader issue
Posted by AndyG <an...@orprovision.com>.
I will try to get you something, just really bogged down with work. I hope I
can get some time tomorrow (Friday).
If you have an idea or pointers as to why this issue is arising then maybe I
can fix it in the process. Why does the following option fix it?
openejb.classloader.forced-skip=org.xml.sax
Andy.
PS. I don't know if you have been tracking the remote ActiveMQ 'issue' on
the list - There's just no helping some people!?
--
View this message in context: http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4661076.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: TempClassLoader issue
Posted by Romain Manni-Bucau <rm...@gmail.com>.
hmm, i used the same options in tomee and in a junit and didnt get the
error.
@Andy: can you please try to reproduce it in something shareable? i would
like to get it fixed for next release
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/2/27 AndyG <an...@orprovision.com>
> Running as a win service using daemon, so embedded. Here is the batch,
> less a
> few irrelevant entries. Adding the last line prevents the stacktrace.
>
> %proc% //IS//AServer ^
> --DisplayName="AServer" ^
> --Install=%proc% ^
> --Startup auto ^
> --StartPath=%openejb% ^
> --Description="Server Service" ^
> --Jvm=%jvm% ^
> --Classpath=%classpath% ^
> --StartMode=jvm ^
> --StartClass=org.apache.openejb.daemon.NTService
> --StartMethod=start ^
> --StopMode=jvm ^
> --StopClass=org.apache.openejb.daemon.NTService --StopMethod=stop ^
> --LogPrefix=service ^
> --LogPath="%logs%" ^
> --StdOutput="%logs%\service.out.log" ^
> --StdError="%logs%\service.err.log" ^
> --PidFile="%logs%\service.pid" ^
> --LogLevel=Debug ^
> --LibraryPath="%openejb%\bin" ^
> --JvmMs=512 ^
> --JvmMx=1024 ^
> --JvmSs=128 ^
> --LogJniMessages=1 ^
>
> ++JvmOptions=-Dlogback.configurationFile="%openejb%\conf\logback.xml" ^
> ++JvmOptions=-Djava.library.path="%openejb%\bin" ^
> ++JvmOptions=-Dopenejb.home="%openejb%" ^
> ++JvmOptions=-Dopenen.version.check.skip=true ^
> ++JvmOptions=-Dopenejb.log.factory=slf4j ^
>
> ++JvmOptions=-Dopenejb.deployments.classpath.filter.systemapps=true ^
> ++JvmOptions=-Djna.nosys=true ^
> ++JvmOptions=-XX:MaxPermSize=256m ^
> ++JvmOptions=-XX:+UseConcMarkSweepGC ^
> ++JvmOptions=-Dopenejb.validation.output.level=VERBOSE ^
> ++JvmOptions=-Dopenejb.client.connection.pool.size=100 ^
> ++JvmOptions=-Dopenejb.deployments.classpath.include= ^
> ++JvmOptions=-Dopenejb.deployments.classpath.exclude=.* ^
> ++JvmOptions=-Dopenejb.webservices.enabled=true ^
> ++JvmOptions=-Djava.rmi.server.hostname="ASERVER" ^
> ++JvmOptions=-Dcom.sun.management.jmxremote ^
> ++JvmOptions=-Xdebug ^
> ++JvmOptions=-Xshare:off ^
>
>
> ++JvmOptions=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9191
> ^
> ++JvmOptions=-Djava.awt.headless=true ^
> ++DependsOn=AnotherService
>
> REM ++JvmOptions=-Dopenejb.classloader.forced-skip=org.xml.sax ^
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4661039.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: TempClassLoader issue
Posted by AndyG <an...@orprovision.com>.
Running as a win service using daemon, so embedded. Here is the batch, less a
few irrelevant entries. Adding the last line prevents the stacktrace.
%proc% //IS//AServer ^
--DisplayName="AServer" ^
--Install=%proc% ^
--Startup auto ^
--StartPath=%openejb% ^
--Description="Server Service" ^
--Jvm=%jvm% ^
--Classpath=%classpath% ^
--StartMode=jvm ^
--StartClass=org.apache.openejb.daemon.NTService --StartMethod=start ^
--StopMode=jvm ^
--StopClass=org.apache.openejb.daemon.NTService --StopMethod=stop ^
--LogPrefix=service ^
--LogPath="%logs%" ^
--StdOutput="%logs%\service.out.log" ^
--StdError="%logs%\service.err.log" ^
--PidFile="%logs%\service.pid" ^
--LogLevel=Debug ^
--LibraryPath="%openejb%\bin" ^
--JvmMs=512 ^
--JvmMx=1024 ^
--JvmSs=128 ^
--LogJniMessages=1 ^
++JvmOptions=-Dlogback.configurationFile="%openejb%\conf\logback.xml" ^
++JvmOptions=-Djava.library.path="%openejb%\bin" ^
++JvmOptions=-Dopenejb.home="%openejb%" ^
++JvmOptions=-Dopenen.version.check.skip=true ^
++JvmOptions=-Dopenejb.log.factory=slf4j ^
++JvmOptions=-Dopenejb.deployments.classpath.filter.systemapps=true ^
++JvmOptions=-Djna.nosys=true ^
++JvmOptions=-XX:MaxPermSize=256m ^
++JvmOptions=-XX:+UseConcMarkSweepGC ^
++JvmOptions=-Dopenejb.validation.output.level=VERBOSE ^
++JvmOptions=-Dopenejb.client.connection.pool.size=100 ^
++JvmOptions=-Dopenejb.deployments.classpath.include= ^
++JvmOptions=-Dopenejb.deployments.classpath.exclude=.* ^
++JvmOptions=-Dopenejb.webservices.enabled=true ^
++JvmOptions=-Djava.rmi.server.hostname="ASERVER" ^
++JvmOptions=-Dcom.sun.management.jmxremote ^
++JvmOptions=-Xdebug ^
++JvmOptions=-Xshare:off ^
++JvmOptions=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9191
^
++JvmOptions=-Djava.awt.headless=true ^
++DependsOn=AnotherService
REM ++JvmOptions=-Dopenejb.classloader.forced-skip=org.xml.sax ^
--
View this message in context: http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4661039.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: TempClassLoader issue
Posted by Romain Manni-Bucau <rm...@gmail.com>.
you replace the container libs right? or is it in embedded mode?
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/2/26 AndyG <an...@orprovision.com>
> Here is a complete list of jars used when this error occurs:
>
> swizzle-stream-1.6.1.jar
> sxc-jaxb-core-0.8-SNAPSHOT.jar
> sxc-runtime-0.8-SNAPSHOT.jar
> woodstox-core-asl-4.0.8.jar
> wsdl4j-1.6.2.jar
> wss4j-1.6.8.jar
> xalan-2.7.1.jar
> xbean-asm-shaded-3.13-SNAPSHOT.jar
> xbean-bundleutils-3.13-SNAPSHOT.jar
> xbean-finder-shaded-3.13-SNAPSHOT.jar
> xbean-naming-3.13-SNAPSHOT.jar
> xbean-reflect-3.13-SNAPSHOT.jar
> xbean-spring-3.12.jar
> xercesImpl-2.9.1.jar
> xml-resolver-1.2.jar
> xmlschema-core-2.0.3.jar
> xmlsec-1.5.3.jar
> xmltooling-1.3.2-1.jar
> xstream-1.4.3.jar
> xstream-hibernate-1.4.3.jar
> activemq-broker-5.9-SNAPSHOT.jar
> activemq-client-5.9-SNAPSHOT.jar
> activemq-kahadb-store-5.9-SNAPSHOT.jar
> activemq-openwire-legacy-5.9-SNAPSHOT.jar
> activemq-pool-5.9-SNAPSHOT.jar
> activemq-protobuf-1.1.jar
> activemq-ra-5.9-SNAPSHOT.jar
> activemq-spring-5.9-SNAPSHOT.jar
> antlr-2.7.7.jar
> aopalliance-1.0.jar
> asm-3.2.jar
> bval-core-0.5.jar
> bval-jsr303-0.5.jar
> commons-beanutils-core-1.8.3.jar
> commons-cli-1.2.jar
> commons-codec-1.4.jar
> commons-collections-3.2.1.jar
> commons-dbcp-1.4.jar
> commons-io-2.4.jar
> commons-lang-2.6.jar
> commons-lang3-3.1.jar
> commons-math-2.2.jar
> commons-net-3.2.jar
> commons-pool-1.5.7.jar
> cxf-api-2.6.6.jar
> cxf-rt-bindings-soap-2.6.6.jar
> cxf-rt-bindings-xml-2.6.6.jar
> cxf-rt-core-2.6.6.jar
> cxf-rt-databinding-jaxb-2.6.6.jar
> cxf-rt-frontend-jaxws-2.6.6.jar
> cxf-rt-frontend-simple-2.6.6.jar
> cxf-rt-transports-http-2.6.6.jar
> cxf-rt-ws-addr-2.6.6.jar
> cxf-rt-ws-policy-2.6.6.jar
> cxf-rt-ws-security-2.6.6.jar
> derby.jar
> derbyclient.jar
> derbynet.jar
> dom4j-1.6.1.jar
> ehcache-core-2.6.3.jar
> geronimo-connector-3.1.1.jar
> geronimo-j2ee-connector_1.6_spec-1.0.jar
> geronimo-j2ee-management_1.1_spec-1.0.1.jar
> geronimo-javamail_1.4_mail-1.8.2.jar
> geronimo-transaction-3.1.1.jar
> hawtbuf-1.9.jar
> hibernate-commons-annotations-4.0.1.Final.jar
> hibernate-core-4.1.9.Final.jar
> hibernate-entitymanager-4.1.9.Final.jar
> howl-1.0.1-1.jar
> jansi-1.8.jar
> javaee-api-6.0-5-SNAPSHOT.jar
> javassist-3.17.1-GA.jar
> java-uuid-generator-3.1.3.jar
> jaxb-impl-2.2.6.jar
> jboss-logging-3.1.0.GA.jar
> jboss-transaction-api_1.1_spec-1.0.0.Final.jar
> jcl-over-slf4j-1.7.2.jar
> jettison-1.3.1.jar
> jfluid-server.jar
> jna.jar
> joda-time-2.0.jar
> jul-to-slf4j-1.7.2.jar
> liquibase.jar
> log4j-over-slf4j-1.7.2.jar
> logback-classic-1.0.9.jar
> logback-core-1.0.9.jar
> mbean-annotation-api-4.6.0-SNAPSHOT.jar
> mimepull-1.7.jar
> neethi-3.0.1.jar
> openejb-api-4.6.0-SNAPSHOT.jar
> openejb-client-4.6.0-SNAPSHOT.jar
> openejb-core-4.6.0-SNAPSHOT.jar
> openejb-cxf-4.6.0-SNAPSHOT.jar
> openejb-cxf-transport-4.6.0-SNAPSHOT.jar
> openejb-daemon-4.6.0-SNAPSHOT.jar
> openejb-ejbd-4.6.0-SNAPSHOT.jar
> openejb-http-4.6.0-SNAPSHOT.jar
> openejb-javaagent-4.6.0-SNAPSHOT.jar
> openejb-jee-4.6.0-SNAPSHOT.jar
> openejb-jee-accessors-4.6.0-SNAPSHOT.jar
> openejb-jpa-integration-4.6.0-SNAPSHOT.jar
> openejb-loader-4.6.0-SNAPSHOT.jar
> openejb-multicast-4.6.0-SNAPSHOT.jar
> openejb-server-4.6.0-SNAPSHOT.jar
> openejb-webservices-4.6.0-SNAPSHOT.jar
> opensaml-2.5.1-1.jar
> openwebbeans-ee-1.1.8-SNAPSHOT.jar
> openwebbeans-ee-common-1.1.8-SNAPSHOT.jar
> openwebbeans-ejb-1.1.8-SNAPSHOT.jar
> openwebbeans-impl-1.1.8-SNAPSHOT.jar
> openwebbeans-jsf-1.1.8-SNAPSHOT.jar
> openwebbeans-spi-1.1.8-SNAPSHOT.jar
> openwebbeans-web-1.1.8-SNAPSHOT.jar
> openws-1.4.2-1.jar
> platform.jar
> postgresql.jar
> quartz-2.1.6.jar
> quartzra.jar
> rmiio-2.0.4-SNAPSHOT.jar
> saaj-impl-1.3.18.jar
> scannotation-1.0.2.jar
> serializer-2.7.1.jar
> serp-1.13.1.jar
> slf4j-api-1.7.2.jar
> slf4j-ext-1.7.2.jar
> spring-aop-3.0.7.RELEASE.jar
> spring-asm-3.0.7.RELEASE.jar
> spring-beans-3.0.7.RELEASE.jar
> spring-context-3.0.7.RELEASE.jar
> spring-core-3.0.7.RELEASE.jar
> spring-expression-3.0.7.RELEASE.jar
> stax2-api-3.0.2.jar
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4661022.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: TempClassLoader issue
Posted by AndyG <an...@orprovision.com>.
Here is a complete list of jars used when this error occurs:
swizzle-stream-1.6.1.jar
sxc-jaxb-core-0.8-SNAPSHOT.jar
sxc-runtime-0.8-SNAPSHOT.jar
woodstox-core-asl-4.0.8.jar
wsdl4j-1.6.2.jar
wss4j-1.6.8.jar
xalan-2.7.1.jar
xbean-asm-shaded-3.13-SNAPSHOT.jar
xbean-bundleutils-3.13-SNAPSHOT.jar
xbean-finder-shaded-3.13-SNAPSHOT.jar
xbean-naming-3.13-SNAPSHOT.jar
xbean-reflect-3.13-SNAPSHOT.jar
xbean-spring-3.12.jar
xercesImpl-2.9.1.jar
xml-resolver-1.2.jar
xmlschema-core-2.0.3.jar
xmlsec-1.5.3.jar
xmltooling-1.3.2-1.jar
xstream-1.4.3.jar
xstream-hibernate-1.4.3.jar
activemq-broker-5.9-SNAPSHOT.jar
activemq-client-5.9-SNAPSHOT.jar
activemq-kahadb-store-5.9-SNAPSHOT.jar
activemq-openwire-legacy-5.9-SNAPSHOT.jar
activemq-pool-5.9-SNAPSHOT.jar
activemq-protobuf-1.1.jar
activemq-ra-5.9-SNAPSHOT.jar
activemq-spring-5.9-SNAPSHOT.jar
antlr-2.7.7.jar
aopalliance-1.0.jar
asm-3.2.jar
bval-core-0.5.jar
bval-jsr303-0.5.jar
commons-beanutils-core-1.8.3.jar
commons-cli-1.2.jar
commons-codec-1.4.jar
commons-collections-3.2.1.jar
commons-dbcp-1.4.jar
commons-io-2.4.jar
commons-lang-2.6.jar
commons-lang3-3.1.jar
commons-math-2.2.jar
commons-net-3.2.jar
commons-pool-1.5.7.jar
cxf-api-2.6.6.jar
cxf-rt-bindings-soap-2.6.6.jar
cxf-rt-bindings-xml-2.6.6.jar
cxf-rt-core-2.6.6.jar
cxf-rt-databinding-jaxb-2.6.6.jar
cxf-rt-frontend-jaxws-2.6.6.jar
cxf-rt-frontend-simple-2.6.6.jar
cxf-rt-transports-http-2.6.6.jar
cxf-rt-ws-addr-2.6.6.jar
cxf-rt-ws-policy-2.6.6.jar
cxf-rt-ws-security-2.6.6.jar
derby.jar
derbyclient.jar
derbynet.jar
dom4j-1.6.1.jar
ehcache-core-2.6.3.jar
geronimo-connector-3.1.1.jar
geronimo-j2ee-connector_1.6_spec-1.0.jar
geronimo-j2ee-management_1.1_spec-1.0.1.jar
geronimo-javamail_1.4_mail-1.8.2.jar
geronimo-transaction-3.1.1.jar
hawtbuf-1.9.jar
hibernate-commons-annotations-4.0.1.Final.jar
hibernate-core-4.1.9.Final.jar
hibernate-entitymanager-4.1.9.Final.jar
howl-1.0.1-1.jar
jansi-1.8.jar
javaee-api-6.0-5-SNAPSHOT.jar
javassist-3.17.1-GA.jar
java-uuid-generator-3.1.3.jar
jaxb-impl-2.2.6.jar
jboss-logging-3.1.0.GA.jar
jboss-transaction-api_1.1_spec-1.0.0.Final.jar
jcl-over-slf4j-1.7.2.jar
jettison-1.3.1.jar
jfluid-server.jar
jna.jar
joda-time-2.0.jar
jul-to-slf4j-1.7.2.jar
liquibase.jar
log4j-over-slf4j-1.7.2.jar
logback-classic-1.0.9.jar
logback-core-1.0.9.jar
mbean-annotation-api-4.6.0-SNAPSHOT.jar
mimepull-1.7.jar
neethi-3.0.1.jar
openejb-api-4.6.0-SNAPSHOT.jar
openejb-client-4.6.0-SNAPSHOT.jar
openejb-core-4.6.0-SNAPSHOT.jar
openejb-cxf-4.6.0-SNAPSHOT.jar
openejb-cxf-transport-4.6.0-SNAPSHOT.jar
openejb-daemon-4.6.0-SNAPSHOT.jar
openejb-ejbd-4.6.0-SNAPSHOT.jar
openejb-http-4.6.0-SNAPSHOT.jar
openejb-javaagent-4.6.0-SNAPSHOT.jar
openejb-jee-4.6.0-SNAPSHOT.jar
openejb-jee-accessors-4.6.0-SNAPSHOT.jar
openejb-jpa-integration-4.6.0-SNAPSHOT.jar
openejb-loader-4.6.0-SNAPSHOT.jar
openejb-multicast-4.6.0-SNAPSHOT.jar
openejb-server-4.6.0-SNAPSHOT.jar
openejb-webservices-4.6.0-SNAPSHOT.jar
opensaml-2.5.1-1.jar
openwebbeans-ee-1.1.8-SNAPSHOT.jar
openwebbeans-ee-common-1.1.8-SNAPSHOT.jar
openwebbeans-ejb-1.1.8-SNAPSHOT.jar
openwebbeans-impl-1.1.8-SNAPSHOT.jar
openwebbeans-jsf-1.1.8-SNAPSHOT.jar
openwebbeans-spi-1.1.8-SNAPSHOT.jar
openwebbeans-web-1.1.8-SNAPSHOT.jar
openws-1.4.2-1.jar
platform.jar
postgresql.jar
quartz-2.1.6.jar
quartzra.jar
rmiio-2.0.4-SNAPSHOT.jar
saaj-impl-1.3.18.jar
scannotation-1.0.2.jar
serializer-2.7.1.jar
serp-1.13.1.jar
slf4j-api-1.7.2.jar
slf4j-ext-1.7.2.jar
spring-aop-3.0.7.RELEASE.jar
spring-asm-3.0.7.RELEASE.jar
spring-beans-3.0.7.RELEASE.jar
spring-context-3.0.7.RELEASE.jar
spring-core-3.0.7.RELEASE.jar
spring-expression-3.0.7.RELEASE.jar
stax2-api-3.0.2.jar
--
View this message in context: http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4661022.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: TempClassLoader issue
Posted by AndyG <an...@orprovision.com>.
Without '-Dopenejb.classloader.forced-skip=org.xml.sax' we get the following
stacktrace on the first call to LoggerFactory.getLogger:
Failed to instantiate [ch.qos.logback.classic.LoggerContext]
Reported exception:
java.lang.LinkageError: loader constraint violation: when resolving
overridden method
"org.apache.xerces.jaxp.SAXParserImpl.parse(Lorg/xml/sax/InputSource;Lorg/xml/sax/helpers/DefaultHandler;)V"
the class loader (instance of org/apache/openejb/core/TempClassLoader) of
the current class, org/apache/xerces/jaxp/SAXParserImpl, and its superclass
loader (instance of <bootloader>), have different Class objects for the type
org/xml/sax/InputSource used in the signature
at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
at
ch.qos.logback.core.joran.event.SaxEventRecorder.buildSaxParser(SaxEventRecorder.java:82)
at
ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents(SaxEventRecorder.java:57)
at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:142)
at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106)
at
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:56)
at
ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
at
ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148)
at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
--
View this message in context: http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4660955.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: TempClassLoader issue
Posted by AndyG <an...@orprovision.com>.
Straight off trunk, so still an issue. I'll have more in a while.
--
View this message in context: http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4660775.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: TempClassLoader issue
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Andy you tested the snapshot?
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/2/13 Romain Manni-Bucau <rm...@gmail.com>
> a test war works too ;)
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/2/13 AndyG <an...@orprovision.com>
>
>> I will detail the steps to reproduce the stacktrace tomorrow.
>>
>> I doubt a test case will be easy to create.
>>
>>
>>
>> --
>> View this message in context:
>> http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4660765.html
>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>
>
>
Re: TempClassLoader issue
Posted by Romain Manni-Bucau <rm...@gmail.com>.
a test war works too ;)
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/2/13 AndyG <an...@orprovision.com>
> I will detail the steps to reproduce the stacktrace tomorrow.
>
> I doubt a test case will be easy to create.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4660765.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: TempClassLoader issue
Posted by AndyG <an...@orprovision.com>.
I will detail the steps to reproduce the stacktrace tomorrow.
I doubt a test case will be easy to create.
--
View this message in context: http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4660765.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: TempClassLoader issue
Posted by Romain Manni-Bucau <rm...@gmail.com>.
I don't completely get the issue since that's in the JRE it should work
if that's not the case we have to fix URLClassLoaderFirst#shouldShkip
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/2/13 AndyG <an...@orprovision.com>
> UPDATE:
>
> In fact the issue depends on classloading order, so the only option that
> actually resolves the error is:
>
> openejb.classloader.forced-skip=org.xml.sax
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4660763.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Re: TempClassLoader issue
Posted by AndyG <an...@orprovision.com>.
UPDATE:
In fact the issue depends on classloading order, so the only option that
actually resolves the error is:
openejb.classloader.forced-skip=org.xml.sax
--
View this message in context: http://openejb.979440.n4.nabble.com/TempClassLoader-issue-tp4658019p4660763.html
Sent from the OpenEJB User mailing list archive at Nabble.com.