Ant tasks for mxmlc/compc?
Are there "official" Ant tasks for mxmlc/compc?
<taskdef name="mxmlc" classname="flex.ant.MxmlcTask" classpath="${flexTasks.jar.loc}" />
<taskdef name="compc" classname="flex.ant.CompcTask" classpath="${flexTasks.jar.loc}" />
Similar Messages
-
Problems with wlserver ant task for WL 8.1
hi
i have a problem with using wlserver ant task for Weblogic 8.1
basically i want to start the server that is already preconfigured and deploy
one ear.
here's what i do:
<taskdef name="wlserver" classname="weblogic.ant.taskdefs.management.WLServer">
<classpath refid="lib.classpath"/>
</taskdef>
<wlserver action="start" dir="D:/BEA/user_projects/domains/mydomain"
output="wls81.log"/>
(and then the deployment task - irrelevant here)
the classpath is generated automatically and includes all jars in the specific
project directory:
<path id="lib.classpath">
<fileset dir="${proj.lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
(weblogic.jar is there as well)
the problem is when i run it, the following happens:
- if i have action="start" (or no action attribute at all), i get the following
exception:
java.lang.NullPointerException
at weblogic.Home.<init>(Home.java:29)
at weblogic.Home.getInstance(Home.java:86)
at weblogic.Home.getPath(Home.java:94)
at weblogic.Home.getFile(Home.java:99)
at weblogic.ant.taskdefs.management.WLServer.execute(WLServer.java:260)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
- if i change it to action="startup" as specified on "wlserver Ant Task Reference"
it seems that this task is skipped completely. no error messages, no stack trace,
nothing. i tried -verbose and -debug options on ant, but there're no logs displayed
whatsoever. it takes less than a second to run this task so i presume it's just
getting skipped completely.
i run this from the standalone Ant 1.5.4 on Windows environment.
i've followed the topic "wlserver Ant task for WebLogic 8.1" where kind of similar
problem is described but putting weblogic.jar on the system CLASSPATH is not an
option for this project.
anyone has any idea about how to get this going?
cheers
Andreisounds bug to me. NPE should be correctly handled with appropriate error
message. Please contact BEA support to log the call.
"Andrei Rusakou" <[email protected]> wrote in message
news:[email protected]...
>
hi
i have a problem with using wlserver ant task for Weblogic 8.1
basically i want to start the server that is already preconfigured anddeploy
one ear.
here's what i do:
<taskdef name="wlserver"classname="weblogic.ant.taskdefs.management.WLServer">
<classpath refid="lib.classpath"/>
</taskdef>
<wlserver action="start" dir="D:/BEA/user_projects/domains/mydomain"
output="wls81.log"/>
(and then the deployment task - irrelevant here)
the classpath is generated automatically and includes all jars in thespecific
project directory:
<path id="lib.classpath">
<fileset dir="${proj.lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
(weblogic.jar is there as well)
the problem is when i run it, the following happens:
- if i have action="start" (or no action attribute at all), i get thefollowing
exception:
java.lang.NullPointerException
at weblogic.Home.<init>(Home.java:29)
at weblogic.Home.getInstance(Home.java:86)
at weblogic.Home.getPath(Home.java:94)
at weblogic.Home.getFile(Home.java:99)
atweblogic.ant.taskdefs.management.WLServer.execute(WLServer.java:260)
atorg.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
- if i change it to action="startup" as specified on "wlserver Ant TaskReference"
it seems that this task is skipped completely. no error messages, no stacktrace,
nothing. i tried -verbose and -debug options on ant, but there're no logsdisplayed
whatsoever. it takes less than a second to run this task so i presume it'sjust
getting skipped completely.
i run this from the standalone Ant 1.5.4 on Windows environment.
i've followed the topic "wlserver Ant task for WebLogic 8.1" where kind ofsimilar
problem is described but putting weblogic.jar on the system CLASSPATH isnot an
option for this project.
anyone has any idea about how to get this going?
cheers
Andrei -
Ant tasks for creating ADF Library
Created an ADF declarative component, exported it as an ADF library and got it working fine. The ADF Library jar was created within JDeveloper by setting up a Deployment profile. The created ADF Library file has the TLD file and TagHandler / Component class files created on the fly and packaged.
Not sure of how We could get the same ADF library created by an Ant task. Are there Ant tasks for creating ADF library available? http://www.connotea.org/user/jdeveloper/tag/ant has some details on the JDeveloper based ant tasks but doesn't have details on creating ADF library.You can use the ojdeply executable to create and deploy your ADF Library from the commandline:
<Jdev-install-location>/jdeveloper/jdev/bin/ojdeploy -workspace /mydirectory/yourworkspace.jws -profile yourprofile -project yourproject.jpr -
Hey is anyone aware of ant tasks for UDDI configurations at build time for specifically oracle,
thanks all,
jp.http://www.google.com/search?q=UDDI+configurations+at+build+time+for+specifically+oracle&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
-
Ant tasks for portal's dpadmin and par commands
Has anyone written ant tasks for the dpadmin and par commands? If you look at the shell scripts for dpadmin and par, they are just setting up environment for java method invocation and command-line parsing.
I created some simple targets to deploy my portlets (copy jsp files and classes to appropriate directories) and the declare them with a target that invoked the dpadmin tool on my desktop xml file. I had experimented around with changing the directory priviledges in order to run my build script as a user other than root but had little success. I am sure building a custom ant task wrapped around dpadmin and par commands would be trivial to implement.
-
Error in writing an Ant task for creating a new connection pool.
I have written the following ant task to create a new connection pool in weblogic 10.3.
<target name="pool.dev">
<wlconfig url="http://localhost:7001/" username="weblogic" password="weblogic">
<query domain="C:/weblogic/rtg-L0" name="myserver"/>
<create type="JDBCConnectionPool" name="OneSourceConnectionPool">
<set attribute="DriverName"
value="oracle.jdbc.OracleDriver"/>
<set attribute="InitialCapacity" value="1"/>
<set attribute="MaxCapacity" value="5"/>
<set attribute="Password" value="rating"/>
<set attribute="Properties" value="user=rating"/>
<set attribute="RefreshMinutes" value="0"/>
<set attribute="ShrinkPeriodMinutes" value="15"/>
<set attribute="ShrinkingEnabled" value="true"/>
<set attribute="TestConnectionsOnRelease" value="true"/>
<set attribute="TestConnectionsOnReserve" value="true"/>
<set attribute="TestConnectionsOnCreate" value="true"/>
<set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
<set attribute="URL"
value="jdbc:oracle:thin:@xyz.com:1522:oradvl"/>
<set attribute="Targets" value="myserver"/>
</create>
</wlconfig>
</target>
When I run it, I see the following error:
BUILD FAILED
C:\ganymede\eclipse\workspace1\RtgSvr\build.xml:286: Failed to connect to the server: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.io.EOFException]
Can anybody please help me regarding this...
Thank you,
SowmyaHi everybody,
Thank you very much for your replies....actually I added weblogic.jar to the classpath of the target. So, now I dont see that error. But, I have another problem which is as follows:
<target name="initJDBC">
<wlconfig url="t3://${host}:${port}" username="${username}" password="${password}">
<query domain="domain.name" type="Server" name="${target.server}" property="${target.server}"/>
<create type="JDBCConnectionPool" name="TestConnectionPool">
<set attribute="DriverName" value="oracle.jdbc.OracleDriver"/>
<set attribute="Password" value="welcome"/>
<set attribute="Properties" value="user=welcome"/>
<set attribute="URL" value="jdbc:oracle:thin:@test.com:1522:oradvl"/>
<set attribute="Targets" value=""/>
<set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
<set attribute="TestConnectionsOnRelease" value="false"/>
<set attribute="TestConnectionsOnReserve" value="true"/>
</create>
<create type="JDBCDataSource" name="TestDataSource">
<set attribute="JNDIName" value="TestDataSource"/>
<set attribute="PoolName" value="TestConnectionPool"/>
<set attribute="Targets" value=""/>
</create>
</wlconfig>
</target>
I am not knowing what to give in the value field of <set attribute="Targets" value=""/>. The following is my build.properties file:
target.server=myserver
host=127.0.0.1
port=7001
username=weblogic
password=weblogic
domain.name=testDomain
If I give <set attribute="Targets" value="${myserver}"/>, I get the following error:
BUILD FAILED
C:\ganymede\eclipse\workspace1\TestSvr\build.xml:290: Property not set: ${myserver}
When I set myserver=myserver in build.properties, I get the following error:
BUILD FAILED
C:\ganymede\eclipse\workspace1\TestSvr\build.xml:290: Error invoking MBean command: java.lang.IllegalArgumentException: Property Name and value not valid for the MBean. Value myserver for parameter[Targets].java.lang.IllegalArgumentException: Unable to convert the argument valuemyserver to class javax.management.ObjectName.java.lang.reflect.InvocationTargetException
Can someone plzz help me in this regard.
Thank you,
Sowmya -
Ant task for creating a new weblogic domain in weblogic 10.3
Hi,
Can anybody help me in writing an ant task in build.xml for creating a new weblogic domain in weblogic 10.3, like as in <target name="new-domain">
<echo message=""/>
<echo message="Attempting to create new domain:"/>
<delete dir="C:\bea\user_projects\domains" />
<mkdir dir="C:\bea\user_projects\domains"/>
<wlserver dir="C:\bea\user_projects\domains" domainname="mydomain"
host="127.0.0.1" port="7001"
generateConfig="true" servername="AdminServer" username="weblogic"
password="weblogic" action="start"/>
</target>
Please suggest me adding something to the above in order to create the domain successfully.Hi,
Can anybody help me in writing an ant task in build.xml for creating a new weblogic domain in weblogic 10.3, like as in <target name="new-domain">
<echo message=""/>
<echo message="Attempting to create new domain:"/>
<delete dir="C:\bea\user_projects\domains" />
<mkdir dir="C:\bea\user_projects\domains"/>
<wlserver dir="C:\bea\user_projects\domains" domainname="mydomain"
host="127.0.0.1" port="7001"
generateConfig="true" servername="AdminServer" username="weblogic"
password="weblogic" action="start"/>
</target>
Please suggest me adding something to the above in order to create the domain successfully. -
Can anyone tell me where I can get this ant task "<oracle:shutdownServer|restartServer ..>" which is clearly documented in the Oracle PDF - "Oracle Containers for J2EE Deployment Guide"
http://download-east.oracle.com/docs/cd/B32110_01/web.1013/b28951.pdf
I have the ant-oracle-classes.jar for our 10.1.3.1 and have searched the antlib.xml contained within the jar and there is no reference to these tasks.
I have searched all jars in our oracle base and there are no references to these ant taskdefs anywhere.
Is there a patch for this, our is there a seperate download required?
Thanks for any help on this,
JP.John this issue looks similar to bug 6020713 raised against 10.1.3.2 OC4J on solaris, which states that antlib.xml file is missing the following values.
< taskdef name="restartServer" classname="oracle.ant.taskdefs.deploy.JSR88StartServer"/>
< taskdef name="shutdownServer" classname="oracle.ant.taskdefs.deploy.JSR88ShutdownServer"/>
It looks like 10.1.3.1 also has this issue on windows as the classes exist in the ant-oracle-classes.jar.
You should raise an SR to clarify this oracle support.
Cheers
Jeff -
Using Eclipse Ant tasks - for web service client creation
Hi,
I am following Eclipse documentation for creating Axis runtime environment web services and clients using web services Ant tasks.
As per document when I import Ant files into workspace, files that will be imported are wsgen.xml (Ant file) , axisservice.properties and axisclient.properties but for me these files are not getting imported into the project instead files axis_bujava.properties and axis_bujava.xml are imported.
Please do let me know if anyone have any ideas on this asap.
Thanks,
Roopa.Hi,
I am following Eclipse documentation for creating Axis runtime environment web services and clients using web services Ant tasks.
As per document when I import Ant files into workspace, files that will be imported are wsgen.xml (Ant file) , axisservice.properties and axisclient.properties but for me these files are not getting imported into the project instead files axis_bujava.properties and axis_bujava.xml are imported.
Please do let me know if anyone have any ideas on this asap.
Thanks,
Roopa. -
In the online Docs, I found info regarding creating ant tasks to start and configure
the WebLogic server. But I would like to also have an ant task that will start
Pointbase. I have created ant tasks that will connect to pointbase and create/fill
a database and another ant task that will drop a database. But I can't find any
info about starting the Pointbase database. All of the BEA documentation only
says to manually start the Pointbase database and then continue.
Has anyone created or knows of an ant task that will launch Pointbase?? In my
case, I'm only trying to launch and use Pointbase from the BEA directories.
JeraldWe have an ant task, but we dont doc it. This is in 8.1
<taskdef name="pointbase"
classname="weblogic.ant.taskdefs.pointbase.PointBase"/>
<property name="pointbase.dbfile"
value="${database.dir}/${pointbase.db.name}.dbn"/>
<property name="pointbase.log" value="pointbase.log"/>
<property name="pointbase.driver"
value="com.pointbase.jdbc.jdbcUniversalDriver"/>
<property name="pointbase.url"
value="jdbc:pointbase:server://${pointbase.host}:${pointbase.port}/${pointba
se.db.name}"/>
<property name="pointbase.url.new"
value="jdbc:pointbase:server://${pointbase.host}:${pointbase.port}/${pointba
se.db.name},new"/>
<target name="db.start">
<!-- Start PointBase -->
<echo message="Starting Pointbase..."/>
<pointbase displaylevel="3" file="${pointbase.log}"
home="${database.dir}"/>
<sleep seconds="5"/>
</target>
Cheers
mbg
"Jerald Pratt" <[email protected]> wrote in message
news:3f94d989$[email protected]..
>
In the online Docs, I found info regarding creating ant tasks to start andconfigure
the WebLogic server. But I would like to also have an ant task that willstart
Pointbase. I have created ant tasks that will connect to pointbase andcreate/fill
a database and another ant task that will drop a database. But I can'tfind any
info about starting the Pointbase database. All of the BEA documentationonly
says to manually start the Pointbase database and then continue.
Has anyone created or knows of an ant task that will launch Pointbase??In my
case, I'm only trying to launch and use Pointbase from the BEAdirectories.
>
Jerald -
Where do I find the ANT task for creating ear file in WLI
Hi friends
I was trying to create an ear file out of my process definitions and deploy on weblogic instead of deploying it from Workshop. I heard that there are ANT tasks available that do this but I couldn't find much detail.
I was wondering if somebody can point me to any documentation or anything that'll help me achieve this.
Thanks.
BijanThis may help
-
JDeveloper 10g, ADF, ANT:How to define ant task for EAR & WAR file creation
I am trying to automate the deployment process of our ADF Faces & BC application. I have reviewed this doc:
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28951/anttasks.htm
and followed the procedure for integrating ant onto the server. I can build the project and also successfully deploy the ear file. Howerver, I did not find any instruction on how to generate the EAR file. Can anyone point me to the right place for this task definition?
Here is my current build.xml file.
<?xml version="1.0" encoding="windows-1252" ?>
<!--Ant buildfile generated by Oracle JDeveloper-->
<!--Generated Jul 16, 2007 12:20:13 PM-->
<project name="CRDBApps" default="build-all" basedir="." xmlns:oracle="antlib:oracle">
<property file="build.properties"/>
<property file="ant-oracle.properties"/>
<target name="clean-all" depends="">
<ant antfile="build.xml" dir="CRDBView" target="clean"/>
<ant antfile="build.xml" dir="CRDBLib" target="clean"/>
<ant antfile="build.xml" dir="CRDBModel" target="clean"/>
</target>
<target name="build-all" depends="clean-all">
<ant antfile="build.xml" dir="CRDBView" target="compile"/>
<ant antfile="build.xml" dir="CRDBLib" target="compile"/>
<ant antfile="build.xml" dir="CRDBModel" target="compile"/>
</target>
<target name="deployear" depends="">
<echo message="-----> Deploying the application module deployment (ear) file"/>
<oracle:deploy deployerUri="deployer:oc4j:opmn://myserver/home"
userid="oc4jadmin"
password="password"
file="CRDBView/deploy/CRDBApps.ear"
deploymentName="CRDBApps"
bindAllWebApps="default-web-site"/>
</target>
</project>
thanks!
WesThanks all for the tips. After reading up a bit today on ear/war files and ant. I ended up just creating a task to mimic the ear/war file structure. My script isnt pretty but I'll work on refining that later. Here is what I have if anyone ever is interested:
<target name="war" depends="">
<echo message="Executing target war..."/>
<mkdir dir="war"/>
<copydir src="CRDBView\public_html" dest="war\"/>
<copydir src="CRDBView\classes" dest="war\WEB-INF\classes"/>
<copydir src="CRDBModel\classes" dest="war\WEB-INF\classes"/>
<copydir src="CRDBLib\classes" dest="war\WEB-INF\classes"/>
<echo message="Creating war file..."/>
<jar basedir ="war" destfile="CRDBApps.war"/>
<echo message="Done executing target war..."/>
</target>
<target name="ear" depends="war">
<echo message="Executing target ear..."/>
<mkdir dir="ear\META-INF"/>
<copydir src="CRDBView\deploy\META-INF" dest="ear\META-INF"/>
<copy file="CRDBApps.war" todir="ear\"/>
<jar basedir ="ear" destfile="CRDBApps.ear"/>
<echo message="Done executing target ear..."/>
</target>
<target name="cleanAndDeployCRDBApps" depends="build-all,deployear">
<echo message="Executing target cleanAndDeployCRDBApps..."/>
<delete dir="war"/>
<delete dir="ear"/>
<echo message="Done executing target cleanAndDeployCRDBApps..."/>
</target>
<target name="deployear" depends="ear">
<echo message="Executing target deployear"/>
<oracle:deploy deployerUri="deployer:oc4j:opmn://myserver:6003/home"
userid="oc4jadmin"
password="password"
file="CRDBApps.ear"
deploymentName="CRDBApps"
bindAllWebApps="default-web-site"/>
<delete file="CRDBApps.ear"/>
<delete file="CRDBApps.war"/>
<echo message="Done executing target deployear"/>
</target>
... -
Javafx ant task for msvcr100.dll
I had the problem that the native exe-install package generated did not work.
As I read in this forum, it is a problem with the Inno Setup tool, which generates a launcher that fails to load msvcr100.dll on 32-bit machines (if no JRE is installed)!
The workaround (which is also used by the JavaFX Scene Builder) is to add a copy of msvcr100.dll either next to the launcher executable or in the apps folder.
How can I modify build.xml (I am using Netbeans 7.4) to add this file to the native installer?
I am trying to add some -pre-jfx-deploy target which adds msvcr100.dll as a resource:
<fx:resources id="appRes">
<fx:fileset requiredFor="startup" dir="${basedir}">
<include name="msvcr100.dll"/>
</fx:fileset>
</fx:resources>
but I cannot get it to work. The file never ends up in the on-click-installer exe.Thanks for replying.
I think you're right about the need to copy the files into the directories that the DMG maker are using.
The problem is I don't know what directories DMG maker are using as the source.
For example, if I have a manual.pdf file that I want to copy to a Doc folder (see below), how can I do that?
My shell script looks like this:
cp "/Users/ytw/Documents/dev/src/myApp/doc/manual.pdf" "/Users/ytw/Documents/dev/src/myApp/dist/bundles/myApp.app/Contents/doc"Manual.pdf got copied to the app bundle's Contents directory correctly, but apparently, DMG maker is not reading from there OR DMG maker finished packaging before the file was copied.
- myApp.app
- Contents (folder)
- Java (folder)
- MacOS (folder)
- PlugIns (folder)
- Resources (folder)
- Doc (folder)
- manual.pdf (file)Thanks.
Edited by: 925616 on Aug 29, 2012 6:34 PM
Edited by: 925616 on Aug 29, 2012 6:36 PM -
Hi,
I am trying to build my Flex app which uses the Advanced Data Grid in a couple of locations. Originally, when I built the app using the flex ant tasks, I noticed the Visualization Trial watermark show up on the screen. I then added the license tag with the serial number to my flex-config.xml and re-ran my ant build. The watermark goes away, but then when I look at the advanced datagrid, the datagrid shows up with the hierarchy, but the data does not display in the grid (only the group by nodes are visible, not the data for the leaf elements). This works fine when I build the app using my Flex Builder. Is there something I am missing or need to add to my flex ant task to make this work?
Any help or guidance is much appreciated.
The following is the ant task to build the module that uses the ADG:
<target name="compile-modules" depends="compile-shared">
<!-- Module 1 -->
<echo>Compiling module 1...</echo>
<mxmlc file="${modulesrc.dir}\ui\modules\mod1\Module1.mxml"
output="${dist.dir}\modules\mod1\Module1.swf"
actionscript-file-encoding="UTF-8"
incremental="true"
default-background-color="0xFFFFFF"
use-network="false"
load-externs="${extern-report-xml}">
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
<source-path path-element="${FLEX_HOME}/frameworks"/>
<!-- source paths -->
<compiler.source-path path-element="${modulesrc.dir}"/>
<!-- add external libraries -->
<compiler.library-path dir="${main.dir}" append="true">
<include name="${lib.dir}"/>
</compiler.library-path>
<compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
<include name="libs" />
<include name="locale/{locale}" />
</compiler.library-path>
<compiler.debug>true</compiler.debug>
</mxmlc>
</target>
And here is the ant task for the main application:
<target name="compile-ui" depends="compile-modules">
<mxmlc file="${src.dir}/MainApp.mxml" output="${dist.dir}/MainApp.swf"
actionscript-file-encoding="UTF-8" keep-generated-actionscript="false"
fork="true" maxmemory="1024m">
<jvmarg value="-XX:MaxPermSize=256m"/>
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<source-path path-element="${FLEX_HOME}/frameworks"/>
<source-path path-element="${src.dir}"/>
<source-path path-element="${main.dir}/locale/{locale}"/>
<!-- List of SWC files or directories that contain SWC files. -->
<!--<compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
<include name="libs" />
<include name="locale/{locale}" />
</compiler.library-path>-->
<compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
<include name="libs/datavisualization.swc" />
<include name="libs/flex.swc" />
<include name="libs/framework.swc" />
<include name="libs/rpc.swc" />
<include name="libs/utilities.swc" />
<include name="locale/{locale}" />
</compiler.library-path>
<compiler.library-path dir="${main.dir}" append="true">
<include name="${lib.dir}"/>
</compiler.library-path>
<runtime-shared-library-path path-element="${FLEX_FRAMEWORK}/framework.swc">
<url rsl-url="framework_3.2.0.3958.swf"/>
<url rsl-url="framework_3.2.0.3958.swz"/>
</runtime-shared-library-path>
<compiler.debug>true</compiler.debug>
</mxmlc>
</target>
Regards,
Purushto remove watermark i have added license key in WEB-INF\flex\license.properties file as key = value
-
Building from flex builder vs ant task
I have a flex application written using flex builder. When I
build it and run it using flex builder, or create an air file from
flex builder and run that, then my application works just fine.
However, I would like people without copies of flexBuilder
installed to be able to build my application, so I am using the
flex ant task (flex-mxmlc) to build my application. As far as I can
tell I have the same configuration, and the same libraries included
in the ant task. However, when I run the air file generated by the
ant task nothing happens. If you look in the task manager, you can
see that the application is running, but the main window for the
application never appears.
I tried running the swf through a debug version of flash to
get some log output, and I am getting a bunch of exceptions, the
first of which is:
VerifyError: Error #1014: Class flash.display::NativeWindow
could not be found.
at flash.display::MovieClip/nextFrame()
at mx.managers::SystemManager/deferredNextFrame()
at
mx.managers::SystemManager/preloader_initProgressHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
It seems like it might not be finding the main flex library
(flexlib.swc), is that where that class would be? In my ant task I
have an include-libraries tag that points to that file.
Anyone have any ideas?I experienced a similar problem (although the class that
could not be found was different for me). Googling around I found
someone who had a similar problem and claimed that using the
flexlib.swc library was the culprit.
The root of the problem is that the Flex SDK that comes
bundled with the Flex Builder has libraries (under frameworks/libs)
that are NOT included in plain free Flex SDK that you and I are
presumably using on our build machines.
When flexlib.swc is linked in, it causes certain classes to
be required at runtime. Apparently when you compile these classes
are linked in if available, but when they are not the compilation
still succeeds. Only you get a VerifyError when you run the thing.
What worked for me was to copy all the additional .swc files
found in my Flex Builder SDK's frameworks/libs directory to the
same directory on my build machine. Also you will need to copy the
additional files under frameworks/locale/en_US.
Rebuild and clear your browser's cache and it should then
work.
Maybe you are looking for
-
I updated my operating system to Maverick 10.9.4. How do I get the ability to double tap my mouse so the page will enlarge back?
-
I'm using iDVD 6.0.4 and am having a problem with the menu system. Everything is fine, and the project is about ready to burn, however whenever I go to add a still picture for the background of the two Chapters selection screens, the Motion Menus tim
-
Adding URLs as a column in a table
Hi there, I am currently trying to design a PowerView report in Excel and I was wondering it is possible to add a hyperlink column? This is for an IT Support Service and the idea is that users can open the case in our Service Portal by clicking on th
-
Solaris Newbie.. Cannot connect to Internet via network
PROBLEM: I have setup solaris 8 and everything installed properly. I can ping the machines locally but outside the local network I have a linux server running dns and internet sharing gateway. In sun, I have added the linux as the default router in /
-
Certain websites crash when I open them
I am so frustrated. I kept going to certain websites( Goodreads for example) and safari closes the minute they open. I took my iPad to the Mac store and they said there was a software issue and replaced it for free since it was still under warrant