• Bug
  • Status: Closed
  • 1 Critical
  • Resolution: Fixed
  • hsingh
  • Reporter: teck
  • September 01, 2009
  • 0
  • Watchers: 0
  • February 12, 2013
  • September 03, 2009

Description

source: http://forums.terracotta.org/forums/posts/list/2429.page

Run any of the tim-hibernate-systems test with weblogic 9.x, for example (also make sure to set JAVA_HOME to a 1.5 versiojn): mvn -Psystem-tests integration-test -Dtest=TerracottaHibernateCacheTest -Dappserver=weblogic-9.2.mp3

A possible workaround is here: http://www.java-community.de/archives/110-XML-Schema-Validation-done-right.html

This is the specific failure exception: org.hibernate.cache.CacheException: Error parsing XML configuration file : tc-hibernate-cache.xml at org.terracotta.modules.hibernatecache.config.XMLConfigurationProvider.(XMLConfigurationProvider.java:129) at org.terracotta.modules.hibernatecache.config.XMLConfigurationProvider.(XMLConfigurationProvider.java:108) at org.terracotta.modules.hibernatecache.config.XMLConfigurationProvider.(XMLConfigurationProvider.java:104) at org.terracotta.modules.hibernatecache.clustered.ComponentFactoryImpl.newConfigurationProvider(ComponentFactoryImpl.java:65) at org.terracotta.modules.hibernatecache.provider.BaseTerracottaCacheProvider.getConfigurationProvider(BaseTerracottaCacheProvider.java:131) at org.terracotta.modules.hibernatecache.provider.BaseTerracottaCacheProvider.start(BaseTerracottaCacheProvider.java:116) at org.terracotta.hibernate.TerracottaHibernateCacheProvider.start(TerracottaHibernateCacheProvider.java:55) at org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge.start(RegionFactoryCacheProviderBridge.java:72) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:221) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341) at org.terracotta.modules.hibernatecache.nontransactional.HibernateUtil.getSessionFactory(HibernateUtil.java:24) ... 16 more Caused by: java.lang.IllegalArgumentException: Schema at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:140) at weblogic.xml.jaxp.WebLogicDocumentBuilderFactory.setAttribute(WebLogicDocumentBuilderFactory.java:146) at weblogic.xml.jaxp.RegistryDocumentBuilder.setupDocumentBuilderFactory(RegistryDocumentBuilder.java:329) at weblogic.xml.jaxp.RegistryDocumentBuilder.getDefaultDocumentBuilderFactory(RegistryDocumentBuilder.java:286) at weblogic.xml.jaxp.RegistryDocumentBuilder.getDocumentBuilder(RegistryDocumentBuilder.java:222) at weblogic.xml.jaxp.RegistryDocumentBuilder.parse(RegistryDocumentBuilder.java:147) at org.terracotta.modules.hibernatecache.config.XMLConfigurationProvider.(XMLConfigurationProvider.java:123) ... 26 more

Comments

Hung Huynh 2009-09-03

also seeing the same problem with weblogic-10.0.mp1

Chris Miles 2009-09-03

I am also getting the same issue with 10.0 (MP2) - This is the only version of 10.0 available from Oracle now.

My project is being deployed with the tim-weblogic-10 jar (version 2.0.0)

Chris Dennis 2009-09-03

I have the fix for this coded up - took a bit longer than anticipated since the system-tests required some work to run correctly under weblogic. I’m currently running the system-tests through the various weblogic versions we support (along with tomcat) to verify everything is fixed (and not broken elsewhere).

Chris Miles 2009-09-04

Will the jar be downloadable via maven once ready in place of the existing one? Or does a new version need to be specified? Or can it be checked out from SVN to be built locally and added in replacement?

Thanks

Chris

Tim Eck 2009-09-04

The fix will be in the next version which should be 1.1.0 I believe and isn’t too far in time (although I don’t have a specific date). You could build it now from source if you wanted although it will depend on SNAPSHOT versions of everything include the core Terracotta distribution. If you really want to try building it I’d suggest getting the 1.0.0 tagged version and applying a patch it to locally. that way the versions will line up in a reasonable way.

Chris Miles 2009-09-07

Tim,

That sounds like a better idea. I will try just that.

Thanks

Chris

Chris Miles 2009-09-07

Hi,

Sorry I dont know anywhere else to post this. I can not build the 1.0.0 source.

I can access the terracotta maven respository no problem, however it does not contain a plugin dependency which is being called for during the build process:

GroupId: org.terracotta.plugin ArtifactId: maven-depdb-plugin Version: 1.0.0

Reason: Unable to download the artifact from any repository

org.terracotta.plugin:maven-depdb-plugin:pom:1.0.0

from the specified remote repositories: central (http://repo1.maven.org/maven2), terracotta-repository (http://www.terracotta.org/download/reflector/maven2)

Hope you can shed some light on this thanks.

Chris

Tim Eck 2009-09-07

Sorry about that. We are obviously missing things on the public repo, I’ll let the right people know.

I’ll make some unofficial builds and post them on the forum post

Himadri Singh 2009-09-17

mvn -Psystem-tests integration-test -Dtest=TerracottaHibernateCacheTest -Dappserver=weblogic-9.2.mp3 are passing without any exception.