Results 1 to 7 of 7

Thread: org.apache.xml.dtm.ref.DTMManagerDefault incompatible with org.apache.xml.dtm.DTMMana

  1. #1
    Join Date
    Feb 2009
    Posts
    135

    Default org.apache.xml.dtm.ref.DTMManagerDefault incompatible with org.apache.xml.dtm.DTMMana

    Hi,

    I had a working project with
    Spring 3.0 +Security 2.0.4 + spring blazeds 1.0

    I was able run this project in weblogic 10.0 IBM JDK5

    Now I upgraded the project to

    Spring 3.0.1 + Security 3.0.2 +spring blazeds 1.0.3

    Now this new setup runs on tomcat as usual without any problem
    But when I Deploy the same in weblogic 10.0 IBM JDK5

    I get the below error


    Code:
    - Context initialization failed  
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBrokerDefaultHandlerMapping': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBroker': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanInitializationException: MessageBroker initialization failed; nested exception is java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault incompatible with org.apache.xml.dtm.DTMManager
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
    	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:272)
    	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:196)
    	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    	at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:458)
    	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    	at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    	at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:168)
    	at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1744)
    	at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2909)
    	at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:973)
    	at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:361)
    	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    	at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    	at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
    	at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
    	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    	at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
    	at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
    	at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
    	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    	at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    	at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
    	at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
    	at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:182)
    	at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:359)
    	at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
    	at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
    	at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
    	at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    	at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    	at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    	at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
    	at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
    	at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    	at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: 
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name '_messageBroker': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanInitializationException: MessageBroker initialization failed; nested exception is java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault incompatible with org.apache.xml.dtm.DTMManager
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)
    I also upgraded from jasypt-1.5 to jasypt-1.6 to support spring security3

    I also have
    Code:
    <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
    in weblogic.xml

    As mentioned this setup with previous versions (mentioned above) was working, only after upgrading the framework version I get this problem.



    I also tried importing the test drive sample in my flex builder and using WTP I deployed in weblogic 10.0 and I got the same error.
    Any help is appreciated.
    Last edited by kannanMugundan; Mar 19th, 2010 at 08:52 AM.

  2. #2
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    Quote Originally Posted by kannanMugundan View Post
    I also tried importing the test drive sample in my flex builder and using WTP I deployed in weblogic 10.0 and I got the same error.
    Which version of the Test Drive did you try? The one with Spring 3 and Spring Security 3? If so, any chance you could try the same from the 1.0.2 release? It would help to further isolate the root problem.
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  3. #3
    Join Date
    Feb 2009
    Posts
    135

    Default

    Quote Originally Posted by jeremyg484 View Post
    Which version of the Test Drive did you try? The one with Spring 3 and Spring Security 3?
    I tried the latest one Spring 3 and security 3.


    Quote Originally Posted by jeremyg484 View Post
    If so, any chance you could try the same from the 1.0.2 release? It would help to further isolate the root problem.
    1.0.2 ? which one you are talking ? can you please clarify

    In fact I was trying to run a spring webservice in weblogic 10.0
    and I lost my patience. But Just thought to check if the test drive(latest version) would work and it also failed. But as far as I remember Spring 2.5.6 and Spring Blazeds RC1 and spring Security Security 2.0.4 works in weblogic 10.0
    But Spring 2.5.6 + spring Web service 1.5.9 does not work straight forward(I think you might know about all those parser issues, So I Actually gave up, I thought weblogic had a bug as it was not using my jars in web-inf/lib but since my server team was not helpful in fixing it, I requested them to host Spring Web service in tomcat and they are not happy to do so)

  4. #4
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    Quote Originally Posted by kannanMugundan View Post
    1.0.2 ? which one you are talking ? can you please clarify
    The version of the Test Drive with Spring 3 and Spring Security 3 from the Spring BlazeDS Integration 1.0.2 release. I just want to start by making sure it's not something we introduced in 1.0.3.
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  5. #5
    Join Date
    Feb 2009
    Posts
    135

    Default

    Hi,

    sorry I am unable to find the 1.0.2 version of test drive I have latest one spring-flex-testdrive-spring3.zip and spring-flex-testdrive-RC1v2.zip

    So I am unable to test it now, if you have the download link, then let me know, so I can test it (if you need me to test in weblogic10.0).


    thanks

  6. #6
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  7. #7
    Join Date
    Feb 2009
    Posts
    135

    Default

    Hi


    Please excuse me for wasting your time, I tied again importing 1.0.2 and 1.0.3 in to my flex builder and was able to run the samples in tomcat6.X and weblogic10.0


    For some strange reason I was not able to reproduce the error. I don't know if it was some settings of my Flex Builder/work space.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •