Using Ant with CDT

I am using ARM's Eclipse for DS-5 for developing my embedded C projects. We were asked by a customer if we can generate ANT build files using Eclipse. Looking through the manual, it seems like I should be able to Export the project to Ant.
My Workspace contains several projects. So, I select the project I want to export, then click the menu File -> Export... -> General -> Ant Buildfiles, then click Next>.
The next dialogue that opens is the Generate Ant Buildfiles, but the list of projects to select from is empty! The Check projects for Ant compatibility box is checked by default, but even when I uncheck it, the list remain empty.
1. Can Ant be used to build C projects?
2. How do I export a project to Ant from CDT?
3. If (1) is "No" and (2) is "Can't", then why is this option included in CDT?

I tried this and it doesn't work. It will include the file Manifest.mf in
the jar along with the default manifest file MANIFEST.MF. If you try to use
the support tag to include a file MANIFEST.MF, an IOException is received.
Has anybody found a way to get ejbjar to use a custom manifest file?
"Nils Winkler" <[email protected]> wrote in message
news:[email protected]..
I'm using pretty much the same combination, and it works just fine.
Here's what I'm doing:
<ejbjar srcdir="${build}"
descriptordir="${dd}"
destdir="${dist}">
<support dir="">
<include name="META-INF/Manifest.mf"/>
</support>
<!-- The WebLogic subcommand -->
<weblogic destdir="${dist}"
newCMP="true"
compiler="jikes"
args="-g">
<classpath>
[snip...]
</classpath>
</weblogic>
<!-- include the standard descriptor files only, ignore the WebLogic
files. -->
<include name="**/*-ejb-jar.xml" />
<exclude name="**/*weblogic*.xml" />
</ejbjar>
As you can see, I add the manifest file using the support nested tag.
The manifest file is on my harddisk, in a directory called "META-INF",
which is in the project's main directory.
Hope that helps,
Nils
john wrote:
I am using 6.1 with sp1, and version 1.4.1 of ant
Rob Woollen <[email protected]> wrote:
Make sure that you are running WLS 6.1 (I believe earlier versions will
clobber the
manifest.)
-- Rob
john wrote:
I am trying to specify a manifest file in the <ejbjar> element, andit appears
that weblogic.ejbc is overwriting the manifest (ant does find the MF,but weblogic
seems to be clobbering it)
has anybody run into this before?
thanks
============================
[email protected]

Similar Messages

  • Using Ant with Oracle

    I am trying to create tables using Ant build scripts for deployment purposes. I am able to create the schema and the sequences. It seems to be able to create tables except for triggers. I cannot create triggers after creating the tables. Ant displays an error whenever it reaches the part of a script which involves the trigger part. I am using the Oracle JDBC thin driver with Ant. Am I missing any files that should be included to support triggers? Is there a work-aorund? I appreciate the help...
    Thanks!

    First of all, for me, this is a complete wrong approach. You should just issue a "drop table <your_tablename>;" and then look if it succeded or not. You can catch the exception and handle it, so the build will not fail.
    If you really want do it with PL/SQL, then never do it the way you have tried to do it. Read the net about SQL injection.
    Remember, dbms_output will write to an output buffer on the server, not on your client. The client had to read from the buffer.
    set serveroutput on is a SQL*Plus command, it will fail if not issued there.
    It would probably make sense to return a value, indicating if the command succeeded or not. So you could code something like:
    SQL> get t
      1  create or replace function sidd ( p_tablename in varchar2 ) return varchar2 as
      2  begin
      3    for rec in ( select table_name
      4                 from   user_tables
      5                 where  table_name = p_tablename
      6               ) loop
      7      begin
      8        execute immediate 'drop table ' || rec.table_name;
      9        dbms_output.put_line( 'table ' || rec.table_name || ' dropped.' );
    10        return 'SUCCEEDED';
    11      exception
    12        when others then
    13          dbms_output.put_line( 'table ' || rec.table_name || ' coud not be dropped.' );
    14          return 'FAILED';
    15      end;
    16    end loop;
    17    return 'FAILED';
    18* end;
    SQL> /
    Function created.
    SQL> exec :ret := sidd ( 'my_t1' );
    PL/SQL procedure successfully completed.
    RET
    FAILED
    SQL> exec :ret := sidd ( 'MY_T1' );
    table MY_T1 dropped.
    PL/SQL procedure successfully completed.
    RET
    SUCCEEDED
    SQL>

  • How to use ant with Jdeveloper 11g

    Hello, as we develop our app with ADF Faces & EJB 3.0 we are using tomcat 6.x + openEJB 3.0 as a sort of app server. So we need to build application archive 2 differrent methods (collapsed war for tomcat and ear for Jdev's integrated WLS). Besides, some xml files need to be modificated depending on target server. So we are going to use ant to build archives.
    My questions:
    - Where should I copy built archive for deployment on integrated WLS (should I copy it in ant's target or Jdev can do it for me)? Or there is another way to do the following: when one presses Run button on a page ant builds an archive for local WLS and then app is deployed and the page is opened in a new browser tab (just like default Jdev behaviour)?
    - Where can I find tutorial on integration of Jdev & ant?

    Here is a good example [http://biemond.blogspot.com/2009/04/weblogic-jdeveloper-ant-tasks.html]

  • Using ant with ejbjar

    I am trying to specify a manifest file in the <ejbjar> element, and it appears
    that weblogic.ejbc is overwriting the manifest (ant does find the MF, but weblogic
    seems to be clobbering it)
    has anybody run into this before?
    thanks

    I tried this and it doesn't work. It will include the file Manifest.mf in
    the jar along with the default manifest file MANIFEST.MF. If you try to use
    the support tag to include a file MANIFEST.MF, an IOException is received.
    Has anybody found a way to get ejbjar to use a custom manifest file?
    "Nils Winkler" <[email protected]> wrote in message
    news:[email protected]..
    I'm using pretty much the same combination, and it works just fine.
    Here's what I'm doing:
    <ejbjar srcdir="${build}"
    descriptordir="${dd}"
    destdir="${dist}">
    <support dir="">
    <include name="META-INF/Manifest.mf"/>
    </support>
    <!-- The WebLogic subcommand -->
    <weblogic destdir="${dist}"
    newCMP="true"
    compiler="jikes"
    args="-g">
    <classpath>
    [snip...]
    </classpath>
    </weblogic>
    <!-- include the standard descriptor files only, ignore the WebLogic
    files. -->
    <include name="**/*-ejb-jar.xml" />
    <exclude name="**/*weblogic*.xml" />
    </ejbjar>
    As you can see, I add the manifest file using the support nested tag.
    The manifest file is on my harddisk, in a directory called "META-INF",
    which is in the project's main directory.
    Hope that helps,
    Nils
    john wrote:
    I am using 6.1 with sp1, and version 1.4.1 of ant
    Rob Woollen <[email protected]> wrote:
    Make sure that you are running WLS 6.1 (I believe earlier versions will
    clobber the
    manifest.)
    -- Rob
    john wrote:
    I am trying to specify a manifest file in the <ejbjar> element, andit appears
    that weblogic.ejbc is overwriting the manifest (ant does find the MF,but weblogic
    seems to be clobbering it)
    has anybody run into this before?
    thanks
    ============================
    [email protected]

  • Unable to use Garmin Heart Rate Monitor (ANT+) with iOS 8.

    I have a new iPhone 6. On my previous iPhone 5 with iOS 7 I used Digifit to track my exercise and monitor my heart rate with a Garmin Heart Rate monitor and never had any problem with it. I use an ANT+ 30-pin transceiver attached with Apple's 30-pin to lightning connector to connect to the Garmin Heart Rate Monitor. Since getting my new iPhone 6, when I try to start an exercise program in Digifit it hangs while trying to connect the the sensors. I handed down my old iPhone 5 to my daughter and tried it with her's, which is now updated to iOS 8, with the same results. Therefore I believe it must be a problem with iOS 8.
    Anyone else have similar issues?
    I wonder if it is related to the HealthKit bug?
    Solutions?
    Thanks!

    Lanza123 wrote:
    I have been advised by apple that although my apple devices have Bluetooth 4 it is better to run with ANT + !!!  Can I use ANT + with these new apple devices.  The wahoo fitness ANT key
    http://uk.wahoofitness.com/devices/wahoo-key.html
    that I have been advised to buy I think is for old apple devices ?? Will this fit iphone 6 and IPad air 2 ?
    As I've never seen an ANT adapter for a lightning connector, I can't imagine why "apple" would give you that advice. Sounds as if the person you were talking to might not be an athlete? I've heard that people have managed to kind of make the old Wahoo key work with the adapter that Apple sells for using older 30-pin accessories with the newer phones with lightning connectors. It sounds like a mess and a disaster waiting to happen to me. I'm also not sure why you should not use BT. I've found it works fine.
    You might want to take a look at Wahoo's RFLKT+:
    http://www.wahoofitness.com/devices/rflkt.html
    It's not the total answer to your issue but it might help.
    Also, see the link I posted above to DC Rainmaker's site. You'll find lots of great information on training gadgets there.
    Best of luck.

  • Compiling with JRockit using ant

    I am considering switching to JRockit.
    Our java code is compiled using ant, with the 'javac' task.
    The javac task has an option to invoke different compilers:
    - classic (the standard compiler of JDK 1.1/1.2) – javac1.1 and javac1.2 can be used as aliases.
    - modern (the standard compiler of JDK 1.3/1.4/1.5/1.6) – javac1.3 and javac1.4 and javac1.5 and javac1.6 can be used as aliases.
    - jikes (the Jikes compiler).
    etc
    The Jrockit compiler is not on this list.
    I have found a suggestion (http://www2.sys-con.com/ITSG/virtualcd/Java/archives/0811/pepperdine/index.html) to use an exec call as a workaround,
    but are there any alternatives? I could perhaps persuade ant to use JRockit by deinstalling any other JDK's and pointing JAVA_HOME to JRockit;
    what I want however is to keep the option to use different compilers.
    Has anyone got any suggestions?

    The javac compiler bundled with JRockit is the exact same one that you get with the Sun JDK. Oracle licenses the JDK (class libraries, tools, etc) from Sun. So I would just set JAVA_HOME to point at JRockit as you suggest.
    Henrik

  • Cannot make .war file using tomcat with eclipse and ant

    i have made all necesary configuration for deploying application using eclipse and ant for the tomcat server.
    when i start the server by clicking the tomcat icon on eclipse toolbar, the message is prompted that "missing application web.xml and using defaults". i have placed the web.xml file in the web/WEB-INF directory of the source project directory.
    also when i use ant by right-clicking on the build.xml file and choose Run as ant.. the process creates a desired .war file in webapps folder of the tomcat server but that war file does not works.
    where is the error i cannot figure out.
    am attaching the code of build.xml for reference.
    please help.
    build.xml:-
    <project name="BecilCTI" default="compile" basedir=".">
    <property file="build.properties"/>
    <property file="${user.home}/build.properties"/>
    <property name="app.name" value="BecilCTI"/>
    <property name="app.path" value="/${app.name}"/>
    <property name="app.version" value="0.1-dev"/>
    <property name="build.home" value="${basedir}/build"/>
    <property name="catalina.home" value="c:/Tomcat_5.5"/> <!-- UPDATE THIS! -->
    <property name="dist.home" value="${basedir}/dist"/>
    <property name="docs.home" value="${basedir}/docs"/>
    <property name="manager.url" value="http://localhost:8080/manager"/>
    <property name="src.home" value="${basedir}/src"/>
    <property name="web.home" value="${basedir}/web"/>
    <property name="compile.debug" value="true"/>
    <property name="compile.deprecation" value="false"/>
    <property name="compile.optimize" value="true"/>
    <!--<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>-->
    <path id="compile.classpath">
    <!-- Include all elements that Tomcat exposes to applications -->
    <pathelement location="${catalina.home}/common/classes"/>
    <fileset dir="${catalina.home}/common/endorsed">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="${catalina.home}/common/lib">
    <include name="*.jar"/>
    </fileset>
    <pathelement location="${catalina.home}/shared/classes"/>
    <fileset dir="${catalina.home}/shared/lib">
    <include name="*.jar"/>
    </fileset>
    </path>
    <target name="all" depends="clean,compile"
    description="Clean build and dist directories, then compile"/>
    <target name="clean"
    description="Delete old build and dist directories">
         <echo message="Cleaning all dirs."/>
    <delete dir="${build.home}"/>
    <delete dir="${dist.home}"/>
    </target>
    <target name="compile" depends="prepare"
    description="Compile Java sources">
    <!-- Compile Java classes as necessary -->
    <mkdir dir="${build.home}/WEB-INF/classes"/>
    <javac srcdir="${src.home}"
    destdir="${build.home}/WEB-INF/classes"
    debug="${compile.debug}"
    deprecation="${compile.deprecation}"
    optimize="${compile.optimize}">
    <classpath refid="compile.classpath"/>
    </javac>
    <!-- Copy application resources -->
    <copy todir="${build.home}/WEB-INF/classes">
    <fileset dir="${src.home}" excludes="**/*.java"/>
    </copy>
    </target>
    <target name="dist" depends="compile"
    description="Create binary distribution">
    <!-- Copy documentation subdirectories
    <mkdir dir="${dist.home}/docs"/>
    <copy todir="${dist.home}/docs">
    <fileset dir="${docs.home}"/>
    </copy> -->
    <!-- Create application JAR file -->
    <jar jarfile="${catalina.home}/webapps/${app.name}.war"
    basedir="${build.home}"/>
    <!-- Copy additional files to ${dist.home} as necessary -->
    </target>
    <target name="install" depends="compile"
    description="Install application to servlet container">
    <deploy url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"
    localWar="file://${build.home}"/>
    </target>
    <target name="list"
    description="List installed applications on servlet container">
    <list url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"/>
    </target>
    <target name="prepare">
    <!-- Create build directories as needed -->
    <mkdir dir="${build.home}"/>
    <mkdir dir="${build.home}/WEB-INF"/>
    <mkdir dir="${build.home}/WEB-INF/classes"/>
    <!-- Copy static content of this web application -->
    <copy todir="${build.home}">
    <fileset dir="${web.home}"/>
    </copy>
    <mkdir dir="${build.home}/WEB-INF/lib"/>
    </target>
    <target name="reload" depends="compile"
    description="Reload application on servlet container">
    <reload url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"/>
    </target>
    <target name="remove"
    description="Remove application on servlet container">
    <undeploy url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"/>
    </target>
    </project>

    So is context.xml actually overwriting the settings found in server.xml?I think so. The way I understand it is the the context.xml file saves you from having to edit server.xml. It is preferred for each web app to do its own config, rather than lumping them all together in server.xml.
    And what would be the best way to create the war file? IAt its heart, a WAR is just a zip file with its contents laid out in according to the specification of a web application directory structure.
    So the simplest way to make a war file is to zip up your directory structure with a tool like winzip, and rename it to be myApp.war.
    Regarding ant, I would recommend you take a look through [url http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
    ]this tutorial. It explains the basics of website layout, configuration and deployment.
    On [url http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/source.html] this page  in particular, it includes a link to a basic ant file that you can use as a starting point.
    Cheers,
    evnafets

  • Using Ant  or JUnit with Sun's Verifier

    Hi,
    I am trying to integrate Sun's J2EE "Verifier" into the build process. I am trying two different approaches, but am encountering similar issues.
    Using Ant
    One approach I am trying is with an Ant target. I keep getting this error "No local string for com.sun.enterprise.tools. ....etc...". I suspect the problem is with the setting of J2EE_HOME or the setting of a system property "com.sun.enterprise.home". I see this is set in verifier.bat...and I have decompiled Verifier.class and I see that this environmental variable is read at line 377 of Verifier.class. I am trying to set it...but ....there is the error that seems to indicate that the property file LocalStrings.properties is not being found. Of course the Verifier works when I run verifier.bat.
    <?xml version="1.0"?>
    <project name="verify" default="verify" basedir = "C:\j2sdkee1.3.1\">
    <target name="verify">
    <java fork="yes" classname="com.sun.enterprise.tools.verifier.Verifier">
    <classpath>
    <pathelement path="C:/j2sdkee1.3.1/lib/j2eetools.jar" />
              <pathelement path="c:/j2sdkee1.3.1/lib/j2ee.jar" />
    </classpath>
    <sysproperty key="com.sun.enterprise.home" value="C:\j2sdkee1.3.1\" />
         <sysproperty key="J2EE_HOME" value="C:\j2sdkee1.3.1\" />     
         <sysproperty key="LOCALEDIR" value="C:\j2sdkee1.3.1/lib/locale/" />          
    <arg value="C:/Ascential/RTIServer/apps/jboss/server/default/deploy/RTI.ear"/>
         <arg value="-oc:/verifierant/result"/>
    <arg value="-f"/>     
    </java>
    </target>
    </project>
    From JUnit
    I am trying to call the main() method of the Verifier...but getting similar "No local string..." errors.
    String[] args = { "I:\Release_30Sep2003\development\deploy\build\jboss\RTI.ear",
    "-oI:\Release_30Sep2003\development\deploy\build\jboss\results",
    "-f"};
    Verifier.main(args);
    Has anyone integrated this tool into Ant or Junit that could offer me some advice?
    Thanks,
    Mike Foley
    [email protected]

    How about running verifier.bat using ants exec task?

  • Error in starting weblogic server using ant

    Hi,
    I am trying to start the weblogic server using ant.I used the following command:
    <taskdef name="wlserver" classname="weblogic.ant.taskdefs.management.WLServer">
    <classpath>
    <pathelement location="${BEA_HOME}/weblogic81/server/lib/weblogic.jar" />
    </classpath>
    </taskdef>
    <target name="start-weblogic">
    <wlserver username="weblogic" password="weblogic" failonerror="false" servername="myserver" domainname="rwadomain" dir="${BEA_HOME}/user_projects/domains/rwadomain" host="localhost" port="7001" weblogichome="${BEA_HOME}/weblogic81" beahome="${BEA_HOME}" policy="${BEA_HOME}\weblogic81\server\lib\weblogic.policy" />
    </target>
    But it is giving me an error that java.lang.NoClassDefFoundError: weblogic/Server
    I also tried the following command:
    <target name="start-weblogic">
    <java classname="weblogic.Server" fork="yes" classpathref="weblogic.classes" failonerror="true">
    <sysproperty key="weblogic.Domain" value="rwadomain"></sysproperty>
    <sysproperty key="weblogic.RootDirectory" value="C:\bea\user_projects\domains\rwadomain"></sysproperty>
    <sysproperty key="weblogic.ConfigFile" value="config.xml"></sysproperty>
    <sysproperty key="weblogic.ListenAddress" value="localhost"></sysproperty>
    <sysproperty key="weblogic.ListenPort" value="7001"></sysproperty>
    <arg line="-ms200m -mx200m"></arg>
    </java>
    </target>
    But the problem with this command is that it does not reurn control to execute the further commands.
    Please suggest something.
    Thanks in advance
    -amit

    Hi,
    You should take a look at the <parallel> ant task.
    Regards,
    LG

  • Error while deploying using ant in 11g

    Hi all,
    I am trying to deploy order demo application using ant from command line in SOA 11g. I just ran the ant script to package the composite and it is giving me below mentioned error.It is referring to 1 file in all the wsdls and creating problem. Actualy, JMS_FedEx.wsdl is partner link to JMS Adapter that writes to a queue. I am confused because I have 2 more adapter created on similiar lines like this but while compiling no error references are made to those wsdls. I am not sure What's wrong with this wsdl. However, Composite gets complied and deployed using Jdeveloper. Please provide your Inputs.
    Nov 29, 2011 3:10:38 PM oracle.adf.share.ADFContext getCurrent
    WARNING: Automatically initializing a DefaultContext for getCurrent.
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent().
    To see the stack trace for thread that is initializing this, set the logging level of oracle.adf.share.ADFContext to FINEST
    Load of wsdl "oramds:/soa/shared/workflow/TaskServiceInterface.wsdl" failed
    oracle.fabric.common.FabricException: Error in getting XML input stream: oramds:/soa/shared/workflow/TaskServiceInterface.wsdl: oracle.mds.exception.MDSException: MDS-00054: The file to be loaded oramds:/soa/shared/workflow/TaskServiceInterface.wsdl does not exist.
         at oracle.fabric.common.metadata.MetadataManagerImpl.getInputStreamFromAbsoluteURL(MetadataManagerImpl.java:280)
         at oracle.integration.platform.common.MDSMetadataManagerImpl.getInputStreamFromAbsoluteURL(MDSMetadataManagerImpl.java:557)
         at oracle.fabric.common.metadata.MetadataManagerImpl.getDocumentAsInputStream(MetadataManagerImpl.java:159)
         at oracle.integration.platform.common.MDSMetadataManagerImpl.getDocumentAsInputStream(MDSMetadataManagerImpl.java:419)
         at oracle.fabric.common.wsdl.WSDLManager.loadWSDL(WSDLManager.java:244)
         at oracle.fabric.common.wsdl.WSDLManager.loadWSDL(WSDLManager.java:308)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:934)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Caused by: java.io.IOException: oracle.mds.exception.MDSException: MDS-00054: The file to be loaded oramds:/soa/shared/workflow/TaskServiceInterface.wsdl does not exist.
         at oracle.mds.internal.net.AbstractOraMDSURLConnection.getPDocStream(AbstractOraMDSURLConnection.java:429)
         at oracle.mds.internal.net.AbstractOraMDSURLConnection.getPDocStreamWithRetry(AbstractOraMDSURLConnection.java:262)
         at oracle.mds.internal.net.AbstractOraMDSURLConnection.getInputStream(AbstractOraMDSURLConnection.java:183)
         at oracle.mds.internal.net.OraMDSURLConnection.getInputStream(OraMDSURLConnection.java:67)
         at java.net.URL.openStream(URL.java:1010)
         at oracle.fabric.common.metadata.MetadataManagerImpl.getInputStreamFromAbsoluteURL(MetadataManagerImpl.java:276)
         ... 9 more
    Caused by: oracle.mds.exception.MDSException: MDS-00054: The file to be loaded oramds:/soa/shared/workflow/TaskServiceInterface.wsdl does not exist.
         ... 15 more
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/receivePO.wsdl] part name = part1     type = {http://xmlns.oracle.com/ns/order}PurchaseOrder" failed
    java.lang.Exception: Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/receivePO.wsdl] part name = part1     type = {http://xmlns.oracle.com/ns/order}PurchaseOrder
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/JMS_USPS.wsdl] part name = body     type = {http://xmlns.oracle.com/ns/fulfillment}Fulfillment" failed
    java.lang.Exception: Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/JMS_USPS.wsdl] part name = body     type = {http://xmlns.oracle.com/ns/fulfillment}Fulfillment
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/OracleRulesFulfillment.wsdl] part name = payload     type = {http://xmlns.oracle.com/FullfillmentRules/OracleRulesFulfillment}callFunctionStateful" failed
    java.lang.Exception: Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/OracleRulesFulfillment.wsdl] part name = payload     type = {http://xmlns.oracle.com/FullfillmentRules/OracleRulesFulfillment}callFunctionStateful
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/OracleRulesFulfillment.wsdl] part name = payload     type = {http://xmlns.oracle.com/FullfillmentRules/OracleRulesFulfillment}callFunctionStateful" failed
    java.lang.Exception: Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/OracleRulesFulfillment.wsdl] part name = payload     type = {http://xmlns.oracle.com/FullfillmentRules/OracleRulesFulfillment}callFunctionStateful
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:58)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/OracleRulesFulfillment.wsdl] part name = payload     type = {http://xmlns.oracle.com/FullfillmentRules/OracleRulesFulfillment}callFunctionStateful" failed
    java.lang.Exception: Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/OracleRulesFulfillment.wsdl] part name = payload     type = {http://xmlns.oracle.com/FullfillmentRules/OracleRulesFulfillment}callFunctionStateful
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/JMS_UPS.wsdl] part name = body     type = {http://xmlns.oracle.com/ns/fulfillment}Fulfillment" failed
    java.lang.Exception: Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/JMS_UPS.wsdl] part name = body     type = {http://xmlns.oracle.com/ns/fulfillment}Fulfillment
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/approveLargeOrder.wsdl] part name = payload     type = {http://xmlns.oracle.com/ns/order}Order" failed
    java.lang.Exception: Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/approveLargeOrder.wsdl] part name = payload     type = {http://xmlns.oracle.com/ns/order}Order
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/ManualApproval_DecisionService_1.wsdl] part name = payload     type = {http://xmlns.oracle.com/ManualApproval/ManualApproval_DecisionService_1}errorInfo" failed
    java.lang.Exception: Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/ManualApproval_DecisionService_1.wsdl] part name = payload     type = {http://xmlns.oracle.com/ManualApproval/ManualApproval_DecisionService_1}errorInfo
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [http://gdiora001.in.ibm.com:8015/soa-infra/services/default/validationForCC!1.0/getStatusbyCC.wsdl] part name = part1     type = {http://www.globalcompany.com/ns/CCAuthorizationService}creditcardStatusRequest" failed
    java.lang.Exception: Message part element undefined in wsdl [http://gdiora001.in.ibm.com:8015/soa-infra/services/default/validationForCC!1.0/getStatusbyCC.wsdl] part name = part1     type = {http://www.globalcompany.com/ns/CCAuthorizationService}creditcardStatusRequest
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:58)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [http://gdiora001.in.ibm.com:8015/soa-infra/services/default/validationForCC!1.0/getStatusbyCC.wsdl] part name = part1     type = {http://www.globalcompany.com/ns/CCAuthorizationService}creditcardStatusRequest" failed
    java.lang.Exception: Message part element undefined in wsdl [http://gdiora001.in.ibm.com:8015/soa-infra/services/default/validationForCC!1.0/getStatusbyCC.wsdl] part name = part1     type = {http://www.globalcompany.com/ns/CCAuthorizationService}creditcardStatusRequest
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [http://gdiora001.in.ibm.com:8015/soa-infra/services/default/validationForCC!1.0/getStatusbyCC.wsdl] part name = part1     type = {http://www.globalcompany.com/ns/CCAuthorizationService}creditcardStatusRequest" failed
    java.lang.Exception: Message part element undefined in wsdl [http://gdiora001.in.ibm.com:8015/soa-infra/services/default/validationForCC!1.0/getStatusbyCC.wsdl] part name = part1     type = {http://www.globalcompany.com/ns/CCAuthorizationService}creditcardStatusRequest
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/FulfillmentProcess.wsdl] part name = payload     type = {http://xmlns.oracle.com/ns/fulfillment}Fulfillment" failed
    java.lang.Exception: Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/FulfillmentProcess.wsdl] part name = payload     type = {http://xmlns.oracle.com/ns/fulfillment}Fulfillment
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/JMS_FedEx.wsdl] part name = body     type = {http://xmlns.oracle.com/ns/fulfillment}Fulfillment" failed
    java.lang.Exception: Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/JMS_FedEx.wsdl] part name = body     type = {http://xmlns.oracle.com/ns/fulfillment}Fulfillment
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/WriteApprovalResults.wsdl] part name = body     type = {http://xmlns.oracle.com/ns/order}Order" failed
    java.lang.Exception: Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/WriteApprovalResults.wsdl] part name = body     type = {http://xmlns.oracle.com/ns/order}Order
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Load of wsdl "JMS_FedEx.wsdl with Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/WriteApprovalResults_Remote.wsdl] part name = body     type = {http://xmlns.oracle.com/pcbpel/adapter/ftp/}OutboundFTPHeaderType" failed
    java.lang.Exception: Message part element undefined in wsdl [file:/C:/po/POProcessing/POProcessing/WriteApprovalResults_Remote.wsdl] part name = body     type = {http://xmlns.oracle.com/pcbpel/adapter/ftp/}OutboundFTPHeaderType
         at oracle.soa.scac.WSDLValidator.validateMessageParts(WSDLValidator.java:121)
         at oracle.soa.scac.WSDLValidator.validateMessages(WSDLValidator.java:88)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:47)
         at oracle.soa.scac.WSDLValidator.validate(WSDLValidator.java:40)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:964)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Thanks,
    Vikas Manchanda

    Read the last post please -
    Unable to Compile-All in Weblogic Fusion Demo
    Regards,
    Anuj

  • While deploying the soa components using ANT getting the 404 exception

    HI
    I am trying to deploy the soa composites using ANT i am getting the below exception.
    Please help me as it is need very urgert for client.
    Appriciate for the quick help
    Exception:
    ant -f build.xml deployOnlyApplication
    [WARN ][codegc ] Could not acquire large pages for 256Mbytes code (at 0xffffffff60000000).
    [WARN ][codegc ] Falling back to normal page size.
    Buildfile: build.xml
         [echo] property file   = /opt/oracle/SampleCode
    deployOnlyApplication:
        [input] Please enter Application Name:
    HelloWorld
         [echo] In deployOnlyApplication ApplicationName HelloWorld
         [echo] Application Name HelloWorld
         [echo] property file   = /opt/oracle/SampleCode
    deployApplication:
         [echo] deploy application HelloWorld
         [echo] /opt/oracle/SampleCode/code/HelloWorld/build.properties
         [echo] property file   = /opt/oracle/SampleCode
    deployProject:
         [echo] deploy project HelloProject for environment SIT
         [echo] partition default compositeName HelloProject compositeDir /opt/oracle/SampleCode/code/HelloWorld
         [echo] build sar package
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
        [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.
    clean:
         [echo] deleting /opt/oracle/SampleCode/code/HelloWorld/HelloProject/deploy/sca_HelloProject_rev1.0.jar
    init:
    scac-validate:
         [echo] Running scac-validate in /opt/oracle/SampleCode/code/HelloWorld/HelloProject/composite.xml
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
        [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 "/opt/oracle/SampleCode/code/HelloWorld/HelloProject/composite.xml"
         [scac]  info: File to validate does not exist fault-policies.xml
         [scac]  info: No test suites available
    package:
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
        [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.
    compile-source:
        [mkdir] Created dir: /opt/oracle/SampleCode/code/HelloWorld/HelloProject/dist
         [copy] Copying 17 files to /opt/oracle/SampleCode/code/HelloWorld/HelloProject/dist
         [copy] Warning: /opt/oracle/SampleCode/code/HelloWorld/HelloProject/src not found.
          [jar] Building jar: /opt/oracle/SampleCode/code/HelloWorld/HelloProject/deploy/sca_HelloProject_rev1.0.jar
       [delete] Deleting directory /opt/oracle/SampleCode/code/HelloWorld/HelloProject/dist
         [copy] Copying 1 file to /opt/oracle/SampleCode/builds/${build.number}
         [echo] deploy on http://10.51.80.64:7005 with user weblogic
         [echo] deploy sarFile /opt/oracle/SampleCode/code/HelloWorld/HelloProject/deploy/sca_HelloProject_rev1.0.jar
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
    deploy:
        [input] skipping input as property serverURL has already been set.
        [input] skipping input as property sarLocation has already been set.
        [input] skipping input as property password has already been set.
    [deployComposite] setting user/password..., user=weblogic
    [deployComposite] Processing sar=/opt/oracle/SampleCode/code/HelloWorld/HelloProject/deploy/sca_HelloProject_rev1.0.jar
    [deployComposite] Adding sar file - /opt/oracle/SampleCode/code/HelloWorld/HelloProject/deploy/sca_HelloProject_rev1.0.jar
    [deployComposite] INFO: Creating HTTP connection to host:10.51.80.64, port:7005
    [deployComposite] INFO: Received HTTP response from the server, response code=404
    [deployComposite] SEVERE: Problem in sending HTTP request to the server. Please make sure the server is up and/or check standard HTTP response code for 404
    [deployComposite] ---->response code=404, error:null
         [echo] stop activate HelloProject
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1/bin/..
    activateComposite:
        [input] skipping input as property host has already been set.
        [input] skipping input as property port has already been set.
        [input] skipping input as property user has already been set.
    [secure-input] skipping secure-input as property password has already been set.
        [input] skipping input as property compositeName has already been set.
        [input] skipping input as property revision has already been set.
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1/bin/..
    compositeMgrTask:
         [java] [WARN ][codegc ] Could not acquire large pages for 256Mbytes code (at 0xffffffff60000000).
         [java] [WARN ][codegc ] Falling back to normal page size.
         [java] Connecting to: service:jmx:t3://10.51.80.64:7005/jndi/weblogic.management.mbeanservers.runtime
         [java] java.io.IOException: Unhandled exception in lookup
         [java]     at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:196)
         [java]     at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:84)
         [java]     at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:338)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManagerHelper.createJMXConnector(CompositeManagerHelper.java:91)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManager.initConnection(CompositeManager.java:48)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManagerAntWrapper.execute(CompositeManagerAntWrapper.java:221)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManagerAntWrapper.main(CompositeManagerAntWrapper.java:275)
         [java] Caused by: javax.naming.NamingException: Unhandled exception in lookup [Root exception is org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No]
         [java]     at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:83)
         [java]     at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:291)
         [java]     at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:227)
         [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
         [java]     at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:179)
         [java]     ... 6 more
         [java] Caused by: org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No
         [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         [java]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         [java]     at java.lang.Class.newInstance0(Class.java:357)
         [java]     at java.lang.Class.newInstance(Class.java:310)
         [java]     at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)
         [java]     at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
         [java]     at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
         [java]     at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:471)
         [java]     at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:358)
         [java]     at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
         [java]     at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
         [java]     at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_NamingContextAnyStub.java:80)
         [java]     at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:267)
         [java]     ... 9 more
         [echo] unit test HelloProject
         [echo] finish
         [echo] property file   = /opt/oracle/SampleCode
    deployProject:
         [echo] deploy project Project1 for environment SIT
         [echo] partition default compositeName Project1 compositeDir /opt/oracle/SampleCode/code/HelloWorld
         [echo] build sar package
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
        [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.
    clean:
         [echo] deleting /opt/oracle/SampleCode/code/HelloWorld/Project1/deploy/sca_Project1_rev1.0.jar
    init:
        [mkdir] Created dir: /opt/oracle/SampleCode/code/HelloWorld/Project1/deploy
    scac-validate:
         [echo] Running scac-validate in /opt/oracle/SampleCode/code/HelloWorld/Project1/composite.xml
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
        [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 "/opt/oracle/SampleCode/code/HelloWorld/Project1/composite.xml"
         [scac]  info: File to validate does not exist fault-policies.xml
         [scac]  info: No test suites available
    package:
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
        [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.
    compile-source:
        [mkdir] Created dir: /opt/oracle/SampleCode/code/HelloWorld/Project1/dist
         [copy] Copying 15 files to /opt/oracle/SampleCode/code/HelloWorld/Project1/dist
         [copy] Warning: /opt/oracle/SampleCode/code/HelloWorld/Project1/src not found.
         [copy] Copying 2 files to /opt/oracle/SampleCode/code/HelloWorld/Project1/dist/SCA-INF/classes
          [jar] Building jar: /opt/oracle/SampleCode/code/HelloWorld/Project1/deploy/sca_Project1_rev1.0.jar
       [delete] Deleting directory /opt/oracle/SampleCode/code/HelloWorld/Project1/dist
         [copy] Copying 1 file to /opt/oracle/SampleCode/builds/${build.number}
         [echo] deploy on http://10.51.80.64:7005 with user weblogic
         [echo] deploy sarFile /opt/oracle/SampleCode/code/HelloWorld/Project1/deploy/sca_Project1_rev1.0.jar
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1
    deploy:
        [input] skipping input as property serverURL has already been set.
        [input] skipping input as property sarLocation has already been set.
        [input] skipping input as property password has already been set.
    [deployComposite] setting user/password..., user=weblogic
    [deployComposite] Processing sar=/opt/oracle/SampleCode/code/HelloWorld/Project1/deploy/sca_Project1_rev1.0.jar
    [deployComposite] Adding sar file - /opt/oracle/SampleCode/code/HelloWorld/Project1/deploy/sca_Project1_rev1.0.jar
    [deployComposite] INFO: Creating HTTP connection to host:10.51.80.64, port:7005
    [deployComposite] INFO: Received HTTP response from the server, response code=404
    [deployComposite] SEVERE: Problem in sending HTTP request to the server. Please make sure the server is up and/or check standard HTTP response code for 404
    [deployComposite] ---->response code=404, error:null
         [echo] stop activate Project1
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1/bin/..
    activateComposite:
        [input] skipping input as property host has already been set.
        [input] skipping input as property port has already been set.
        [input] skipping input as property user has already been set.
    [secure-input] skipping secure-input as property password has already been set.
        [input] skipping input as property compositeName has already been set.
        [input] skipping input as property revision has already been set.
         [echo] oracle.home = /opt/oracle/Middleware/Oracle_SOA1/bin/..
    compositeMgrTask:
         [java] [WARN ][codegc ] Could not acquire large pages for 256Mbytes code (at 0xffffffff60000000).
         [java] [WARN ][codegc ] Falling back to normal page size.
         [java] Connecting to: service:jmx:t3://10.51.80.64:7005/jndi/weblogic.management.mbeanservers.runtime
         [java] java.io.IOException: Unhandled exception in lookup
         [java]     at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:196)
         [java]     at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:84)
         [java]     at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:338)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManagerHelper.createJMXConnector(CompositeManagerHelper.java:91)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManager.initConnection(CompositeManager.java:48)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManagerAntWrapper.execute(CompositeManagerAntWrapper.java:221)
         [java]     at oracle.fabric.management.deployedcomposites.CompositeManagerAntWrapper.main(CompositeManagerAntWrapper.java:275)
         [java] Caused by: javax.naming.NamingException: Unhandled exception in lookup [Root exception is org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0  completed: No]
         [java]     at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:83)
         [java]     at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:291)
         [java]     at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:227)
         [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)
         [java]     at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:179)
         [java]     ... 6 more
         [java] Caused by: org.omg.CORBA.NO_PERMISSION:   vmcid: 0x0  minor code: 0
         [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
         [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC
         [java]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Del
         [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:51
         [java]     at java.lang.Class.newInstance0(Class.java:357)
         [java]     at java.lang.Class.newInstance(Class.java:310)
         [java]     at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.get
         [java]     at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_
         [java]     at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSy
         [java]     at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherIm
         [java]     at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherIm
         [java]     at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke
         [java]     at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457
         [java]     at weblogic.corba.cos.naming._NamingContextAnyStub.resolve_any(_
         [java]     at weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.jav
         [java]     ... 9 more
         [echo] unit test Project1
         [echo] finish
         [echo] finished Composite HelloWorld deployment
    BUILD SUCCESSFUL
    Total time: 1 minute 7 seconds
    Note : All the server name and port no are depfined properly.
    Regards,
    Anilkumar P

    Hi,
    I was getting exactly same error. I have resolved it by putting the
    <target name="enterPassword" >
            <input message="Please enter Weblogic password:" addproperty="passwd">
                <handler classname="org.apache.tools.ant.input.SecureInputHandler" />
            </input>      
    in my build.xml
    It means that it was not able to read password properly in bin/ant-sca-mgmt.xml
    Password was the issue in my case. it is working now.
    Thanks,
    Arun Jadhav

  • Error while Executing stored procedure using ant

    Hi,
    I am trying to execute a stored procedure using ant ..
    My build.xml is like this...
    <project name="myproject" default="db.build">
    <target name="db.build">
    <sql driver="oracle.jdbc.driver.OracleDriver"
    url="jdbc:oracle:thin:@idm.orademo.com:1521:orcl"
    userid="test"
    password="oracle11g"
    print="yes"
    classpath="E:\\ojdbc14.jar"
    src="E:\\upg_9102BP07.sql" />
    <!--
    <classpath>
    <pathelement path=""\\>
    <\\classpath> -->
    </target>
    </project>
    I have my stored procedure in upg_9102BP07.sql as shown in above src..
    When im executing ant cmd I got the following exception
    E:\>ant -f test.xml
    Buildfile: test.xml
    db.build:
    *[sql] Executing resource: E:\upg_9102BP07.sql*
    *[sql] Failed to execute: declare cnt int*
    BUILD FAILED
    E:\test.xml:12: java.sql.SQLException: ORA-06550: line 1, column 15:
    PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
    *:= . ( @ % ; not null range default character*
    Total time: 44 seconds
    I have no clue.. But this sql ran successfully when did manually..
    Please help me in solving the issue...
    -- Marias

    Here is my script bit lengthy...
    Rem
    Rem $Header: oim/server/Database/Oracle/Upgrade/Release91x/910x/List/9102_ddl_AddcolumnToRCE_Oracle.sql st_oim_devjain_bug-9003841/1 2009/10/09 02:24:19 devjain Exp $
    Rem
    Rem 9102_ddl_AddcolumnToRCE_Oracle.sql
    Rem
    Rem Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
    Rem
    Rem NAME
    Rem 9102_ddl_AddcolumnToRCE_Oracle.sql - <one-line expansion of the name>
    Rem
    Rem DESCRIPTION
    Rem Create a new column 'RCE_DELETE' in RCE table
    Rem
    Rem MODIFIED (MM/DD/YY)
    Rem blaksham 09/30/09 - Created
    Rem
    declare cnt int;
    Begin
         Select Count(1) into cnt From User_Tab_Columns Where TABLE_NAME='RCM' And COLUMN_NAME='RCM_DELETE';
         IF cnt=0 Then
         Begin
              Execute Immediate 'ALTER TABLE RCM ADD RCM_DELETE VARCHAR2(1)';
         End;
         Else
              DBMS_OUTPUT.PUT_LINE('Column already exists in the DB');
         End IF;
    End;
    Rem
    Rem $Header: oim/server/Database/Oracle/Upgrade/Release91x/910x/List/9102_dml_odf_source_name.sql st_oim_devjain_bug-9003841/1 2009/10/09 02:44:45 devjain Exp $
    Rem
    Rem 9103_dml_odf_source_name.sql
    Rem
    Rem Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
    Rem
    Rem NAME
    Rem 9103_dml_odf_source_name.sql - <one-line expansion of the name>
    Rem
    Rem DESCRIPTION
    Rem <short description of component this file declares/defines>
    Rem
    Rem NOTES
    Rem <other useful comments, qualifications, etc.>
    Rem
    Rem MODIFIED (MM/DD/YY)
    Rem vpotukuc 09/17/09 - Bug8796435: Increase the size of odf_source-name
    Rem vpotukuc 09/17/09 - Created
    Rem
    SET ECHO ON
    SET FEEDBACK 1
    SET NUMWIDTH 10
    SET LINESIZE 80
    SET TRIMSPOOL ON
    SET TAB OFF
    SET PAGESIZE 100
    declare
    collen NUMBER := 0;
    begin
    select char_length into collen from user_tab_columns where table_name = 'ODF' and column_name = 'ODF_SOURCE_NAME';
    IF (collen < 400) then
    execute immediate 'alter table ODF modify ODF_SOURCE_NAME varchar2(400)';
    END IF;
    END;
    File name: 91_dml_update_reviewers_With_NoEmail_attestation.sql
    Purpose: Modify the email template to replace the 'Delegated By Last Name' with 'Reviewer Last Name' and 'Delegated By User Id' to 'Reviewer User Id'.
    Author: Babu Lakshamanaiah
    Description: Modify the email template 'Attestation Reviewers With No E-mail Addresses Defined'
    declare
    cnt int;
    begin
    Select Count(1) into cnt From emd Where emd_name='Attestation Reviewers With No E-mail Addresses Defined' and emd_language='en' and emd_country='US';
    IF cnt=0 Then
    Begin
    DBMS_OUTPUT.PUT_LINE('There is no record with emd_name Attestation Reviewers With No E-mail Addresses Defined ');
    End;
    Else
    update emd set emd_body='The following attestation reviewers do not have email addresses defined. Attestation requests have been generated for these reviewers and can be accessed by loging in to Oracle Identity Manager. However, notification emails were not sent.' ||chr(10) || chr(10) ||
    'Attestation process: <Attestation Definition.Process Name>' || chr(10) ||
    'Attestation Request ID: request <Attestation Request.Request Id>' || chr(10) ||
    'Request date: <Attestation Request.Request Creation Date>' || chr(10) || chr(10) ||
    'Reviewers Without E-mail Address: <reviewers> ' || chr(10) ||
    '<Attestation Task.Reviewer First Name> <Attestation Task.Reviewer Last Name> [<Attestation Task.Reviewer User Id>]' Where emd_name='Attestation Reviewers With No E-mail Addresses Defined' and emd_language='en' and emd_country='US';
    End IF;
    commit;
    end;
    Please help me out.....
    --Marias                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Deploying a Par file using ANT

    Hi All,
    Can anyone tell me the steps how to deploy a PAR file using ant script on netweaver server.Give me some sample ant file.Suggestions will be rewarded.
    Thank you in advance.
    Regards,
    Karthick

    Hi Karthick,
    see PAR-File deployment with ANT (EP6)
    Hope it helps
    Detlev

  • JSP precompilation and my .java files compilation issues /  building WAR file using ANT

    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

    Kevin Price wrote:
    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.you can use weblogic.jspc
    http://e-docs.bea.com/wls/docs70/jsp/reference.html#57794
    or just set the precompile flag in weblogic.xml
    You can configure WebLogic Server to precompile your JSPs when a Web
    Application is deployed or re-deployed or when WebLogic Server starts up
    by setting the precompile parameter to true in the <jsp-descriptor>
    element of the weblogic.xml deployment descriptor.
    >
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    maybe because you are not using curly braces there on lib.home??
    if you do it the way above, you would have to list all your jars
    classpath="$(lib.home)\lib1.jar:$(lib.home)\lib2.jar"
    or you can nest
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    debug="on" optimize="on" deprecation="off">
         <classpath>
              <fileset dir="${lib.home}" includes="*.jar" />
         </classpath>
    </javac>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

  • Error in deploying SOA composite using ant

    Hi,
    When I try to deploy a SOA composite using ant utility, I am getting error as follows:
    C:\JDeveloper11\MiddlewareHome\jdeveloper\bin>ant -f ant-sca-deploy.xml -Dserver
    URL=http://gdiora001.in.ibm.com:7001 -DsarLocation=C:\po\POProcessing\POProcessi
    ng\deploy\sca_POProcessing_rev6-cmdline.jar -Doverwrite=true -Duser=weblogic -Dp
    assword=<<password>> -DforceDefault=true -Dconfigplan=C:\po\POProcessing\POProcessin
    g\POProcessing_dev_cfgplan.xml
    Buildfile: ant-sca-deploy.xml
    [echo] oracle.home = C:\JDeveloper11\MiddlewareHome\jdeveloper\bin/..
    deploy:
    [input] skipping input as property serverURL has already been set.
    [input] skipping input as property sarLocation has already been set.
    [deployComposite] setting user/password..., user=weblogic
    [deployComposite] Processing sar=C:\po\POProcessing\POProcessing\deploy\sca_POPr
    ocessing_rev6-cmdline.jar
    [deployComposite] Adding sar file - C:\po\POProcessing\POProcessing\deploy\sca_P
    OProcessing_rev6-cmdline.jar
    [deployComposite] Creating HTTP connection to host:gdiora001.in.ibm.com, port:70
    01
    [deployComposite] Received HTTP response from the server, response code=404
    [deployComposite] Problem in sending HTTP request to the server. Check standard
    HTTP response code for 404
    [deployComposite] ---->response code=404, error:null
    BUILD SUCCESSFUL
    Total time: 14 seconds
    C:\JDeveloper11\MiddlewareHome\jdeveloper\bin>
    Please note that I am able to successfully deploy the composite from EM, using same SAR and Config Plan files.
    The server URL is also correct.
    I am not sure what is wrong with above ant command.
    Can someone please help me.
    Thanks

    Hi,
    404 response indicates that soa-infra is not running in the host:port/gdiora001.in.ibm.com, port:7001
    Pl make sure that you have soa-infra running in that host/port.
    http://host:port/soa-infra
    For the logs,
    you can find the soa server logs under $DOMAIN_HOME/servers/soa_server1/logs

Maybe you are looking for