Unable to set classpath in Ant Script to compile AIA related api

Hi everyone,
I am trying to build customized ant scripts to compile,build & deploy (oracle 11g)AIA application using ANT tool.To compile composite application,"scac" target name is used.This scac will refer the classpath which was set at ant-sca-compile.xml.scac is compiling all integartion artifacts except AIA related api.I added aia.jar to classpath in ant-sca-compile.xml.still,scac is not recognizing aia.jar
I am getting below compilation problem
scac:
[scac] Validating composite : 'F:\AIA_Dev\BBProcessSupplierAppln\SyncSupplierPartyBBProvABCSImpl\bin/..//composite.xml'
[scac] F:\AIA_Dev\BBProcessSupplierAppln\SyncSupplierPartyBBProvABCSImpl\bin\..\SCA-INF\bpel\SyncSupplierPartyBBProvABCSImplProcess\src\orabpel\syncsupplierpartybbprovabcsimplprocess\ExecLetBxExe9.java:408: package oracle.apps.aia.core.eh.logging does not exist
[scac] Note: F:\AIA_Dev\BBProcessSupplierAppln\SyncSupplierPartyBBProvABCSImpl\bin\..\SCA-INF\bpel\SyncSupplierPartyBBProvABCSImplProcess\src\orabpel\syncsupplierpartybbprovabcsimplprocess\BPEL_BIN.java uses unchecked or unsafe operations.
[scac] Note: Recompile with -Xlint:unchecked for details.
[scac] FATAL_ERROR: location {ns:composite/ns:component[@name='SyncSupplierPartyBBProvABCSImplProcess']}(42,62): Failed to compile bpel generated classes.
[scac] failure to compile the generated BPEL classes for BPEL process "SyncSupplierPartyBBProvABCSImplProcess" of composite "default/SyncSupplierPartyBBProvABCSImpl!1.0"
[scac] The class path setting is incorrect.
[scac] Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
[scac]
Please let me know any body have faced above problem & resolved it.It is consuming more time.It would be appreciable,if any body provides solution for this.
Thanks in advance.
Thanks,
Hanu

Hi,
How are you referring to the class path. I have created my custom build file and I refer like this.
<path id="classpath">
  <pathelement location="${oracle.home}/lib/aia.jar"/>
  <pathelement location="${oracle.common.home}/modules/org.apache.commons.logging_1.0.4.jar"/>
</path> oracle.home is the location where my aia.jar resides.
In the compile-classes target I have
<!--Target for Class path details -->
<target name="compile-classes">
  <mkdir dir="${sca-inf.classes.dir}"/>
  <javac destdir="${sca-inf.classes.dir}"   classpathref="classpath"
         debug="on"                         nowarn="${javac.nowarn}"
         deprecation="${javac.deprecation}" encoding="Cp1252"
         source="1.6"                       target="1.6">
    <src path="${src.dir}"/>
  </javac> 
</target> Regards,
Neeraj Sehgal

Similar Messages

  • Clone dbtier error-- ERROR : Unable to set CLASSPATH

    i am setting a new clone of PROD server.i restored the backup from prod and now i ran
    perl adpreclone.pl dbTier
    Here is the error message-->
    perl adcfgclone.pl dbTier
    Enter the APPS password [APPS]:
    xxxx
    ERROR : Unable to set CLASSPATH
    /u02/lifedb/9.2.0/appsutil/clone/bin/../jlib/classes111.zip: is missing
    First Creating a new context file for the cloned system.
    The program is going to ask you for information about the new system:
    Error: can't find libjava.so.
    ERROR: context creation not completed successfully.
    Please check /tmp/adcfgclone_1376.err file for errors
    The err file does not have anything.
    I added /u02/lifedb/9.2.0/jdbc/lib to path and classpath. classpath is empty. I made cc,ar,ld,make,perl come in the path as well.
    Now how do i resolve the above err?
    Thanks

    If you want to migrate from Solaris to Linux, refer to:
    For the application tier:
    Note: 238276.1 - Migrating to Linux with Oracle Applications Release 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=238276.1
    For the database tier:
    Note: 362205.1 - 10g Release 2 Export/Import Process for Oracle Applications Release 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362205.1
    Note: 331221.1 - 10g Export/Import Process for Oracle Applications Release 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=331221.1
    Note: 230627.1 - Export/Import Process for Oracle Applications Release 11i Database Instances Using Oracle9i Enterprise Edition
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230627.1

  • Need ant script to compile, package, and deploy to Oracle AS 10.3.1

    I have a test app with ADF faces/jsf for front-end and EJB 3.0 Session Facade/Entity beans for back-end. The project structure/layout is similar to the SRDEMO app in JDeveloper. I was able to compile, package, and deploy within JDeveloper 10g to Oracle AS 10g successfully. Is there a sample ant script to compile, package, and deploy to Oracle AS 10g that I can run from command line? The build.xml that came with SRDEMO only do the compilation, not packaging and deployment. I was able to modify the SRDEMO's build.xml to compile my test app though. I still need the script to package and deploy it.
    Thanks,

    Hi,
    How are you referring to the class path. I have created my custom build file and I refer like this.
    <path id="classpath">
      <pathelement location="${oracle.home}/lib/aia.jar"/>
      <pathelement location="${oracle.common.home}/modules/org.apache.commons.logging_1.0.4.jar"/>
    </path> oracle.home is the location where my aia.jar resides.
    In the compile-classes target I have
    <!--Target for Class path details -->
    <target name="compile-classes">
      <mkdir dir="${sca-inf.classes.dir}"/>
      <javac destdir="${sca-inf.classes.dir}"   classpathref="classpath"
             debug="on"                         nowarn="${javac.nowarn}"
             deprecation="${javac.deprecation}" encoding="Cp1252"
             source="1.6"                       target="1.6">
        <src path="${src.dir}"/>
      </javac> 
    </target> Regards,
    Neeraj Sehgal

  • How to set "ErrorDestination" in Ant script

              Hi,
              I try to set the "ErrorDestination" attribute for a JMS Queue, by pointing to
              another previously created JMS Queue:
              <create type="JMSQueue" name="UploadErrorQueue" property="myqueue">
              <set attribute="JNDIName" value="aaa.jms.UploadErrorQueue"/>
              </create>
              <create type="JMSQueue" name="Upload Queue">
              <set attribute="JNDIName" value="aaa.jms.UploadQueue"/>
              <set attribute="ErrorDestination" value="${myqueue}"/
              </create>
              However, this does not work, I get an error saying that both JMS Queues must resided
              in the same Server, but this is the case, so I don'y get it?
              Any ideas?
              Kind regards,
              Laurent.
              

              Hi Laurent,
              you can use that queuename as a token and replace that token with the ant script.
              Lucky
              "Laurent" <[email protected]> wrote:
              >
              >Hi,
              >
              >I try to set the "ErrorDestination" attribute for a JMS Queue, by pointing
              >to
              >another previously created JMS Queue:
              >
              ><create type="JMSQueue" name="UploadErrorQueue" property="myqueue">
              > <set attribute="JNDIName" value="aaa.jms.UploadErrorQueue"/>
              ></create>
              >
              ><create type="JMSQueue" name="Upload Queue">
              > <set attribute="JNDIName" value="aaa.jms.UploadQueue"/>
              > <set attribute="ErrorDestination" value="${myqueue}"/
              ></create>
              >
              >However, this does not work, I get an error saying that both JMS Queues
              >must resided
              >in the same Server, but this is the case, so I don'y get it?
              >
              >Any ideas?
              >
              >Kind regards,
              >Laurent.
              >
              

  • Unable to set Answers from Java Script

    Hi,
    After user selects the answer for a particular question, i am able to get the selected answer using below Java script.
    var cp = document.Captivate;
    alert(cp.cpEIGetValue("m_VarHandle.cpQuizInfoAnswerChoice"));
    Based on some user info, i want to set the default answer using below Java Script. But below statement does not make the answer selection on the question slide.
    var cp = document.Captivate;
    cp.cpEISetValue("m_VarHandle.cpQuizInfoAnswerChoice","A");
    Is there a way we can set answer for a question dynamically using onEnter Action?
    Thanks,
    Krishna

    You first have to instantiate your class:
    DECLARE
      obj   ORA_JAVA.JOBJECT;
    BEGIN
      obj:=CLASSFORMS.new;     
      MESSAGE(CLASSFORMS.SALUDO(obj));
      MESSAGE(' ');
    END;

  • Unable to set classpath javax/swing/japplet in Linux

    Hi,
    I have a problem in running an Applet program in Linux. If I run I get the following message.
    "Javax/swing/JApplet error Java.lang.NoClassDefFound Error".
    I have set my .bash_profile as follows:
    CLASSPATH=/usr/java/jdk1.3_0_01/jre/lib
    CLASSPATH=/usr/java/jdk1.3_0_01/lib
    CLASSPATH=/usr/java/jdk1.3_0_01/
    EXPORT
    Please tell me whether I have created the .bash_profile correctly. or anything to be changed. It will be great help if anybody hep in this regard. I am held up in my project.
    Thnaks.
    Mari
    11/09/02

    You don't need to set the CLASSPATH to get javax.swing.JApplet - the JVM "automagically" knows where the rt.jar file is. The only items you need in your CLASSPATH environment are third-party .jar files.
    I'm taking a wild guess based on your subject line, but I'll bet you mis-typed the ClassName - "JApplet," not "japplet." Your code should have
    import javax.swing.JApplet;in it.

  • How to include jar files in ant script for compiling

    i am trying to manually include j2ee.jar for compiling, here is the entire build.xml:
    <?xml version="1.0"?>
    <!--PRIMARY build file for all of dev modual -->
    <project name="com" default="compile.all" basedir="../">
    <path id="project.class.path">
    <pathelement location="lib/"/>
    <pathelement path="${java.class.path}/"/>
    <pathelement path="${additional.path}"/>
    <pathelement path="${CLASSPATH}" />
    <pathelement path="${classpath}" />
    </path>
    <property name="SRCDIR" value="${basedir}/java" />
    <property name="DSTDIR" value="${basedir}/classes" />
    <property name="LIBDIR" value="${basedir}/libs" />
    <property name="JARDIR" value="${basedir}/jars" />
    <property name="DOCDIR" value="${basedir}/docs" />
    <property name="ORACLE.JAR" value="${LIBDIR}/orcl/8.1.7/classes12.zip" />
    <property name="JUNIT.JAR" value="${LIBDIR}/junit/3.7/junit.jar" />
    <property name="CLASSPATH" value="z:/tools/java;${SRCDIR};${DSTDIR};${JUNIT.JAR};${ORACLE.JAR}" />
    <property name="POLICYFILE" value="${SRCDIR}/com/leader/cti/main/ctimain.policy" />
    <property name="DEBUG_FLAG" value="on" />
    <property name="OPTIMIZE_FLAG" value="off" />
    <property name="DEPRECATION_FLAG" value="off" />
    <property name="RMI_VERSION" value="1.2" />
    <!-- builds everything -->
    <target name="compile.all">
    <antcall target="compile.cti"/>
    </target>
    <target name="compile.vbsf" description="Compiles files for vbsf.jar.">
    <mkdir dir="${DSTDIR}"/>
    <copy file="${SRCDIR}/VBSFELK5UD3SWQ2E.class" todir="${DSTDIR}"/>
    <javac srcdir="${SRCDIR}" destdir="${DSTDIR}" classpath="${CLASSPATH}" debug="${DEBUG_FLAG}" deprecation="${DEPRECATION_FLAG}" optimize="${OPTIMIZE_FLAG}" >
    <include name="com/objectmatter/**/*.java" />
    </javac>
    </target>
    <target name="compile.persist" description="Compiles files for persist.jar." depends="compile.vbsf" >
    <javac srcdir="${SRCDIR}" destdir="${DSTDIR}" debug="${DEBUG_FLAG}" deprecation="${DEPRECATION_FLAG}" optimize="${OPTIMIZE_FLAG}" >
    <classpath refid="project.class.path"/>
    <include name="com/leader/persist/**/*.java" />
    <include name="testcom/leader/persist/**/*.java" />
    </javac>
    </target>
    <target name="compile.cti" description="Compiles files for both cti jars." depends="compile.persist,compile.cti.only" />
    <target name="compile.cti.only" description="Compiles files for both cti jars." >
    <javac srcdir="${SRCDIR}" destdir="${DSTDIR}" debug="${DEBUG_FLAG}" deprecation="${DEPRECATION_FLAG}" optimize="${OPTIMIZE_FLAG}" >
    <classpath refid="project.class.path"/>
    <include name="com/leader/cti/**/*.java" />
    <include name="testcom/leader/cti/**/*.java" />
    </javac>
    <rmic classpath="${CLASSPATH}" base="${DSTDIR}" stubversion="${RMI_VERSION}" >
    <include name="com/leader/cti/main/RMICTIService.class" />
    <include name="com/leader/cti/main/RMIConferenceCall.class" />
    <include name="com/leader/cti/main/RMIConferenceCallReservation.class" />
    <include name="com/leader/cti/main/FakeRmiCtiService.class" />
    <include name="com/leader/cti/main/FakeRmiConferenceCall.class" />
    <!--include name="com/leader/cti/main/DerivedQueueReceiver.class"/-->
    </rmic>
    </target>
    <!-- build all dev jars -->
    <target name="jar.all"
    description="Create all jar files"
    depends="jar.vbsf, jar.persist, jar.jeti, jar.service"/>
    <!-- build vbsf.jar -->
    <target name="jar.vbsf"
    description="Create client distribution jar for vbsf code"
    depends="compile.vbsf" >
    <mkdir dir="${JARDIR}" />
    <jar jarfile="${JARDIR}/vbsf.jar"
    basedir="${DSTDIR}" >
    <include name="VBSFELK5UD3SWQ2E.class"/>
    <include name="com/objectmatter/**/*.class" />
    </jar>
    </target>
    <!-- build persist.jar -->
    <target name="jar.persist"
    description="Create client distribution jar"
    depends="compile.vbsf,compile.persist" >
    <mkdir dir="${JARDIR}" />
    <jar jarfile="${JARDIR}/persist.jar"
    basedir="${DSTDIR}" >
    <include name="com/leader/persist/**/*.class" />
    </jar>
    </target>
    <!-- build jeti.jar -->
    <target name="jar.jeti"
    description="Create client distribution jar"
    depends="compile.vbsf,compile.persist,compile.cti" >
    <mkdir dir="${JARDIR}" />
    <jar jarfile="${JARDIR}/jeti.jar"
    basedir="${DSTDIR}" >
    <include name="com/leader/cti/rmiint/*" />
    <include name="com/leader/cti/main/*Stub*" />
    <include name="com/leader/cti/util/**" />
    <include name="com/leader/cti/vru/*" />
    <include name="com/leader/cti/interfaces/*" />
    <include name="com/leader/cti/history/*" />
    <include name="com/leader/cti/autodial/*" />
    </jar>
    </target>
    <!-- build jeti_service.jar -->
    <target name="jar.service"
    description="Create the jar file for the service"
    depends="compile.vbsf,compile.persist,compile.cti" >
    <mkdir dir="${JARDIR}" />
    <copy file="${basedir}/vbsf/cti.schema" tofile="${DSTDIR}/cti.schema" />
    <copy file="${basedir}/vbsf/cti.schema" tofile="/tools/java/com/leader/osapplication/persist/cti.schema" />
    <jar jarfile="${JARDIR}/jeti_service.jar"
    basedir="${DSTDIR}" >
    <include name="com/leader/cti/**" />
    <include name="cti.schema" />
    </jar>
    </target>
    <!-- build jeti.jar, jeti_service.jar -->
    <target name="jar.cti"
    description ="Create client/server jars for cti"
    depends="jar.jeti,jar.service" />
    <!-- clean everything. -->
    <target name="clean">
    <delete dir="${DSTDIR}" />
    <delete dir="${JARDIR}" />
    <delete dir="${DOCDIR}" />
    </target>
    <target name="clean.cti" description="clean cti class files (not jars)">
    <delete dir="${DSTDIR}/com/leader/cti" />
    <delete dir="${DSTDIR}/testcom/leader/cti" />
    </target>
    <!-- Run the gui CTI tests -->
    <target name="test_cti_gui">
    <java classname="junit.swingui.TestRunner" classpath="${CLASSPATH}" fork="yes">
    <arg value="testcom.leader.cti.CTIPackageTest"/>
    <sysproperty key="leader.unique_number_generator.file" value="unique_number_generator_file_test" />
    <sysproperty key="vbsf.repository" value="/tools/java/dev/vbsf" />
    <sysproperty key="vbsf.enableGlobalCaching" value="false" />
    </java>
    </target>
    <target name="test.cti.gui"
    depends="test_cti_gui" />
    <!-- Run the text version of CTI tests -->
    <target name="test">
    <java classname="junit.textui.TestRunner" classpath="${CLASSPATH}" fork="yes">
    <arg value="testcom.leader.cti.CTIPackageTest"/>
    <sysproperty key="leader.unique_number_generator.file" value="unique_number_generator_file_test" />
    </java>
    </target>
    <!-- Run CTI service -->
    <target name="run.service"
    description="run the service normally"
    depends="compile.all" >
    <java classname="com.leader.cti.main.CTIMain"
    classpath="${CLASSPATH}"
    fork="yes" >
    <sysproperty key="java.security.policy"
    file="${POLICYFILE}" />
    <sysproperty key="config.dir"
    value="${SRCDIR}/com/leader/cti/main/" />
    </java>
    </target>
    <!-- Run fake CTI service -->
    <target name="run.service.fake"
    description="run the fake service"
    depends="compile.all" >
    <java classname="com.leader.cti.main.FakeCtiMain"
    classpath="${CLASSPATH}"
    fork="yes" >
    <sysproperty key="java.security.policy"
    file="${POLICYFILE}" />
    <sysproperty key="config.dir"
    value="${SRCDIR}/com/leader/cti/main/" />
    </java>
    </target>
    <!-- Run CTI service emulator -->
    <target name="run.service.emulator"
    description="run the service normally"
    depends="compile.all" >
    <java classname="com.leader.cti.main.CTIMain"
    classpath="${CLASSPATH}"
    fork="yes" >
    <sysproperty key="java.security.policy"
    file="${POLICYFILE}" />
    <sysproperty key="config.dir"
    value="${SRCDIR}/com/leader/cti/main/" />
    <sysproperty key="vru.propertyfile"
    value="emulator.properties" />
    </java>
    </target>
    <!-- Runs the CTI service and emulator -->
    <target name="run.emulator"
    description="run the service and the emulator"
    depends="compile.all" >
    <java classname="testcom.leader.cti.vru.emulator.VRUEmulator"
    classpath="${CLASSPATH}"
    fork="yes" />
    </target>
    <!-- Runs the gui CONCALL testss -->
    <target name="run.gui"
    description="run the concall test gui"
    depends="compile.all" >
    <java classname="testcom.leader.cti.main.SwingClient"
    classpath="${CLASSPATH}"
    fork="yes" >
    <sysproperty key="java.security.policy"
    file="${POLICYFILE}" />
    </java>
    </target>
    <!-- Fires the maptool up. Defaults to CTI`s Schema file. -->
    <target name="maptool" >
    <java classname="com.objectmatter.bsf.mapping.toolgui.MapTool"
    fork="yes"
    classpath="${CLASSPATH}" >
    <sysproperty key="vbsf.repository" value="${basedir}/vbsf" />
    </java>
    </target>
    <target name="javadoc_cti">
    <mkdir dir="${basedir}/docs"/>
    <javadoc packagenames="com.leader.*" classpath="${CLASSPATH}" sourcepath="${SRCDIR}" destdir="${DOCDIR}\cti" author="true" version="true" use="true" windowtitle="Leader CTI API" doctitle="Leader Technologies, Inc" bottom="Copyright &#169; 2005 Leader Technologies Incorporated.<BR>All Rights Reserved." maxmemory="128m">
    <group title="Leader CTI Packages" packages="com.leader*"/>
    </javadoc>
    </target>
    <target name="javadoc_vbsf">
    <mkdir dir="${basedir}/docs"/>
    <javadoc packagenames="com.objectmatter.* " classpath="${CLASSPATH}" sourcepath="${SRCDIR}" destdir="${DOCDIR}" author="true" version="true" use="true" windowtitle="VBSF by ObjectMatter API" doctitle="Leader Technologie, Inc" bottom="Copyright &#169; 2005 Leader Technologies Incorporated.<BR>All Rights Reserved." maxmemory="128m">
    <group title="Objectivity Packages" packages="com.objectmatter.*"/>
    </javadoc>
    </target>
    </project>
    i am getting this:
    compile.all:
    compile.vbsf:
    compile.persist:
    compile.cti.only:
    Compiling 1 source file to C:\Projects\Leader\dev\classes
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:14: package javax.jms does not exist
    import javax.jms.*;
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:17: package javax.jms does not exist
    import javax.jms.Queue;
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:18: package javax.jms does not exist
    import javax.jms.JMSException;
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:19: package javax.jms does not exist
    import javax.jms.Message;
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:28: cannot find symbol
    symbol: class MessageListener
    public abstract class BasicMQReceiverAsyncR implements Runnable, MessageListener
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:44: cannot find symbol
    symbol : class QueueConnectionFactory
    location: class BasicMQReceiverAsyncR
    QueueConnectionFactory queueConnectionFactory = null;
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:45: cannot find symbol
    symbol : class QueueConnection
    location: class BasicMQReceiverAsyncR
    QueueConnection queueConnection = null;
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:46: cannot find symbol
    symbol : class QueueSession
    location: class BasicMQReceiverAsyncR
    QueueSession queueSession = null;
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:48: cannot find symbol
    symbol : class QueueReceiver
    location: class BasicMQReceiverAsyncR
    QueueReceiver queueReceiver = null;
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:49: cannot find symbol
    symbol : class TextMessage
    location: class BasicMQReceiverAsyncR
    TextMessage message = null;
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:406: cannot find symbol
    symbol : class QueueConnectionFactory
    location: class BasicMQReceiverAsyncR
    queueConnectionFactory = (QueueConnectionFactory)
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:408: package javax.jms does not exist
    queue = (javax.jms.Queue) jndiContext.lookup(QUEUE_NAME); //queue1 = (javax.jms.Queue)jndiContext.lookup("MyQueue1");
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:433: cannot find symbol
    symbol : variable Session
    location: class BasicMQReceiverAsyncR
    Session.AUTO_ACKNOWLEDGE);
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:447: cannot find symbol
    symbol : class JMSException
    location: class BasicMQReceiverAsyncR
    catch (JMSException e)
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:461: cannot find symbol
    symbol : class JMSException
    location: class BasicMQReceiverAsyncR
    catch (JMSException x)
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:482: cannot find symbol
    symbol : class BytesMessage
    location: class BasicMQReceiverAsyncR
    if (m instanceof BytesMessage)
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:488: cannot find symbol
    symbol : class BytesMessage
    location: class BasicMQReceiverAsyncR
    BytesMessage bytesMsg = (BytesMessage)m;
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:488: cannot find symbol
    symbol : class BytesMessage
    location: class BasicMQReceiverAsyncR
    BytesMessage bytesMsg = (BytesMessage)m;
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:501: cannot find symbol
    symbol : class QueueSession
    location: class BasicMQReceiverAsyncR
    QueueSession queueSession2 = null;
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:502: cannot find symbol
    symbol : class QueueSender
    location: class BasicMQReceiverAsyncR
    QueueSender queueSender2 = null;
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:510: cannot find symbol
    symbol : variable Session
    location: class BasicMQReceiverAsyncR
    Session.AUTO_ACKNOWLEDGE);
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:514: cannot find symbol
    symbol : class BytesMessage
    location: class BasicMQReceiverAsyncR
    BytesMessage bytesMessage = queueSession.createBytesMessage();
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:523: cannot find symbol
    symbol : variable DeliveryMode
    location: class BasicMQReceiverAsyncR
    DeliveryMode.PERSISTENT,
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:524: cannot find symbol
    symbol : variable DEFAULT_PRIORITY
    location: class com.leader.cti.vru.Message
    Message.DEFAULT_PRIORITY,
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:525: cannot find symbol
    symbol : variable DEFAULT_TIME_TO_LIVE
    location: class com.leader.cti.vru.Message
    Message.DEFAULT_TIME_TO_LIVE);
    C:\Projects\Leader\dev\java\com\leader\cti\msgqueue\BasicMQReceiverAsyncR.java:529: cannot find symbol
    symbol : class JMSException
    location: class BasicMQReceiverAsyncR
    catch (JMSException x)
    26 errors
    C:\Projects\Leader\dev\java\build.xml:34: The following error occurred while executing this line:
    C:\Projects\Leader\dev\java\build.xml:56: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 8 seconds)
    my class path is:
    .;C:\Projects\Leader\prototype\jms\build\classes;C:\Projects\Leader\dev\libs\persist.jar;C:\Projects\Leader\dev\classes;%OPENJMS_HOME%\lib;%OPENJMS_HOME%\lib\antlr-2.7.2.jar;%OPENJMS_HOME%\lib\castor-0.9.5.jar;%OPENJMS_HOME%\lib\commons-codec-1.3.jar;%OPENJMS_HOME%\lib\commons-collections-2.1.jar;%OPENJMS_HOME%\lib\commons-dbcp-1.2.1.jar;%OPENJMS_HOME%\lib\commons-logging-1.0.4.jar;%OPENJMS_HOME%\lib\commons-pool-1.2.jar;%OPENJMS_HOME%\lib\concurrent-1.3.4.jar;%OPENJMS_HOME%\lib\derby-10.1.1.0.jar;%OPENJMS_HOME%\lib\jdbc-2.0.jar;%OPENJMS_HOME%\lib\jms-1.1.jar;%OPENJMS_HOME%\lib\jndi-1.2.1.jar;%OPENJMS_HOME%\lib\jta-1.0.1.jar;%OPENJMS_HOME%\lib\log4j-1.2.11.jar;%OPENJMS_HOME%\lib\openjms-0.7.7-beta-1.jar;%OPENJMS_HOME%\lib\openjms-common-0.7.7-beta-1.jar;%OPENJMS_HOME%\lib\openjms-net-0.7.7-beta-1.jar;%OPENJMS_HOME%\lib\openjms-tools-0.7.7-beta-1.jar;%OPENJMS_HOME%\lib\oro-2.0.8.jar;%OPENJMS_HOME%\lib\spice-jndikit-1.2.jar;%OPENJMS_HOME%\lib\xerces-2.4.0.jar;%OPENJMS_HOME%\lib\xml-apis-1.0.b2.jar;%J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib
    as you can see j2ee.jar is in %J2EE_HOME%\lib, but still doesn't work. can someone help me?

    <property name="messaging.client.jar.path" value="Location in your local drive" />
    <property name="messaging.client.jar.name" value="nameOfYourFile.jar" />

  • Problems in setting classpath in vista

    i am using Xp pro and Vista.
    My issue is that I am not able to set classpath in vista.
    i want to set classpath so that I can compile and run programs from different folder other than default one in which java is installed.
    Please help.

    i am using Xp pro and Vista.
    My issue is that I am not able to set classpath in
    vista.
    Don't worry about it. The CLASSPATH variable is best avoided anyway. Specify classpaths for particular apps on the command-line. Teh Docs show you how
    i want to set classpath so that I can compile and run
    programs from different folder other than default one
    in which java is installed.
    Please help.This suggests you're talking about PATH rather than classpath. Do you understand the difference?

  • Does anyone know how to convert the .deploy file to ant script

    hi guys ,
    I am doing some work relate to J2EE/ADF application deployment. I need ant script to compile/ear and remote deploy.
    Does anyone know how to generate the ant script based on the .deploy file (eg.ejb.deploy and webservice.deploy ).
    although I can generate the ant script with creating buildfile from project ,but all the ant tasks are just compile ,no other deploy task...
    I much appreciate if anyone can give me a clue
    Kevin

    I don't know how to convert a .deploy file but you may use below commands to remotely deploy an ear file
    To compile
    c:\Oracle\Middleware\jdeveloper\jdev\bin\ojdeploy -profile EarProfile -workspace MyApp\MyApp.jws
    To Deploy
    c:\Oracle\Middleware\wlserver_10.3\server\bin\setWLSEnv.cmd
    java weblogic.Deployer -adminurl http://localhost:7101 -user weblogic -password weblogic1 -deploy -upload MyApp\deploy\EarProfile.earMore Details
    http://edocs.bea.com/wls/docs100/deployment/understanding.html#wp1057841

  • ANT_HOME is set incorrectly while deploying BPEL 11g using Ant script

    Hi All,
    I am new to ant script, i am deploying BPEL process(11g) using ant script. I set ANT_HOME to G:\Oracle\Middleware\jdeveloper\ant (the location of ant ) and i set PATH to G:\Oracle\Middleware\jdeveloper\ant\bin
    while excecuting 'call ant -f build.soa.xml deployeComposite -Dtargetenv dev
    i am getting the this error
    "ANT_HOME is set incorrectly or ant could not be located please set ANT_HOME"
    please help me in this issue..
    Thanks in advance

    Why? Just copy/paste the error into Google and help yourself.
    For further assistance with your SOA suite deployment issue, refer to a SOA suite related forum. This has absolutely -nothing- to do with general Java development and especially not the java compiler.

  • Calling Ant script from Jdeveloper

    Hello Gurus,
    I am trying to call Ant script from Jdeveloper.
    I am able to call it when i don't use any javac in ant script.
    But as soon as i include a javac command
       <javac srcdir="${src}" destdir="${build}"/>
    I get below error
    C:\ant\windows\svn\AntJava\Project1\build.xml:20: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK.
    It is currently set to "C:\Oracle\jdk160_24\jre"
    Needless to say i already have implemented all the steps mentioned in the internet.
    I have my JAVA_HOME correctly set in my PATH environment variable.
    I have tools.jar in the CLASSPATH
    Please give a solution from JDeveloper perspective and not a generic one as i am done with all the steps provided in internet.

    any one?????

  • SOA Composite (having refernce to MDS )Deployment thru ANT script

    I have been trying to deploy SOA composite which has reference to 'oramds:/soa/shared/workflow/TaskServiceInterface.wsdl' thru ANT script.But getting below error -
    scac-validate:
    [echo] Running scac-validate in D:\apps\saurabhk\deployment\Error Logging\Ev
    entHandlerSubscriberComposite\bin/..//composite.xml
    [echo] oracle.home = D:/apps/common/mw_home/jdeveloper
    [input] skipping input as property compositeDir has already been set.
    [input] skipping input as property compositeName has already been set.
    [input] skipping input as property revision has already been set.
    scac:
    [scac] Validating composite "D:\apps\saurabhk\deployment\Error Logging\Event
    HandlerSubscriberComposite\bin/..//composite.xml"
    [scac] FATAL_ERROR: location {ns:composite}(12,61): Parse of component type
    files failed, check the adf-config.xml file : "oracle.fabric.common.FabricExcept
    ion: oracle.mds.config.MDSConfigurationException: MDS-01330: unable to load MDS c
    onfiguration document
    [scac] MDS-01329: unable to load element "persistence-config"
    [scac] MDS-01370: MetadataStore configuration for metadata-store-usage "msto
    re-usage_1" is invalid.
    [scac] MDS-01259: The metadata store "oracle.mds.persistence.stores.db.DBMet
    adataStore" cannot be instantiated.
    [scac] oracle.jdbc.driver.T4CConnection.isValid(I)Z
    [scac] : MDS-01330: unable to load MDS configuration document
    [scac] MDS-01329: unable to load element "persistence-config"
    [scac] MDS-01370: MetadataStore configuration for metadata-store-usage "msto
    re-usage_1" is invalid.
    [scac] MDS-01259: The metadata store "oracle.mds.persistence.stores.db.DBMet
    adataStore" cannot be instantiated.
    [scac] oracle.jdbc.driver.T4CConnection.isValid(I)Z
    [scac] : oracle.mds.config.MDSConfigurationException: MDS-01330: unable to l
    oad MDS configuration document
    [scac] MDS-01329: unable to load element "persistence-config"
    [scac] MDS-01370: MetadataStore configuration for metadata-store-usage "msto
    re-usage_1" is invalid.
    [scac] MDS-01259: The metadata store "oracle.mds.persistence.stores.db.DBMet
    adataStore" cannot be instantiated.
    [scac] oracle.jdbc.driver.T4CConnection.isValid(I)Z
    [scac] : MDS-01330: unable to load MDS configuration document
    [scac] MDS-01329: unable to load element "persistence-config"
    [scac] MDS-01370: MetadataStore configuration for metadata-store-usage "msto
    re-usage_1" is invalid.
    [scac] MDS-01259: The metadata store "oracle.mds.persistence.stores.db.DBMet
    adataStore" cannot be instantiated.
    [scac] oracle.jdbc.driver.T4CConnection.isValid(I)Z
    [scac] "
    BUILD FAILED
    I have mentioned MSD information in build.properties file and adf-config.xml file.
    build.properties :-
    foreign.mds.type=db
    mds.db.userid=XXX
    mds.db.password=XX
    mds.db.jdbc-url=jdbc:oracle:thin:@XXX.XXX.XXX.XXX:1521:DBC
    adf-config.xml:-
    <?xml version="1.0" encoding="windows-1252" ?>
    <adf-config xmlns="http://xmlns.oracle.com/adf/config"
    xmlns:sec="http://xmlns.oracle.com/adf/security/config">
    <!-- server side db backed mds settings -->
    <adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config">
    <mds-config xmlns="http://xmlns.oracle.com/mds/config">
    <persistence-config>
    <metadata-namespaces>
    <!-- shared namespace for soa artifacts, such as xsd / wsdl -->
    <namespace metadata-store-usage="mstore-usage_1" path="/soa/shared"/>
    <!-- customer namespace for sharing stuff -->
    <namespace metadata-store-usage="mstore-usage_1" path="/apps"/>
    <!-- configuration namespace for the SE/BCs, only exists on the server -->
    <namespace metadata-store-usage="mstore-usage_1" path="/soa/configuration"/>
    </metadata-namespaces>
    <metadata-store-usages>
    <metadata-store-usage id="mstore-usage_1">
    <metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
    <property name="jdbc-userid" value="XXXX"/>
    <property name="jdbc-password" value="XXXX"/>
    <property name="jdbc-url"
    value="jdbc:oracle:thin:@XXX.XXX.XXX.XX:1521:DBC"/>
    <property name="partition-name" value="soa-infra"/>
    </metadata-store>
    </metadata-store-usage>
    </metadata-store-usages>
    </persistence-config>
    </mds-config>
    </adf-mds-config>
    <sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
    <CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"
    credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
    </sec:adf-security-child>
    </adf-config>
    Please let me know if you need any more informattion.
    Thanks in advance

    [scac] MDS-01259: The metadata store "oracle.mds.persistence.stores.db.DBMetadataStore" cannot be instantiated.This error tells that the parameters you have given in build.properties are incorrect. Cross check them again. Make sure that property mds.db.userid points to a MDS schema (for example dev_mds)
    Regards,
    Anuj

  • Exported ant script -- NoClassDefFound?

    I've exported ant script from workshop (wls9.2 eclipse) and I was able to build the app.war (web services) ok.
    However I saw message like this:
    "assembly: Imput fileset contained no files, nothing to do."
    And when I deployed the war to server and tried to access the webservices, it gave me NoClassDefFound error.
    Also I noticed that the ".staging" directory has empty "lib" dir under it.
    Does anyone know how to fix it?
    Here is the generated build.xml and workspace.xml.
    ========================= workspace.xml==============
    <?xml version="1.0" encoding="UTF-8"?>
    <node name="metadata">
    <node name="projects">
    <node name="billingservice">
    <attribute name="location" value="C:/home/rlee/projects/telepacific/billingservice"/>
    </node>
    </node>
    <node name="library-modules">
    <node name="library-module">
    <attribute name="location" value="%wl.home%/common/deployable-libraries/wls-commonslogging-bridge.war"/>
    </node>
    <node name="library-module">
    <attribute name="location" value="%wl.home%/common/deployable-libraries/weblogic-controls-1.0.war"/>
    </node>
    <node name="library-module">
    <attribute name="location" value="%wl.home%/common/deployable-libraries/beehive-controls-1.0.war"/>
    </node>
    </node>
    <node name="server-runtimes">
    <node name="BEA WebLogic v9.2">
    <attribute name="location" value="%wl.home%"/>
    </node>
    </node>
    <node name="vm-locations">
    <attribute name="defaultVM" value="C:/bea/wls922/jdk150_10"/>
    <node name="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/BEA WebLogic v9.2 JRE">
    <attribute name="location" value="c:/bea/wls922/jrockit90_150_10"/>
    </node>
    </node>
    <node name="classpath-vars">
    <node name="SDKS_HOME">
    <attribute name="value" value="c:/home/rlee/projects/mpower/sdks"/>
    </node>
    <node name="WEBLOGIC_HOME">
    <attribute name="value" value="%wl.home%"/>
    </node>
    </node>
    </node>
    ======================= end of workspace.xml==============
    ==================== exported build.xml ====================
    <project default="build">
    <description>
    Project build script. All public targets require the "workspace" property to be
    set at invocation. It can either point at the Eclipse workspace directory that
    this project belongs to or an exported workspace.xml file. The wl.home property
    may also need to be specified unless WL_HOME environment variable is defined.
    </description>
    <target name="init.env" unless="init.env.executed">
    <property name="init.env.executed" value="true"/>
    <property environment="env"/>
    <condition property="wl.home" value="${env.WL_HOME}">
    <isset property="env.WL_HOME"/>
    </condition>
    <fail unless="wl.home" message="The wl.home property needs to be set!"/>
    </target>
    <target name="init.typedefs" depends="init.env" unless="init.typedefs.executed">
    <property name="init.typedefs.executed" value="true"/>
    <typedef resource="com/bea/wlw/antlib/antlib.xml">
    <classpath>
    <fileset dir="${wl.home}">
    <include name="workshop/lib/wlw-antlib.jar"/>
    <include name="workshop/lib/wlw-util.jar"/>
    <include name="workshop/lib/wlw-libmodules.jar"/>
    <include name="workshop/lib/wlw-splitsrc.jar"/>
    <include name="server/lib/ant/ant-contrib-1.0b1.jar"/>
    </fileset>
    </classpath>
    </typedef>
    </target>
    <target name="init" depends="init.env,init.typedefs" unless="init.executed">
    <property name="init.executed" value="true"/>
    <fail unless="workspace" message="The workspace property needs to be set!"/>
    <dirname property="project.dir" file="${ant.file}"/>
    <property name="echo.metadata" value="false"/>
    <mdimport workspace="${workspace}" pjdir="${project.dir}" echo="${echo.metadata}">
    <option name="skipAnnotationProcessors" value="com.bea.wlw.webservices.core"/>
    </mdimport>
    <property name="archive.name" value="${project.name}.war"/>
    <property name="uri" value="${archive.name}"/>
    <taskdef name="xmlbean"
    classname="org.apache.xmlbeans.impl.tool.XMLBean">
    <classpath>
    <pathelement path="${wl.home}/common/lib/apache_xbean.jar"/>
    <pathelement path="${wl.home}/common/eclipse/plugins/com.bea.eclipse.common.lib.apache_xbean2/jsr173_api.jar"/>
    </classpath>
    </taskdef>
    <property name="generated.module.root" value="${project.dir}/build/weboutput"/>
    <property name="assembly.src" value="${project.dir}/build/assembly/.src"/>
    </target>
    <target name="build" depends="init" description=" compiles the source files; does not package the results">
    <for list="0,1,2,3,4,5,6,7,8,9" param="i">
    <sequential>
    <if>
    <and>
    <isset property="xbean.src.@{i}.dir"/>
    <available file="${xbean.src.@{i}.dir}"/>
    </and>
    <then>
    <fileset id="xbean.src.paths.@{i}"
    dir="${xbean.src.@{i}.dir}"
    includes="${xbean.src.@{i}.include}"
    excludes="${xbean.src.@{i}.exclude}"/>
    </then>
    <else>
    <fileset id="xbean.src.paths.@{i}"
    file="null_file_set"/>
    </else>
    </if>
    </sequential>
    </for>
    <if>
    <isset property="xbean.include-classpath-contributions"/>
    <then>
    <path id="xbean.classpath">
    <path refid="java.classpath"/>
    </path>
    </then>
    <else>
    <path id="xbean.classpath">
    <pathelement location="${wl.home}/common/lib/apache_xbean.jar"/>
    </path>
    </else>
    </if>
    <mkdir dir="${xbean.src.output.dir}"/>
    <mkdir dir="${xbean.bin.output.dir}"/>
    <xmlbean
    javasource="${xbean.java-version}"
    download="${xbean.download-network-urls}"
    typesystemname="${xbean.schema-type-name}"
    noupa="${xbean.unique-particle-attribution}"
    nopvr="${xbean.particle-valid-restriction}"
    noannotations="${xbean.skip-annotations}"
    ignoreDuplicatesInNamespaces="${xbean.namespaces-to-ignore-dups}"
    srcgendir="${xbean.src.output.dir}"
    classgendir="${xbean.bin.output.dir}"
    classpathref="xbean.classpath"
    srconly="true">
    <fileset refid="xbean.src.paths.0"/>
    <fileset refid="xbean.src.paths.1"/>
    <fileset refid="xbean.src.paths.2"/>
    <fileset refid="xbean.src.paths.3"/>
    <fileset refid="xbean.src.paths.4"/>
    <fileset refid="xbean.src.paths.5"/>
    <fileset refid="xbean.src.paths.6"/>
    <fileset refid="xbean.src.paths.7"/>
    <fileset refid="xbean.src.paths.8"/>
    <fileset refid="xbean.src.paths.9"/>
    </xmlbean>
    <if>
    <isreference refid="apt.factory.path"/>
    <then>
    <mkdir dir="${apt.src.output.dir}"/>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.dir}"/>
    <then>
    <mkdir dir="${.java.src.output}"/>
    <apt
    sourcepath="${java.sourcepath}"
    srcdir="${.java.src.dir}"
    includes="${.java.src.include}"
    excludes="${.java.src.exclude}"
    destdir="${.java.src.output}"
    preprocessdir="${apt.src.output.dir}"
    classpathref="java.classpath"
    factorypathref="apt.factory.path"
    options="${apt.options}"
    compile="false"/>
    </then>
    </if>
    </for-each-java-src-path>
    </then>
    </if>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.dir}"/>
    <then>
    <mkdir dir="${.java.src.output}"/>
    <javac
    sourcepath="${java.sourcepath}"
    srcdir="${.java.src.dir}"
    includes="${.java.src.include}"
    excludes="${.java.src.exclude}"
    destdir="${.java.src.output}"
    classpathref="java.classpath"
    debug="on"/>
    </then>
    </if>
    </for-each-java-src-path>
    <delete dir="${generated.module.root}"/>
    <mkdir dir="${generated.module.root}"/>
    <resolve-path property="user.web.xml" path="WEB-INF/web.xml"/>
    <resolve-path property="user.weblogic.xml" path="WEB-INF/weblogic.xml"/>
    <copy todir="${generated.module.root}/WEB-INF" file="${user.web.xml}" />
    <copy todir="${generated.module.root}/WEB-INF" file="${user.weblogic.xml}" failonerror="false" />
    </target>
    <target name="clean" depends="init" description=" removes the files and directories generated by the build target">
    <if>
    <available file="${xbean.src.output.dir}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${xbean.src.output.dir}" includes="**/*"/>
    </delete>
    </then>
    </if>
    <if>
    <available file="${xbean.bin.output.dir}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${xbean.bin.output.dir}" includes="**/*"/>
    </delete>
    </then>
    </if>
    <if>
    <available file="${apt.src.output.dir}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${apt.src.output.dir}" includes="**/*"/>
    </delete>
    </then>
    </if>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.output}"/>
    <then>
    <if>
    <equals arg1="${.java.src.dir}" arg2="${.java.src.output}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${.java.src.output}">
    <or>
    <filename name="**/*.class"/>
    <and>
    <type type="dir"/>
    <depth min="0"/>
    </and>
    </or>
    </fileset>
    </delete>
    </then>
    <else>
    <delete includeEmptyDirs="true">
    <fileset dir="${.java.src.output}" includes="**/*"/>
    </delete>
    </else>
    </if>
    </then>
    </if>
    </for-each-java-src-path>
    <delete dir="${assembly.src}"/>
    <delete dir="${generated.module.root}"/>
    <mkdir dir="${generated.module.root}"/>
    </target>
    <target name="assemble" depends="init" description=" assembles the project for iterative dev deployment; requires that the "ear.root" property is specified">
    <property name="prefix" value=""/>
    <for-each-resource-path>
    <link ear="${ear.root}" source="${.resource.path}" target="${prefix}${uri}/${.resource.prefix}"/>
    </for-each-resource-path>
    <!-- Link in referenced utility projects into the WEB-INF/lib directory. -->
    <for-each-referenced-component>
    <if>
    <and>
    <equals arg1="${.referenced.component.type}" arg2="project"/>
    <equals arg1="${.referenced.component.target.path}" arg2="WEB-INF/lib"/>
    </and>
    <then>
    <antex
    antfile="${.referenced.component.handle}/build.xml"
    dir="${.referenced.component.handle}"
    target="assemble"
    inheritUserProps="false"
    inheritAll="false"
    inheritRefs="false">
    <property name="wl.home" value="${wl.home}"/>
    <property name="patch.home" value="${patch.home}"/>
    <property name="workspace" value="${workspace}"/>
    <property name="init.typedefs.executed" value="true"/>
    <property name="ear.root" value="${ear.root}"/>
    <property name="prefix" value="${uri}/WEB-INF/lib/"/>
    </antex>
    </then>
    </if>
    </for-each-referenced-component>
    <link ear="${ear.root}" source="${xbean.bin.output.dir}" target="${link.target}"/>
    <link ear="${ear.root}" source="${generated.module.root}" target="${uri}"/>
    <antcall target="assembly" inheritAll="true" inheritRefs="true" >
    <param name="ear.root" value="${ear.root}"/>
    </antcall>
    <antcall target="webservice.build" inheritAll="true" inheritRefs="true" />
    </target>
    <target name="stage" depends="init" description=" copies all of project's resources and build artifacts into a form that's ready for archive creation; staging directory can be overridden via the "staging.dir" property">
    <antcall target="assembly" inheritAll="true" inheritRefs="true" >
    <param name="ear.root" value="${ear.staging.dir}"/>
    </antcall>
    <antcall target="webservice.build" inheritAll="true" inheritRefs="true" />
    <property name="staging.dir" value="${project.dir}/.staging"/>
    <delete dir="${staging.dir}" quiet="true"/>
    <mkdir dir="${staging.dir}"/>
    <for-each-resource-path>
    <if>
    <available file="${.resource.path}"/>
    <then>
    <if>
    <isfile path="${.resource.path}"/>
    <then>
    <copy file="${.resource.path}" tofile="${staging.dir}/${.resource.prefix}"/>
    </then>
    <else>
    <copy todir="${staging.dir}/${.resource.prefix}">
    <fileset dir="${.resource.path}" includes="${.resource.include}" excludes="${.resource.exclude}"/>
    </copy>
    </else>
    </if>
    </then>
    </if>
    </for-each-resource-path>
    <!-- Packaged referenced utility projects into the WEB-INF/lib directory. -->
    <property name="webinflib" value="${staging.dir}/WEB-INF/lib"/>
    <mkdir dir="${webinflib}"/>
    <for-each-referenced-component>
    <if>
    <and>
    <equals arg1="${.referenced.component.type}" arg2="project"/>
    <equals arg1="${.referenced.component.target.path}" arg2="WEB-INF/lib"/>
    </and>
    <then>
    <antex
    antfile="${.referenced.component.handle}/build.xml"
    dir="${.referenced.component.handle}"
    target="archive"
    inheritUserProps="false"
    inheritAll="false"
    inheritRefs="false">
    <property name="wl.home" value="${wl.home}"/>
    <property name="patch.home" value="${patch.home}"/>
    <property name="workspace" value="${workspace}"/>
    <property name="init.typedefs.executed" value="true"/>
    <property name="archive.dir" value="${webinflib}"/>
    </antex>
    </then>
    </if>
    </for-each-referenced-component>
    <copy todir="${staging.dir}/${xbean.deploy.prefix}">
    <fileset dir="${xbean.bin.output.dir}"/>
    </copy>
    <if>
    <available file="${generated.module.root}"/>
    <then>
    <copy todir="${staging.dir}" overwrite="true">
    <fileset dir="${generated.module.root}"/>
    </copy>
    </then>
    </if>
    <taskdef name="build-manifests"
    classname="weblogic.ant.taskdefs.build.AnnotationManifestTask"
    onerror="fail" />
    <path id="annotation.manifest.search.path">
    <fileset dir="${staging.dir}">
    <include name="WEB-INF/lib/*.jar"/>
    </fileset>
    <pathelement location="${staging.dir}/WEB-INF/classes"/>
    </path>
    <path id="annotation.manifest.class.path">
    <path refid="annotation.manifest.search.path"/>
    <path refid="java.classpath"/>
    </path>
    <build-manifests moduleDir="${staging.dir}"
    searchClasspathRef="annotation.manifest.search.path"
    classpathRef="annotation.manifest.class.path"
    verbose="true"
    version=""
    stagingDir="${java.io.tmpdir}/.manifest"/>
    </target>
    <target name="archive" depends="stage" description=" creates an archive containing all projects's resources and build artifacts; archive name and location can be overridden via the "archive.path" property">
    <property name="archive.dir" value="${project.dir}"/>
    <mkdir dir="${archive.dir}"/>
    <zip destfile="${archive.dir}/${archive.name}" encoding="UTF8" whenempty="create">
    <fileset dir="${staging.dir}"/>
    </zip>
    </target>
    <target name="stage.to.ear" depends="init">
    <property name="prefix" value=""/>
    <antcallex target="archive" inheritUserProps="false" inheritAll="false" inheritRefs="false">
    <param name="wl.home" value="${wl.home}"/>
    <param name="patch.home" value="${patch.home}"/>
    <param name="workspace" value="${workspace}"/>
    <param name="init.typedefs.executed" value="true"/>
    <param name="archive.dir" value="${ear.staging.dir}${prefix}"/>
    <param name="ear.staging.dir" value="${ear.staging.dir}"/>
    </antcallex>
    </target>
    <target name="generated.root.init" depends="init">
    <property name="generated.module.root" value="${project.dir}/build/weboutput"/>
    </target>
    <target name="assembly" depends="init,generated.root.init">
    <taskdef name="assemble"
    classname="com.bea.control.assembly.AssembleTask"
    classpathref="java.classpath"
    onerror="report" />
    <property name="assembly.src.output" value="${java.src.0.output}"/>
    <mkdir dir="${assembly.src}"/>
    <path id="assembly.classpath">
    <path refid="java.classpath" />
    <pathelement location="${assembly.src.output}" />
    <pathelement path="${java.outpath}" />
    <pathelement path="${java.sourcepath}"/>
    </path>
    <assemble
    moduleDir="${generated.module.root}"
    moduleName="${project.name}"
    srcOutputDir="${assembly.src}"
    appRootDir="${ear.root}">
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.WebAppAssemblyContext$Factory" />
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.AppAssemblyContext$Factory" />
    <classpath refid="assembly.classpath" />
    <fileset dir="${project.dir}">
    <include name="**/*.controls.properties" />
    </fileset>
    </assemble>
    <apt
    srcdir="${assembly.src}"
    preprocessdir="${apt.src.output.dir}"
    factorypathref="apt.factory.path"
    options="${apt.options}"
    compile="false">
    <classpath refid="assembly.classpath" />
    </apt>
    <javac
    srcdir="${assembly.src}"
    destdir="${assembly.src.output}"
    debug="on">
    <classpath refid="assembly.classpath" />
    </javac>
    </target>
    <target name="webservice.build" depends="init,generated.root.init">
    <path id="jwsc.srcpath">
    <path path="${java.sourcepath}" />
    <pathelement path="build/assembly/.src" />
    </path>
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" />
    <property name="jwsc.module.root" value="${project.dir}/build/weboutput"/>
    <property name="jwsc.contextpath" value="billingservice"/>
    <property name="jwsc.srcpath.prop" refid="jwsc.srcpath"/>
    <path id="jwsc.classpath">
    <path refid="java.classpath" />
    <pathelement path="${java.outpath}" />
    </path>
    <jwsc
    destdir="${project.dir}/build"
    classpathref="jwsc.classpath"
    >
    <module name="weboutput" explode="true" contextPath="${jwsc.contextpath}">
    <jwsFileSet srcdir="${jwsc.srcpath.prop}">
    <include name="**/*.java"/>
    </jwsFileSet>
    <descriptor file="${jwsc.module.root}/WEB-INF/web.xml" />
    <descriptor file="${jwsc.module.root}/WEB-INF/weblogic.xml" />
    </module>
    </jwsc>
    </target>
    </project>
    ==================== end of exported build.xml =========
    Thanks!
    Edited by renqili at 08/09/2007 10:52 AM

    It looks a bug to me. The exported ant script does not take care the jar files setup in the classpath in workshop/eclipes and copy them to the WEB-INFO/lib directory.

  • Assembly failed Exception during building of WLI application - Ant Script

    Hi all,
    I have a WLI 10.3 application which builds fine when built within the workshop.
    But when the ant scripts are exported and the application is built through ant scripts I'm getting the below mentioned errors.The problem occurs during building of the 'assembly' section of the web application.
    Any help on this would be greatly appreciated.Thanks in advance.
    The error message:
    [assemble] <Fri Mar 26 13:05:03 PDT 2010> <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\bea10gR3Wli\user_projects\workspaces\Flow_Through_Package\Servic
    eActivation\integration\build\weboutput\WEB-INF\web.xml of module null. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
    [assemble] at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152)
    [assemble] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
    [assemble] at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:141)
    [assemble] at com.bea.control.assembly.internal.AssemblyUtils.loadWebXml(AssemblyUtils.java:113)
    [assemble] at com.bea.wlw.runtime.messagebuffer.assembly.MessageBufferAssembler.doWebXmlDDManipulation(MessageBufferAssembler.java:254)
    [assemble] at com.bea.wlw.runtime.messagebuffer.assembly.MessageBufferAssembler.assemble(MessageBufferAssembler.java:139)
    [assemble] at com.bea.control.assembly.internal.AssemblerImpl.postAssemble(AssemblerImpl.java:123)
    [assemble] at com.bea.control.assembly.internal.AssemblerImpl.assemble(AssemblerImpl.java:71)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [assemble] at java.lang.reflect.Method.invoke(Method.java:597)
    [assemble] at com.bea.control.assembly.internal.Assembler.assemble(Assembler.java:91)
    [assemble] at com.bea.control.assembly.AssembleTask.assemble(AssembleTask.java:234)
    [assemble] at com.bea.control.assembly.AssembleTask.execute(AssembleTask.java:206)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
    [assemble] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [assemble] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
    [assemble] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [assemble] at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
    [assemble] at com.bea.workshop.cmdline.antlib.AntCallExTask.execute(AntCallExTask.java:118)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [assemble] at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [assemble] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    [assemble] at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
    [assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [assemble] at java.lang.reflect.Method.invoke(Method.java:597)
    [assemble] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
    [assemble] at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
    [assemble] at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
    [assemble] at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
    [assemble] at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [assemble] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [assemble] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [assemble] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [assemble] at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [assemble] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    [assemble] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    [assemble] Caused by: com.bea.xml.XmlException: java.lang.AssertionError: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
    [assemble] at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:54)
    [assemble] at com.bea.staxb.runtime.internal.RuntimeBindingProperty.createObjectViaFactory(RuntimeBindingProperty.java:256)
    [assemble] at com.bea.staxb.runtime.internal.RuntimeBindingProperty.createIntermediary(RuntimeBindingProperty.java:129)
    [assemble] at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElementProperty(LiteralUnmarshalResult.java:162)
    [assemble] at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:136)
    [assemble] at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
    [assemble] at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoIntermediary(AttributeUnmarshaller.java:47)
    [assemble] at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:189)
    [assemble] at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:159)
    [assemble] at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
    [assemble] at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
    [assemble] ... 78 more
    [assemble] Caused by: java.lang.AssertionError: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
    [assemble] at weblogic.descriptor.internal.AbstractDescriptorBean._createChildBean(AbstractDescriptorBean.java:748)
    [assemble] at weblogic.descriptor.internal.AbstractDescriptorBean.createObject(AbstractDescriptorBean.java:88)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [assemble] at java.lang.reflect.Method.invoke(Method.java:597)
    [assemble] at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:48)
    [assemble] ... 88 more
    [assemble] Caused by: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
    [assemble] at weblogic.descriptor.internal.AbstractDescriptorBean.<init>(AbstractDescriptorBean.java:45)
    [assemble] at weblogic.j2ee.descriptor.ListenerBeanImpl.<init>(ListenerBeanImpl.java:59)
    [assemble] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [assemble] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [assemble] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [assemble] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    [assemble] at weblogic.descriptor.internal.AbstractDescriptorBean._createChildBean(AbstractDescriptorBean.java:740)
    [assemble] at weblogic.descriptor.internal.AbstractDescriptorBean.createObject(AbstractDescriptorBean.java:88)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [assemble] at java.lang.reflect.Method.invoke(Method.java:597)
    [assemble] at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:48)
    [assemble] at com.bea.staxb.runtime.internal.RuntimeBindingProperty.createObjectViaFactory(RuntimeBindingProperty.java:256)
    [assemble] at com.bea.staxb.runtime.internal.RuntimeBindingProperty.createIntermediary(RuntimeBindingProperty.java:129)
    [assemble] at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElementProperty(LiteralUnmarshalResult.java:162)
    [assemble] at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:136)
    [assemble] at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
    [assemble] at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoIntermediary(AttributeUnmarshaller.java:48)
    [assemble] at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:189)
    [assemble] at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:159)
    [assemble] at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
    [assemble] at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
    [assemble] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
    [assemble] at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:141)
    [assemble] at com.bea.control.assembly.internal.AssemblyUtils.loadWebXml(AssemblyUtils.java:113)
    [assemble] at com.bea.wlw.runtime.messagebuffer.assembly.MessageBufferAssembler.doWebXmlDDManipulation(MessageBufferAssembler.java:254)
    [assemble] at com.bea.wlw.runtime.messagebuffer.assembly.MessageBufferAssembler.assemble(MessageBufferAssembler.java:140)
    [assemble] at com.bea.control.assembly.internal.AssemblerImpl.postAssemble(AssemblerImpl.java:123)
    [assemble] at com.bea.control.assembly.internal.AssemblerImpl.assemble(AssemblerImpl.java:73)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [assemble] at java.lang.reflect.Method.invoke(Method.java:597)
    [assemble] at com.bea.control.assembly.internal.Assembler.assemble(Assembler.java:91)
    [assemble] at com.bea.control.assembly.AssembleTask.assemble(AssembleTask.java:236)
    [assemble] at com.bea.control.assembly.AssembleTask.execute(AssembleTask.java:206)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:39)
    [assemble] at org.apache.tools.ant.Project.executeTargets(Project.java:1070)
    [assemble] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
    [assemble] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:108)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1186)
    [assemble] at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
    [assemble] at com.bea.workshop.cmdline.antlib.AntCallExTask.execute(AntCallExTask.java:119)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1186)
    [assemble] at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [assemble] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    [assemble] at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
    [assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [assemble] at java.lang.reflect.Method.invoke(Method.java:597)
    [assemble] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
    [assemble] at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
    [assemble] at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
    [assemble] at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
    [assemble] at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:245)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1186)
    [assemble] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [assemble] at org.apache.tools.ant.Project.executeTargets(Project.java:1070)
    [assemble] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [assemble] at org.apache.tools.ant.Main.startAnt(Main.java:188)
    [assemble] ... 2 more
    [assemble] .>
    [assemble] Assembly failed - Control Assembly process failed
    [assemble] Caused by: Unable to read file C:\bea10gR3Wli\user_projects\workspaces\Flow_Through_Package\ServiceActivation\integration\build\weboutput\WEB-INF\web.xml
    during assembly
    [assemble] Caused by: Unmarshaller failed
    [assemble] Caused by: java.lang.AssertionError: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
    [assemble] Caused by: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
    [assemble] Caused by: Class weblogic/descriptor/Descriptor violates loader constraints

    Added weblogic.jar in the classpath and that resolved the issue.

  • Cannot Start Service Bus Domain from ANT script

    Hi,
    I am preparing a script which buils service bus domain using wlst script and then makes a jar file of the newly build domain and transfer it to the target location where it need to run.
    Once the jar file is in target location is jar is expanded in a folder.
    The above mentioned process if working fine. If i try to start the domain from that location either by double clicking startWebLogic.cmd or from dos prompt it does start the domain wihtout any error.
    However if i try to start the domain from with the same ANT script either using <wlserver> or <java classname="weblogic.WLST"> using startServer ('AdminServer','mydomainname','weblogic','weblogic','t3://localhost:7001') the domain startup does start but failes with same weblogic.management.deployment exception.
    complaining about all alsb specific applications error i.e.
    java.lang.ClassNotFoundException: com.bea.wli.sb.init.MarkerAppListener/com.bea.wli.sb.init.FrameworkStarter ..... under weblogic.management.deloymentexception.
    had anyone manager to start domain like this? any help?
    thanks
    salman

    I faced a similar issue when all ALSB specific applications were failing with ClassNot Found error when the managed servers were started using node manager. This was fixed by setting up the right Server Classpath for the WLS server.
    The issue was fixed after setting up the CLASSPATH to use when starting up the server as below, where E:/APPS/STAGE/OSB103 is the BEA_HOME
    E:\APPS\STAGE\OSB103\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_cie670\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_alsb1031\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\JROCKI~1\lib\tools.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\weblogic_sp.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\weblogic.jar;E:\APPS\STAGE\OSB103\modules\features\weblogic.server.modules_10.3.0.0.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\webservices.jar;E:\APPS\STAGE\OSB103\modules\ORGAPA~1.5/lib/ant-all.jar;E:\APPS\STAGE\OSB103\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\features\osb.server.modules_10.3.1.0.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\flow\sb-flow.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\com.bea.core.jaxen_1.0.1.0_1-1-1.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\version.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\alsb.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-ant.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-common.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-core.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-dameon.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\classes;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\com.bea.core.apache.commons.logging_1.1.0.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\jca-binding-api.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\bpm-infra.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\E:\APPS\STAGE\OSB103\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_cie670\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_alsb1031\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\JROCKI~1\lib\tools.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\weblogic_sp.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\weblogic.jar;E:\APPS\STAGE\OSB103\modules\features\weblogic.server.modules_10.3.0.0.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\webservices.jar;E:\APPS\STAGE\OSB103\modules\ORGAPA~1.5/lib/ant-all.jar;E:\APPS\STAGE\OSB103\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\features\osb.server.modules_10.3.1.0.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\flow\sb-flow.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\com.bea.core.jaxen_1.0.1.0_1-1-1.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\version.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\alsb.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-ant.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-common.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-core.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-dameon.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\classes;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\com.bea.core.apache.commons.logging_1.1.0.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\jca-binding-api.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\bpm-infra.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\log4j_1.2.8.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\xmlparserv2.jar;WL_HOME\server\ext\jdbc\oracle\orai18n.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\xqrl.jar;jca\log4j_1.2.8.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\xmlparserv2.jar;WL_HOME\server\ext\jdbc\oracle\orai18n.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\xqrl.jar;
    -Atheek

Maybe you are looking for

  • How do I convert a pdf file to a jpg

    How do I convert a pdf file to a jpg?

  • Select single

    Hi experts,i have a query,plz help me. can i use select single in the below condition. crmd_link---table(key fields: guid_hi,guid_set) crmd_cancel---table(key fields:guid) SELECT SINGLE a~cancparty                     a~canc_reason               INTO

  • GL Account Master Data for all the inventory Accounts

    Hi, What is common & unique feature in the GL Master data of all the Inventory related accounts? Is it "POST AUTOMATICALLY" or some thing else Thanks, Lavanya

  • Netweaver security study material needed

    Hi Gurus, I am working as security administrator in ECC6.0 I want to learn netweaver administration and security administration so i need study meterial for sap netweaver please any body can send me the meterial my email id is [email protected] thank

  • Cannot import .mov video

    When I try to import a *.mov video to my flash document, I get an error message that "movie file UntitledSequence.04608ED6D.omf cannot be found. Without this file, the movie cannot play." Can anyone tell me what this means? It's urgent.