Compiling ColdFusion via Ant

Just a word of warning foe those contemplating using Ant to
build ColdFusion applications: here be dragons.
I was having problems getting an application to compile with
the ColdFusion compile task for Ant. It would die silently halfway
through the compile with no indication of what the probelm with. I
was forced to actually decompile the various classes in Adobe's
cfusion.jar file to try and figure out what might be going wrong.
And holy batman spadhetti code... Whoever wrote that code should be
deeply ashamed of themselves.
It is nasty, extremely fragile code that makes liberal use of
System.exit, System.println, and System.err.... all of which do not
play well with Ant at all. Bottom line: the compiler was throwing a
System.exit and causing Ant to silently fail -- and of course, the
error message gets lost at the same time.
In the end, I had to write my own Ant task which installs a
custom SecurityManager that intecepts the System.exit and turns it
into an exception -- what it should be in the first place.
If anyone has successfully used the compiler with Ant, I'd
love to hear how well it worked in practice.

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Matt Coarr ([email protected]):
Has anyone tried to configure jakarta ant to compile sqlj programs?
This should be possible using the classes in translator.zip, in particular sqlj.translator.*.
Any comments/suggestions/recommendations?<HR></BLOCKQUOTE>
I've just started porting a makefile that does jpub/sqlj work to ant.
<pre>
<target name="jpub" depends="prepare">
<java classname="${jpub.main}"
args="-props=${jpub.propfile}"
fork="yes"
failonerror="yes">
<classpath>
<pathelement location="translator.zip"/>
<pathelement location="classes12.zip"/>
</classpath>
</java>
</target>
<target name="sqlj" depends="jpub">
<java classname="${sqlj.main}"
args="-props=${jpub.propfile} gen/*"
fork="yes"
failonerror="yes">
<classpath>
<pathelement location="translator.zip"/>
<pathelement location="classes12.zip"/>
</classpath>
</java>
</target>
</pre>
is a snippet of the build.xml.
DISCLAIMER This isn't polished, it omits a bunch of detail, AND the sqlj target DOESN'T WORK.
BUT, the reason that the sqlj task fails is that sqlj wants a list of files (it complains about wildcards like "gen/* ")
I'm looking into a good way to feed it a bunch of files (~100 in our project), but for a small list of files, you could just specify them in the args=" ... " task attribute.
null

Similar Messages

  • Compiling sqlj via ant (jakarta)

    Has anyone tried to configure jakarta ant to compile sqlj programs?
    This should be possible using the classes in translator.zip, in particular sqlj.translator.*.
    Any comments/suggestions/recommendations?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Matt Coarr ([email protected]):
    Has anyone tried to configure jakarta ant to compile sqlj programs?
    This should be possible using the classes in translator.zip, in particular sqlj.translator.*.
    Any comments/suggestions/recommendations?<HR></BLOCKQUOTE>
    I've just started porting a makefile that does jpub/sqlj work to ant.
    <pre>
    <target name="jpub" depends="prepare">
    <java classname="${jpub.main}"
    args="-props=${jpub.propfile}"
    fork="yes"
    failonerror="yes">
    <classpath>
    <pathelement location="translator.zip"/>
    <pathelement location="classes12.zip"/>
    </classpath>
    </java>
    </target>
    <target name="sqlj" depends="jpub">
    <java classname="${sqlj.main}"
    args="-props=${jpub.propfile} gen/*"
    fork="yes"
    failonerror="yes">
    <classpath>
    <pathelement location="translator.zip"/>
    <pathelement location="classes12.zip"/>
    </classpath>
    </java>
    </target>
    </pre>
    is a snippet of the build.xml.
    DISCLAIMER This isn't polished, it omits a bunch of detail, AND the sqlj target DOESN'T WORK.
    BUT, the reason that the sqlj task fails is that sqlj wants a list of files (it complains about wildcards like "gen/* ")
    I'm looking into a good way to feed it a bunch of files (~100 in our project), but for a small list of files, you could just specify them in the args=" ... " task attribute.
    null

  • Spark Classes and Skins not being included when running FlexUnit task via Ant

    I have a series of unit tests that run on a spark component. This spark component has a custom skin defined for it, and that is working beautifully.
    Inside that component is a spark list... By default, after digging into the list code, spark lists should use a default skin called "BorderContainerSkin". When I run the application that uses this component directly (whether compiled via FlashBuilder or via Ant/Hudson), the component itself runs and looks exactly like I would expect. When I run my unit tests in the browser (via Run As Web Application command on my TestRunner), the unit tests all perform as expected.
    However, when I run the FlexUnit tests via Ant (either through windows non-headless, or linux headless), an exception is thrown with the following error:
    Error: Skin for FromToList132.FromToListSkin133.VGroup134.fromList cannot be found.
        at spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\4.x\frameworks\pr ojects\spark\src\spark\components\supportClasses\SkinnableComponent.as:632]
        at spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\4.x\frame works\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:405]
        at spark.components.supportClasses::SkinnableComponent/commitProperties()[E:\dev\4.x\framewo rks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:419]
        at spark.components.supportClasses::ListBase/commitProperties()[E:\dev\4.x\frameworks\projec ts\spark\src\spark\components\supportClasses\ListBase.as:785]
        at spark.components::List/commitProperties()[E:\dev\4.x\frameworks\projects\spark\src\spark\ components\List.as:907]
        at mx.core::UIComponent/validateProperties()[E:\dev\4.x\frameworks\projects\framework\src\mx \core\UIComponent.as:7933]
        at mx.managers::LayoutManager/validateProperties()[E:\dev\4.x\frameworks\projects\framework\ src\mx\managers\LayoutManager.as:572]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:730]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects \framework\src\mx\managers\LayoutManager.as:1072]
    (Note: fromList is the id of the spark list used in the FromToList component.)
    The issue is that the "BorderContainerSkin" class isn't ever getting imported along the way. I did several things that worked to "fix" the problem, but they are all hacky and don't explain the root problem:
    1- If I explicitly import that skin into my test file, then everything works great.
    2- If I add the <includes> directive into my mxmlc task in the Ant file, and again specifically call out that skin class, then again it will work.
    However, how would I know what skins from the spark library are going to get included and which aren't? How would I know that a default skin isn't included or where to find it or even what it is?
    It seems like either I'm missing something in my Ant file or there is a serious bug here with the FlexUnit task. Can anyone shed light on if this is a known issue, any permanent fixes (that don't involve keeping track of a long list of strings of class references), or anything that I might be missing?
    Thank you for any help!

    Guessing the ant tasks aren't forcing the include of the spark skins libraries... which is a little silly. I would assume the compiler would take care of this but it is something we can investigate...
    Not 100% sure as to why, but this is what it sounds like.
    Mike

  • Packaging .air file to .dmg via ANT

    First off, I hope someone sees this as this Archive thread is the only place the forum is allowing me to post my air related question.
    So, I'm having some trouble packaging (via ANT) my air 2.0 app into a .dmg file that can be run as a native installer.
    (I am running this on MacOSX 10.6.4 w/ a JRE 1.6.0_20)
    I should note that I can package a .dmg fine from the terminal via > adt -package -target native TestApp.dmg TestApp.air
    but attempting to do the same thing from an ANT task throws a host of various errors.
    For example :
    Running the following task throws errors saying that I have to include the signing options I used when I compiled the air app.
        <target name="package to dmg">
            <java jar="${ADT}" fork="true" failonerror="true" maxmemory="512m">
                <arg value="-package"/>
                <arg value="-target native"/>
                <arg value="TestApp.dmg"/>
                <arg value="TestApp.air"/>           
            </java>
        </target>
    Throws error :  [java] Signing options required to package from descriptor and fileset etc...
    My assumption is that this task should execute idential to the following terminal command :
    > adt -package -target native TestApp.dmg TestApp.air
    So I add my signing options and the compiler complains that now it can't see or load my app descriptor file.
    My understanding is that it shouldn't need the app descriptor since it already used that file when it compiled the swf into the air app?
        <target name="package to dmg"
            <java jar="${ADT}" fork="true" failonerror="true" maxmemory="512m">
                <arg value="-package"/>
                <arg value="-storetype"/>
                <arg value="${STORETYPE}"/>
                <arg value="-keystore"/>
                <arg value="${KEYSTORE}"/> 
                <arg value="-storepass"/>
                <arg value="${CERT_PASSWORD}"/>           
                <arg value="-target native"/> 
                <arg value="TestApp.dmg" />           
                <arg value="${DESCRIPTOR_FILE}"/>
                <arg value="-C"/>
                <arg value="${BUILD_DIR}"/>
                <arg value="."/>
            </java>
        </target>
    Throws error : error 301: Application descriptor missing/cannot be opened
    I have tried every combination of ADT arguments I can think of but to no avail.
    Like I said, I can compile the air app fine and launch it in the ADL as well as install it on my system, it's just the packaging to .dmg from ANT that is giving me pain.
    Any suggestions would be really appreciated.
    Thanks,
    Stephen
    Here is a link to my full build script that may help you see what's going on.
    http://www.quietless.com/tmp/build.xml
    properties files here:
    http://www.quietless.com/tmp/proj.properties
    http://www.quietless.com/tmp/cert.properties
    Message was edited by: braitsch

    Hi,
    Can you try this :
    <target name="package to dmg">
            <java jar="${ADT}"  fork="true" failonerror="true" maxmemory="512m">
                 <arg value="-package"/>
                 <arg value="-target"/>
                 <arg value="native"/>
                <arg value="TestApp.dmg"/>
                 <arg value="TestApp.air"/>           
            </java>
         </target>

  • Running FlexUnit4 tests via ant & Hudson?

    I'm just starting to move towards test driven development and I'm trying to figure out how to get continuous integration with FlexUnit4 working for our Flex projects & Hudson.
    I've got our project compiling in Hudson via ant but I'm not sure how to go about having ant/Hudson run the FlexUnit4 tests? Is there an ant task I'm supposed to use or something somewhere?
    Is there any documentation I should be reading? Forum/blog posts? I see a bunch of stuff about opening sockets and whatnot but I'm not sure if that's how it's supposed to work.
    Thanks for any pointers.

    Hi Brian,
    I downloaded the latest build and tried running the ant task in the CISample project on my dev box just to see if I could get it to work locally first. I got a big stack trace running this with flex 3.3 but it apeared to work better with flex 3.4. However the build failed running the "test" ant task. This was my output:
    init:
    compile:
        [mxmlc] Loading configuration file /opt/flex_sdk/3.4.0/frameworks/flex-config.xml
        [mxmlc] /home/jersinghaus/fu4/4.x/FlexUnit4SampleCIProject/bin/Main.swf (327000 bytes)
    test:
        [mxmlc] Loading configuration file /opt/flex_sdk/3.4.0/frameworks/flex-config.xml
        [mxmlc] /home/jersinghaus/fu4/4.x/FlexUnit4SampleCIProject/bin/TestRunner.swf (846287 bytes)
    [flexunit] Creating local trusted file
    [flexunit] opened server socket
    BUILD FAILED
    Error launching the test runner.
    So I thought I'd ask a few questions:
    1. Is there a log file somewhere that might give me some more detail as to the error?
    2. I'm familiar with fluint's test runner which is an air application which runs test suites inside modules compiled to swf's. (I'm sure you know all this ) But here it looks like you call flex with no air related calls.  Does CISample project and associated ant build script work for air applications?
    Thanks,
    Joe

  • Wlst deploy via ant fails with NameNotFoundException

    All,
    I am trying to setup a deployment of a simple ear application to Weblogic using wlst via ant.
    The deployment keeps failing with a NameNotFoundException.
    ####<Sep 20, 2012 4:41:35 PM CDT> <Error> <Deployer> <osb2-dev-1> <WLS_APPMGD1> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1348177295661> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1348177287862' for task '131'. Error is: 'javax.naming.NameNotFoundException: Unable to resolve 'ejb.xxxxServiceSLSBLocalHome'. Resolved 'ejb'; remaining name 'xxxxServiceSLSBLocalHome''
    javax.naming.NameNotFoundException: Unable to resolve 'ejb.xxxxServiceSLSBLocalHome'. Resolved 'ejb'; remaining name 'xxxxServiceSLSBLocalHome'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
    Note that I struck out the actual service name with xxxx. Here is output from ant:
    wl-deploy-only:
    [wldeploy] weblogic.Deployer -verbose -upload -noexit -name xxxx -source artifacts\xxxx.ear -targets APPMGD_Cluster -adminurl t3://soaadmin-dev-1:7003 -user weblogic -password ******** -deploy -appversion anthill-2240
    [wldeploy] weblogic.Deployer invoked with options: -verbose -upload -noexit -name xxxx -source artifacts\xxxx.ear -targets APPMGD_Cluster -adminurl t3://soaadmin-dev-1:7003 -user weblogic -deploy -appversion anthill-2240
    [wldeploy] <Sep 20, 2012 4:01:34 PM CDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, xxxx [archive: artifacts\xxxx.ear], to APPMGD_Cluster .>
    [wldeploy] Task 129 initiated: [Deployer:149026]deploy application xxxx [Version=anthill-2240] on APPMGD_Cluster.
    [wldeploy] Task 129 failed: [Deployer:149026]deploy application xxxx [Version=anthill-2240] on APPMGD_Cluster.
    [wldeploy] Target state: deploy failed on Cluster APPMGD_Cluster
    [wldeploy] java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    [wldeploy]
    [wldeploy] java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    [wldeploy]
    [wldeploy]
    [wldeploy] Target Assignments:
    [wldeploy] + xxxx APPMGD_Cluster
    BUILD FAILED
    weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 129 failed: [Deployer:149026]deploy application xxxx [Version=anthill-2240] on APPMGD_Cluster.
    Target state: deploy failed on Cluster APPMGD_Cluster
    java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    at weblogic.Deployer.run(Deployer.java:72)
    at weblogic.Deployer.mainWithExceptions(Deployer.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:420)
    at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:349)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1307)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1191)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:218)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Caused by: weblogic.deploy.api.tools.deployer.DeployerException: Task 129 failed: [Deployer:149026]deploy application xxxx [Version=anthill-2240] on APPMGD_Cluster.
    Target state: deploy failed on Cluster APPMGD_Cluster
    java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    at weblogic.deploy.api.tools.deployer.Jsr88Operation.report(Jsr88Operation.java:542)
    at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:140)
    at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.Deployer.run(Deployer.java:70)
    at weblogic.Deployer.mainWithExceptions(Deployer.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:419)
    at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:349)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    ... 2 more
    Total time: 25 seconds
    I tried redeploy instead of undeploy, but is still fails. Is there anything I am missing?
    Thanks.
    Edited by: 960582 on Sep 21, 2012 7:18 AM

    Kal, that parameter did not solve the problem. I added it under JAVA_OPTIONS in:
    ${oracle.home}\user_projects\domains\osb_domain\bin\startWebLogic.cmd
    I am still getting an exception. The new deployment only gets picked up after the managed servers are bounced. Any idea what could be going on?

  • Problem creating JMS Error Destination via Ant in WLS 8.1

    We've got several JMS queues in our application. We create the server via Ant (using the wlconfig task).
    All is well, the queues have been working fine, until we try to add an error destination queue (after several attempts to handle the message, it'll be sent to the error queue for later troubleshooting).
    Here's an example of what we've got now:
    <create type="JMSQueue" name="batchQueue" property="jmsqueue">
        <set attribute="JNDIName" value="net.nike.cdm.batchQueue"/>
        <set attribute="RedeliveryLimit" value="5"/>
    </create>We create another queue to handle the errors, and then add an attribute to the first to point to the second:
    <create type="JMSQueue" name="batchErrorQueue" property="batchErrorQueue">
        <set attribute="JNDIName" value="net.nike.cdm.batchErrorQueue"/>
        <set attribute="RedeliveryLimit" value="5"/>
    </create>
    <create type="JMSQueue" name="batchQueue" property="jmsqueue">
        <set attribute="JNDIName" value="net.nike.cdm.batchQueue"/>
        <set attribute="RedeliveryLimit" value="5"/>
        <set attribute="ErrorDestination" value="${batchErrorQueue}"/>
    </create>This seems logical, because if we do this same exact operation via the console, the config.xml goes from this:
    <JMSQueue JNDIName="net.nike.cdm.batchQueue"
                Name="batchQueue" RedeliveryLimit="5"/>to this:
    <JMSQueue ErrorDestination="batchErrorQueue"
                JNDIName="net.nike.cdm.batchQueue"
                Name="batchQueue" RedeliveryLimit="5"/>
    <JMSQueue JNDIName="net.nike.cdm.batchErrorQueue" Name="batchErrorQueue"/>The error we get when trying to do this via Ant is:
    [wlconfig] A destination and its ErrorDestination must both be on the same JMS server. (The problematic destination is "batchQueue" on JMS server "cdmdomain"). Also, an ErrorDestination can not be null if the ExpirationPolicy for a destination is "redirect" and a destination can not specify itself as its ErrorDestination.Flipping on -verbose in Ant, the actual exception is:
    [wlconfig] SET -mbean cdmdomain:Name=batchQueue,Type=JMSQueue -property ErrorDestination cdmdomain:Name=batchErrorQueue,Type=JMSQue
    [wlconfig] A destination and its ErrorDestination must both be on the same JMS server. (The problematic destination is "batchQueue"
    s its ErrorDestination.
          [if] Error in class net.sf.antcontrib.logic.IfTask
    BUILD FAILED
    file:C:/viewstore/CDM_R6.5_Development/B2B_CDM/dev/build.xml:1399: Error invoking MBean command: java.lang.NullPointerException
           at weblogic.ant.taskdefs.management.WLConfig.handleException(WLConfig.java:567)
           at weblogic.ant.taskdefs.management.WLConfig.invokeCommand(WLConfig.java:381)
           at weblogic.ant.taskdefs.management.WLConfig.invokeSetCommand(WLConfig.java:235)
           at weblogic.ant.taskdefs.management.WLConfig.invokeCreateCommand(WLConfig.java:163)
           at weblogic.ant.taskdefs.management.WLConfig.executeCommands(WLConfig.java:106)
           at weblogic.ant.taskdefs.management.WLConfig.invokeCreateCommand(WLConfig.java:167)
           at weblogic.ant.taskdefs.management.WLConfig.executeCommands(WLConfig.java:106)
           at weblogic.ant.taskdefs.management.WLConfig.execute(WLConfig.java:89)
           at org.apache.tools.ant.Task.perform(Task.java:341)
           at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:117)
           at org.apache.tools.ant.Task.perform(Task.java:341)
           at net.sf.antcontrib.logic.IfTask.execute(Unknown Source)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147)
           at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
           at org.apache.tools.ant.Task.perform(Task.java:341)
           at org.apache.tools.ant.Target.execute(Target.java:309)
           at org.apache.tools.ant.Target.performTasks(Target.java:336)
           at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
           at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
           at org.apache.tools.ant.Main.runBuild(Main.java:609)
           at org.apache.tools.ant.Main.start(Main.java:196)
           at org.apache.tools.ant.Main.main(Main.java:235)So, my question is, what are we doing wrong? What IS the syntax to set an error destination for a JMS queue via Ant for WLS 8.1?
    Any help would be greatly appreciated
    Thanks,
    Douglas Bullard

    I get exactly the same problem - was a resolution to this issue found?
    Thanks,
    Richard Marriott
    [email protected]

  • FTE in MX controls via ANT

    Hi Flexy community
    Having some issues adding the FTE compiler options to ANT? currently I add it like so:
    <compiler.theme append="true" file="${FLEX_HOME}/frameworks/projects/spark/MXFTEText.css" />
    having gone through many blogs and posts I can not find anything?
    Please help
    Thanks
    Tyrone

    It might be worth noting what we are trying to achieve here, inside project properties (within Flash Builder) we have this very nice new sexy setting we can toggle "Use Flash Text Engine in MX Components" which I assume takes the MXFTEText.css and compiles it into our application giving all our neat MX components the same font based rendering as our Spark components.
    This works very well but we can not reproduce this in our ANT build file and when hudson is finished doing it's magic tasks we end up with no text in all our pretty DataGrids etc....
    1. Has anyone added this feature to ANT?
    2. Would it be possible to just add the .css file as a stylesheet straight into our application and use it this way?
    Any help would be greatly appreciated
    Thanks in advance
    Tyrone

  • [SOLVED] Strange error while compiling packages via AUR

    I've been facing this error while compiling packages via AUR. I'm also posting the output of my /etc/makepkg.conf
    Error
    ==> Starting build()...
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether cc supports -O2... yes
    checking for g++... g++
    checking whether the C++ compiler works... yes
    checking for C++ compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of g++... gcc3
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for GSTREAMER... yes
    checking for GSTREAMER_GTK... yes
    checking for XOpenDisplay in -lX11... yes
    checking for ncursesw5-config... /usr/bin/ncursesw5-config
    checking for initscr in -lncurses... yes
    checking whether gcc supports -Wall... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating docs/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    fatal: Not a git repository (or any of the parent directories): .git
    CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /tmp/yaourt-tmp-hellknight/aur-gst123/src/gst123-0.2.0/build-aux/missing --run aclocal-1.11 -Wno-portability
    sh: autom4te: command not found
    aclocal-1.11: autom4te failed with exit status: 127
    make: *** [aclocal.m4] Error 1
    ==> ERROR: A failure occurred in build().
    Aborting...
    ==> ERROR: Makepkg was unable to build gst123.
    ==> Restart building gst123 ? [y/N]
    ==> -------------------------------
    ==>
    /etc/makepkg.conf
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
    'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
    'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
    'rsync::/usr/bin/rsync -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/curl
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Exclusive: will only run on x86_64
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CFLAGS="-march=amdfam10 -mtune=generic -O2 -pipe"
    CXXFLAGS="${CFLAGS}"
    LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
    #-- Make Flags: change this for DistCC/SMP systems
    MAKEFLAGS="-j8"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(fakeroot !distcc color !ccache)
    # A negated environment option will do the opposite of the comments below.
    #-- fakeroot: Allow building packages as a non-root user
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    BUILDENV=(fakeroot !distcc color !ccache)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries in STRIP_DIRS
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    OPTIONS=(strip docs libtool emptydirs zipman purge)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Directories to be searched for the strip option (if strip is specified)
    STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    #PKGDEST=/home/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    #SRCDEST=/home/sources
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    Last edited by tarun.hellknight (2011-04-12 15:45:26)

    That's strange... it wasn't installed.. although I had never,ever faced a problem while compiling packages via AUR.. maybe, I should be careful when uninstalling orphans.. thanks for the help..

  • Building & deploying ColdFusion apps via Ant

    I'm trying to create a Ant build script for building and
    deploying ColdFusion applications as a WAR. I am able to compile
    the ColdFusion code, and creating the WAR itself is pretty simple,
    but there's two steps I'm not familiar with:
    a) How do you generate the applications' web.xml, config.xml,
    neo-debug.xml, neo-query.xml, license.properties, etc files that
    are needed in the WAR?
    b) Is it possible to use Ant to do deploy time configuraton
    of the ColdFusion app? For example, setting the database that will
    be used.
    I have looked at the build.xml that is generated by
    ColdFusion MX7's administration tool, but this only does the
    compile step and the WAR creation step. The doesn't seem to be any
    documented Ant task for the other things I asked about above.
    If anyone has done this, I would very much appreciate it if
    you could point me in the right direction. Sample ant build files
    would be especially appreciated, but even just a clue as to where
    to look for the info I need would be very helpful.

    I've also been looking into this and it appears you can only pre-load apps onto the iPhone that you have made, ie ones you have access to the original .ipa file.
    If anyone knows of a way to configure a large deployment of iPhones with a standard app base, Skype, WiFi finder, Units across 20+ iPhones please post it here.
    If anyone can save me from downloading each app 60 times it'll be much appreciated.

  • Flex 2 charting trial watermark appears when building via Ant

    The trial watermark appears when building with the flex Ant
    tasks, but not via Flex Builder 2. I believe the Ant tasks set up
    the compiler options with the same arguments in FB, and the build
    library path is also the same, but the trial watermark still
    appears.
    The charting source has been extracted into the Flex SDK 2
    directory, and the license key appears in the
    frameworks/license.properties file. As far as I know, these are the
    only steps needed to install the paid version of the charting
    tools. If I missed something, please let me know.
    Thanks in advance,
    KaJun

    Just an update on this issue:
    If I run the mxmlc compiler from the command line, I found
    that the output .swf does not have the watermark. It seems to be a
    bug in the Adobe Flex Ant tasks. I've changed the build script to
    use an exec call to the compiler instead.
    Thanks,
    KaJun

  • Precompile jsps via ant

    I have a development project that has been setup to use JDeveloper 10.1.3.5.0 to create and EAR for deployment. The EAR is comprised of three sub applications - appData, appEjb, appWeb. Each subapplication has its own resource to deploy in JDeveloper. The appWeb has an additional resource defined in JDeveloper to deploy the EAR.
    I am attempting to move the build process out of JDeveloper and into ant in order to integrate the application with an automated build management framework.
    I have been successful in creating an ant build.xml to pull the code from source control, compile the three subapplications, jar the appData, and jar the appEjb. The issue I am having is precompiling the jsp files in the appWeb.
    The JDeveloper resource for appWeb.deploy precompiles all the jsps and packages the jsp class files along with all the other appWeb content as part of the appWeb.war.
    I thought JDeveloper was utilizing an internal J2EE standalone OC4J. I created a classpath and taskdef as follows
    <path id="ojspc.classpath">
    <fileset dir="jdevstudio">
    <include name="**/*.jar"/>
    </fileset>
    <pathelement location="${env.JAVA_HOME}/lib/tools.jar" />
    <pathelement location="${outDir}/appData"/>
    <pathelement location="${outDir}/appWeb"/>
    <pathelement location="${outDir}/appEjb"/>
    </path>
    <taskdef name="ojspc" classpathref="ojspc.classpath" classname="org.apache.tools.ant.taskdefs.optional.jsp.OjspC" />
    My original attempts had a much more constrained classpath definition (using the classpath found in the manifest file within j2ee\home\ojspc.jar); however, ant is unable to find the OjspC class and thus I expanded the classpath to include all jar files.
    After reading through blogs, forums, and documentation, I am unable to figure out how to define a task within ant to precompile the jsps in my project which mirrors the work being done via the JDeveloper deploy resource. Does anyone know the actual class to use for precompiling the jsps?
    Any help is greatly apprciated,
    /dclink

    GR wrote:
              > Is there any ant task for precompiling jsp provided by weblogic 8.1.2?
              > (Ant's wljspc doesnt work with 8.1.2).
              Have you tired a regular java task that calls the class weblogic.jspc?
              A little more direct but I imagine it would work
              ~Ryan
              

  • Nullpointerexception when running testsuite via Ant task

    I get a NullPointerException when trying to execute a testsuite via a commandline Ant task.
    The Nullpointerexception is occuring at the line:
    oracle.v2.parser.DOMLocator.getSystemId()
    Here the full trace of the execution (debug)
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    M:\>c:
    C:\>cd \projects\aorta_bpel\src\MWPEmailDispatcher
    C:\projects\aorta_bpel\src\MWPEmailDispatcher>ant deployProcess test -verbose
    Apache Ant version 1.6.5 compiled on June 2 2005
    Buildfile: build.xml
    Detected Java version: 1.4 in: C:\j2sdk1.4.2_08\jre
    Detected OS: Windows XP
    parsing buildfile C:\projects\aorta_bpel\src\MWPEmailDispatcher\build.xml with URI = file:///C:/proj
    ects/aorta_bpel/src/MWPEmailDispatcher/build.xml
    Project base dir set to: C:\projects\aorta_bpel\src\MWPEmailDispatcher
    [xmlproperty] Loading C:\projects\aorta_bpel\src\MWPEmailDispatcher\bpel\bpel.xml
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding.property(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding.property
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding.property(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding.property
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding.property(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding.property
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding.property(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding.property
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding.property(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.partnerLinkBindings.partnerLinkB
    inding.property
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(encryption)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(encryption)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(encryption)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(encryption)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(encryption)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(encryption)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(name)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property(encryption)
    Overriding previous definition of property BPELSuitcase.BPELProcess.preferences.property
    [property] Loading Environment env.
    Property ${env.BPEL_HOME} has not been set
    Property ${env.BPEL_HOME} has not been set
    [available] Unable to find ${env.BPEL_HOME}\utilities\ant-orabpel.xml
    [property] Loading C:\projects\aorta_bpel\src\MWPEmailDispatcher\build.properties
    Importing file C:/oracle/product/10.1.3.1/OracleAS_1/bpel/utilities/ant-orabpel.xml from C:\projects
    \aorta_bpel\src\MWPEmailDispatcher\build.xml
    parsing buildfile C:\oracle\product\10.1.3.1\OracleAS_1\bpel\utilities\ant-orabpel.xml with URI = fi
    le:///C:/oracle/product/10.1.3.1/OracleAS_1/bpel/utilities/ant-orabpel.xml
    Importing file ant-deployapps.xml from C:\oracle\product\10.1.3.1\OracleAS_1\bpel\utilities\ant-orab
    pel.xml
    parsing buildfile C:\oracle\product\10.1.3.1\OracleAS_1\bpel\utilities\ant-deployapps.xml with URI =
    file:///C:/oracle/product/10.1.3.1/OracleAS_1/bpel/utilities/ant-deployapps.xml
    [property] Loading C:\oracle\product\10.1.3.1\OracleAS_1\bpel\utilities\ant-orabpel.properties
    Override ignored for property bpel.home
    Override ignored for property oracle.home
    Override ignored for property admin.password
    Override ignored for property http.port
    dropping C:\oracle\product\10.1.3.1\OracleAS_1\bpel\system\appserver\oc4j\j2ee\home\lib\oc4j-interna
    l.jar from path as it doesn't exist
    parsing buildfile jar:file:/C:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel-ant.jar!/com/coll
    axa/cube/ant/orabpel-antlib.xml with URI = jar:file:/C:/oracle/product/10.1.3.1/OracleAS_1/bpel/lib/
    orabpel-ant.jar!/com/collaxa/cube/ant/orabpel-antlib.xml
    [property] Loading C:\oracle\product\10.1.3.1\OracleAS_1\bpel\utilities\ant-orabpel.properties
    Override ignored for property platform
    Override ignored for property verbose
    Override ignored for property j2ee.home
    Override ignored for property apps
    Override ignored for property orabpel.db.user
    Override ignored for property bpel.home
    Override ignored for property opmn.requestport
    Override ignored for property bpeltest.numWorkers
    Override ignored for property jndi.user
    Override ignored for property bpel.version
    Override ignored for property http.hostname
    Override ignored for property j2ee.hostname
    Override ignored for property oracle.home
    Override ignored for property jndi.password
    Override ignored for property bpeltest.minCoverage
    Override ignored for property admin.user
    Override ignored for property hostname
    Override ignored for property domain
    Override ignored for property orabpel.db.connect_string
    Override ignored for property bpeltest.timeout
    Override ignored for property jndi.url
    Override ignored for property soapServerUrl
    Override ignored for property rmi.port
    Override ignored for property admin.password
    Override ignored for property orabpel.db.password
    Override ignored for property cluster
    Override ignored for property rev
    Override ignored for property client.classpath
    Override ignored for property http.port
    Override ignored for property jndi.InitialContextFactory
    Override ignored for property bpeltest.results.dir
    Override ignored for property bpel.build
    Override ignored for property bpeltest.package
    Override ignored for property asinstancename
    Override ignored for property default-web-app.dir
    Override ignored for property oc4jinstancename
    [available] Unable to find pre-build.xml
    [available] Unable to find post-build.xml
    Build sequence for target(s) `deployProcess' is [deployProcess]
    Complete build sequence is [deployProcess, deployOc4j, deployBindWebAppOc4j, deployIas_10gR3, deploy
    BindWebAppIas_10gR3, deployIas_10gR2, deployBindWebAppIas_10gR2, prepareTests, pre-build, validateTa
    sk, compile, deployTaskForm, deployDecisionServices, process-deploy, post-build, deploy, deployNonOr
    aclej2ee, setJndiUrlOrclej2ee, deployIas, setJndiUrlIas, deployBindWebAppIas, deployTestSuites, bpel
    Test, report, test, deploy_test, schemac, setJndiUrlOc4j, build_ear, deployOraclej2ee, ]
    deployProcess:
    [echo]
    [echo] --------------------------------------------------------------
    [echo] | Deploying bpel process MWPEmailDispatcher on localhost, port 7777
    [echo] --------------------------------------------------------------
    [echo]
    [deployProcess] Deploying process C:\projects\aorta_bpel\src\MWPEmailDispatcher\output\bpel_MWPEmail
    Dispatcher_1.0.jar
    [deployProcess] Successfully deployed the process "MWPEmailDispatcher" on server "localhost" and por
    t "7777"
    Build sequence for target(s) `test' is [prepareTests, deployTestSuites, bpelTest, report, test]
    Complete build sequence is [prepareTests, deployTestSuites, bpelTest, report, test, deployOc4j, depl
    oyBindWebAppOc4j, deployIas_10gR3, deployBindWebAppIas_10gR3, deployIas_10gR2, deployBindWebAppIas_1
    0gR2, pre-build, validateTask, compile, deployProcess, deployTaskForm, deployDecisionServices, proce
    ss-deploy, post-build, deploy, deployNonOraclej2ee, setJndiUrlOrclej2ee, deployIas, setJndiUrlIas, d
    eployBindWebAppIas, deploy_test, schemac, setJndiUrlOc4j, build_ear, deployOraclej2ee, ]
    prepareTests:
    [echo]
    [echo] --------------------------------------------------------------
    [echo] | Preparing BPEL tests for deployment
    [echo] --------------------------------------------------------------
    [echo]
    [delete] Deleting: C:\projects\aorta_bpel\src\MWPEmailDispatcher\output\bpeltest.zip
    [zip] Building zip: C:\projects\aorta_bpel\src\MWPEmailDispatcher\output\bpeltest.zip
    [zip] adding entry regression_tests/testContainsSubjectP1WithAttachm.xml
    [zip] adding entry regression_tests/testEmptySubject.xml
    [zip] adding entry regression_tests/testEmptySubjectNoBodyPart.xml
    [zip] adding entry regression_tests/testEmptySubjectWithAttachm.xml
    [zip] adding entry regression_tests/testNominalP1214Meetdatavalide.xml
    [zip] adding entry regression_tests/testNominalP1214MeetdatavalideWithAttachm.xml
    [zip] adding entry regression_tests/testNominalP1217aMeetdatavalide.xml
    [zip] adding entry regression_tests/testNominalP1217aMeetdatavalideWithAttachm.xml
    [zip] adding entry regression_tests/testNominalP1WithAttachm.xml
    [zip] adding entry regression_tests/testP1WithBody.xml
    [zip] adding entry regression_tests/testRTFP1214Meetdatavalide.xml
    [zip] adding entry regression_tests/testRTFP1217Meetdatavalide.xml
    deployTestSuites:
    [echo]
    [echo] --------------------------------------------------------------
    [echo] | Deploying bpel tests MWPEmailDispatcher on localhost, port 7777
    [echo] --------------------------------------------------------------
    [echo]
    [deployTestSuites] bpeltest.zip deployed successfully.
    bpelTest:
    [echo]
    [echo] --------------------------------------------------------------
    [echo] | Executing process MWPEmailDispatcher(v.1.0): minCoverage=100%, timeout=90 sec, numWork
    ers=1
    [echo] --------------------------------------------------------------
    [echo]
    [delete] Deleting directory C:\oracle\product\10.1.3.1\OracleAS_1\j2ee\home\default-web-app\resul
    ts\xml\MWPEmailDispatcher
    [delete] Deleting directory C:\oracle\product\10.1.3.1\OracleAS_1\j2ee\home\default-web-app\resul
    ts\xml\MWPEmailDispatcher
    [bpeltest] XML-22000: (Fatal Error) Error while parsing XSL file ({0}).
    BUILD FAILED
    C:\projects\aorta_bpel\src\MWPEmailDispatcher\build.xml:181: java.lang.NullPointerException
    at org.apache.tools.ant.Task.perform(Task.java:373)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: java.lang.NullPointerException
    at oracle.xml.parser.v2.DOMLocator.getSystemId(DOMLocator.java:115)
    at javax.xml.transform.TransformerException.getMessageAndLocation(TransformerException.java:
    210)
    at com.collaxa.cube.ant.taskdefs.BpelTest.createJUnitReport(BpelTest.java:741)
    at com.collaxa.cube.ant.taskdefs.BpelTest.createReport(BpelTest.java:877)
    at com.collaxa.cube.ant.taskdefs.BpelTest.execute(BpelTest.java:1033)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    ... 10 more
    --- Nested Exception ---
    java.lang.NullPointerException
    at oracle.xml.parser.v2.DOMLocator.getSystemId(DOMLocator.java:115)
    at javax.xml.transform.TransformerException.getMessageAndLocation(TransformerException.java:
    210)
    at com.collaxa.cube.ant.taskdefs.BpelTest.createJUnitReport(BpelTest.java:741)
    at com.collaxa.cube.ant.taskdefs.BpelTest.createReport(BpelTest.java:877)
    at com.collaxa.cube.ant.taskdefs.BpelTest.execute(BpelTest.java:1033)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Total time: 1 minute 39 seconds
    C:\projects\aorta_bpel\src\MWPEmailDispatcher>

    I had this same issue, and after almost a month, finally found the solution...
    The <bpletest> task needs reference to an xls like:
    <!-- xsl="${bpel.home}/system/console/xslt/bpeltest-junit.xsl" was missing from <bpeltest> declaration -->
    <!-- "bpeltest" target runs deployed testsuites of a BPEL process -->
    <target name="bpelTest">
    <echo>
    | Executing BPEL Tests Process ${process.name} on:
    |
    | * user="${admin.user}" password="${admin.password}"
    | * hostname="${http.hostname}" httpport="${http.port}"
    | * domain="${domain}" process="${process.name}"
    | * rev="${rev}" name="${process.name}Tests"
    | * timeout="${bpeltest.timeout}"
    | * numWorkers="${bpeltest.numWorkers}"
    | * minCoverage="${bpeltest.minCoverage}"
    | * callHandler="${bpeltest.callHandler}"
    | * context="${bpel.context.properties}"
    | * resultsDir="${bpeltest.results.dir}/xml/${process.name}"
    | * resultsPropertyFile="${bpeltest.results.dir}/${process.name}.properties"
    | * verbose="${verbose}"
    | * xsl="${bpel.home}/system/console/xslt/bpeltest-junit.xsl"
    |
    </echo>
    <delete dir="${bpeltest.results.dir}/xml/${process.name}" quiet="true"/>
    <bpeltest
    user="${admin.user}" password="${admin.password}"
    hostname="${http.hostname}" httpport="${http.port}"
    domain="${domain}" process="${process.name}"
    rev="${rev}" name="${process.name}Tests"
    timeout="${bpeltest.timeout}"
    numWorkers="${bpeltest.numWorkers}"
    minCoverage="${bpeltest.minCoverage}"
    callHandler="${bpeltest.callHandler}"
    context="${bpel.context.properties}"
    resultsDir="${bpeltest.results.dir}/xml/${process.name}"
    resultsPropertyFile="${bpeltest.results.dir}/${process.name}.properties"
    verbose="${verbose}"
    xsl="${bpel.home}/system/console/xslt/bpeltest-junit.xsl"
    />
                   <!--<classpath>
                        <pathelement path="${bpeltest.results.dir}/xsl/bpeltest-junit.xsl" />
                        <pathelement path="${project.root}/tools/build-tools/src/main/resources/bpel" />
                        <pathelement path="C:/viewstore/esp_lynx_dap/esp/dap/tools/build-tools/src/main/resources/bpel/bpeltest-junit.xsl" />
                        <pathelement path="C:/viewstore/esp_lynx_dap/esp/dap/tools/build-tools/src/main/resources/bpel/com/collaxa/cube/ant" />
                   </classpath>
              </bpeltest>-->
    <property file="${bpeltest.results.dir}/${process.name}.properties"/>
    <echo>
    Executed ${test.total.count} test(s) for ${process.name} (v.${rev}) with
    ${test.failure.count} failure(s)
    </echo>
    </target>

  • Trying to dynamically load CSS for project at compile time via config XML file to select CSS file.

    I'm using the same code base to compile different versions of a project. Each project has different base fonts. I've created multiple css files that use the same style names. The idea being that in the code I reference the style names, then the loaded CSS determines which font (and size, color, etc) is used for each style name.
    The CSS files are compiling to SWFs, and those SWFs are referenced in config.xml files. Before compiling, I select the config file to use.
    I am loading the CSS SWF files via the StyleManager in the Application.mxml, like so:
      styleManager.loadStyleDeclarations( _contentData.elements( 'cssPath' ).@path )
    The path traces out correctly as:
    assets_embed/styles/project2.swf
    For some reasone I must include an fx:Style line in the Application.mxml file or no fonts are recognized. Example:
      <fx:Style source="assets_embed/styles/project1.css"/>
    If I reference the css for project one (as done above) then most, but not all, styles work. Some styles reference the fonts from the project 1 css, others properly use fonts from project 2 swf. If I point to the CSS for the project I'm compiling in the <fx:Style > tag then all fonts work, but that defeats the goal of using XML rather than code to identify the styles.
    So, why do I need the fx:Style line if the css is being loaded via StyleManager?
    Why is there "cross talk" between style definitions?
    Is there a better way to select styles at compile time?

    I read this quickly so I might have missed a detail.  I think your describing an issue with recent Flex releases that is described in the fine print somewhere.  If you don't have any fonts embedded in the main app and are only bringing in fonts embedded in CSS SWFs, you have to force-link the EmbeddedFontRegistry by adding something like this to the main app's script block.
    import mx.core.EmbeddedFontRegistry; EmbeddedFontRegistry;
    (Yes, "EmbeddedFontRegistry" is in there twice, once to define the fully qualified name, the other to create a class dependency to force the linking).

  • Error while deploying SOA composite via ant

    I am getting following error while deploying SOA composite through ant from SOA server (UNIX).It is unable to get mds configuration.
    Jdeveloper is not installed in SOA server.
    I am trying to copy the SOA project from local machine to SOA server and trying to deploy from SOA server.
    Error
    Parse of component type files failed, check the adf-config.xml file : "oracle.fabric.common.FabricException: oracle.mds.config.MDSConfigurationException: MDS-01330: unable to load MDS configuration document
    MDS-01329: unable to load element "persistence-config"
    MDS-01370: MetadataStore configuration for metadata-store-usage "mstore-usage_1" is invalid.
    MDS-00503: The metadata path "/u01/orasoa/Oracle/Middleware/Oracle_SOA1/integration" does not contain any valid directories.
    I checked /u01/orasoa/Oracle/Middleware/Oracle_SOA1 directory. Integretion directory is not available.
    Am I missing anything?
    *Please advise.*
    build.propeties
    ============
    # build file for HelloWorldComposite
    composite.name=AntScriptDeployPOCService
    # revision of the composite
    composite.revision=1.0
    # Set oracle.home to <JDEV_HOME>/jdeveloper, where <JDEV_HOME> is JDEV # installation directory
    #oracle.home=C:/Oracle/Middleware/jdeveloper
    oracle.home=/u01/orasoa/Oracle/Middleware/Oracle_SOA1
    # soa-server side oracle home directory - needed for deployment plan
    # and the weblogic sca library deployment
    soa.server.oracle.home=/u01/orasoa/Oracle/Middleware/Oracle_SOA1
    ###### Deployment server connection information
    # the admin server connection information
    admin.server.host=10.40.237.106
    admin.server.port=7001
    # the domain where soa infra is installed
    server.domain.name=soa_domain
    # connection information for the managed server, used for soa-deployment
    managed.server.host=10.40.237.106
    managed.server.port=8001
    # User and credentials for the servers
    server.user=weblogic
    server.password=<password>
    # wls server where soa is targeted.
    server.targets=soa_server1
    #local.java.home=C:/Oracle/Middleware/jdk160_14_R27.6.5-32
    local.java.home=/u01/orasoa/Oracle/Middleware/jdk160_14_R27.6.5-32
    Build.xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <project name="AntScriptDeployPOCService" default="all">
    <!-- build.properties -->
    <property file="build.properties"/>
    <property name="deploy.dir" value="../deploy"/>
    <!-- Add targets here -->
    <target name="compile-package">
    <property name="sca-inf.classes.dir" value="../SCA-INF/classes"/>
    <mkdir dir="${sca-inf.classes.dir}"/>
    <ant antfile="${oracle.home}/bin/ant-sca-package.xml" target="package" inheritall="false">
    <property name="oracle.home" value="${oracle.home}"/>
    <property name="compositeDir" value="${basedir}/../"/>
    <!-- needed for adf config -->
    <property name="scac.application.home" value="${basedir}/../.."/>
    <!-- name of the composite -->
    <property name="compositeName" value="${composite.name}"/>
    <!-- revision of the composite -->
    <property name="revision" value="${composite.revision}"/>
    <!-- java.passed.home passed to scac, this property will be
    overwritten to the env.JAVA_HOME if such env variable is defined in OS level-->
    <property name="java.passed.home" value="${local.java.home}"/>
              <!--property name="java.passed.home" value="C:/Oracle/Middleware/jdk160_14_R27.6.5-32"-->
    </ant>
    </target>
    <target name="deploy">
    <condition property="deploymentplan.name" value="null">
    <not>
    <isset property="${deploymentplan.name}"/>
    </not>
    </condition>
    <echo>Deploying to http://${managed.server.host}:${managed.server.port}/soa-infra/deployer</echo>
    <ant antfile="${oracle.home}/bin/ant-sca-deploy.xml" target="deploy" inheritall="false">
    <!-- reformat of prop names -->
    <property name="user" value="${server.user}"/>
    <property name="password" value="${server.password}"/>
    <!-- create the url for deployment -->
    <property name="serverURL" value="http://${managed.server.host}:${managed.server.port}/soa-infra/deployer"/>
    <!-- location of the sar -->
    <property name="sarLocation" value="${deploy.dir}/sca_${composite.name}_rev${composite.revision}.jar"/>
    <!-- force overwrite if already there -->
    <property name="overwrite" value="true"/>
    <!-- configplan-->
    <property name="configplan" value="${deploymentplan.name}"/>
    </ant>
    </target>
    <target name="all" depends="compile-package,deploy"/>
    </project>

    Check whether the adf-config.xml file in your app is having proper mds path similar to this:
    <adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config">
    <mds-config xmlns="http://xmlns.oracle.com/mds/config">
    <persistence-config>
    <metadata-namespaces>
    <namespace metadata-store-usage="mstore-usage_1" path="/soa/shared"/>
    </metadata-namespaces>
    <metadata-store-usages>
    <metadata-store-usage id="mstore-usage_1">
    <metadata-store class-name="oracle.mds.persistence.stores.file.FileMetadataStore">
    <property value="${oracle.home}/integration"
    name="metadata-path"/>
    <property value="seed" name="partition-name"/>
    </metadata-store>
    </metadata-store-usage>
    </metadata-store-usages>
    </persistence-config>
    </mds-config>
    </adf-mds-config>
    "

Maybe you are looking for

  • Error Print system failed. HP OJ 6500A

    Hi, The moement I switch the printer on it goes through it motions an end get stuck on the printing system has failed. Error code  0x.....0022. Going through the forum and lot of googling I do not get a definite solution to this problem. I do not wan

  • Mac mini doesn't start

    i have a mac mini (intel) with macosx 10.4.5 after the boot a screen prompt me to restart the computer! and at the back appears this message: panic (cpu 0 caller 0x0039BC43) unable to find driver for this platform: "ACPI". i haved repeared the disk p

  • Strange Ad-Hoc Issue

    I've been getting this Ad-Hoc warning on the WLSE, the name is PwC80211 and the MAC keeps changing on it except the manufacurer code. I've read where this is probably a Linux OS and it's scanning for other Ad-Hoc's to connect to. Has anyone else ever

  • Can't delete Time Machine Backup Files - Authentication Issue??

    Using time machine on my 20" iMac, Leopard v10.5.2 with no issues on an external Firewire 800 drive. When I go to the Time Machine view and choose a file, then the gears icon at the top so I can "Delete all backup copies of this file", when I choose

  • Zooming in on different parts of screen

    I have turned Zoom on in Preferences, though I am not sure how to zoom in on different parts of my screen. What are the keyboard shortcuts for doing this? I want to be able to demo things on an overhead projector and zoom in on the areas. Thanks.