ANT Failing

I am tryig to deploy of one of the tutorilas through ant scipt and its failing? Any Idea Why it is failing?
orabpel@nyfinapp01t:/ebsbpel/orabpel/product/10.1.3.1/bpel/samples/tutorials/101.HelloWorld $ ant
Buildfile: build.xml
Trying to override old definition of task customize
pre-build:
validateTask:
[echo]
[echo] --------------------------------------------------------------
[echo] | Validating workflow
[echo] --------------------------------------------------------------
[echo]
[validateTask] Validation of workflow task definitions is completed without errors
compile:
[echo]
[echo] --------------------------------------------------------------
[echo] | Compiling bpel process HelloWorld, revision 1.0
[echo] --------------------------------------------------------------
[echo]
[bpelc] validating "/ebsbpel/orabpel/product/10.1.3.1/bpel/samples/tutorials/101.HelloWorld/bpel/HelloWorld.bpel" ...
[bpelc] BPEL suitcase generated in: /ebsbpel/orabpel/product/10.1.3.1/bpel/samples/tutorials/101.HelloWorld/output/bpel_HelloWorld_1.0.jar
deployProcess:
[echo]
[echo] --------------------------------------------------------------
[echo] | Deploying bpel process HelloWorld on nyfinapp01t.homebox.com, port 28594
[echo] --------------------------------------------------------------
[echo]
[deployProcess] Deploying process /ebsbpel/orabpel/product/10.1.3.1/bpel/samples/tutorials/101.HelloWorld/output/bpel_HelloWorld_1.0.jar
BUILD FAILED
/ebsbpel/orabpel/product/10.1.3.1/bpel/samples/tutorials/101.HelloWorld/build.xml:79: A problem occured while connecting to server "nyfinapp01t.homebox.com" using port "28594": <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
The requested URL /integration/services/deploy/deployHttpClientProcess.jsp was not found on this server.<P>
<HR>
<ADDRESS>Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server Server at nyfinapp01t.homebox.com Port 28594</ADDRESS>
</BODY></HTML>
Total time: 6 seconds

<p>Note:466210.1</p>
<p>Solution:</p>
<p>To implement the solution, please execute the following:</p>
<p>In the $ORACLE_HOME/j2ee/<OC4J>/config/default-web-site.xml</p>
<p>Add the following parameter ohs-routing="true" after root="integration", i.e.</p>
<p>root="/integration" ohs-routing="true" /></p>
<p>This is a new feature added in iAS 10.1.3.1.</p>
<p>ohs-routing needs to be enabled for http server to pass requests to OC4J.</p>

Similar Messages

  • Ant fails to compile modules which use interfaces

    Hi, I am having a major problem compiling flex modules with ANT.
    I will try to give ALL necessary information so we can avoid days of useless novice questions.
    I have an application that uses many modules.  They DO compile perfectly in flash builder.
    First question.  How can I get flashbuilder 4.7 to show me the command line which it uses for mxmlc?  If I could see this, I could do everything myself.
    Second question:  What is wrong with my work below?
    I have a module which looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    implements="com.hof.lobby.modules.IVolatileAssets"
    width="400" height="300"
    creationComplete="onDummy(event)"
    >
    I have inside this module various other properties which are themselves instances typed as various other interfaces.
    when I build the main applicaiton, everything is fine.
    I created a macrodef in ANT to build all my modules efficiently.
        <macrodef name="buildModule">
            <attribute name="module-name" default="none" />
            <attribute name="module-package" default="none" />
                  <attribute name="out-path" default="." />
            <sequential>
                      <echo message="building @{module-name} to @{out-path}/@{module-name}.swf" />
                      <mxmlc file="${APP_ROOT}/src/@{module-package}/@{module-name}.mxml"
                                   output="${DEPLOY_DIR}/@{out-path}/@{module-name}.swf"
                                   keep-generated-actionscript="false"
                                   incremental="false"
                                   debug="true"
                                   fork="true"
                                   load-externs="${ANT_ROOT}/link-report.xml"
                                   optimize="false"
                                   >
                                <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
                    <source-path path-element="${FLEX_HOME}/frameworks"/>
                                <compiler.library-path dir="${HOF_COMMON_ROOT}" append="true">
                                          <include name="bin"/>
                                </compiler.library-path>
                                <compiler.library-path dir="${APP_ROOT}" append="true">
                                          <include name="libs"/>
                                </compiler.library-path>
                    <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                        <include name="libs" />
                        <include name="../bundles/{locale}" />
                    </compiler.library-path>
                                <source-path path-element="${APP_ROOT}/src/locale/{locale}"/>
                </mxmlc>
            </sequential>
        </macrodef>
        <target name="modulesDebug" depends="lobbyDependencies" description="Build the lobby modules for debug">
                  <!--<buildModule module-name="InboxDlg" module-package="com/hof/lobby/modules/dlgs" out-path="modules3/dlgs"/>-->
                  <buildModule module-name="VolatileAssets" module-package="com/hof/lobby/modules" out-path="modules3"/>
              </target>
    So then when i run this target, i get the following output:
    modulesDebug:
         [echo] building VolatileAssets to modules3/VolatileAssets.swf
        [mxmlc] Loading configuration file F:\var\sdk\flex_sdk_4.5.1.21328A\frameworks\flex-config.xml
        [mxmlc] F:\var\projects\hof\svn2.-----.com\lobby\branches\3.1.39.0\src\com\hof\lobby\modules\Vola tileAssets.mxml(-1):  Error: Interface IVolatileAssets was not found.
        [mxmlc] <?xml version="1.0" encoding="utf-8"?>
    BUILD FAILED
    F:\var\projects\hof\svn2.-----.com\lobby\branches\3.1.39.0\build.xml:98: The following error occurred while executing this line:
    F:\var\projects\hof\svn2.-----.com\lobby\branches\3.1.39.0\build.xml:51: mxmlc task failed.
    Total time: 7 seconds
    If i remove the implements attribute in the module component definition then i get a cascading failure for EVERY SINGLE interface in the module.
    Basically something is causing ANT to fail to load the class def for ANY interface in the module.
    What on earth am I doing wrong?
    Please help.
    Thank you.

    I am replying to my own thread because I absolutely HATE IT when i see a post with the exact problem that I have and no answer.
    here is the answer to the problem:
    I had to create an external config file and load it with
    <load-config filename="${basedir}/config/ModuleConfig.xml"/>
    the contents of ModuleConfig.xml re-define nearly every framework configuration.  none of them seem non standard to me...
    Basically I just defined everything to be what it SHOULD be and loaded this config file after I apply the default flex-config.xml from the sdk.
    do what I posted below and it will work.
    so now, my macrodef is:
        <macrodef name="buildModule">
            <attribute name="module-name" default="none" />
            <attribute name="module-package" default="none" />
                  <attribute name="out-path" default="." />
                  <attribute name="debug" default="true" />
            <sequential>
                      <echo message="building @{module-name} to @{out-path}/@{module-name}.swf" />
                      <mxmlc file="${APP_ROOT}/src/@{module-package}/@{module-name}.mxml"
                                   output="${DEPLOY_DIR}/@{out-path}/@{module-name}.swf"
                                   keep-generated-actionscript="false"
                                   incremental="true"
                                   debug="@{debug}"
                                   fork="true"
                                   optimize="false"
                                   size-report="${basedir}/reports/@{module-name}-size_report.xml"
                                   >
                                <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
                                <load-config filename="${basedir}/config/ModuleConfig.xml"/>
                </mxmlc>
            </sequential>
        </macrodef>
    and my ModuleConfig file is:
    <flex-config xmlns="http://www.adobe.com/2006/flex-config">
      <compiler>
        <warn-no-constructor>false</warn-no-constructor>
        <accessible>true</accessible>
        <fonts>
          <managers>
            <manager-class>flash.fonts.JREFontManager</manager-class>
            <manager-class>flash.fonts.BatikFontManager</manager-class>
            <manager-class>flash.fonts.AFEFontManager</manager-class>
            <manager-class>flash.fonts.CFFFontManager</manager-class>
          </managers>
        </fonts>
        <source-path>
          <path-element>${basedir}/src/locale/{locale}</path-element>
          <path-element>${basedir}/src</path-element>
        </source-path>
        <debug>true</debug>
        <theme>
          <filename>${FLEX_HOME}frameworks/themes/Spark/spark.css</filename>
        </theme>
        <namespaces>
          <namespace>
            <uri>http://ns.adobe.com/mxml/2009</uri>
            <manifest>${FLEX_HOME}frameworks/mxml-2009-manifest.xml</manifest>
          </namespace>
          <namespace>
            <uri>library://ns.adobe.com/flex/spark</uri>
            <manifest>${FLEX_HOME}frameworks/spark-manifest.xml</manifest>
          </namespace>
          <namespace>
            <uri>library://ns.adobe.com/flex/mx</uri>
            <manifest>${FLEX_HOME}frameworks/mx-manifest.xml</manifest>
          </namespace>
          <namespace>
            <uri>http://www.adobe.com/2006/mxml</uri>
            <manifest>${FLEX_HOME}frameworks/mxml-manifest.xml</manifest>
          </namespace>
        </namespaces>
        <library-path>
          <path-element>${FLEX_HOME}frameworks/locale/{locale}</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/rpc.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/osmf.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/spark.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/charts.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/framework.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/spark_dmv.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/sparkskins.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/textLayout.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/advancedgrids.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/authoringsupport.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/flash-integration.swc</path-element>
          <path-element>${FLEX_HOME}frameworks/libs/mx/mx.swc</path-element>
          <path-element>  ---- proprietary libs - redacted ----  </path-element>
        </library-path>
        <external-library-path>
          <path-element>${FLEX_HOME}frameworks/libs/player/10.2/playerglobal.swc</path-element>
        </external-library-path>
        <locale>
          <locale-element>en_US</locale-element>
          <locale-element>es_ES</locale-element>
          <locale-element>fr_FR</locale-element>
          <locale-element>it_IT</locale-element>
        </locale>
      </compiler>
      <target-player>10.2</target-player>
      <swf-version>11</swf-version>
      <static-link-runtime-shared-libraries>false</static-link-runtime-shared-libraries>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/framework.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/framework_4.5.1.21489.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>framework_4.5.1.21489.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/textLayout.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.232/textLayout_2.0.0.232.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>textLayout_2.0.0.232.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/osmf.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/osmf_1.0.0.16316.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>osmf_1.0.0.16316.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/spark.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/spark_4.5.1.21489.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>spark_4.5.1.21489.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/sparkskins.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/sparkskins_4.5.1.21328.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>sparkskins_4.5.1.21328.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/rpc.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/rpc_4.5.1.21328.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>rpc_4.5.1.21328.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/charts.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/charts_4.5.1.21328.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>charts_4.5.1.21328.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/spark_dmv.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/spark_dmv_4.5.1.21328.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>spark_dmv_4.5.1.21328.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/mx/mx.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/mx_4.5.1.21489.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>mx_4.5.1.21489.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <runtime-shared-library-path>
        <path-element>${FLEX_HOME}frameworks/libs/advancedgrids.swc</path-element>
        <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.5.1.21328/advancedgrids_4.5.1.21328.swz</rsl-url>
        <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
        <rsl-url>advancedgrids_4.5.1.21328.swz</rsl-url>
        <policy-file-url />
      </runtime-shared-library-path>
      <file-specs>
        <path-element>${APP_ROOT}/src/@{module-package}/@{module-name}.mxml</path-element>
      </file-specs>
      <output>${DEPLOY_DIR}/@{out-path}/@{module-name}.swf</output>
    </flex-config>

  • 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?

  • Packaging AIR application with ant fails, Packaging AIR application inside IntelliJ works

    Hi,
    I can package AIR application (package type ad-hoc distribution) inside IntelliJ (from Build menu)
    but when I try with my ant build, it encounters an error running the adt command
    Is there a way to have more details on the error? At the moment, it's just a Java returned:2 error.
    I've copied my ant config files below.
    Any ideas anyone on where the problem could lie or how to debug it?
    THANKS!
    Note: I have no issue with the package debug target, be it via IntelliJ or my ant build.
    Build.xml
    <project name="headr" default="package-application-debug-interpreter" basedir="../">
              <property file="build/build.properties" />
              <property name="FLEX_HOME" value="${flexsdk.dir}" />
              <taskdef resource="flexTasks.tasks" classpath="${flexsdk.dir}/ant/lib/flexTasks.jar" />
              <target name="clean" description="deletes everything in build folder">
                        <echo message="Removing build directory contents..." />
                        <delete includeemptydirs="true" quiet="false">
                                  <fileset dir="${build.dir}" />
                        </delete>
              </target>
              <target name="perform-file-copy">
                        <mkdir dir="${build.dir}" />
                        <echo message="Copy files to output dir: ${build.dir}" />
                        <copy file="src/HeadrApplication-app.xml" todir="${build.dir}" />
                        <replace file="${build.dir}/HeadrApplication-app.xml" token="[This value will be overwritten by Flash Builder in the output app.xml]" value="out/HeadrApplication.swf" />
              </target>
              <target name="compile" depends="clean,perform-file-copy">
                        <mxmlc file="src/HeadrApplication.as" output="${build.dir}/HeadrApplication.swf" locale="en_US" accessible="false" actionscript-file-encoding="UTF-8" static-rsls="true" configname="airmobile" debug="${debug}" failonerror="true" maxmemory="1024m" fork="true" swf-version="17">
                                  <load-config filename="${flex_config}" append="true" />
                        </mxmlc>
              </target>
              <target name="pack-application" depends="compile">
                        <java jar="${adt.jar}" fork="true" failonerror="true">
                                  <arg value="-package" />
                                  <arg value="-target" />
                                  <arg value="${target}" />
                                  <arg value="-provisioning-profile" />
                                  <arg value="${provisioning-profile}" />
                                  <arg value="-storetype" />
                                  <arg value="pkcs12" />
                                  <arg value="-keystore" />
                                  <arg value="${keystore}" />
                                  <arg value="-storepass" />
                                  <arg value="${storepass}" />
      <arg value="-extdir" />
      <arg value="ane/" />
                                  <arg value="${build.dir}/HeadrApplication.ipa" />
                                  <arg value="${build.dir}/HeadrApplication-app.xml" />
                                  <arg value="${build.dir}/HeadrApplication.swf" />
                                  <arg value="-C" />
                                  <arg value="src/" />
                                  <arg value="Default.png" />
      <arg value="-C" />
      <arg value="src/" />
      <arg value="[email protected]" />
                                  <arg value="-C" />
                                  <arg value="src/" />
                                  <arg value="icons/." />
                                  <arg value="data/." />
                        </java>
              </target>
              <target name="pack-application-debug" depends="compile">
                        <java jar="${adt.jar}" fork="true" failonerror="true">
                                  <arg value="-package" />
                                  <arg value="-target" />
                                  <arg value="${target}" />
                                  <arg value="-connect" />
                                  <arg value="-provisioning-profile" />
                                  <arg value="${provisioning-profile}" />
                                  <arg value="-storetype" />
                                  <arg value="pkcs12" />
                                  <arg value="-keystore" />
                                  <arg value="${keystore}" />
                                  <arg value="-storepass" />
                                  <arg value="${storepass}" />
      <arg value="-extdir" />
      <arg value="ane/" />
                                  <arg value="${build.dir}/HeadrApplication.ipa" />
                                  <arg value="${build.dir}/HeadrApplication-app.xml" />
                                  <arg value="${build.dir}/HeadrApplication.swf" />
                                  <arg value="-C" />
                                  <arg value="src/" />
                                  <arg value="Default.png" />
      <arg value="-C" />
      <arg value="src/" />
      <arg value="[email protected]" />
                                  <arg value="-C" />
                                  <arg value="src/" />
                                  <arg value="icons/." />
                                  <arg value="data/." />
                        </java>
              </target>
              <target name="package-application-debug-interpreter">
                        <antcall target="pack-application-debug">
                                  <param name="debug" value="true" />
                                  <param name="flex_config" value="build/app-config-device-debug.xml" />
                                  <param name="target" value="ipa-debug-interpreter" />
                                  <param name="provisioning-profile" value="ios_profiles/headr_development.mobileprovision" />
                                  <param name="keystore" value="ios_profiles/dev_certificate.p12" />
                                  <param name="storepass" value="xxxx" />
                        </antcall>
              </target>
              <target name="package-application-debug">
                        <antcall target="pack-application-debug">
                                  <param name="debug" value="true" />
                                  <param name="flex_config" value="build/app-config-device-debug.xml" />
                                  <param name="target" value="ipa-debug" />
                                  <param name="provisioning-profile" value="ios_profiles/headr_development.mobileprovision" />
                                  <param name="keystore" value="ios_profiles/dev_certificate.p12" />
                                  <param name="storepass" value="xxxx" />
                        </antcall>
              </target>
              <target name="package-application-adhoc">
                        <antcall target="pack-application">
                                  <param name="debug" value="false" />
                                  <param name="flex_config" value="build/app-config-device.xml" />
                                  <param name="target" value="ipa-ad-hoc" />
                                  <param name="provisioning-profile" value="ios_profiles/headr_development.mobileprovision" />
                                  <param name="keystore" value="ios_profiles/dev_certificate.p12" />
                                  <param name="storepass" value="xxxxx" />
                        </antcall>
              </target>
              <target name="package-application-appstore">
                        <antcall target="pack-application">
                                  <param name="debug" value="false" />
                                  <param name="flex_config" value="build/app-config-device.xml" />
                                  <param name="target" value="ipa-app-store" />
                                  <param name="provisioning-profile" value="ios_profiles/TODO" />
                                  <param name="keystore" value="ios_profiles/TODO" />
                                  <param name="storepass" value="TODO" />
                        </antcall>
              </target>
              <target name="launch-application">
                        <exec executable="${adl.exe}">
                                  <arg value="bin-debug/HeadrApplication-app.xml" />
                                  <arg value="-profile mobileDevice" />
                        </exec>
              </target>
    </project>
    app-config-device.xml
    <?xml version="1.0"?>
    <flex-config xmlns="http://www.adobe.com/2006/flex-config">
              <compiler>
                        <include-libraries append="true">
                                  <library>../libs/swc/robotlegs-framework-v1.5.2.swc</library>
                                  <library>../libs/swc/greensock-as3-v11.693.swc</library>
                                  <library>../libs/swc/GraphAPI_Mobile_1_8_1.swc</library>
                                  <library>../libs/swc/MonsterDebuggerMobile-v3.0.2.swc</library>
                <library>../libs/swc/TheMiner_en_v1_3_10.swc</library>
                <library>../libs/swc/analytics-v1.1.319.swc</library>
                <library>../libs/swc/assets.swc</library>
                        </include-libraries>
                        <source-path append="true">
                <path-element>../../corelib/src/</path-element>
                <path-element>../../corelib/test/</path-element>
                <path-element>../../corelib/libs/src/</path-element>
                                  <path-element>../libs/src/</path-element>
                        </source-path>
                        <external-library-path append="true">
                <!-- path-element>../ane/com.headr.HeadrNativeExtensions.ane</path-element -->
                <path-element>../ane/com.milkmangames.extensions.GoViral.ane</path-element>
                        </external-library-path>
                        <debug>false</debug>
                        <define>
        <name>CONFIG::debugging</name>
        <value>false</value>
                        </define>
    <define>
        <name>CONFIG::simulator</name>
        <value>false</value>
    </define>
              </compiler>
    </flex-config>

    You may want to try using the settings used by Flash Builder to package the application, more details of which can be found at:http://helpx.adobe.com/x-productkb/multi/compilation-results-flex-buil der-flex.html
    Update your ANT script with these, and try again.

  • Ant limitation ?

    i thought Ant is a good tool because i got a success few days back in my post here
    http://forum.java.sun.com/thread.jspa?threadID=691411&start=20&tstart=0
    and i made a final build.xml like this
    <?xml version="1.0"?>
    <project name="myproject" basedir="." default="all">
        <property name="src.dir"     value="src"/>
        <property name="classes.dir" value="classes"/>
         <property name="lib.dir"     value="lib"/>
         <target name="all" depends="clean,compile"/>
         <target name="clean">
            <delete dir="${classes.dir}"/>
        </target>
        <path id="classpath">
            <fileset dir="${lib.dir}" includes="**/*.jar"/>
        </path>
        <target name="compile">
            <mkdir dir="${classes.dir}"/>
            <javac  srcdir="${src.dir}" destdir="${classes.dir}" deprecation="on" />
        </target>
    </project>It worked .
    i put this build.xml in the WEB-INF folder. WEB-INF folder also contains "lib" folder,"src" folder and "classes" folder.
    Today,
    i have put a Struts Application in the "src\com\search" folder.
    and also
    i have put Struts.jar, servlet.jar in the "lib" folder folder.
    Then , i tried to compile it from
    C:\.....\WEB-INF>Ant
    Buildfile: build.xml
    clean:
       [delete] Deleting directory   .....\classes
    compile:
        [mkdir] Created dir: ......\classes
    and then
    i got a message
    package org.apache.struts.action does not exist!!!!BUT,when i compiled it from the cmd prompt like,
    c:\.....com\search>javac -classpath .;urlTo-Struts.jar;urlTo-servlet.jar; *.java ...The code compiles fine !
    So, Why the Ant failed to conpile whence a command compilation worked out ?
    i have provided the "build.xml" i am using for the Ant. do you know why this does not work ?
    is this a known problem with Struts and Ant ?

    You haven't set your classpath for the javac task.

  • Error while taking a backup, BR0253E errno 28: NO space left on device

    Dear Experts,
    Since 2 days we are facing a problem with the online backup that is fired from DB13, the following is the error message that we are getting,
    BR0051I BRBACKUP 7.00 (18)
    BR0055I Start of database backup: bdxultsi.ant 2008-04-28 12:15:52
    BR0252E Function fflush() failed for '/oracle/PRD/sapbackup/bdxultsi.ant' at location main-9
    BR0253E errno28: No space left on device
    BR0121E Processing of log file /oracle/PRD/sapbackup/bdxultsi.ant failed
    BR0561I End of database backup : bdxultsi.ant 2008-04-28 12:15:52
    BR0280I BRBACKUP time stamp: 2008-04-28 12:15:53
    BR0054I BRBACKUP terminated with errors
    External program terminated with exit code 3
    We have checked with 2 different tapes, its the same problem still.
    I understand that the problem is in initilization of the tape.
    Please help me with this.. as we are not having a good backup since 3 days and its on the PRD server.
    Reward points assured
    Regards
    Hunky

    Hi,
    First off all run CleanupLogs in DB13, if it is not working then check core files in /oracle/<SID>/saptrace/background/. If they are present move one of them to the other place, then again run CleanupLogs, after move back the core file, and again start CleanupLogs. Also check available space in sapbackup folder. After you can take your backup.
    Regards,
    Zeynal Aliyev
    Edited by: Zeyn Ali on Oct 22, 2009 10:53 AM

  • Backup error on DEV  (Permission denied)

    Dear all,
    Pls check the backup log...
    10:49:03     Job started
    10:49:03     Step 001 started (program RSDBAJOB, variant &0000000000222, user ID S2K_SATHIES)
    10:49:04     Execute logical command BRBACKUP On host SAPDEVQA
    10:49:04     Parameters:-u / -jid ALLOG20100823104903 -c force -t online -m all -p initIRD.sap -a -c force -p initIRD.sap -c
    10:49:04     ds
    10:49:04     BR0051I BRBACKUP 7.00 (48)
    10:49:04     BR0055I Start of database backup: bedypdqe.ant 2010-08-23 10.49.04
    10:49:04     BR0252E Function fopen() failed for '/oracle/IRD/sapbackup/bedypdqe.ant' at location main-9
    10:49:04     BR0253E errno 13: Permission denied
    10:49:04     BR0121E Processing of log file /oracle/IRD/sapbackup/bedypdqe.ant failed
    10:49:04     
    10:49:04     BR0056I End of database backup: bedypdqe.ant 2010-08-23 10.49.04
    10:49:04     BR0280I BRBACKUP time stamp: 2010-08-23 10.49.04
    10:49:04     BR0054I BRBACKUP terminated with errors
    10:49:04     External program terminated with exit code 3
    10:49:04     BRBACKUP returned error status E
    10:49:04     Job finished
    Kindly advise
    Regards

    issu has been resolved , after given permission 777 to sapbackup(directory)

  • SOA 10.1.3 - DocumentReview sample deployed but not initialized

    Hi,
    I deployed successfully the DocumentReview sample with ant (failed with JDeveloper - see my previous post). But, I can't see it on the BPEL console (Cannot find the specified instance)...
    Can you help me?
    Cyryl

    Every time the process has a workflow, the process is successfully deployed but can not be seen on BPEL console !
    Some ideas?
    Cyryl

  • Is there a trick for CSS mill make_all and 18 community color sets

    I've added a color.19.properties community, made additions to the build.xml file, but ant fails...
    I get:BUILD FAILEDjava.lang.OutOfMemoryError
    Total time: 1 minute 8 secondsjava.lang.OutOfMemoryError
    Should I throttle the memory somewhere. I've watched my memory and process, and there is still physical (and virtual) memory left on the machine. There seem to be 2 places that control it for ant/java...

    Set this environment variable:
    ANT_OPTS
    -Xms512m -Xmx512m
    This is in the latest versions of the UI Guide and Development Setup documentation, to be released shortly.

  • ANT Deployment issue. works fine in one environment but fails in other

    Hi,
    Ant script is working fine in Dev environment but is failing in the other environment. Somehow the BPEL server is not able to pick the latest deployed process , due to this the dependent BPEL processes are failing. If we restart the server , it moves forward and then fails at the point where it couldn’t find reference to the processes deployed after restart. Restarting the server at every failed interval will deploy all the BPEL processes which is not the solution.
    example : we have BPEL Processes say A, B, C, D and E. A,B are independent processes C is dependent on A, D is independent and E is dependent on D. So I have Ant script to deploy in A,B,C,D,E order. Now I run the Ant Script: It deploys A,B processes and Fails at C saying it couldn't find the process A.wsdl(But A is deployed). So if i restart now it recognizes A and B are deployed so C is also deployed succesfully it also deploys D as it is Independent but fails at E. If i restart the server E is also deployed.
    The Environment is clustered.
    Any suggestion to make my Ant script to run at a go will be highly appreciated
    Thanks
    Krishna

    Hi KrishnaBhaskarla,
    I have something related to ant script, Can you please provide me the steps for deploying applications using ant script.
    Regards
    Kumar

  • ANT Tasks Fail with Flex 4.5 SDK

    Hi, I am trying to build the StrobeMediaPlayback project with the build.xml found in the trunk. I am using the ant -v to show you the output here:
    compile.unittest:
        [mkdir] Created dir: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build/StrobeMediaPlaybackTest
        [mxmlc] Loading configuration file /Users/dave/Code/svn/StrobeMediaPlayback/trunk/player/StrobeMediaPlaybackTest/StrobeMedia PlaybackTest-build-config.xml
        [mxmlc] /Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.flexunit_4.0.1.277662/flexunitframework/libs/version4libs /Common/flexunit_0.9.swc(mx.core:ScrollControlBase)
        [mxmlc]
        [mxmlc] Error: Declaration of style 'textDecoration' conflicts with previous declaration in /Developer/SDKs/flex_sdk_4/frameworks/libs/spark.swc(spark.components.supportClasses:Grou pBase).
        [mxmlc]
        [mxmlc] /Applications/Adobe Flash Builder 4/plugins/com.adobe.flexbuilder.flexunit_4.0.1.277662/flexunitframework/libs/version4libs /Common/flexunit_0.9.swc(mx.controls:Button)
        [mxmlc]
        [mxmlc] Error: Declaration of style 'textDecoration' conflicts with previous declaration in /Developer/SDKs/flex_sdk_4/frameworks/libs/spark.swc(spark.components.supportClasses:Grou pBase).
        [mxmlc]
      [antcall] Exiting /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml.
      [antcall] Exiting /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml.
    BUILD FAILED
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:45: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:55: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:100: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Caused by: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:55: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:100: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    ... 17 more
    Caused by: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:100: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:397)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    ... 30 more
    Caused by: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at flex.ant.FlexTask.executeInProcess(Unknown Source)
    at flex.ant.FlexTask.execute(Unknown Source)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.taskdefs.MacroInstance.execute(MacroInstance.java:394)
    ... 42 more
    --- Nested Exception ---
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:55: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:100: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Caused by: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:100: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:397)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    ... 30 more
    Caused by: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at flex.ant.FlexTask.executeInProcess(Unknown Source)
    at flex.ant.FlexTask.execute(Unknown Source)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.taskdefs.MacroInstance.execute(MacroInstance.java:394)
    ... 42 more
    --- Nested Exception ---
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:100: The following error occurred while executing this line:
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:397)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Caused by: /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at flex.ant.FlexTask.executeInProcess(Unknown Source)
    at flex.ant.FlexTask.execute(Unknown Source)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.taskdefs.MacroInstance.execute(MacroInstance.java:394)
    ... 42 more
    --- Nested Exception ---
    /Users/dave/Code/svn/StrobeMediaPlayback/trunk/build.xml:220: mxmlc task failed
    at flex.ant.FlexTask.executeInProcess(Unknown Source)
    at flex.ant.FlexTask.execute(Unknown Source)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.taskdefs.MacroInstance.execute(MacroInstance.java:394)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    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)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Total time: 30 seconds
    dave$

    the flex tasks for 4.6 are pretty unreliable for me when deploying to networks

  • Flexunit 4.1 beta 1 ant task fails if SDK or project dir contains spaces

    downloaded FlexUnit 4.1 beta 1 for its directory scanning and test loading support.  found a problem - if either the SDK dir (e.g. C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0) or the project dir (e.g. C:\Documents and Settings\flexuser\My Documents\mike\Adobe Flash Builder 4\AntFlexUnit4.1betaSampleCIProject) contain spaces, the flexunit ant task will fail, as the following output indicates:
    <snip>
    [flexunit] '+flexlib'
    [flexunit] 'C:\Program'
    [flexunit] 'Files\Adobe\Adobe'
    [flexunit] 'Flash'
    [flexunit] 'Builder'
    [flexunit] '4\sdks\4.0.0\frameworks'
    [flexunit] '-output'
    [flexunit] 'C:\Documents'
    [flexunit] 'and'
    [flexunit] 'Settings\flexuser\My'
    [flexunit] 'Documents\mike\Adobe'
    [flexunit] 'Flash'
    [flexunit] 'Builder'
    [flexunit] '4\AntFlexUnit4.1betaSampleCIProject\target\bin\TestRunner.swf'
    <snip>
    BUILD FAILED
    C:\Documents and Settings\flexuser\My Documents\mike\Adobe Flash Builder 4\AntFlex
    Unit4.1betaSampleCIProject\build.xml:72: Compilation failed:
    command line: Error: default arguments may not be interspersed with other options
    everything worked fine if i relocated both the SDK and project dir.  unfortunately most of our developers use SDK and project directories with spaces.
    what's the ETA for beta 2 ;-) ?  anxious to integrate this excellent new feature once the spacing problem is resolved.
    thanks.
    -mike

    @mike - Ok I've updated my fork @ http://github.com/blegros/flexunit with the fix.  If you don't want to build from source, you can download the flexunit.zip file from my fork and just pull the Ant task out to use temporarily.  You can find the artifact from my fork's build @ http://flexunit.digitalprimates.net:8080/view/Contributors/job/blegros/lastSuccessfulBuild /artifact/flexunit.zip.
    Let me know if this works out for you.
    -Brian

  • flexunit 4.1 B3 Ant task fails to run Air-based tests

    Folks,
    I am using FlexUnit4.1 Beta 3 and am seeing the <flexunit> Ant task fail when running tests that use the Air libraries. The project in question used to test just fine with version 4.0 earlier this year, but I just dusted it off after a branch change and tried re-running with 4.1and started seeing the failure.Here is the relevant console output:
    [com.djte.library:flexunit] Validating task attributes ...
    [com.djte.library:flexunit] Generating default values ...
    [com.djte.library:flexunit] Using default working dir [C:\EclipseWorkspace3.5\report.renderer_tests_2\Source\Flex]
    [com.djte.library:flexunit] Using the following settings for the test run:
    [com.djte.library:flexunit]     FLEX_HOME: [C:\iFABS_DE\dev\vert-d3flxcmn24\204100.32.0.20100926233508_d3flxcmn24]
    [com.djte.library:flexunit]     haltonfailure: [false]
    [com.djte.library:flexunit]     headless: [false]
    [com.djte.library:flexunit]     display: [99]
    [com.djte.library:flexunit]     localTrusted: [true]
    [com.djte.library:flexunit]     player: [air]
    [com.djte.library:flexunit]     port: [1024]
    [com.djte.library:flexunit]     swf: [C:\EclipseWorkspace3.5\report.renderer_tests_2\build\report.renderer.tests.unit.swf]
    [com.djte.library:flexunit]     timeout: [1800000ms]
    [com.djte.library:flexunit]     toDir: [C:\EclipseWorkspace3.5\report.renderer_tests_2\build\reports\xml]
    [com.djte.library:flexunit] Setting up server process ...
    [com.djte.library:flexunit] Starting server ...
    [com.djte.library:flexunit] OS: [Windows]
    [com.djte.library:flexunit] Opening server socket on port [1024].
    [com.djte.library:flexunit] Waiting for client connection ...
    [com.djte.library:flexunit] Launching player:
    [com.djte.library:flexunit] Found AIR version: 1.5
    BUILD FAILED
    C:\public\JavaTools\DJTE\latest\DjteLibrary\library.xml:57: The following error occurred while executing this line:
    : Error launching the test runner.
    The error message is not very specific... The last output seen before the failure is "Found AIR version: 1.5". This makes me wonder if the problem is related to how I have Air installed on my Windows XP machine. Come to think of it, I am not sure exactly how the host machine should be configured to run FlexUnit tests that require Air.  Do I really need Air to be installed?  I have Air 2.0.3.13070 installed, but the <flexunit> task thinks it found version 1.5 - hmmm...  I also have the debug Flash 10 player, and SWF appplications are configued to run using this player. Flex tests run fine, just not Air tests.  What am I missing?
    I see that 4.1 RC1 is now out, so I will grab that and give it a try.
    If anyone who tests air more often has any advice - I am all ears!
    Thanks,
    Trevor

    Thanks for your responses, Brian!
    Yes, I think I see the immediate problem.  The problem is that there is no Air runtime in our customized Flex SDK (based on 3.2), even though it appears to have the Air compile libraries. I had been attempting to use this custom SDK to run FlexUnit with, and I think that needs to change.
    Why was I doing this?
    Well, I had tripped over some problems with 4.1 earlier on when I attempted to run it without having FLEX_HOME set in the environment. So, now I have been setting FLEX_HOME programmatically in my code before calling the <flexunit> task. And I had figured that it would be a good idea to set FLEX_HOME to the same SDK that the tests had been built with, i.e. our customized one.  Now I am thinking that this is not necessary, since our end users will never have access to this SDK. I now think that I should be able to install a new stock Adobe Flex SDK on my CI server, install the Air runtime into it, and then use that location when I set FLEX_HOME.  Is that how others are doing it?  If anyone could validate this approach, I would be grateful.
    One question that arises in my mind now: How does the Air runtime get into the Flex SDK? I have installed the Air runtime using the installer from Adobe some time ago, so I am not quite sure what all that did.  I assume the  Air installer finds all the Flex SDKs on your machine and inserts the runtime in each location appropriately? Again, pardon my ignorance...
    I have just tried out the above idea, i.e. setting FLEX_HOME to a different SDK that has Air runtime, and the <flexunit> task worked when I ran it!  An Air window opened, the tests ran, and reports were generated. So, it would appear my problem is solved! Cool beans!
    Brian, you made some comments about another possible issue with the "custom app descriptor".  I am not sure if that applies to me or not.  How would I know whether or not we need that support?  Again, I know it would help if I was the developer who had actually written the Flex tests, but I am not...
    Anyway, I hope this thread helps other folks who are having similar issues.  I am going to reinstall a fresh Adobe SDK and the Air installer on a clean machine next, and see if the tests will run there.
    Before ending this thread, I do want to point out that the ant task might have need of improvement in the case in which the user attempts to run the air "player" but the Air runtime is not setup in the SDK. On Windows, the ant process simply hung at this point, apparently thinking that the launch of the player had been successful, but in reality, the message about the air runtime being not found had occurred. It might be nice if it exited gracefully with a warning message instead of hanging. Just a suggestion...
    Brian, as always, thanks again for your help with this issue.You guys are doing a great job with this project. Please keep it up!
    Thanks,
    Trevor

  • War file created in Eclipse works, but fails when created by Ant

    Hi,
    I am having trouble getting my flex war file to work when I create it using Ant, even though the same war works fine when I create it from my Eclipse Export War function. This is a critical problem and any ideas or suggestions would be greatly appreciated.
    I have a working installation of LCDS running under JBoss 4.0.5 (in a CENTOS (Red Hat) environment). I have implemented a datatier in Java to interact with my PostgreSQL 8.x database. The Java code, plus the necessary flex jars and xml files and some mxml test programs, are all in an Eclipse J2EE project that I created from the flex samples.war file. It all works fine when I use Eclipse to create a WAR from the project and deploy it in JBoss. My problem is this: When I create a WAR piece by piece using Ant, then deploy it to JBoss, that WAR does not work. The error I get is this:
    javax.servlet.ServletException: Invalid Configuration: see previous failures. flex.webtier.util.ServiceUtil.setupFlexService(ServiceUtil.java:55) flex.webtier.server.j2ee.MxmlServlet.init(MxmlServlet.java:57), etc.
    When I look at the log I see this problem:
    "You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.",
    but that error is in the server log even when I use the good WAR file.
    I have compared the two wars but cannot find any substantial difference between them.
    Thanks in advance!

    Have you tried enabling debug level logging and removing the category filters in services-config.xml? It should show all the destinations being created, and if any are failing. To get the maximum level of log detail, something like this should work:
    ><logging>
    >
    > <target class="flex.messaging.log.ConsoleTarget" level="Debug">
    >
    > <properties>
    >
    > <prefix>[Flex] </prefix>
    >
    > <includeDate>false</includeDate>
    >
    > <includeTime>false</includeTime>
    >
    > <includeLevel>false</includeLevel>
    >
    > <includeCategory>false</includeCategory>
    >
    > </properties>
    >
    > </target>
    >
    > </logging>
    Have a check that your remoting destinations are shown starting correctly for both WAR files, and see if there are any messages in the log that might be relevant.

  • SGD Portlet - Failed to build using Ant - UnsupportedClassVersionError

    Hi,
    I've downloaded the Sun Secure Global Desktop portlet source code from here: https://portlet-repository.dev.java.net/public/Download.html and I'm trying to compile it using Ant.
    I have Ant 1.7.0 and I'm using JRE 1.4.2_15. For some reason, the Ant task fails. Using the -debug and -logfile options, it points to a VersionTask class error:
    Adding reference: ant.PropertyHelper
    Detected Java version: 1.4 in: C:\Program Files\Java\j2sdk1.4.2_15\jre
    Detected OS: Windows XP
    Adding reference: ant.ComponentHelper
    Setting ro project property: ant.file -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build.xml
    Adding reference: ant.projectHelper
    Adding reference: ant.parsing.context
    Adding reference: ant.targets
    parsing buildfile C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build.xml with URI = file:/C:/Documents%20and%20Settings/Administrator/My%20Documents/Projects/2007/Bell/Sun%20SGD/sgdportlet/build.xml
    Setting ro project property: ant.project.name -> SGD Portlet
    Adding reference: SGD Portlet
    Setting ro project property: ant.file.SGD Portlet -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build.xml
    Project base dir set to: C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet
    +Target:
    +Target: all
    +Target: init
    +Target: version
    +Target: compile
    +Target: dist
    +Target: clean
    [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
    Setting project property: src -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\src
    Setting project property: build.top -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build
    Setting project property: build.webinf -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build\WEB-INF
    Setting project property: build.classes -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build\WEB-INF\classes
    Setting project property: dist -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\dist
    Setting project property: lib -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\lib
    Setting project property: web -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\web
    Setting project property: tools -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\tools
    Setting project property: webinf -> C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\web\WEB-INF
    Finding class com.tarantella.tools.ant.tasks.VersionTask
    Loaded from C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\lib\tarantella-tasks.jar com/tarantella/tools/ant/tasks/VersionTask.class
    BUILD FAILED
    C:\Documents and Settings\Administrator\My Documents\Projects\2007\Sun SGD\sgdportlet\build.xml:14: java.lang.UnsupportedClassVersionError: com/tarantella/tools/ant/tasks/VersionTask (Unsupported major.minor version 50.0)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
    I know this portlet code was just released this week, but has anybody had any success building the portlet into a .WAR file?
    Thanks in advance!
    Rob.

    I figured it out... the tarantella-tasks.jar file had class files in it that were compiled using jdk 6, and the rest of the project was compiled using jdk 1.4.2. Luckily, the source code was there so that I could recompile the classes back to 1.4.2 and it now works.

Maybe you are looking for