[ 
http://jira.amdatu.org/jira/browse/AMDATUOPENSOCIAL-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12258#comment-12258
 ] 

Ivo Ladage - van Doorn commented on AMDATUOPENSOCIAL-193:
---------------------------------------------------------

After more analysis, it seems that the ClassCastException is caused by a 
classloader mismatch; the org.w3c.dom.DOMImplementationSource class is loaded 
by the bundle classloader and the bootstrap classloader.
The classloader used in org.w3c.dom.bootstrap.DOMImplementationRegistry to load 
the com.sun.org.apache.xerces.internal.dom.DOMXSImplementationSourceImpl class 
that implements this interface is loaded by the context classloader of the 
current thread. But that classloader varies; sometimes its the felix framework 
classloader, sometimes the bootstrap classloader.

Another error is that the integration test finishes even if i set a breakpoint 
on the Guice.createInjector(Stage.PRODUCTION, modules) in 
GuiceInjectorServletImpl. If the Guice injector has not finished injection, 
Shindig is not yet started properly and so the integration test should not 
start at all.
                
> Stacktraces during integration test on ehCache
> ----------------------------------------------
>
>                 Key: AMDATUOPENSOCIAL-193
>                 URL: http://jira.amdatu.org/jira/browse/AMDATUOPENSOCIAL-193
>             Project: Amdatu OpenSocial
>          Issue Type: Bug
>          Components: Shindig
>    Affects Versions: 0.2.0
>            Reporter: Ivo Ladage - van Doorn
>            Assignee: Ivo Ladage - van Doorn
>             Fix For: 0.2.1
>
>
> Stacktrace: 
> Caused by: net.sf.ehcache.CacheException: Error configuring from input 
> stream. Initial cause was org.apache.xerces.jaxp.
> SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory
>         at 
> net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:157)
>         at 
> org.apache.shindig.common.cache.ehcache.EhCacheCacheProvider.getConfiguration(EhCacheCacheProvider.java:70)
>         at 
> org.apache.shindig.common.cache.ehcache.EhCacheCacheProvider.<init>(EhCacheCacheProvider.java:56)
>         at 
> org.apache.shindig.common.cache.ehcache.EhCacheCacheProvider$$FastClassByGuice$$ed9a41b6.newInstance(<generat

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://jira.amdatu.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers

Reply via email to