Exported ANT build hangs on clean target

I've exported an ant build file. When I try to run this ANT build file from the command line, it stalls on a clean target in the portal project.
The custom controls project compiles fine, and the same with data project (which part of the standard portal setup), but when the real portal projects starts to build it hangs with the following trace:
[wlwBuild] [Build] Application Build Status: tk_portal
[wlwBuild] [Build] BUILD STARTED
[wlwBuild] [Build] build:
[wlwBuild] [Build] clean:
It's a rather large portal project.
Anyone experienced something similar?
Trond Andersen, Invenia AS, +4798290811

Most likely you're seeing a Windows file sharing violation issue. It's likely that the other process holding the file you're trying to delete is WebLogic itself. You could try stopping the server before you do the command-line build.
It's handy to have a tool like "ProcessExplorer" from SysInternals for situations like this. You can use it to determine which processes have a file handle open. You can use SysInternal's "FileMon" tool to see what file handles are being referenced in real-time.

Similar Messages

  • 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

  • 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

  • Problem with Exported ant build script(WLS 8.1SP4) working with IBMJDK1.4.2

    Hi,
    I am trying to use the exported ant script from wls workshop for building the process application.But i am using IBM JDK 1.4.2 in AIX 5.2 box.
    IBM has disintegrated the rt.jar by SUN into a number of other jar files.When i run the ant script, i have a problem like,
    <b>classpath error:unable to find required rt.jar</b>
    error and the build fails with
    <b>noClassDefFoundError:org.apache/crimson/tree/XmlDocument</b>
    I tried adding <b>rt.jar</b> into the classpath forcibly but it did not work out.
    The ear file is built and packaged but the build fails.+
    Do we have a fix for this either by bea or IBM?
    Thanks,
    Vijay

    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

  • IOS Export Release Build hangs with FB4.7

    I recently updated to FB4.7 running AIR 3.4 on my Macbook Air under Lion 10.7.5.
    My project contains a large number of embeded files and when debugging under FB4.6 I was often encountering Java Heap Errors and lots of out of memory errors. However, I was able to put up with those errors and still export working release builds.
    Under FB4.7 I am able to compile DEBUG builds now without the problems I was having under FB4.6. However, when I attempt to export an iOS release build using the IDE under FB4.7 the process always just hangs (at Packaging 0%) and never completes (even after waiting hours).
    If I create a small test project under FB4.7, I am able to export a release build successfully. So I believe my FB install is working.
    I've tried bumping up the xms and xmx settings in the Flash Builder 4.7.ini file to 2048m, but that has made no difference to the problem.
    I suspect that the large number of embeded files that I have in my project may be contributing to the problem. The embeded files are primarily all UI artwork as my app supports all the different iOS screen resolutions.
    Short of restructuring my entire project to remove all the embeded files (which I really do not want to do at this point) is there anything else that can be done to get FB4.7 to succesfully export an iOS release build?

    Hi Sanjay,
    Thanks for the quick reply! Hereby the extra info:
    1. -Xmx2048m
    2. We are using ATF files with all three textures included (around 14 MB for @2x and 8 MB for @1x). We could exclude the DXT and ETC ones, but than we need to create them for all separately. Thereby we are not done with the project so the size will still increase, than it is a solution for a short time.
    3. I just tried with the following results:
    At the beginning it is giving some warnings:
    Exception in thread "main" com.adobe.air.ipa.ProcessError: Assembler failed
              at com.adobe.air.ipa.AOTCompiler.launchProcess(AOTCompiler.java:271)
              at com.adobe.air.ipa.AOTCompiler.compileModule(AOTCompiler.java:1444)
              at com.adobe.air.ipa.AOTCompiler.compileBitcodeImpl(AOTCompiler.java:1342)
              at com.adobe.air.ipa.ASMGenerator.main(ASMGenerator.java:68)
    Exception in thread "main" com.adobe.air.ipa.ProcessError: Assembler failed
              at com.adobe.air.ipa.AOTCompiler.launchProcess(AOTCompiler.java:271)
              at com.adobe.air.ipa.AOTCompiler.compileModule(AOTCompiler.java:1444)
              at com.adobe.air.ipa.AOTCompiler.compileBitcodeImpl(AOTCompiler.java:1342)
              at com.adobe.air.ipa.ASMGenerator.main(ASMGenerator.java:68)
    Undefined symbols for architecture armv7:
    After that, a lot of lines are shown with this at the end:
    ld: symbol(s) not found for architecture armv7
    Compilation failed while executing : ld64
    Any idea?
    Thanks,
    Ben

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

  • Export Release Build error

    I am exporting AIR project and getting the following error after providing a certificate:
    "Error occurred while saving the project settings: "default" build target cannot be found for the selected project."
    I am using FB 4.5.
    Thanks

    I get this error as well everytime I create a mobile project in the lastest version of Launchpad, import the resulting files into Flex Builder 4.5 then try to export the project as a signed AIR desktop app. Exporting Release Build to a mobile target device works fine however.
    Here is my log file as well:
    !ENTRY com.adobe.flexbuilder.project 4 43 2011-09-09 17:33:29.640
    !MESSAGE Failed to get build target settings: default
    !STACK 0
    java.lang.Exception
         at com.adobe.flexbuilder.project.internal.FlexProjectCore.createErrorStatus(FlexProjectCore. java:1009)
         at com.adobe.flexbuilder.util.logging.GlobalLogImpl.log(GlobalLogImpl.java:66)
         at com.adobe.flexbuilder.util.logging.GlobalLog.log(GlobalLog.java:52)
         at com.adobe.flexbuilder.project.ui.utils.ProjectBuildPackagingUI.doApplySettings(ProjectBui ldPackagingUI.java:754)
         at com.adobe.flexbuilder.project.ui.utils.ProjectBuildPackagingUI.applySettings(ProjectBuild PackagingUI.java:781)
         at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionBuildPackagingPa geContent.saveSettings(ExportReleaseVersionBuildPackagingPageContent.java:131)
         at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionBuildPackagingPa ge.saveSettings(ExportReleaseVersionBuildPackagingPage.java:84)
         at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.performFi nish(ExportReleaseVersionWizard.java:144)
         at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430)
         at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
         at org.eclipse.jface.window.Window.open(Window.java:801)
         at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction$1.run(Export ReleaseVersionAction.java:97)
         at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction.run(ExportRe leaseVersionAction.java:103)
         at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
         at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionI tem.java:584)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java :411)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
         at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    Update:
         As a work around, I tried to export it as an unsigned airi, then manually signed it with ADT using a self signed certificate and it worked perfectly...
    Message was edited by: Jason Woodcock

  • What is the differences between Ant build jar and eclipse export jar ?

    I have tried the eclipse export method to generate a jar file, however, it doesn't work with my server. But when I write a ant build file to create jar file. It works!!
    Does any buddies know why?

    Difference betwen JAR AND WAR
    .jar files: These files are with the .jar extension. The .jar files contain the libraries, resources and accessories files like property files.
    .war files: These files are with the .war extension. The war file contains the web application that can be deployed on the any servlet/jsp container. The .war file contains jsp, html, javascript and other files for necessary for the development of web applications.
    Source:
    http://forum.java.sun.com/thread.jspa?threadID=485823&messageID=2273976
    The main difference between a JAR and a WAR is that a JAR is not really a single purpose format, while a WAR is. With a JAR file, you can package lots of different things. Usually you package up Java classes, but you could put pretty much anything into a JAR file, and you can create JARs that have whatever files and directory formats you want. For instance, Oracle (at least in 8.1.x) actually uses JAR files to distribute the Oracle software on the install CDs, and IBM uses them to distribute an installable version of the documentation for WebSphere. Technically you can put JSP pages, HTML pages, servlet classes, etc. in a JAR, but you generally don't -- you use a WAR.
    WAR files are JAR files with a specific format. This format is defined in the servlet spec (which you can look at on the java.sun.com site). Essentially, the WAR file is a standard format for web applications that has specific directories and specific files. This includes a WEB-INF directory, a WEB-INF/web.xml file used to describe the application, a WEB-INF/lib directory for JAR files used by the application, and a WEB-INF/classes directory for class files that aren't distributed in a JAR. You would put the pages (JSPs and HTML) in the WAR as well. Then, you can distribute your application as one file, instead of as a collection of images, HTML pages, and Java classes.
    Source:
    http://www.theserverside.com/discussions/thread.tss?thread_id=10905
    Message was edited by:
    lochdsmile

  • Exported ant script -- NoClassDefFound?

    I've exported ant script from workshop (wls9.2 eclipse) and I was able to build the app.war (web services) ok.
    However I saw message like this:
    "assembly: Imput fileset contained no files, nothing to do."
    And when I deployed the war to server and tried to access the webservices, it gave me NoClassDefFound error.
    Also I noticed that the ".staging" directory has empty "lib" dir under it.
    Does anyone know how to fix it?
    Here is the generated build.xml and workspace.xml.
    ========================= workspace.xml==============
    <?xml version="1.0" encoding="UTF-8"?>
    <node name="metadata">
    <node name="projects">
    <node name="billingservice">
    <attribute name="location" value="C:/home/rlee/projects/telepacific/billingservice"/>
    </node>
    </node>
    <node name="library-modules">
    <node name="library-module">
    <attribute name="location" value="%wl.home%/common/deployable-libraries/wls-commonslogging-bridge.war"/>
    </node>
    <node name="library-module">
    <attribute name="location" value="%wl.home%/common/deployable-libraries/weblogic-controls-1.0.war"/>
    </node>
    <node name="library-module">
    <attribute name="location" value="%wl.home%/common/deployable-libraries/beehive-controls-1.0.war"/>
    </node>
    </node>
    <node name="server-runtimes">
    <node name="BEA WebLogic v9.2">
    <attribute name="location" value="%wl.home%"/>
    </node>
    </node>
    <node name="vm-locations">
    <attribute name="defaultVM" value="C:/bea/wls922/jdk150_10"/>
    <node name="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/BEA WebLogic v9.2 JRE">
    <attribute name="location" value="c:/bea/wls922/jrockit90_150_10"/>
    </node>
    </node>
    <node name="classpath-vars">
    <node name="SDKS_HOME">
    <attribute name="value" value="c:/home/rlee/projects/mpower/sdks"/>
    </node>
    <node name="WEBLOGIC_HOME">
    <attribute name="value" value="%wl.home%"/>
    </node>
    </node>
    </node>
    ======================= end of workspace.xml==============
    ==================== exported build.xml ====================
    <project default="build">
    <description>
    Project build script. All public targets require the "workspace" property to be
    set at invocation. It can either point at the Eclipse workspace directory that
    this project belongs to or an exported workspace.xml file. The wl.home property
    may also need to be specified unless WL_HOME environment variable is defined.
    </description>
    <target name="init.env" unless="init.env.executed">
    <property name="init.env.executed" value="true"/>
    <property environment="env"/>
    <condition property="wl.home" value="${env.WL_HOME}">
    <isset property="env.WL_HOME"/>
    </condition>
    <fail unless="wl.home" message="The wl.home property needs to be set!"/>
    </target>
    <target name="init.typedefs" depends="init.env" unless="init.typedefs.executed">
    <property name="init.typedefs.executed" value="true"/>
    <typedef resource="com/bea/wlw/antlib/antlib.xml">
    <classpath>
    <fileset dir="${wl.home}">
    <include name="workshop/lib/wlw-antlib.jar"/>
    <include name="workshop/lib/wlw-util.jar"/>
    <include name="workshop/lib/wlw-libmodules.jar"/>
    <include name="workshop/lib/wlw-splitsrc.jar"/>
    <include name="server/lib/ant/ant-contrib-1.0b1.jar"/>
    </fileset>
    </classpath>
    </typedef>
    </target>
    <target name="init" depends="init.env,init.typedefs" unless="init.executed">
    <property name="init.executed" value="true"/>
    <fail unless="workspace" message="The workspace property needs to be set!"/>
    <dirname property="project.dir" file="${ant.file}"/>
    <property name="echo.metadata" value="false"/>
    <mdimport workspace="${workspace}" pjdir="${project.dir}" echo="${echo.metadata}">
    <option name="skipAnnotationProcessors" value="com.bea.wlw.webservices.core"/>
    </mdimport>
    <property name="archive.name" value="${project.name}.war"/>
    <property name="uri" value="${archive.name}"/>
    <taskdef name="xmlbean"
    classname="org.apache.xmlbeans.impl.tool.XMLBean">
    <classpath>
    <pathelement path="${wl.home}/common/lib/apache_xbean.jar"/>
    <pathelement path="${wl.home}/common/eclipse/plugins/com.bea.eclipse.common.lib.apache_xbean2/jsr173_api.jar"/>
    </classpath>
    </taskdef>
    <property name="generated.module.root" value="${project.dir}/build/weboutput"/>
    <property name="assembly.src" value="${project.dir}/build/assembly/.src"/>
    </target>
    <target name="build" depends="init" description=" compiles the source files; does not package the results">
    <for list="0,1,2,3,4,5,6,7,8,9" param="i">
    <sequential>
    <if>
    <and>
    <isset property="xbean.src.@{i}.dir"/>
    <available file="${xbean.src.@{i}.dir}"/>
    </and>
    <then>
    <fileset id="xbean.src.paths.@{i}"
    dir="${xbean.src.@{i}.dir}"
    includes="${xbean.src.@{i}.include}"
    excludes="${xbean.src.@{i}.exclude}"/>
    </then>
    <else>
    <fileset id="xbean.src.paths.@{i}"
    file="null_file_set"/>
    </else>
    </if>
    </sequential>
    </for>
    <if>
    <isset property="xbean.include-classpath-contributions"/>
    <then>
    <path id="xbean.classpath">
    <path refid="java.classpath"/>
    </path>
    </then>
    <else>
    <path id="xbean.classpath">
    <pathelement location="${wl.home}/common/lib/apache_xbean.jar"/>
    </path>
    </else>
    </if>
    <mkdir dir="${xbean.src.output.dir}"/>
    <mkdir dir="${xbean.bin.output.dir}"/>
    <xmlbean
    javasource="${xbean.java-version}"
    download="${xbean.download-network-urls}"
    typesystemname="${xbean.schema-type-name}"
    noupa="${xbean.unique-particle-attribution}"
    nopvr="${xbean.particle-valid-restriction}"
    noannotations="${xbean.skip-annotations}"
    ignoreDuplicatesInNamespaces="${xbean.namespaces-to-ignore-dups}"
    srcgendir="${xbean.src.output.dir}"
    classgendir="${xbean.bin.output.dir}"
    classpathref="xbean.classpath"
    srconly="true">
    <fileset refid="xbean.src.paths.0"/>
    <fileset refid="xbean.src.paths.1"/>
    <fileset refid="xbean.src.paths.2"/>
    <fileset refid="xbean.src.paths.3"/>
    <fileset refid="xbean.src.paths.4"/>
    <fileset refid="xbean.src.paths.5"/>
    <fileset refid="xbean.src.paths.6"/>
    <fileset refid="xbean.src.paths.7"/>
    <fileset refid="xbean.src.paths.8"/>
    <fileset refid="xbean.src.paths.9"/>
    </xmlbean>
    <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"/>
    </then>
    </if>
    </for-each-java-src-path>
    </then>
    </if>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.dir}"/>
    <then>
    <mkdir dir="${.java.src.output}"/>
    <javac
    sourcepath="${java.sourcepath}"
    srcdir="${.java.src.dir}"
    includes="${.java.src.include}"
    excludes="${.java.src.exclude}"
    destdir="${.java.src.output}"
    classpathref="java.classpath"
    debug="on"/>
    </then>
    </if>
    </for-each-java-src-path>
    <delete dir="${generated.module.root}"/>
    <mkdir dir="${generated.module.root}"/>
    <resolve-path property="user.web.xml" path="WEB-INF/web.xml"/>
    <resolve-path property="user.weblogic.xml" path="WEB-INF/weblogic.xml"/>
    <copy todir="${generated.module.root}/WEB-INF" file="${user.web.xml}" />
    <copy todir="${generated.module.root}/WEB-INF" file="${user.weblogic.xml}" failonerror="false" />
    </target>
    <target name="clean" depends="init" description=" removes the files and directories generated by the build target">
    <if>
    <available file="${xbean.src.output.dir}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${xbean.src.output.dir}" includes="**/*"/>
    </delete>
    </then>
    </if>
    <if>
    <available file="${xbean.bin.output.dir}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${xbean.bin.output.dir}" includes="**/*"/>
    </delete>
    </then>
    </if>
    <if>
    <available file="${apt.src.output.dir}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${apt.src.output.dir}" includes="**/*"/>
    </delete>
    </then>
    </if>
    <for-each-java-src-path>
    <if>
    <available file="${.java.src.output}"/>
    <then>
    <if>
    <equals arg1="${.java.src.dir}" arg2="${.java.src.output}"/>
    <then>
    <delete includeEmptyDirs="true">
    <fileset dir="${.java.src.output}">
    <or>
    <filename name="**/*.class"/>
    <and>
    <type type="dir"/>
    <depth min="0"/>
    </and>
    </or>
    </fileset>
    </delete>
    </then>
    <else>
    <delete includeEmptyDirs="true">
    <fileset dir="${.java.src.output}" includes="**/*"/>
    </delete>
    </else>
    </if>
    </then>
    </if>
    </for-each-java-src-path>
    <delete dir="${assembly.src}"/>
    <delete dir="${generated.module.root}"/>
    <mkdir dir="${generated.module.root}"/>
    </target>
    <target name="assemble" depends="init" description=" assembles the project for iterative dev deployment; requires that the "ear.root" property is specified">
    <property name="prefix" value=""/>
    <for-each-resource-path>
    <link ear="${ear.root}" source="${.resource.path}" target="${prefix}${uri}/${.resource.prefix}"/>
    </for-each-resource-path>
    <!-- Link in referenced utility projects into the WEB-INF/lib directory. -->
    <for-each-referenced-component>
    <if>
    <and>
    <equals arg1="${.referenced.component.type}" arg2="project"/>
    <equals arg1="${.referenced.component.target.path}" arg2="WEB-INF/lib"/>
    </and>
    <then>
    <antex
    antfile="${.referenced.component.handle}/build.xml"
    dir="${.referenced.component.handle}"
    target="assemble"
    inheritUserProps="false"
    inheritAll="false"
    inheritRefs="false">
    <property name="wl.home" value="${wl.home}"/>
    <property name="patch.home" value="${patch.home}"/>
    <property name="workspace" value="${workspace}"/>
    <property name="init.typedefs.executed" value="true"/>
    <property name="ear.root" value="${ear.root}"/>
    <property name="prefix" value="${uri}/WEB-INF/lib/"/>
    </antex>
    </then>
    </if>
    </for-each-referenced-component>
    <link ear="${ear.root}" source="${xbean.bin.output.dir}" target="${link.target}"/>
    <link ear="${ear.root}" source="${generated.module.root}" target="${uri}"/>
    <antcall target="assembly" inheritAll="true" inheritRefs="true" >
    <param name="ear.root" value="${ear.root}"/>
    </antcall>
    <antcall target="webservice.build" inheritAll="true" inheritRefs="true" />
    </target>
    <target name="stage" depends="init" description=" copies all of project's resources and build artifacts into a form that's ready for archive creation; staging directory can be overridden via the "staging.dir" property">
    <antcall target="assembly" inheritAll="true" inheritRefs="true" >
    <param name="ear.root" value="${ear.staging.dir}"/>
    </antcall>
    <antcall target="webservice.build" inheritAll="true" inheritRefs="true" />
    <property name="staging.dir" value="${project.dir}/.staging"/>
    <delete dir="${staging.dir}" quiet="true"/>
    <mkdir dir="${staging.dir}"/>
    <for-each-resource-path>
    <if>
    <available file="${.resource.path}"/>
    <then>
    <if>
    <isfile path="${.resource.path}"/>
    <then>
    <copy file="${.resource.path}" tofile="${staging.dir}/${.resource.prefix}"/>
    </then>
    <else>
    <copy todir="${staging.dir}/${.resource.prefix}">
    <fileset dir="${.resource.path}" includes="${.resource.include}" excludes="${.resource.exclude}"/>
    </copy>
    </else>
    </if>
    </then>
    </if>
    </for-each-resource-path>
    <!-- Packaged referenced utility projects into the WEB-INF/lib directory. -->
    <property name="webinflib" value="${staging.dir}/WEB-INF/lib"/>
    <mkdir dir="${webinflib}"/>
    <for-each-referenced-component>
    <if>
    <and>
    <equals arg1="${.referenced.component.type}" arg2="project"/>
    <equals arg1="${.referenced.component.target.path}" arg2="WEB-INF/lib"/>
    </and>
    <then>
    <antex
    antfile="${.referenced.component.handle}/build.xml"
    dir="${.referenced.component.handle}"
    target="archive"
    inheritUserProps="false"
    inheritAll="false"
    inheritRefs="false">
    <property name="wl.home" value="${wl.home}"/>
    <property name="patch.home" value="${patch.home}"/>
    <property name="workspace" value="${workspace}"/>
    <property name="init.typedefs.executed" value="true"/>
    <property name="archive.dir" value="${webinflib}"/>
    </antex>
    </then>
    </if>
    </for-each-referenced-component>
    <copy todir="${staging.dir}/${xbean.deploy.prefix}">
    <fileset dir="${xbean.bin.output.dir}"/>
    </copy>
    <if>
    <available file="${generated.module.root}"/>
    <then>
    <copy todir="${staging.dir}" overwrite="true">
    <fileset dir="${generated.module.root}"/>
    </copy>
    </then>
    </if>
    <taskdef name="build-manifests"
    classname="weblogic.ant.taskdefs.build.AnnotationManifestTask"
    onerror="fail" />
    <path id="annotation.manifest.search.path">
    <fileset dir="${staging.dir}">
    <include name="WEB-INF/lib/*.jar"/>
    </fileset>
    <pathelement location="${staging.dir}/WEB-INF/classes"/>
    </path>
    <path id="annotation.manifest.class.path">
    <path refid="annotation.manifest.search.path"/>
    <path refid="java.classpath"/>
    </path>
    <build-manifests moduleDir="${staging.dir}"
    searchClasspathRef="annotation.manifest.search.path"
    classpathRef="annotation.manifest.class.path"
    verbose="true"
    version=""
    stagingDir="${java.io.tmpdir}/.manifest"/>
    </target>
    <target name="archive" depends="stage" description=" creates an archive containing all projects's resources and build artifacts; archive name and location can be overridden via the "archive.path" property">
    <property name="archive.dir" value="${project.dir}"/>
    <mkdir dir="${archive.dir}"/>
    <zip destfile="${archive.dir}/${archive.name}" encoding="UTF8" whenempty="create">
    <fileset dir="${staging.dir}"/>
    </zip>
    </target>
    <target name="stage.to.ear" depends="init">
    <property name="prefix" value=""/>
    <antcallex target="archive" inheritUserProps="false" inheritAll="false" inheritRefs="false">
    <param name="wl.home" value="${wl.home}"/>
    <param name="patch.home" value="${patch.home}"/>
    <param name="workspace" value="${workspace}"/>
    <param name="init.typedefs.executed" value="true"/>
    <param name="archive.dir" value="${ear.staging.dir}${prefix}"/>
    <param name="ear.staging.dir" value="${ear.staging.dir}"/>
    </antcallex>
    </target>
    <target name="generated.root.init" depends="init">
    <property name="generated.module.root" value="${project.dir}/build/weboutput"/>
    </target>
    <target name="assembly" depends="init,generated.root.init">
    <taskdef name="assemble"
    classname="com.bea.control.assembly.AssembleTask"
    classpathref="java.classpath"
    onerror="report" />
    <property name="assembly.src.output" value="${java.src.0.output}"/>
    <mkdir dir="${assembly.src}"/>
    <path id="assembly.classpath">
    <path refid="java.classpath" />
    <pathelement location="${assembly.src.output}" />
    <pathelement path="${java.outpath}" />
    <pathelement path="${java.sourcepath}"/>
    </path>
    <assemble
    moduleDir="${generated.module.root}"
    moduleName="${project.name}"
    srcOutputDir="${assembly.src}"
    appRootDir="${ear.root}">
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.WebAppAssemblyContext$Factory" />
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.AppAssemblyContext$Factory" />
    <classpath refid="assembly.classpath" />
    <fileset dir="${project.dir}">
    <include name="**/*.controls.properties" />
    </fileset>
    </assemble>
    <apt
    srcdir="${assembly.src}"
    preprocessdir="${apt.src.output.dir}"
    factorypathref="apt.factory.path"
    options="${apt.options}"
    compile="false">
    <classpath refid="assembly.classpath" />
    </apt>
    <javac
    srcdir="${assembly.src}"
    destdir="${assembly.src.output}"
    debug="on">
    <classpath refid="assembly.classpath" />
    </javac>
    </target>
    <target name="webservice.build" depends="init,generated.root.init">
    <path id="jwsc.srcpath">
    <path path="${java.sourcepath}" />
    <pathelement path="build/assembly/.src" />
    </path>
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" />
    <property name="jwsc.module.root" value="${project.dir}/build/weboutput"/>
    <property name="jwsc.contextpath" value="billingservice"/>
    <property name="jwsc.srcpath.prop" refid="jwsc.srcpath"/>
    <path id="jwsc.classpath">
    <path refid="java.classpath" />
    <pathelement path="${java.outpath}" />
    </path>
    <jwsc
    destdir="${project.dir}/build"
    classpathref="jwsc.classpath"
    >
    <module name="weboutput" explode="true" contextPath="${jwsc.contextpath}">
    <jwsFileSet srcdir="${jwsc.srcpath.prop}">
    <include name="**/*.java"/>
    </jwsFileSet>
    <descriptor file="${jwsc.module.root}/WEB-INF/web.xml" />
    <descriptor file="${jwsc.module.root}/WEB-INF/weblogic.xml" />
    </module>
    </jwsc>
    </target>
    </project>
    ==================== end of exported build.xml =========
    Thanks!
    Edited by renqili at 08/09/2007 10:52 AM

    It looks a bug to me. The exported ant script does not take care the jar files setup in the classpath in workshop/eclipes and copy them to the WEB-INFO/lib directory.

  • Ant build script not working...

    Hi!
    I'm having problems using Ant to build a WLI-application in a HP-UX
    production environment. I exported the Ant buildscripts in Weblogic
    Integration (in NT) and made minor adjustments which do not change
    classpaths or anything for the taskdefs used. All of the builds I do for
    other parts of the app work just fine, but when compiling the processes
    (.jpd-files) I get the following error for each process:
    [webappbuild] DESCRIPTION: An I/O Exception occurred while attempting to
    write the deployment descriptors for Enterprise Java Beans. Error:
    Production rule file
    '/com/bea/wlw/runtime/core/bean/codegen/ejb-jar.template' not found.
    the "ejb-jar.template' file resides in the knex.jar file which is
    included in the classpath used for the build. Can anyone help me out
    here on this one? One other thing to mention is that when I build the
    application using Workshop in our development environment, there are no
    problems, even if we have switched from using the "IDE build" to using
    the Ant build even there....
    Here is the Antscript for the processes:
    <?xml version="1.0" encoding="UTF-8" ?>
    <project name="Web Application project build" default="build">
    <property environment="env" />
    <!-- Load local and user build preferences -->
    <property file="../build.properties"/> <!-- Component
    local -->
    <property file="${user.home}/build.properties"/> <!-- User local
    -->
    <!-- These properties are auto-set to match correct local values when
    executed within the IDE. -->
    <property name="project.local.directory"
    value="${app.local.directory}/PrimaVera" />
    <!--end auto properties -->
    <path id="task.classpath">
    <!-- External dependencies -->
    <fileset dir="${platformhome.local.directory}">
    <include name="javelin/lib/javelin.jar"/>
    <include name="common/lib/log4j.jar" />
    <include name="server/lib/knex.jar" />
    <include name="server/lib/xbean.jar" />
    <include name="server/lib/xqrl.jar" />
    <include name="server/lib/weblogic.jar"/>
    <include name="server/lib/wli.jar"/>
    <include name="server/lib/xmarshal.jar"/>
    </fileset>
    </path>
    <!-- WLI IDE Classpath -->
    <path id="ide.class.path">
    <pathelement location="${javalib.home}/lib/tools.jar"/>
    <pathelement location="${javalib.home}/jre/lib/rt.jar"/>
    <pathelement
    location="${platformhome.local.directory}/server/lib/knex.jar"/>
    <pathelement
    location="${platformhome.local.directory}/common/lib/log4j.jar"/>
    <pathelement
    location="${platformhome.local.directory}/server/lib/debugging.jar"/>
    <pathelement
    location="${platformhome.local.directory}/javelin/lib/javelin.jar"/>
    <pathelement
    location="${platformhome.local.directory}/server/lib/wlw-lang.jar"/>
    <pathelement
    location="${platformhome.local.directory}/server/lib/weblogic.jar"/>
    <pathelement
    location="${platformhome.local.directory}/server/lib/webservices.jar"/>
    <pathelement
    location="${platformhome.local.directory}/server/lib/webserviceclient.jar"/>
    <pathelement
    location="${platformhome.local.directory}/server/lib/webserviceclient+ssl.jar"/>
    <pathelement
    location="${platformhome.local.directory}/server/lib/wli.jar"/>
    <pathelement
    location="${platformhome.local.directory}/server/lib/xbean.jar"/>
    <pathelement
    location="${platformhome.local.directory}/server/lib/xmarshal.jar"/>
    <pathelement
    location="${platformhome.local.directory}/server/lib/xqrl.jar"/>
    <pathelement
    location="${platformhome.local.directory}/server/lib/netui/netui-compiler.jar"/>
    <pathelement
    location="${app.local.directory}/APP-INF/lib/iaik_jce_full.jar"/>
    <pathelement
    location="${app.local.directory}/APP-INF/lib/iipax_shs_api.jar"/>
    <pathelement
    location="${app.local.directory}/APP-INF/lib/iipax_shs_sdk.jar"/>
    <pathelement
    location="${app.local.directory}/APP-INF/lib/PVDatabas.jar"/>
    <pathelement
    location="${app.local.directory}/APP-INF/lib/RIBrygga.jar"/>
    <pathelement
    location="${app.local.directory}/APP-INF/lib/Schemas.jar"/>
    <pathelement location="${app.local.directory}/APP-INF/lib/Vera.jar"/>
    <pathelement
    location="${app.local.directory}/APP-INF/lib/Gemensam.jar"/>
    <pathelement location="${app.local.directory}/APP-INF/lib/Vera.jar"/>
    </path>
    <taskdef name="webappbuild"
    classname="com.bea.wlw.runtime.core.ear.WebAppBuildTask"
    classpathref="task.classpath"/>
    <taskdef name="webappclean"
    classname="com.bea.wlw.runtime.core.ear.WebAppCleanTask"
    classpathref="task.classpath"/>
    <target name="build" description="Build this Web project">
    <property name="class.path" refid="ide.class.path"/>
    <antcall target="clean" />
    <webappbuild appdir="${app.local.directory}"
    appname="${appname}"
    servername="${servername}"
    domainroot="${domainroot}"
    verbose="false"
    nowarn="false"
    noerr="false"
    serverbuild="true">
    <Webapp name="${webappname}" contextroot="${webappcontextroot}"
    uri="${webappuri}" classpath="${class.path}"/>
    </webappbuild>
    </target>
    <!-- Clean resources -->
    <target name="clean" description="Clean this Web project">
    <webappclean appdir="${app.local.directory}"
    appname="${appname}"
    servername="${servername}"
    domainroot="${domainroot}"
    webappname="${webappname}"
    webappcontextroot="${webappcontextroot}"
    webappuri="${webappuri}" />
    </target>
    </project>
    Thankful for any help on this matter,
    /Eje Thorarinsson

    I found this post which gave me a clue as to what was happenning: http://forums.adobe.com/message/4653048
    The app id was wrong.

  • Error while exporting release build.

    I'm getting this error while exporting release build targeting iOS, running Flash Builder 4.7 and Apache Flex 4.10.0, any help would be greatly appreciated.
    Error occurred while packaging the application:
    # A fatal error has been detected by the Java Runtime Environment:
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000180386950, pid=3328, tid=2472
    # JRE version: 6.0_31-b05
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.6-b01 mixed mode windows-amd64 compressed oops)
    # Problematic frame:
    # C  [llvm.dll+0x386950]
    # An error report file with more information is saved as:
    # C:\wamp\www\Flex\ROMCorp\bin-release-temp\AOT\hs_err_pid3328.log
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    Compilation failed while executing : ADT

    My application contains too much private data, I can't attach it. Just several notes about my problem:
    1. It's not reproducible in the Flash Builder 4.6 on OSX 10.6.8
    2. It's reproducible with ant build script
    3. Error is gone when I removed all <icon></icon> elements from descriptor file.

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

  • Exporting release build

    In flash builder I am targeting flash player 9 and use actionscript project.
    I see some strange behavior. I created my design in Photoshop CS3, then I imported .psd file in Flash CS3 and exported as SWC file. I added this SWC in Reference libraries in Flash Builder. If I run my project in Flash Builder - all is working and graphics objects are smooth and clean. But if I export release build, upload the SWF to server and run my website - I see jerky low quality graphics objects. Please help, any pointing very appreciated.

    problem solved, problem was in embeding on web with swfObject

  • 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

  • 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

Maybe you are looking for