Multiple projects - ANT building problem

Hey all, not sure if this is the correct forum for this but it's the closest fit. So I've got an ANT script which builds my game, but I've got another project called Resources that'll contain components, code, helpful classes etc that I want to use in any of my projects. In my build target, how do I make it so that I build both projects and use them in the way described above. I've attached my current "compile" target markup for reference. Thanks
          <target name="compile" description="Compiles classes" depends="clean, -init-directories" >
               <wtkbuild target="1.1" debug="false" srcdir="${src.dir}" destdir="${compiling}" preverify="true" />
                    <!--<include name="${resources.project.src}/**" />
               </wtkbuild>-->
               <copydir dest="${res.building.dir}" src="${res.dir}" includes="**/*.png" excludes="Thumbs.db" />
          </target>

Awesome, that's worked. Can't believe such a simple bit of syntax sorted the issue out, couldn't find out that for the life of me. I do have one issue though, is that looking in the jar, the source directory looks like this:
components - package directory from the aformentioned Resources project
META-INF
midlet - package directory from the aformentioned Resources project
res
screens - package directory from the aformentioned Resources project
src
Can I just move these folders into the src directory so it all looks nice and legal? Or do you think it matters? Also, will it not have an effect on the actual device, as it tries to find a Class file to load in a certain location it isn't it?
For example:
My TitleScreen.class file is in screens, (screens.TitleScreen) if I moved the screens folder into the src folder, would that not cause a ClassNotFound exception? Thanks again for the help

Similar Messages

  • Ant build problems

    I am having problems with the build scripts
    I can compile and when I tried to create a ear file using ant I am getting the following error.
    I can directly create ear file by manually exporting to ear file from the export. I posted this on the newsgroup also
    C:\beabeta\user_projects\w4WP_workspaces\sample\sample>ant stage
    Buildfile: build.xml
    init:
    stage:
    [delete] Deleting directory C:\beabeta\user_projects\w4WP_workspaces\sample\s
    ample\.staging
    [mkdir] Created dir: C:\beabeta\user_projects\w4WP_workspaces\sample\sample\
    .staging
    [copy] Copying 4 files to C:\beabeta\user_projects\w4WP_workspaces\sample\s
    ample\.staging
    BUILD FAILED
    C:\beabeta\user_projects\w4WP_workspaces\sample\sample\build.xml:129: The follow
    ing error occurred while executing this line:
    jar:file:/C:/beabeta/WEBLOG%7e1/workshop/lib/wlw-antlib.jar!/com/bea/wlw/antlib/
    antlib.xml:97: The following error occurred while executing this line:
    C:\beabeta\user_projects\w4WP_workspaces\sample\sample\build.xml:135: The follow
    ing error occurred while executing this line:
    Target `stage.to.ear' does not exist in this project.

    Build is working now
    When we are generating the ant build files for each project we have to choose the Worshop Ant Script instead of ant build files.
    It is not intializing the workspace directory also

  • Flex mobile project - ant build issue

    Hi,
    I am getting an error when i compile my mobile project with ant build script. "Could not resolve <s:ViewNavigatorApplication> to a component implementation." But, I am using the same build file to build a simple helloworld mobile project which works fine.
    <mxmlc
       file="${main_class}"
       output="${output_loc}"
       locale="${LOCALE}"
       static-rsls="false"
       accessible="false"
       configname="airmobile"
       debug="${debug_mode}"
       failonerror="true"
       fork="true"
       maxmemory="512m">
       <source-path path-element="${class_path}"/>
       <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
           <include name="libs/*"/>
          </compiler.library-path>
       <library-path dir="${FLEX_HOME}/frameworks/locale/${LOCALE}" append="true"/>
          <library-path dir="${lib_path}" includes="*.swc" append="true"/>
       <external-library-path file="${AIR_GLOBAL}" append="true"/>
       <compiler.library-path dir="D:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/MobilityServer/WEB-INF/flex/libs/air" includes="airfds.swc" append="true"/>
          <compiler.library-path dir="D:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/MobilityServer/WEB-INF/flex/libs" includes="fds.swc" append="true"/>
          <compiler.library-path dir="D:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/MobilityServer/WEB-INF/flex/libs" includes="fiber.swc" append="true"/>
       <compiler.library-path dir="C:/Perforce/mobility/main/NextGen/client/libraries/external/robotlegs/1.4.0/bin" includes="robotlegs-framework-v1.4.0.swc" append="true"/>
       <compiler.library-path dir="C:/Perforce/mobility/main/NextGen/client/libraries/CommonMobileLibrary/bin" includes="CommonMobile.swc" append="true"/>
       <compiler.library-path dir="C:/Perforce/mobility/main/NextGen/client/libraries/NativeMobileLibrary/bin" includes="ASNativeLibrary.swc" append="true"/>  </mxmlc>
    Message was edited by: betheflexcoder

    Sounds like you are missing mobilecomponents.swc

  • Flex ant build - problem including custom theme

    Hi,
    I added custom ios theme using the below code in the flex ant build. The custom ios theme does not seem to be included.
    <compiler.theme dir="${FLEX_HOME}/frameworks" append="true"> 
    <include name="themes/Spark/spark.css" /> 
      <include name="themes/Mobile/mobile.swc" />
      </compiler.theme>
    <compiler.theme dir="${deploy.dir}/lib" append="true">   <include  name="mobiletheme_ios.swc" />
    </compiler.theme>
    I also tried using just <theme> tag but it did not help.
    Hoping a solution with the forum's help.
    Thanks in advance
    <include  name="themes/Halo/halo.swc" /> 

    Sorry, I meant to address that. Yes, since we've moved up to the Flex 3 sdk, we are pointing at a new directory. The old directory was flex_sdk and the new directory is flex_sdk_340.
    FLEX_HOME is being set in the build.properties file for local building and then overidden in the build.xml file with this code:
    <target name="build">
         <available property="FLEX_HOME" value="/apps/flex_sdk_340" file="/apps/flex_sdk_340" />
         <echo>FLEX_HOME = ${FLEX_HOME}</echo>
         <antcall target="compile" />
    </target>
    I did notice a warning about not using the available property, so I removed it and just changed what FLEX_HOME was set to in the build.properties file to the server directory. Would mess up local building but regardless it didn't matter because it had no effect on the error being generated. I alos looked a little into the file property of the available tag trying to figure out if that was somehow an issue but I wasn't able to come to any conclusion.
    Before the program errors out, it does displayt he echo statement and the value of FLEX_HOME appears to be correct in that it does show /apps/flex_sdk_340.
    Thank you so much for your continued help. This is truly frustrating because nothing but a directory name has really changed and yet it stopped working. I can't find any information anywhere on what could be wrong and this is really my last resort.

  • Problem with exported ant build scripts of a  WebService Project

    Hi All,
    My current task is a migration of working application (from Weblogic 8.1 to Weblogic 10.2).
    We have several independent projects and an EAR type of project in the workshop.
    When running ant from the command line, I am getting the following build error:
    BUILD FAILED
    D:\HPRA2\Services\BuildScripts\build.xml:388: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\BLD_Transformation.xml:125: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\BLD_Transformation.xml:67: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\workspace_build.xml:30: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\Ear_Transformation\build.xml:199: The following error occurred while executing this line:
    jar:file:/D:/HPRA2/Services/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml:86: The following error occurred while executing t
    his line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\Ear_Transformation\build.xml:211: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:413: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:207: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:546: java.lang.NullPointerException
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: D:\HPRA2\Services\CoreServices\Transformation\BLD_Transformation.xml:125: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\BLD_Transformation.xml:67: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\workspace_build.xml:30: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\Ear_Transformation\build.xml:199: The following error occurred while executing this line:
    jar:file:/D:/HPRA2/Services/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml:86: The following error occurred while executing t
    his line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\Ear_Transformation\build.xml:211: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:413: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:207: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:546: java.lang.NullPointerException
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
    ... 12 more
    Caused by: D:\HPRA2\Services\CoreServices\Transformation\BLD_Transformation.xml:67: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\workspace_build.xml:30: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\Ear_Transformation\build.xml:199: The following error occurred while executing this line:
    jar:file:/D:/HPRA2/Services/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml:86: The following error occurred while executing t
    his line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\Ear_Transformation\build.xml:211: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:413: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:207: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:546: java.lang.NullPointerException
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
    ... 21 more
    Caused by: D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\workspace_build.xml:30: The following error occurred while executing this line
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\Ear_Transformation\build.xml:199: The following error occurred while executing this line:
    jar:file:/D:/HPRA2/Services/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml:86: The following error occurred while executing t
    his line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\Ear_Transformation\build.xml:211: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:413: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:207: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:546: java.lang.NullPointerException
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
    ... 29 more
    Caused by: D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\Ear_Transformation\build.xml:199: The following error occurred while executing
    this line:
    jar:file:/D:/HPRA2/Services/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml:86: The following error occurred while executing t
    his line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\Ear_Transformation\build.xml:211: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:413: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:207: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:546: java.lang.NullPointerException
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:380)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
    ... 37 more
    Caused by: jar:file:/D:/HPRA2/Services/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml:86: The following error occurred while
    executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\Ear_Transformation\build.xml:211: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:413: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:207: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:546: java.lang.NullPointerException
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:380)
    at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
    at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
    at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
    at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
    ... 45 more
    Caused by: D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\Ear_Transformation\build.xml:211: The following error occurred while executing
    this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:413: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:207: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:546: java.lang.NullPointerException
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
    at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:408)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
    ... 55 more
    Caused by: D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:413: The following error occurred while executing t
    his line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:207: The following error occurred while executing this line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:546: java.lang.NullPointerException
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
    at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:408)
    at com.bea.workshop.cmdline.antlib.AntCallExTask.execute(AntCallExTask.java:118)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
    ... 69 more
    Caused by: D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:207: The following error occurred while executing t
    his line:
    D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:546: java.lang.NullPointerException
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
    ... 77 more
    Caused by: D:\HPRA2\Services\CoreServices\Transformation\Java\Transformation\TransformationWS\build.xml:546: java.lang.NullPointerException
    at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:181)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
    ... 85 more
    Caused by: java.lang.NullPointerException
    at weblogic.wsee.tools.jws.decl.WebTypeDecl.getTargetNamespace(WebTypeDecl.java:213)
    at weblogic.wsee.tools.jws.decl.WebTypeDecl.<init>(WebTypeDecl.java:84)
    at weblogic.wsee.tools.jws.decl.WebResultDecl.<init>(WebResultDecl.java:22)
    at weblogic.wsee.tools.jws.decl.WebMethodDecl.<init>(WebMethodDecl.java:68)
    at weblogic.wsee.tools.jws.decl.WebServiceSEIDecl.buildMethod(WebServiceSEIDecl.java:317)
    at weblogic.wsee.tools.jws.decl.WebServiceSEIDecl.initMethods(WebServiceSEIDecl.java:303)
    at weblogic.wsee.tools.jws.decl.WebServiceSEIDecl.<init>(WebServiceSEIDecl.java:95)
    at weblogic.wsee.tools.jws.decl.WebServiceSEIDecl.<init>(WebServiceSEIDecl.java:68)
    at weblogic.wsee.tools.jws.decl.WebServiceDeclFactory.newInstance(WebServiceDeclFactory.java:54)
    at weblogic.wsee.tools.anttasks.JwsModule.buildAndValidate(JwsModule.java:463)
    at weblogic.wsee.tools.anttasks.JwsModule.loadWebServices(JwsModule.java:454)
    at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:306)
    at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:226)
    at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:174)
    ... 93 more
    I really dont know what exactly the problem is?
    Any assistance would be highly appreciated.
    Thanks,
    Nirmal

    Hi...
    Actually the build.xml is created by the workshop itself when we use export ant scripts.
    And this build.xml contains the following target:
    &lt;target name="webservice.build" depends="init,generated.root.init"&gt;
    &lt;path id="jwsc.srcpath"&gt;
    &lt;path path="${java.sourcepath}" /&gt;
    &lt;pathelement path="build/assembly/.src" /&gt;
    &lt;/path&gt;
    &lt;taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" &gt;
    &lt;classpath&gt;
    &lt;path refid="weblogic.jar.classpath" /&gt;
    &lt;/classpath&gt;
    &lt;/taskdef&gt;
    &lt;property name="jwsc.module.root" value="${project.dir}/build/weboutput"/&gt;
    &lt;property name="jwsc.contextpath" value="TransformationWS"/&gt;
    &lt;property name="jwsc.srcpath.prop" refid="jwsc.srcpath"/&gt;
    &lt;path id="jwsc.classpath"&gt;
    &lt;path refid="weblogic.jar.classpath" /&gt;
    &lt;path refid="java.classpath" /&gt;
    &lt;pathelement path="${java.outpath}" /&gt;
    &lt;/path&gt;
    *&lt;jwsc*
    *destdir="${project.dir}/build"*
    *classpathref="jwsc.classpath"*
    *&gt;*
    &lt;module name="weboutput" explode="true" contextPath="${jwsc.contextpath}"&gt;
    &lt;jwsFileSet srcdir="${jwsc.srcpath.prop}"&gt;
    &lt;include name="**/*.java"/&gt;
    &lt;/jwsFileSet&gt;
    &lt;descriptor file="${jwsc.module.root}/WEB-INF/web.xml" /&gt;
    &lt;descriptor file="${jwsc.module.root}/WEB-INF/weblogic.xml" /&gt;
    &lt;/module&gt;
    &lt;/jwsc&gt;
    &lt;/target&gt;
    I never touch this build.xml as for rest of the services this gives no error.
    But for one of the services it gives the the error mentioned above.....
    Moreover the property "*jwsc.classpath*" is not set in the script.
    Although it seems that build script tries to set this property. How can I manually set this property as to run the script successfully.
    Thanks
    Nirmal...
    Edited by: nirmal_kumar on Jan 4, 2009 11:02 PM
    Edited by: nirmal_kumar on Jan 4, 2009 11:05 PM

  • ANT Build Module Project

    I have a project that has multiple modules, as well as a couple of external libraries that we use.  I'm trying to use sdk 4.1 and ANT builder to get the same build that I get with Flex Builder.
    I can build the applicaiton, css, and modules, but I have not figured out how to take the existing swc's and compile them into a swf.  It appears compc compiles a library project, but I don't see anything that compiles a library to a swf.
    Also, when I use ANT, the module is larger in size, and all the modules are smaller.  Is there any way to export the build and make sure I'm getting the same thing?
    Thanks.

    the mxmlc utility and Ant class will compile into SWF.
    Inside FB, you can specify optimization of modules for a specific core application. This means that any class referenced in the core is omited from the modules (because the modules can get the class definition from the core at runtime).
    For the command-line compilers and ANT, you have to supply the list of classes to omit. The SWF compiler will generate this exact list, so it is mostly a matter of pointing the module compilation at the output of the core SWF compilation.
    Check out http://livedocs.adobe.com/flex/3/html/help.html?content=anttasks_1.html and
    http://livedocs.adobe.com/flex/3/html/help.html?content=modular_4.html
    Cheers

  • Problem building WLI 10.2 applications with exported ant build files

    Hello,
    I'm trying to build a WLI application without the workshop IDE. To accomplish this I exported ant build files, workspace.xml and the workspace libraries.
    When I run the build, I get the following (part of the) stacktrace:
    [apt] Compiling 8 source files to C:\development\BuildOFOP\workspace\ContractAccountService-Web\build\classes
    [apt] warning: Annotation types without processors: [com.bea.wli.transform.XQueryTransform.SchemaValidate]
    [apt] java.io.FileNotFoundException: File not found
    [apt] at java.util.zip.ZipFile.open(Native Method)
    [apt] at java.util.zip.ZipFile.<init>(ZipFile.java:117)
    [apt] at java.util.zip.ZipFile.<init>(ZipFile.java:76)
    [apt] at com.bea.wli.bpm.bean.codegen.JarHelper.unJar(JarHelper.java:31)
    [apt] at com.bea.wli.bpm.bean.codegen.ResourceConfig.configureEjbJars(ResourceConfig.java:749)
    [apt] at com.bea.wli.bpm.bean.codegen.ResourceConfig.configureEjbJars(ResourceConfig.java:704)
    [apt] at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.generateBeans(JpdAnnotationProcessor.java:343)
    [apt] at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.generate(JpdAnnotationProcessor.java:56)
    [apt] at com.bea.wli.knex.ap.TwoPhaseAnnotationProcessor.process(TwoPhaseAnnotationProcessor.java:103)
    [apt] at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
    [apt] at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
    [apt] at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
    [apt] at com.sun.tools.apt.main.Main.compile(Main.java:1075)
    [apt] at com.sun.tools.apt.main.Main.compile(Main.java:938)
    [apt] at com.sun.tools.apt.Main.processing(Main.java:95)
    [apt] at com.sun.tools.apt.Main.process(Main.java:43)
    [apt] at com.sun.tools.apt.Main.main(Main.java:34)
         [apt] Problem encountered during annotation processing;
    [apt] see stacktrace below for more information.
    [apt] java.lang.IllegalStateException: Error customizing project beans; could not locate weblogic home null
    [apt] at com.bea.wli.bpm.bean.codegen.ResourceConfig.configureEjbJars(ResourceConfig.java:769)
    [apt] at com.bea.wli.bpm.bean.codegen.ResourceConfig.configureEjbJars(ResourceConfig.java:704)
    [apt] at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.generateBeans(JpdAnnotationProcessor.java:343)
    [apt] at com.bea.wli.bpm.compiler.JpdAnnotationProcessor.generate(JpdAnnotationProcessor.java:56)
    [apt] at com.bea.wli.knex.ap.TwoPhaseAnnotationProcessor.process(TwoPhaseAnnotationProcessor.java:103)
    [apt] at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
    [apt] at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
    [apt] at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
    [apt] at com.sun.tools.apt.main.Main.compile(Main.java:1075)
    [apt] at com.sun.tools.apt.main.Main.compile(Main.java:938)
    [apt] at com.sun.tools.apt.Main.processing(Main.java:95)
    [apt] at com.sun.tools.apt.Main.process(Main.java:43)
    [apt] at com.sun.tools.apt.Main.main(Main.java:34)
    [apt] Caused by: java.io.FileNotFoundException: File not found
    [apt] at java.util.zip.ZipFile.open(Native Method)
    [apt] at java.util.zip.ZipFile.<init>(ZipFile.java:117)
    [apt] at java.util.zip.ZipFile.<init>(ZipFile.java:76)
    [apt] at com.bea.wli.bpm.bean.codegen.JarHelper.unJar(JarHelper.java:31)
    [apt] at com.bea.wli.bpm.bean.codegen.ResourceConfig.configureEjbJars(ResourceConfig.java:749)
    [apt] ... 12 more
    Anyone got any idea what might be the problem here? I did followed the BEA instructions for exporting the ant build files.
    Grtz, Jaco

    Hi
    This is a known issue addressed by CR205204
    As you said, IBM actually does not have rt.jar in its JDK - they have moved contents of rt.jar into various jars.
    IBM is not using org/apache/crimson/tree/ in their JDK at all.So the error shows up in the end of build even if it succeeds
    You may need to add crimson.jar to wlwBuild classpath, since it is not part of IBMs JDK.
    Note: the build will work even w/o crimson.jar giving a non build related IDE exception in the very end.
    Thanks
    Vimala

  • Problems deploying ear file created with ant build script

    Hi All,
    I'm using Jdeveloper 11G and Weblogic 10.3. When I build my application and run it within Jdeveloper, it works fine. However, we have a requirement to run ANT build script and create a deployable .ear file that can be manually deployed to any Weblogic Server.
    I created my ant build script and it compiles/builds fine - the .ear file looks good. However, when I attempt to deploy it, it fails with
    javax.faces.webapp.FacesServlet for servlet Faces Servlet could not be loaded because the requested class was not found in the classpath .
    java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet.
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:551)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1985)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
         Truncated. see log file for complete stacktrace
    >
    <Nov 2, 2011 2:43:43 PM MDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1320266599219' for task '3'. Error is: 'weblogic.application.ModuleException: [HTTP:101216]Servlet: "Faces Servlet" failed to preload on startup in Web application: "###"
    I am not sure how to tell weblogic where to find the classes needed. I have a pretty huge classpath used when compiling - should I be putting the classpath in the manifest (?) - I don't think I should need to include the .jar files manually in the .ear file - since all the libraries should already be available in weblogic - or is that a misconception?
    Please help!!

    I answered my own question -
    I had to manually add the following to the WEB-INF/lib to get the error to go away:
    ${ORACLE_HOME}/modules/javax.jsf_1.1.0.0_1-2.jar and
    ${ORACLE_HOME}/oracle_common/modules/oracle.jsf_1.2.9/glassfish.jsf_1.0.0.0_1-2-15.jar and
    ${ORACLE_HOME}/oracle_common/modules/oracle.jsf_1.2.9/glassfish.jstl_1.2.0.1.jar
    that solved my problem. However, I think it'd be great if I could somehow just specify (in the weblogic-application.xml maybe?) that my application is using the above modules without having to copy the jar files into my WEB-INF/lib - any suggestions?
    Thanks

  • Problems encountered while running ant build file....Please Help

    Hi ,
    I'm trying to create a ear using a ant build script.But encountering the following error :
    <b>[java] Exception in thread "main" java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUID = 7043855487133450673, local class serialVersionUID = 8644704819898565848
    [java] at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
    [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
    [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
    [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
    [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
    [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
    [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
    [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
    [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    [java] at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
    [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
    [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
    [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
    [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
    [java] at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:281)
    [java] at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl.java:186)
    [java] at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl.java:169)
    [java] at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLElementMBeanDelegate.java:67)
    [java] at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLElementMBeanDelegate.java:51)
    [java] at weblogic.management.descriptors.BaseXMLElementMBeanImpl.<init>(BaseXMLElementMBeanImpl.java:8)
    [java] at weblogic.management.descriptors.toplevel.EJBDescriptorMBeanImpl.<init>(EJBDescriptorMBeanImpl.java:94)
    [java] at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:212)
    [java] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:105)
    [java] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:90)
    [java] at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:670)
    [java] at weblogic.ejbc20.runBody(ejbc20.java:425)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:126)
    [java] at weblogic.ejbc.main(ejbc.java:29)</b>
    here is the ant file which i use to build the ear :
    <b><project name="DNi6_WebOSS" default="all" basedir=".">
         <!-- set global properties for this build -->
         <property environment="env"/>
         <property file="build.properties"/>
         <property name="base" value="."/>
         <property name="classes" value="${base}/classes"/>
         <property name="lib" value="${base}/LIB"/>
         <property name="output" value="${classes}/out"/>
         <property name="JAR" value="${output}/JAR"/>
         <property name="build" value="${output}/temp"/>
         <property name="dist" value="${output}/dist"/>
         <property name="cp" value="${lib}/weblogic.jar;${lib}/log4j-1.2.8.jar;${lib}/dom4j-1.6.1.jar;${lib}/jdom.jar;${lib}/tools.jar"/>
         <property name="destfile" value="DNi6WebOSSBean.jar"/>
         <property name="exclude" value=""/>
         <property name="class_path" value="."/>
         <property name="include" value="META-INF/*.xml com/telia/dni6/util/*.class com/telia/dni6/bean/*.class"/>
         <target name="all" depends="1-clean,2-init,3-jar_ejb,4-ejbc,5-final_copy "/>
         <target name="2-init">
              <!-- Create the time stamp -->
              <tstamp/>
              <!-- Create the build directory structure used by compile
    and copy the deployment descriptors into it-->
              <mkdir dir="${build}"/>
              <mkdir dir="${JAR}"/>
              <mkdir dir="${build}/META-INF"/>
              <mkdir dir="${dist}"/>
              <mkdir dir="${dist}"/>
              <copy todir="${build}/">
                   <fileset dir="${classes}/">
                        <include name="**/*com/telia/dni6/util/*"/>
                        <include name="**/*com/telia/dni6/bean/*"/>
                   </fileset>
              </copy>
              <copy todir="${build}/META-INF">
                   <fileset dir="${base}/">
                        <include name="ejb-jar.xml"/>
                        <include name="Manifest.mf"/>
                        <include name="weblogic-ejb-jar.xml"/>
                   </fileset>
              </copy>
         </target>
         <!-- Make a standard ejb jar file, including XML deployment descriptors -->
         <target name="3-jar_ejb" depends="2-init">
              <jar destfile="${dist}/std_${destfile}" excludes="${exclude}" includes="${include}" basedir="${build}" manifest="${build}/META-INF/Manifest.mf"/>
         </target>
         <!-- Run ejbc to create the deployable jar file -->
         <target name="4-ejbc" depends="3-jar_ejb">
         <java classname="weblogic.ejbc" fork="yes" jvm="D:\jdk1.5.0_06\bin\java">
              <!-- <java classname="weblogic.ejbc" fork="yes" jvm="C:\j2sdk1.4.1_07\bin\java"> -->
                   <arg line="-compiler javac ${dist}/std_${destfile} ${dist}/${destfile}"/>
                   <classpath>
                        <pathelement path="${cp}"/>
                   </classpath>
              </java>
         </target>
         <target name="5-final_copy" depends="4-ejbc">
              <copy todir="${JAR}/">
                   <fileset dir="${dist}">
                        <include name="${destfile}"/>
                   </fileset>
              </copy>
         </target>
         <target name="1-clean">
              <delete dir="${build}"/>
              <delete dir="${dist}"/>
              <delete dir="${JAR}"/>
              <delete dir="ejbcgen"/>
              <delete dir="${output}"/>
         </target>
    </project></b>
    and these are the weblogic-ejb-jar and ejb-jar.xml used :
    weblogic-ejb-jar.xml :
    <b><?xml version="1.0" encoding="UTF-8"?>
    <weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd">
    <weblogic-ejb-jar>
         <weblogic-enterprise-bean>
              <ejb-name>WebOSSInterfaceBean</ejb-name>
              <message-driven-descriptor>
                   <pool>
                        <max-beans-in-free-pool>5</max-beans-in-free-pool>
                        <initial-beans-in-free-pool>5</initial-beans-in-free-pool>
                   </pool>
                   <destination-jndi-name>DNi6RecdTopic</destination-jndi-name>
                   <jms-polling-interval-seconds>1</jms-polling-interval-seconds>
              </message-driven-descriptor>
              <jndi-name>WebOSSInterfaceBean</jndi-name>
         </weblogic-enterprise-bean>
    </weblogic-ejb-jar></b>
    ejb-jar.xml:
    <b><?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <ejb-jar>
         <enterprise-beans>
              <message-driven>
                   <ejb-name>WebOSSInterfaceBean</ejb-name>
                   <ejb-class>com.telia.dni6.bean.WebOSSInterfaceBean</ejb-class>
                   <transaction-type>Container</transaction-type>
                   <message-driven-destination>
                        <destination-type>javax.jms.Topic</destination-type>
                   </message-driven-destination>
              </message-driven>
         </enterprise-beans>
    </ejb-jar></b>
    Please help!!!
    Thanks
    Smita.

    Hi Rob,
    I included the weblogic.jar of weblogic 9.0 in the lib and the classpath.And changed the weblogic.ejbc to weblogic.appc as weblogic.ejbc is deprecated.
    But again i'm getting this error while running the ant script.
    Part of the ant script where is error is encountered
    <!-- Run ejbc to create the deployable jar file -->
         <target name="4-ejbc" depends="3-jar_ejb">
         <java classname="weblogic.appc" fork="true" jvm="D:\jdk1.5.0_06\bin\java">
              <arg line="-compiler javac ${dist}/std_${destfile} ${dist}/${destfile}"/>
                   <classpath>
                        <pathelement path="${cp}"/>
                   </classpath>
              </java>
         </target>
    And Error is :
    [java] Usage: java weblogic.appc [options] <ear, jar, war or rar file or directory>
    [java] where options include:
    [java] -help Print the standard usage message.
    [java] -version Print version information.
    [java] -output <file> Specifies an alternate output archive or
    [java] directory. If not set, output will be
    [java] placed in the source archive or directory.
    [java] -plan <file> Specifies an optional deployment plan.
    [java] -forceGeneration Force generation of EJB and JSP classes.
    [java] Without this flag the classes may not be
    [java] regenerated if it is determined to be
    [java] unnecessary.
    [java] -quiet Turns off output except for errors
    [java] -lineNumbers Add JSP line numbers to generated class
    [java] files to aid in debugging.
    [java] -library <file> Comma-separated list of libraries. Each
    [java] library may optionally set its name and
    [java] versions, if not already set in its
    [java] manifest, using the following syntax: <file>
    [java] [@name=<string>@libspecver=<version>
    [java] @libimplver=<version|string>]
    [java] -librarydir <dir> Registers all files in specified directory
    [java] as libraries.
    [java] -keepgenerated Keep the generated .java files.
    [java] -verbose Compile with verbose output.
    [java] -classpath <path> Classpath to use.
    [java] -source <source> Source version.
    [java] -advanced Print advanced usage options.
    [java] <Aug 10, 2006 12:45:07 PM IST> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile your application. Recompile with the -verbose option for more details. Please see the error message(s) below.>
    [java] [J2EE:160128]ERROR: Incorrect appc command-line. Too many arguments were given. The command-line only takes a single argument, the source file, in addition to the supported options.
    [java] Java Result: 1
    I'm not sure how to proceed.Please suggest
    Thanks
    Smita

  • [svn:osmf:] 17245: Fix build problems for Zeri Certification Projects.

    Revision: 17245
    Revision: 17245
    Author:   [email protected]
    Date:     2010-08-09 17:20:33 -0700 (Mon, 09 Aug 2010)
    Log Message:
    Fix build problems for Zeri Certification Projects.
    Modified Paths:
        osmf/trunk/apps/certification/zeri/FlexUnit4UIListener/flexunit4uilistener-build-config-1 0-1.xml
        osmf/trunk/apps/certification/zeri/ZeriCertificationPlayer/zericertificationplayer-build- config-10-1.xml
        osmf/trunk/apps/certification/zeri/ZeriCertificationTest/src/ZeriCertificationTest.mxml
        osmf/trunk/apps/certification/zeri/ZeriCertificationTest/src/ZeriTests.mxml
        osmf/trunk/apps/certification/zeri/ZeriCertificationTest/zericertificationtest-build-conf ig-10-1.xml

    Revision: 17245
    Revision: 17245
    Author:   [email protected]
    Date:     2010-08-09 17:20:33 -0700 (Mon, 09 Aug 2010)
    Log Message:
    Fix build problems for Zeri Certification Projects.
    Modified Paths:
        osmf/trunk/apps/certification/zeri/FlexUnit4UIListener/flexunit4uilistener-build-config-1 0-1.xml
        osmf/trunk/apps/certification/zeri/ZeriCertificationPlayer/zericertificationplayer-build- config-10-1.xml
        osmf/trunk/apps/certification/zeri/ZeriCertificationTest/src/ZeriCertificationTest.mxml
        osmf/trunk/apps/certification/zeri/ZeriCertificationTest/src/ZeriTests.mxml
        osmf/trunk/apps/certification/zeri/ZeriCertificationTest/zericertificationtest-build-conf ig-10-1.xml

  • Ant build script for WebLogic Portal 10.3 projects

    Hi Friends,
    I am going thru this document http://download.oracle.com/docs/cd/E12840_01/wlw/docs103/guide/ideuserguide/build/conUseCustomAntBuild.html#metadata about building ant script for my portal project. The document does not state few things clearly. Can you please help me to understand.
    It says:
    To Build an EAR File Using the Ant Script:
    1. Generate the Ant script for each project in the EAR.
    2. Generate the Ant script for the EAR project.
    3. Configure the execution environment of your shell by executing wl.home/common/bin/commEnv.sh
    4. Change to the Eclipse directory for the EAR project.
    5. Execute the desired target in the EAR project's Ant script as follows:
    ant build archive -Dworkspace=workspacepath
    A) When I generate ant script, workshop generates build.xml file in each project directory and that includes EAR project as well. Then, point 2 is not clear, how do I generate another ant script (build.xml) for the EAR project?
    B) I do not understand, "change to the eclipse directory for the EAR project". Does it mean, change to the directory of EAR project folder which has build.xml?
    C) in step-5, execute the desired target, when I execute it, how it will know where are other build.xml files for other projects?
    Regards,
    JT

    Hi Greg,
    I moved little bit but then got stuck with new kind of error.
    a. First of all, my application has a 'data' project (.usr) file. When I try to generate ant scripts (build.xml), it says that 'data' project is not compatible with Workshop ant scripts. However, Workshop inbuilt EXPORT->EAR is able to build the projects without any error.
    b. So, I thought, let's put a dummy build.xml file under 'data' project directory. This let ant build to proceed further. However, now it fails with error that <web project>/build.xml (line no. 122). Which is nothing but memory declaration (memoryMaximumSize="1024m"). The error says, 'unable to launch apt compiler', I am not able to understand what is it? The other projects' (ejb, controls etc.) build.xml has this declaration but they did not give this error, they built fine.
    <web project>/build.xml
    <target name="build" depends="init" description="compiles the source files; does not package the results">
    <if>
    <isreference refid="apt.factory.path"/>
    <then>
    <mkdir dir="${apt.src.output.dir}"/>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.dir}"/>
    <then>
    <mkdir dir="${.java.src.output}"/>
    <apt
    sourcepath="${java.sourcepath}"
    srcdir="${.java.src.dir}"
    includes="${.java.src.include}"
    excludes="${.java.src.exclude}"
    destdir="${.java.src.output}"
    preprocessdir="${apt.src.output.dir}"
    classpathref="java.classpath"
    factorypathref="apt.factory.path"
    options="${apt.options}"
    compile="false"
    memoryMaximumSize="1024m"/>
    </then>
    </if>
    </for-each-java-src-path>
    </then>
    </if>
    Regards,
    JT
    Edited by: user6917422 on Apr 1, 2009 9:29 PM
    Edited by: user6917422 on Apr 1, 2009 9:57 PM

  • Error in Ant APT task when using exported WLP 10.3 Ant build scripts

    Hi -
    I'm trying to run the exported ANT build scripts for a default portal web app from the command line (either a windows shell or a cygwin shell) and I get the following error on both occasions :
    c:\BEA\Projects\PortalTutorials\tutorial-portal-web\build.xml:122: Apt task requires Java 1.5+
    More details :
    $ ant -v -Dworkspace=C:\\BEA\\Workspaces\\PortalTutorials\\workspace.xml
    Apache Ant version 1.7.1 compiled on June 27 2008
    Buildfile: build.xml
    Detected Java version: 1.6 in: c:\BEA_10.3\jdk160_05\jre
    Detected OS: Windows XP
    parsing buildfile c:\BEA\Projects\PortalTutorials\tutorial-portal-web\build.xml with URI = file:/c:/BEA/Projects/PortalTutorials/tutorial-portal-web/build.xml
    Project base dir set to: c:\BEA\Projects\PortalTutorials\tutorial-portal-web
    [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
    Build sequence for target(s) `build' is [init.env, check.params, check.versions, init.typedefs, init, build]
    Complete build sequence is [init.env, check.params, check.versions, init.typedefs, init, build, stage, archive, clean, clean.all, assemble, generated.root.init, assembly, stage.to.ear, ]
    init.env:
    [property] Loading Environment env.
    check.params:
    Property "env.WORKSHOP_WORKSPACE" has not been set
    check.versions:
    init.typedefs:
    [echo] Using Workshop Libraries located in the "C:\BEA\Workspaces\PortalTutorials\workshop-lib" directory.
    parsing buildfile jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml with URI = jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml
    parsing buildfile jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/ant-contrib.jar!/net/sf/antcontrib/antlib.xml with URI = jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/ant-contrib.jar!/net/sf/antcontrib/antlib.xml
    Trying to override old definition of task apt
    [macrodef] creating macro structselector
    [presetdef] defining preset resolve
    [macrodef] creating macro for-each-java-src-path
    [macrodef] creating macro for-each-resource-path
    [macrodef] creating macro for-each-referenced-component
    [macrodef] creating macro for-each-referenced-project
    [macrodef] creating macro for-each-project-in-build-order
    parsing buildfile jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/workshop-wls-antlib.jar!/com/bea/workshop/wls/antlib/antlib.xml with URI = jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/workshop-wls-antlib.jar!/com/bea/workshop/wls/antlib/antlib.xml
    Trying to override old definition of task jspc
    init:
    Property "patch.home" has not been set
    build:
    [mkdir] Skipping c:\BEA\Projects\PortalTutorials\tutorial-portal-web\.apt_src because it already exists.
    [available] Found: src\main\java
    [mkdir] Skipping c:\BEA\Projects\PortalTutorials\tutorial-portal-web\build\classes because it already exists.
    [apt] [web.content.root]|[c:\BEA\Projects\PortalTutorials\tutorial-portal-web/src/main/webapp]
    [apt] [web.source.roots]|[c:\BEA\Projects\PortalTutorials\tutorial-portal-web/src/main/java]
    BUILD FAILED
    c:\BEA\Projects\PortalTutorials\tutorial-portal-web\build.xml:106: The following error occurred while executing this line:
    jar:file:/C:/BEA/Workspaces/PortalTutorials/workshop-lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antlib.xml:54: The following error occurred while executing this line:
    c:\BEA\Projects\PortalTutorials\tutorial-portal-web\build.xml:122: Apt task requires Java 1.5+
    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)
    I tried using a lower JDK 1.5.x - but that failed as well (complaining that 1.6 was needed).
    Any help will be appreciated.
    Rgds/Deepak

    Hi,
    Have you find a solution for this problem?
    I have exactly the same one. I must build my web-services with some dependence compiled on java 1.6 so I need to use the APT task with a java 1.6 but the problem "Apt task requires Java 1.5+" appear.
    Thanks in advance for your answer.

  • Ant File Problem in Eclipse

    Hey guys,
    I am having alot of trouble getting a simple ant buildfile to work in eclipse.
    I am following the tutorial on here (the part about ant files):
    http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.user/gettingStarted/qs-93_project_builder.htm
    I have created a simple java project called HelloWorld and created a build file below in a package 'org':
    <?xml version="1.0" encoding="UTF-8"?>
    <project name="HelloWorld" default="Hello" basedir=".">
    <property name="HelloText" value="Hello"/>
        <target name="Hello">
            <echo>${HelloText}</echo>
        </target>
    </project>According to the tutorial, I should get an outline in Eclipse (i use 3.2), etc, etc however I only get problems:
    - Whenever I save the file I get "Save Failed: org/apache/tools/ant/launch/AntMain"
    - When I attempt to add the buildfile to the 'Ant' pane on the right, I get error:
    "failed to parse ant build file"
    If anyone has any advice on how to get a simple ant file like the one above working, it would be so much appreciated!
    Thanks
    Gerry
    ant newbie

    doremifasollatido wrote:
    cotton.m wrote:
    Hey dore! What a pleasant surprise seeing you here.Thanks! Yep, I'm here. Not so late as there. :-P
    Just thought I'd see what was going on around here these days (not that I figured much would change,the more things change...
    but always good to log in and answer a few questions at least now and again).Indeed, very much so.
    PS NR sent me an invite to another job networking site I will respond but I don't think I will be of much help, but I do know who NR is because sometimes he seems to think I won't know though I don't know many other NRs so it's hard to not know. You know. ;)

  • Calling ant script from another's project ant script

    Hello there,
    I would like to ask something about ant script. Sorry if this is not the right forum but I could not find a better one.
    I have 2 projects ProjectA and ProjectB in 2 different direcory structures, that contain 2 different build.xml files. I am trying to call ant of ProjectA inside the build.xml file of ProjectB like the following:
             <!-- inside build.xml of ProjectB-->
            <target name="buildProjectA">
                <ant antfile="${ProjectA.root}/build.xml" dir="${ProjectA.root}" inheritAll="false"/>
            </target>Unfortunately I get a different output than calling ant for Project A from the command prompt. Shouldn't this call to ant for ProjectA from ProjectB be exactly the same as calling ant from the command Prompt

    thanks for your reply,
    the problem is not that it does not file the xml file (although you re right, I changed it) but that later on in the building it behaves differently
    So, basically, what I want to know, is this the right way I am doing it or the two approaches are different cause in my approach ant is not called from the project's directory but from another ant script?

  • ANT build.xml file

    My build.xml must have problems, because the jar size is way smaller than the JBuilder equivalent. I think it is not including the 3rd party Jars that I want it to include.
    Additionally, it builds, but when I execute it I get strange errors indicating it can't find certain system classfiles.
    Here is the build file:
    <project name="JAutoTest" default="dist" basedir=".">
    <!-- set global properties for this build -->
    <property name="src" value="src"/>
    <property name="build" value="build"/>
    <property name="test" value="jAutoTool"/>
    <property name="dist" value="dist"/>
    <property name="doc" value="doc"/>
    <property name="Name" value="JAutoTest"/>
    <property name="packages" value="jAutoTool.*"/>
    <path id="project.class.path">
    <pathelement location="lib/"/>
    <pathelement location="jAutoTool/"/>
    <pathelement path="${java.class.path}/"/>
    </path>
    <target name="check_for_optional_packages">
    <available property="java.reflection" classname="java.lang.reflect"/>
    </target>
    <target name="prepare">
    <!-- Create the time stamp -->
    <tstamp/>
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>
    <mkdir dir="${test}"/>
    <mkdir dir="${doc}"/>
    </target>
    <target name="compile" depends="prepare,check_for_optional_packages">
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}" debug="on" deprecation="off" optimize="on">
    <classpath refid="project.class.path"/>
    </javac>
    </target>
    <target name="genDoc" depends="compile">
    <javadoc packagenames="${packages}" sourcepath="${basedir}/${src}" destdir="${doc}" author="true" version="true" windowtitle="${Name} API" doctitle="${Name}" bottom="Copyright � 2001 Motorola, Inc. All Rights Reserved."/>
    </target>
    <target name="dist" depends="compile">
    <!-- Create the ${dist}/lib directory -->
    <mkdir dir="${dist}/lib"/>
    <!-- Put everything in ${build} into the JAutoTest-${DSTAMP}.jar file -->
    <jar jarfile="${dist}/lib/JAutoTest-${DSTAMP}.jar" basedir="${build}"
              manifest="${dist}/META-INF/MANIFEST.MF">
              <zipgroupfileset dir="lib" includes="*.jar"/>
         </jar>
    </target>
    <target name="clean">
    <!-- Delete the ${build} and ${dist} directory trees -->
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
    </target>
    </project>
    I have the other jars at /lib.
    The error I am getting is:
    D:\testjTool\dist\lib>java -jar *.jar
    Uncaught error fetching image:
    java.lang.NullPointerException
    at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:102)
    at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:111)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.j
    ava:251)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:217)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:185)
    Thanks.

    The error I am getting is:
    D:\testjTool\dist\lib>java -jar *.jar
    Uncaught error fetching image:
    java.lang.NullPointerException
    at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:102)
    at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:111)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.j
    ava:251)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:217)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:185)
    Classpath is:
    D:\testjTool>set CLASSPATH=\testjTool\build;c:\JBuilder4\lib\HTTPClient.jar;c:\J
    Builder4\lib\htmlparser.jar;c:\JBuilder4\lib\classes12;c:\JBuilder4\lib\classes12\javax.jar;c:\JBuilder4\lib\dbswing.jar;c:\JBuilder4\lib\jbcl.jar;.;
    The ant build works, but the executable is 1/2 the size of the
    JBuilder one.

Maybe you are looking for

  • Can I use GarageBand to record live from an external soundboard?

    My Church Band uses a sound board to play, and have asked me to do a video of the next performance. I want to capture the sound, using the band's soundboard. I can hook that up to my MacBook Air via USB cable. But then what do I do? How do I pipe the

  • How to use Count with Date Parameters

    Hello, I am having issues using the Count() function in conjunction with date parameters. This is a Siebel report and in my report I have 2 date parameters(From Date, To Date). In a nutshell I am basically trying to count Opportunities that has a sta

  • Files will not open on my 6600

    I can not open the gallery,file manager and calendar in my nokia 6600, I already change a new MMC. What to do?

  • Why do i keep getting these errors and how to fix them?!?!?

    first time i tried inserting a spry data set using a XML source i got the message "expected equal sign(7,10)".  since i could not figure out how to fix it a started a new.  this time i am getting the message "unterminated entity reference, 'm'(25,27)

  • Several attempts are required to close ADF Panel called from JButton.

    Hi all, I have created an ADF Panel, which allows the user to run a few simple queries against an Oracle database done using ADF view objects and ADF view links and ADF application module. Here is the description of my problem, I am sorry about the l