日期:2014-05-19  浏览次数:20728 次

weblogic加载spring失败
环境: liunx weblogic9.2.4 jrokit1.5,发布应用失败,报如下错误。
配置文件如下:
XML code

<module type="startup">
        <property name="handler">cn.easyuda.framework.startup.impl.StartUpWithMessageImpl</property>
        <!--custom spring bean config-->
        <property name="spring">
            WEB-INF/custom/spring/beanfactory-common.vm
            WEB-INF/custom/metadata/meta-dictionarys.xml
            WEB-INF/custom/metadata/meta-domains.xml
            WEB-INF/custom/metadata/meta-individual-cutomer-base-info.xml
            WEB-INF/custom/metadata/meta-role.xml
            WEB-INF/custom/spring/loan.validator.xml        
            WEB-INF/custom/spring/loan.page.mapping.remind.xml
        </property>
        <!--Charset of Spring xml beans. Determined by server charset setting(UTF-8;GBK;...)-->
        <property name="charset">GB2312</property>
        <!--Show Spring xml log or not-->
        <property name="debug">0</property>
    </module>

    <module type="dynamic.spring">
        <property name="loader">cn.easyuda.framework.dynamic.loader.JarFileLoader</property>
        <!--separate each jar/package/path by using new line-->
        <property name="jar">WEB-INF/lib/uda-business.jar</property>
        <property name="package">com.git.loan</property>
        <property name="prefix"/>
        <property name="suffix">UCC.class</property>
        <property name="active">1</property>
    </module>

    <module type="dynamic.faces">
        <property name="loader">cn.easyuda.framework.dynamic.loader.PlainFileLoader</property>
        <!--separate each jar/package/path/classpath by using new line-->
        <property name="classpath">/WEB-INF/faces</property>
        <property name="prefix"/>
        <property name="suffix">.xml</property>
        <property name="active">1</property>
    </module>

    <module type="dynamic.tiles">
        <property name="loader">cn.easyuda.framework.dynamic.loader.PlainFileLoader</property>
        <!--separate each jar/package/path/classpath by using new line-->
        <property name="classpath">/WEB-INF/tiles</property>
        <property name="prefix"/>
        <property name="suffix">.xml</property>
        <property name="active">1</property>
    </module>


加载到<module type="dynamic.faces">报以下错误。

Java code
[2012-10-13 15:19:39,983]-INFO  (StartUpSpringImpl.java:38)|::Spring配置工厂初始化失败::
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cn.easyuda.framework.logic.cmdexecutor.impl.PlainProxyExecutor.proxy' defined in resource loaded from byte array: Cannot resolve reference to bean 'weblogicJtaTransactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'weblogicJtaTransactionManager' defined in resource loaded from byte array: Invocation of init method failed; nested except