MXMLC ANT task not including AIR libraries

Hi Guys,
This is the MXMLC ant task which I am using the compile my test app. If i set the static-link-runtime-shared-libraries="true" , the AIR libraries gets merged into my output swf. But when this attribute is set to false, I dont see the AIR libraries added to my SWF file. As a result when I run the AIR version fo my project, I dont see the application launch right. I have so many RSL in my project and I wanted to have static-link-runtime-shared-libraries="false". Is there a way to have AIR libraries include in my output file and still have this static-link-runtime-shared-libraries="false".
<mxmlc
    file="${project.name}/src/Test.mxml"
    output="${build.mxmlc.dir}/Test.swf"
    static-link-runtime-shared-libraries="true"
    >
     <load-config filename="${air.config}"/>
     <source-path path-element="${project.name}/src" />
     <source-path path-element="${flex.frameworks.dir}/libs/air"/>
    <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/framework.swc">
                <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swz"/>
                <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swf"/>
    </runtime-shared-library-path>
    <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/datavisualization.swc">
                <url rsl-url="${rsl.dir}/datavisualization_3.2.0.3958.swf"/>
    </runtime-shared-library-path>
   </mxmlc>
My RSL are compiled using COMPC task and the AIR libraries are included into them using the below attributes of compc task.
<source-path path-element="${basedir}/src" />
<source-path path-element="${flex.frameworks.dir}/projects/airframework/src" />
<source-path path-element="${flex.frameworks.dir}/projects/air/ServiceMonitor/src" />
I am really stuck with this problem and not able to get my release build launch right. Again, any light on this problem will be of great help.!

    <mxmlc
         file="${project.name}/src/Test.mxml"
         output="${build.mxmlc.dir}/Test.swf"
         static-link-runtime-shared-libraries="true"
    >
          <load-config filename="${air.config}"/>
          <source-path path-element="${project.name}/src" />
         <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/framework.swc">
                <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swz"/>
                <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swf"/>
         </runtime-shared-library-path>
         <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/datavisualization.swc">
                <url rsl-url="${rsl.dir}/datavisualization_3.2.0.3958.swf"/>
         </runtime-shared-library-path>
    </mxmlc>
This also seems to work. AIR libraries are included in my output SWF. It all happens right when I have static-link-runtime-shared-libraries="true" . Why? Why does that not work when i have static-link-runtime-shared-libraries="false"  ??

Similar Messages

  • How to include assigned .as files in MXMLC ant task ?

    When i use mxmlc ant task, i found that
    the tag <include-sources/> doesn't support !
    ( described by http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a63.html )
    neither SDK version 3.x nor 4.x
    Are they lying?!
    How to include assigned .as files ?
    Thank you !

    My understanding is that mxmlc will use all available resources in the source path, as needed. Instead of giving it individual resources to include, you simply need to give it the source-path that contains those resources. This is different from a library project, which may need to include individual classes that are never used in that library.

  • Mxmlc Ant Task Paths

    Hello,
    I'm trying to run the following mxmlc ant task from a relative path:
            <mxmlc
                file="flx/MyApp.mxml"
                output="web/MyApp.swf"
                context-root="MyApp"
                services="web/WEB-INF/flex/services-config.xml"
                compatibility-version="3">
                <source-path
                    path-element="flx"/>
            </mxmlc>
    If I run the task from within the MyApp directory it works fine, but I want to run it from a relative directory, eg:
            ant -f MyApp/build.xml
    or from an ant build file:
            <ant dir="MyApp"/>
    However, in both cases I just get the following error:
            [mxmlc] command line: Error: unable to open 'web/WEB-INF/flex/services-config.xml'
    I really need to use relative paths as it is running as a sub-project of a larger project via an ant build, and there is no concept of changing directories within ant.
    Does anybody know how I can get relative paths to works?
    Thanks

    Thanks. That's what I ended up doing in the end. I also added (prior to that)
    <property name="project.dir" value="."/>
    So that it can be run without manually specifying project.dir. (project.dir will only be set to . if it is not already set by an outer script).
    What I really wanted was for mxmlc to run relative to the ant task, eg.
    <ant dir="project"/>
    Then each task inside the ant build file should run relative to "project". This is how <javac/> works. I don't think Adobe like relative paths though.

  • Ant task to include Halo theme

    Hi,
    I recently migrated from Flex 3.4 to Flex 4. Everything works fine when I compile the application using Flash Builder 4. But I am having issues making our automated ant builds pick up the Halo theme over the Spark theme.
    In FB4, I just used the "Flex Theme" options under Project -> Properties to define the Halo theme as the default theme.Before that I used the -theme compiler argument. Both work fine.
    For our ant task, I tried adding:
      <compiler.theme dir="${FLEX_HOME}/frameworks" append="false">
                 <include name="/themes/Halo/halo.swc" />
      </compiler.theme>
    Unfortunately that does not seem to work and the result still shows the Spark theme. I also tried making "theme" a task attribute and the other options according to Flex 4 docs ( http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a63.html ), but to no avail.
    I have very limited experience with ant and would appreciate some input.
    Thanks!

    I just ran into this same issue yesterday, Here's what worked for me, placed between the <mxmlc>   </mxmlc> tags
    <theme dir="${FLEX_HOME}/frameworks/themes/Halo">
           <include name="halo.swc" />
    </theme>

  • Mxmlc ant  task with Groovy and ant builder

    Hi,
    i'm doing some Groovy scripting in the build scripts of my project and among the other things have included Flex sources compilation in there. It cares about auto-compilation of source trees so maybe someone will be interested in that:
    http://tech4web.blogspot.com/2008/12/mxmlc-ant-flex-task-in-groovy.html
    Cheers,
    Piotr

    Are you using Adobe FlexAnt?
    On this
    page
    , there is a <compiler.library-path> node that seems to
    import a bundle directory that contains locales. I believe
    <compiler.library-path> is from FlexAnt, so you would need to
    enable it if you haven't.
    Also look on the next page from the link I posted, there is
    another example on how to import bundles in an automation.

  • Help With MXMLC Ant task

    Hello all. I've been using the MXMLC servlet compiler that
    comes with the fds-tomcat tutorial. I have recently tried to
    compile with MXMLC using the ant task. The application compiles the
    swf correctly except it cant seem to find the spring services I had
    configured.
    [MessagingError message='Unknown destination 'xxxxx'.']
    Now, when I go and try to get the servlet to compile it; ie:
    Bringing up the MXML file from the web browser, it works fine. Can
    Anybody identify what i'm doing wrong?

    Hey
    After scratching my head for couple hours and wrestling with
    the FDS configuration I have managed to get the application going.
    Here is my ant target
    <taskdef resource="flexTasks.tasks"
    classpath="${file.flexTasks.jar}" />
    <mxmlc file="${flex.main.file}"
    keep-generated-actionscript="true"
    use-network="true" output="${flex.output.file}"
    as3="true" es="false"
    benchmark="true" debug="true"
    optimize="true" services="${file.flex.services.conf}"
    context-root="/analytics" strict="true" >
    <!--Third party classes -->
    <compiler.library-path dir="${flex.user.classes.dir}"
    append="true">
    <include name="Cairngorm.swc" />
    <include name="CairngormEnterprise.swc" />
    </compiler.library-path>
    <!--XDoclet generated DTOs -->
    <compiler.source-path
    path-element="${flex.actionscript.output.dir}"/>
    </mxmlc>

  • WLST Ant task not working -- error in finding weblogic.Home

    I am attempting to set up a WLST script to automatically set up my domain. The following is a minimal version of the Ant task I'm using:
    <wlst debug="true" failOnError="true">
        <classpath>
            <pathelement location="${weblogic10.home}/server/lib/weblogic.jar"/>
        </classpath>
        <script>
            connect('weblogic','weblogic','t3://localhost:5000')
        </script>
    </wlst>When I run the target, I get the following error:
    java.lang.RuntimeException: error in finding weblogic.Home
         at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:168)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
         at org.apache.tools.ant.Task.perform(Task.java:364)
         at org.apache.tools.ant.Target.execute(Target.java:301)
         at org.apache.tools.ant.Target.performTasks(Target.java:328)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
         at org.apache.tools.ant.Main.runBuild(Main.java:632)
         at org.apache.tools.ant.Main.startAnt(Main.java:183)
         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
         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:585)
         at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)My weblogic10.home property (referenced in the ant target) points to the weblogic installation directory (C:/bea_10/wlserver_10.0). Weblogic.jar exists in the path specified, and contains the class weblogic.Home.
    What am I missing? Any help would be greatly appreciated. I'm using Ant 1.6.5 and Weblogic 10.0 on Windows XP, if that makes a difference.
    Thanks in advance!
    -Jake
    Edited by jakerobb at 07/12/2007 1:52 PM

    Hi,
    I too have this problem. I am trying to use my own ant installation. The docs say that we can do that. However, if i try to set the domain env then the ant command will point to bea's ant. Anyway I have defined the task using a taskdef as follows
    <path id="wl_classpath">
              <pathelement location="${BEA_HOME}/patch_weblogic922/profiles/default/sys_manifest_classpath/weblogic_patch.jar" />
              <pathelement location="${env.JAVA_HOME}/lib/tools.jar" />
              <pathelement location="${WL_HOME}/server/lib/weblogic_sp.jar" />
              <pathelement location="${WL_HOME}/server/lib/weblogic.jar" />
              <pathelement location="${WL_HOME}/server/lib/webservices.jar" />
         </path>
    <taskdef name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask">
              <classpath refid="wl_classpath" />
         </taskdef>
         <target name="start_appinstance" description="--> Starts the Appinstance"
              <wlst debug="true">
                   <script>
                        connect('weblogic','weblogic','t3://localhost:7001')
                   </script>
              </wlst>
         </target>there is no weblogichome or beahome attribute for this task.
    My objective is to control a server using the node manager. I believe the only way to do this is to use wlst and not wlserver.
    Thanks
    Shaival
    PS: i am using version 9.2MP2 for weblogic and ant 1.7

  • Mxmlc ant task and locales

    Hi,
    I have property files for several locales, for example
    locale/en_US, locale/en_GB, locale/es_ES, and locale/es. Running
    from within FlexBuilder I can see the various locales just fine.
    However when creating the .swf file using ANT and the <mxmlc>
    task, only en_US is available. I've attached a snippet from my ANT
    script.
    Thanks in advance,
    Rich

    Are you using Adobe FlexAnt?
    On this
    page
    , there is a <compiler.library-path> node that seems to
    import a bundle directory that contains locales. I believe
    <compiler.library-path> is from FlexAnt, so you would need to
    enable it if you haven't.
    Also look on the next page from the link I posted, there is
    another example on how to import bundles in an automation.

  • Swf, swc and the mxmlc, compc ant tasks

    I'm a bit confused on the end result of the mxmlc / compc ant
    tasks, or maybe the difference between swf and swc files. I have a
    library of 60 or so AS3 files used for
    serialization/deserialization of my Java backend (using GDS for
    serialization of data between java serverside and my flex front
    end). I first use the compc ant task on these AS3 files to create a
    swc file. This swc is 453316 bytes. With this flash library, I use
    the mxmlc ant task on my mxml file, which produces a 201,492-byte
    swf file.
    I have a couple questions related to the procedure above.
    Shouldn't the swf file include the swc file, and hence be bigger
    than the swc? I'm just wondering if I deploy the swf file, will it
    have all it needs in the swc file to perform the functions
    correctly?
    My second question relates to setting the
    keep-generated-actionscript="true" in the mxmlc task. When
    doing this, I see all the AS3 code generated. However, it does not
    include 55 of the 60 AS3 classes compiled in the swc. It only
    generated AS3 code for those AS3 classes explicitly declared in the
    mxml code (via import and actual declaration). Am I doing something
    wrong here or is this the way flex does its thing?
    The reason why I'm concerned about this is that I'm getting a
    "ArgumentError: Error #2004: One of the parameters is
    invalid" issue am I'm think its happening in the AS3 code (not
    the Java server side) and I don't know how to debug this.
    Any help would be appreciated. Thanks in advanced!
    -los

    I am also facing with the same problem.....
    Is there any resolution for this problem.?
    Not sure where i am going wrong.
    Any help will be appreciated.
    Thanks in advance.

  • FlexUnit Ant task freeze at Reciving Data...

    Hello,
    I'm trying to use flex unit task and when I run it, get this on console and stay there for ever.
    "*****" is just to privacy
    this is my ant task
    <target name="UNIT TEST">
                        <echo>COMPILING TEST SWF..</echo>
                        <mxmlc output="${basedir}/bin/Test.swf" file="${basedir}/test-src/TestRunner.as">
                                  <target-player>${env.TARGET_PLAYER}</target-player>
                                  <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
                                  <source-path path-element="${FLEX_HOME}/frameworks"/>
                                  <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                           <include name="libs" />
                    <include name="../bundles/{locale}" />
                        </compiler.library-path>       
                                  <source-path path-element="${env.WIP_CLIENT_COM_SRC_PATH}"/>
                                  <define name="CONFIG::FLASH_AUTHORING" value="false"/>
                                  <source-path path-element="${basedir}/test-src"/>
                                  <source-path path-element="${basedir}/src"/>
                                  <compiler.library-path dir="${basedir}" append="true">
                                 <include name="libs" />
                              </compiler.library-path>  
                                  <compiler.library-path dir="${env.WIP_CLIENT_COM_SRC_PATH}" append="true">
                                 <include name="libs" />
                              </compiler.library-path>  
                                  <compiler.external-library-path dir="${env.WIP_CLIENT_COM_SRC_PATH}/libs" append="true">
                                            <include name="GenericChat.swc"/>
                                  </compiler.external-library-path>
                         </mxmlc>
                        <echo>COMPILED TEST SWF..</echo>
                        <echo>Running Test Runner SWF</echo>
            <flexunit swf="${basedir}\bin\Test.swf"
                toDir="${basedir}\bin"
                haltonfailure="true"
                verbose="true"
                localTrusted="false"/>
            <echo>Ran Test Runner SWF</echo>
            <echo>Generate Readable Tests</echo>
            <junitreport todir="${basedir}\bin">
                <fileset dir="${basedir}\bin">
                    <include name="TEST-*.xml"/>
                </fileset>
                <report format="frames" todir="${basedir}\bin\html"/>
            </junitreport>
            <echo>Generated Readable Tests</echo>
              </target>
    Buildfile:******.xml
    UNIT TEST:
         [echo] COMPILING TEST SWF..
        [mxmlc] Cargando el archivo de configuración D:\Desarrollo\fdk\flex_sdk_4.5.1.21328\frameworks\flex-config.xml
        [mxmlc] D:\Proyectos\Bubble\Cliente\trunk\test-src\TestRunner.as: Advertencia: Esta unidad de compilación no tiene ninguna factoryClass especificada en los metadatos del fotograma para cargar las bibliotecas compartidas en tiempo de ejecución configuradas. Para compilar sin bibliotecas compartidas en tiempo de ejecución establezca la opción -static-link-runtime-shared-libraries en true o elimine la opción -runtime-shared-libraries.
        [mxmlc] *********Test.swf (50729 bytes)
         [echo] COMPILED TEST SWF..
         [echo] Running Test Runner SWF
    [flexunit] Validating task attributes ...
    [flexunit] Generating default values ...
    [flexunit] Using default working dir [****]
    [flexunit] Using the following settings for the test run:
    [flexunit]           FLEX_HOME: [*****fdk\flex_sdk_4.5.1.21328]
    [flexunit]           haltonfailure: [true]
    [flexunit]           headless: [false]
    [flexunit]           display: [99]
    [flexunit]           localTrusted: [false]
    [flexunit]           player: [flash]
    [flexunit]           port: [1024]
    [flexunit]           swf: [****\Test.swf]
    [flexunit]           timeout: [60000ms]
    [flexunit]           toDir: [********\bin]
    [flexunit] Setting up server process ...
    [flexunit] Starting server ...
    [flexunit] Opening server socket on port [1024].
    [flexunit] Waiting for client connection ...
    [flexunit] Executing 'rundll32' with arguments:
    [flexunit] 'url.dll,FileProtocolHandler'
    [flexunit] '********\Test.swf'
    [flexunit] The ' characters around the executable and arguments are
    [flexunit] not part of the command.
    [flexunit] Client connected.
    [flexunit] Setting inbound buffer size to [262144] bytes.
    [flexunit] Receiving data ...
    Thank you in advance.
    Javier

    I still have not been able to get FlexUnit running with AIR SDK 15. But I found a workaround:
    Compile the source code with SDK 15 into swc files.
    Set FlexUnit to use SDK 4.
    Do not include source code in the FlexUnit Ant task.
    Include the swc files in stead by adding another library dir parameter to the flexunit call.

  • 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

  • Built-in wlst ant task does not work in weblogic 10.3.1

    Hi,
    We have an installer script that deploys an ear file to a weblogic managed server. The script also invokes the build-tin wlst ant task to bounce the managed server. However, in version 10.3.1 the wlst task seems to be broken. I get this error:
    [echo] [wlst] sys-package-mgr: can't create package cache dir, '/u00/webadmin/product/10.3.1/WLS/wlserver_10.3/server/lib/weblogic.jar/./java
    tmp/wlstTemp/packages'
    [echo] [wlst] java.io.IOException: No such file or directory
    [echo] [wlst] at java.io.UnixFileSystem.createFileExclusively(Native Method)
    [echo] [wlst] at java.io.File.checkAndCreate(File.java:1704)
    [echo] [wlst] at java.io.File.createTempFile(File.java:1792)
    [echo] [wlst] at java.io.File.createTempFile(File.java:1828)
    [echo] [wlst] at com.bea.plateng.domain.script.jython.WLST_offline.getWLSTOfflineInitFilePath(WLST_offline.java:240)
    [echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [echo] [wlst] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [echo] [wlst] at java.lang.reflect.Method.invoke(Method.java:597)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.getOfflineWLSTScriptPath(WLSTUtil.java:63)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:214)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:133)
    [echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:75)
    [echo] [wlst] at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:103)
    [echo] [wlst] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    Obviously that is not a valid directory...so I am wondering what it is trying to do, and why. The wlst task worked perfectly in 10.3.0. No changes were made when attempting to run the script against 10.3.0 and 10.3.1, which tells me that something is different with the 10.3.1 setup. Here is the ant code I am running:
    <target name="init-taskdefs">
    <taskdef resource="net/sf/antcontrib/antcontrib.properties">
    <classpath>
    <pathelement location="ant-ext/ant-contrib.jar" />
    </classpath>
    </taskdef>
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" />
    <taskdef name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask" />
    </target>
    <macrodef name="wlShutdownServer">
    <attribute name="adminUser" default="${deploy.admin.username}" />
    <attribute name="adminPassword" default="${deploy.admin.password}" />
    <attribute name="adminUrl" default="${deploy.admin.url}" />
    <attribute name="serverTarget" />
    <sequential>
    <trycatch property="server.error">
    <try>
    <wlst failonerror="true"
    arguments="@{adminUser} @{adminPassword} @{adminUrl} @{serverTarget}">
    <script>
    adminUser=sys.argv[0]
    adminPassword=sys.argv[1]
    adminUrl=sys.argv[2]
    serverTarget=sys.argv[3]
    connect(adminUser,adminPassword,adminUrl)
    target=getMBean("/Servers/"+serverTarget)
    if target == None:
    target=getMBean("/Clusters/"+serverTarget)
    type="Cluster"
    else:
    type="Server"
    print 'Shutting down '+serverTarget+'...'
    shutdown(serverTarget,type,'true',15,force='true')
    print serverTarget+' was shut down successfully.'
    </script>
    </wlst>
    <!-- setDomainEnv.sh must have been called to set DOMAIN_HOME. Remove all leftover .lok files to allow server
    to start back up again. -->
    <echo message="Deleting any lok files that have not been removed..." />
    <delete failonerror="false">
    <fileset dir="${env.DOMAIN_HOME}/servers/@{serverTarget}" includes="**/*.lok"/>
    </delete>
    </try>
    <catch>
    <fail message="@{serverTarget} shutdown failed. ${server.error}" />
    </catch>
    <finally/>
    </trycatch>
    </sequential>
    </macrodef>
    Any help would be appreciated. Thanks!

    Well, it looks like passing something like "-Djava.io.tmpdir=/var/tmp/javatmp/`date +%Y%m%d`" to ant did the trick. I had to make sure that directory existed first, otherwise it threw a java ioexception.
    I still don't understand what changes between 10.3.0 and 10.3.1 to necessitate this change.

  • Jwsc ant task WL 9.1 does not support module and jwsfileset?

    Hi!
    I am doing some work using the WL9.1 tools in order to build and deploy web services.I have successfully used the jws tasks though while I have several files that I want to compile automatically I went through the WL documentation and the use of
    jwsc ..with nested tags Module and jwsfileset
    Though when I try to invoke the Ant task I get
    'The <jwsc> type doesn't support the nested "module" element'
    Any idea? Is it because of my 9.1 installation?do i need 9.2?
    my task is something like
    <target name="build-service">
    <jwsc
    srcdir="src"
    destdir="output/TestEar" >
    <module contextPath="test" name="myJar" >
    <jwsfileset srcdir="src/examples/webservices/jwsc" >
    <include name="**/*.java" />
    </jwsfileset>
    </jwsc>
    </target>
    Thank you for your time!

    Ok the answer was easy I suppose!Check the documentation of 9.1 and 9.2 the ant tasks do not have the same specs!
    9.2 feature then

  • Not able to create a new domain through ant task

    Hi,
    I have to upgrade weblogic 8.1 to weblogic 10.3 and I am using vanilla version of it. the first step to it is to create weblogic domain and then configure it and then start teh server and then deploy it. The problem starts when I am creating the domain, I am using ant task for domain creation and following these steps
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/ant_tasks.html
    when ant-task is trying to build the specified domain, it is looking for some config.xml and that config.xml should also generated by wlserver/ant task through a template. I have no idea, where and how to define that template.. hence getting following error.. tried hard but not able to get through. can anyone please help..
    Thanks in Advance
    Error stack trace:
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:27 PM IST> <Info> <Management> <BEA-1
    40013> <C:\WIRES\Standalone\weblogic\domains\THSStandAlone\config\config.xml not
    found>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:27 PM IST> <Info> <Management> <BEA-1
    41254> <Generating new domain directory in C:\WIRES\Standalone\weblogic\domains\
    THSStandAlone>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Critical> <WebLogicServer
    <BEA-000362> <Server failed. Reason:[WLServer THS-SA-Admin] There are 1 nested errors:
    [WLServer THS-SA-Admin] weblogic.management.ManagementException: Failure during
    domain creation
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.generateDomain(DomainDirectoryService.java:229)
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.ensureDomainExists(DomainDirectoryService.java:152)
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.start(DomainDirectoryService.java:72)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.ServerServicesManager.startS
    ervice(ServerServicesManager.java:459)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.ServerServicesManager.startI
    nStandbyState(ServerServicesManager.java:164)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.T3Srvr.initializeStandby(T3S
    rvr.java:711)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:4
    82)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:440)
    [WLServer THS-SA-Admin] at weblogic.Server.main(Server.java:67)
    [WLServer THS-SA-Admin] Caused by: com.bea.plateng.domain.script.ScriptException
    : Template "null" does not exist. Line 1
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic$StateMachine.processRead(ScriptParserClassic.java:510)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic$StateMachine.execute(ScriptParserClassic.java:428)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic.parseAndRun(ScriptParserClassic.java:150)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic.doExecute(ScriptParserClassic.java:112)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParser.ex
    ecute(ScriptParser.java:73)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.DomainInfoHelper.execu
    teSilentScript(DomainInfoHelper.java:861)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.DomainInfoHelper.creat
    eDefaultDomain(DomainInfoHelper.java:1755)
    [WLServer THS-SA-Admin] at sun.reflect.NativeMethodAccessorImpl.invoke0(
    Native Method)
    [WLServer THS-SA-Admin] at sun.reflect.NativeMethodAccessorImpl.invoke(N
    ativeMethodAccessorImpl.java:39)
    [WLServer THS-SA-Admin] at sun.reflect.DelegatingMethodAccessorImpl.invo
    ke(DelegatingMethodAccessorImpl.java:25)
    [WLServer THS-SA-Admin] at java.lang.reflect.Method.invoke(Method.java:5
    97)
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.generateDomain(DomainDirectoryService.java:224)
    [WLServer THS-SA-Admin] ... 8 more
    [WLServer THS-SA-Admin] >
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Notice> <WebLogicServer>
    <BEA-000365> <Server state changed to FAILED>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Error> <WebLogicServer> <
    BEA-000383> <A critical service failed. The server will shut itself down>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Notice> <WebLogicServer>
    <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    [WLServer THS-SA-Admin] Error in server execution (THS-SA-Admin)

    Thanks for your reply.
    I have seen sample xml and my target looks the same
    <wlserver dir="${weblogic.domain.dir}"
                             port="${weblogic.domain.admin.server.port}"
                             servername="${weblogic.domain.admin.server.name}"
                             username="${weblogic.domain.admin.user}"
                             domainname="${weblogic.domain.name}"
                             password="${weblogic.domain.admin.password}"
                             configFile="config.xml"
                             generateConfig="true"
                             action="start"
                             beahome="${env.BEA_HOME}"/>
    my requirement is to use ant task.. otherwise I am able to create through configuration wizard
    Thanks

  • FU Ant task failure: java.util.concurrent.ExecutionException: could not close client/server socket

    We sometimes see this failure intermitently when using the FlexUnit Ant task to run tests in a CI environment. The Ant task throws this exception:
    java.util.concurrent.ExecutionException: could not close client/server socket
    I have seen this for a while now, and still see it with the latest 4.1 RC versions.
    Here is the console output seen along with the above exception:
    FlexUnit player target: flash
    Validating task attributes ...
    Generating default values ...
    Using default working dir [C:\DJTE\commons.formatter_swc\d3flxcmn32\extracted\Source\Flex]
    Using the following settings for the test run:
    FLEX_HOME: [C:\dev\vert-d3flxcmn32\302100.41.0.20110323122739_d3flxcmn32]
    haltonfailure: [false]
    headless: [false]
    display: [99]
    localTrusted: [true]
    player: [flash]
    port: [1024]
    swf: [C:\DJTE\commons.formatter_swc\d3flxcmn32\extracted\build\commons.formatter.tests.unit.sw f]
    timeout: [1800000ms]
    toDir: [C:\DJTE\commons.formatter_swc\d3flxcmn32\reports\xml]
    Setting up server process ...
    Entry  [C:\DJTE\commons.formatter_swc\d3flxcmn32\extracted\build] already  available in local trust file at  [C:\Users\user\AppData\Roaming\Macromedia\Flash  Player\#Security\FlashPlayerTrust\flexUnit.cfg].
    Executing 'rundll32' with arguments:
    'url.dll,FileProtocolHandler'
    'C:\DJTE\commons.formatter_swc\d3flxcmn32\extracted\build\commons.formatter.tests.unit.swf '
    The ' characters around the executable and arguments are
    not part of the command.
    Starting server ...
    Opening server socket on port [1024].
    Waiting for client connection ...
    Client connected.
    Setting inbound buffer size to [262144] bytes.
    Receiving data ...
    Sending acknowledgement to player to start sending test data ...
    Stopping server ...
    End of test data reached, sending acknowledgement to player ...
    When the problem occurs, it is not always during the running of any particular test (that I am aware of). Recent runs where this failure was seen had the following number of tests executed (note: the total number that should be run is 45677): 18021, 18, 229.
    Here is a "good" run when the problem does not occur:
    Setting inbound buffer size to [262144] bytes.
    Receiving data ...
    Sending acknowledgement to player to start sending test data ...
    Stopping server ...
    End of test data reached, sending acknowledgement to player ...
    Closing client connection ...
    Closing server on port [1024] ...
    Analyzing reports ...
    Suite: com.formatters.help.TestGeographicSiteUrls
    Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
    Suite: com.formatters.functionalUnitTest.testCases.TestNumericUDF
    Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 sec
    Results :
    Tests run: 45,677, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 201.186 sec
    Has anyone else ran across this problem?
    Thanks,
    Trevor

    I am not sure if this information will help everyone, but here goes...
    For us, these problems with FlexUnit tests crashing the Flash Player appear to be related to couple of factors. Recently, we moved up from Flex 3.2 to Flex 4.1 as our development baseline.  Many people complained that their development environment (Flash Builder, etc.) was much more unstable.  Apparently, 4.1 produces SWFs that require more memory to run than 3.2 does?  Anyway, we still had Flash Player 10.1 as our runtime baseline.  Apparently, that version of the player was not as capable of running larger FlexUnit test SWFs, and would crash (as I posted months earlier).  I upgraded to the latest 10.3 standalone player versions, and the crashes have now ceased.  It would be nice to know exactly what was causing the crashes, but memory management (or lack of) is my best guess.
    So, if you are seeing these issues, try upgrading to the latest Flash Player version.
    Regards,
    Trevor

Maybe you are looking for

  • Getting Bad Type Error when calling a method in the proxy class

    Hi, I have generated the proxy classes from wsdl. When I am calling the methods in the proxy class from one of external class, I am getting following error. Can anyone please help me in resolving this issue. javax.xml.ws.soap.SOAPFaultException: org.

  • Greyed out songs on iphone after iOS 5 update

    So I updated my iPhone 4 for the iOS 5 update. Before doing mine I did my husbands iPhone 4. My update seems to have been successful but all my songs are greyed out, however they're fine on his phone. It did prompt me to change our applie ID when we

  • I have problem in osx 10.8 i cannot see the encoding option while connecting to the my pc server ?

    MR.Eric please help ? i have problem in osx 10.8 i cannot see the encoding option while connecting to the my pc server ? this option was in osx 10.6 see it  here  because if i create any file in Arabic name from osx 10.8 the others old mac os  see it

  • Designer ES2

    According to this link  -  http://www.adobe.com/devnet/livecycle/articles/lcdesigneres2_whats_new.html  -  Acrobat Extended 9 owners should be able to obtain Designer ES2 as an update,  but the Customer Service of BOTH LiveCycle and Acrobat don't kno

  • BW 3.5 vs BI 7.0

    Dear all, from other threads an documents in sdn I learned the differences between 3. 5 and 7.0. If you look at it from the customer's point of view, what would be the reasons to migrate from 3.5 to 7.0 As real advantages I only figured out that BI 7