weblogic.application.ModuleException:异常准备:模块的WseeEjbModuleExtension

时间:2015-06-02 11:29:32

标签: java web-services weblogic12c

当我尝试在 weblogic 12.1.1 12.1.3 JAX-RPC Web服务模块时,我收到了模块异常>

尝试应用补丁13516712,但无济于事。

这项工作在weblogic 10.3.6(11)上运行良好,但不确定为什么它在12上不起作用。请帮助。

这是我的构建脚本:

NSUserDefaults

您可以参考下面的堆栈跟踪了解更多信息: -

<?xml version="1.0" encoding="UTF-8" ?>
<project name="MaltEjbs" default="buildMaltEjbJar">

<description>Builds the ejb jar file for MaltEjbs.  Uses the temporary dirs: deploy, staging. </description>
<description>Staging is used to hold all artifacts that will go into the jar.  deploy is used to </description>
<description>hold the final jar.</description>

<!-- set global properties -->
<property environment="env" />
<property name="staging_dir" value="staging" />
<property name="build_dir" value="build" />

<property name="deploy_dir" value="deploy" />

<property name="src_dir" value="../src" />

<property name="ejb_jar_file" value="MaltEjbs.jar" />

<property name="debug" value="true" />

<property name="debuglevel" value="lines,vars,source" />

<property name="malt_common_jar" value="../../MaltCommon/build/deploy/MaltCommon.jar" />
<property name="rsag_req_jar1" value="../../MaltReqJars/EFCRouterV2Server.jar" />
<property name="rsag_req_jar2" value="../../MaltReqJars/cbs.jar" />

<path id="project.class.path">      
    <pathelement location="WebContent/WEB-INF/lib/MaltCommon.jar" />
    <!--pathelement location="C:\oracle\Middleware_1136\wlserver_10.3\server\lib\weblogic.jar"/>
    <pathelement location="C:\oracle\Middleware_1136\wlserver_10.3\server\lib\webservices.jar" /-->
    <!--pathelement location="C:\oracle\Middleware_1213\Oracle_Home\wlserver\modules\clients\com.oracle.webservices.wls.jaxrpc-client.jar"/-->
    <pathelement location="C:\oracle\Middleware_12_11\wlserver_12.1\server\lib\Weblogic.jar" />
    <pathelement location="C:\oracle\Middleware_12_11\wlserver_12.1\server\lib\wseeclient.jar" />
    <pathelement location="WebContent/WEB-INF/lib/EFCRouterV2Server.jar" />
    <pathelement location="WebContent/WEB-INF/lib/cbs.jar" />   
</path>

<path id="refer.class.path">        
        <pathelement location="WebContent/WEB-INF/lib/MaltCommon.jar" />            
        <pathelement location="WebContent/WEB-INF/lib/EFCRouterV2Server.jar" />
        <pathelement location="WebContent/WEB-INF/lib/cbs.jar" />   
    </path>

<!--<manifestclasspath property="jar.list" jarfile="">
    <classpath refid="jar.class.path" />
</manifestclasspath>-->

<!-- Weblogic EJB validator and compiler -->

<!-- clean up  -->
<target name="clean">
    <delete dir="${staging_dir}" verbose="${debug}" />
    <delete dir="${deploy_dir}" verbose="${debug}" />

    <mkdir dir="${staging_dir}" />
    <mkdir dir="${deploy_dir}" />
</target>

<!--<target name="buildMaltEjbJar" depends="clean">

</target>-->

<target name="buildMaltEjbJar" depends="clean">
        <copy file="${malt_common_jar}" todir="WebContent/WEB-INF/lib" verbose="${verbose}" />
        <copy file="${rsag_req_jar1}" todir="WebContent/WEB-INF/lib" verbose="${verbose}" />
        <copy file="${rsag_req_jar2}" todir="WebContent/WEB-INF/lib" verbose="${verbose}" />

    <jwsc destdir="${staging_dir}" srcdir="../src" keepGenerated="true" debug="true" verbose="true" classpathref="project.class.path" classpath="project.class.path"> 

        <jws file="com/btg/malt/ejb/MaltBean.java" type="JAXRPC">
            <!--zipfileset dir="WebContent/WEB-INF/lib" prefix="WEB-INF/lib">
                                                                <include name="MaltCommon.jar"/>
                                                                <include name="EFCRouterV2Server.jar"/>
                                                                <include name="cbs.jar"/>
                        </zipfileset--> 
            </jws>
    </jwsc> 

            <!-- Compile the EJBs into staging -->
            <javac srcdir="${src_dir}" destdir="build_dir" compiler="modern" verbose="true">
                <classpath refid="project.class.path" />
            </javac>

            <!-- build J2EE application directory structure in staging -->
            <mkdir dir="${staging_dir}/META-INF" />

            <!-- copy META-INF (deployment descriptors) to staging>
            <copy todir="${staging_dir}/META-INF">
                <fileset dir="${src_dir}/META-INF" />
            </copy-->

            <!-- create EJB jar -->

    <jar jarfile="${deploy_dir}/${ejb_jar_file}" basedir="build_dir" />
    <ejbgen
                   source = "1.5"
                  outputDir = "${staging_dir}"
                  forceGeneration = "yes"
                  descriptorDir  = "C:\Users\hc335b\MALTWorkspace\MaltEjbs\build\staging\META-INF"
                >
                  <!--classpath>
                    <pathelement location="${staging_dir}/${ejb_jar_file}" />
                  </classpath-->
                  <fileset dir="C:\Users\hc335b\MALTWorkspace\MaltEjbs\src\com\btg\malt\ejb" includes="MaltBean.ejb" />
                    <!--fileset dir="C:\Users\hc335b\MALTWorkspace\MaltEjbs\src\com\btg\malt\interfaces" includes="Malt.java" /-->
                </ejbgen>

    <wlappc debug="true" forcegeneration="true" source="${staging_dir}/com/btg/malt/ejb/MaltBean.war" verbose="true"
        librarydir="Webcontent/WEB-INF/lib/">
                        <classpath refid="refer.class.path" />
    </wlappc>

    <ear appxml="C:\Users\hc335b\MALTWorkspace\MaltEjbs\build\staging\META-INF\application.xml" destfile="C:\Users\hc335b\MALTWorkspace\MaltEjbs\build\MaltEjbs.ear">   
          <fileset dir="C:\Users\hc335b\MALTWorkspace\MaltEjbs\build\staging\" />           
        <fileset dir="C:\Users\hc335b\MALTWorkspace\MaltEjbs\build\deploy\" />
    </ear>
    <!--<jar destfile="${staging_dir}/${ear_file}" basedir="${staging_dir}" />-->
    <!-- copy ear to deploy -->
    <!--<move file="${staging_dir}/${ear_file}" todir="${deploy_dir}" verbose="${verbose}" />-->
     <!--<zip destfile="MaltBean.war" update="true">                       
                   <zipfileset dir="Webcontent/WEB-INF/lib" includes="MaltCommon.jar" fullpath="WEB-INF/lib/MaltCommon.ja"/>
     </zip>-->
    </target>

<taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
        <classpath refid="project.class.path" /> 

</taskdef>
<taskdef name="wlappc" classpathref="project.class.path" classname="weblogic.ant.taskdefs.j2ee.Appc" />

<taskdef name="ejbgen" classname="com.bea.wls.ejbgen.ant.EJBGenAntTask" classpathref="project.class.path"/>

0 个答案:

没有答案