Setting ProGuard options in build.xml (SOLVED)

Hi guys,
I'm trying to obfuscate my MIDlet so I can use BCrypt and the bouncy castle library. I'm getting the following error and I see that I need to add '-dontskipnonpubliclibraryclasses' and/or '-dontskipnonpubliclibraryclassmembers'. I've read ProGuard's instructions on adding options to an xml file but they are incompatible with Netbeans 6.8's build.xml. How can I set these two options for ProGuard through my build.xml file? I've included the obfuscation related part of my build-imp.xml.
NetBeans Output:
Building jar: C:\Users\Vladimir\Documents\NetBeansProjects\SecureIM_MIDP\build\before-obfuscation.jar
ProGuard, version 4.4
Reading program jar [C:\Users\Vladimir\Documents\NetBeansProjects\SecureIM_MIDP\build\before-obfuscation.jar]
Reading library jar [C:\Java_ME_platform_SDK_3.0\lib\midp_2.0.jar]
Reading library jar [C:\Java_ME_platform_SDK_3.0\lib\cldc_1.1.jar]
Note: duplicate definition of library class [java.io.ByteArrayOutputStream]
Note: there were 1 duplicate class definitions.
Warning: shared.BCrypt: can't find referenced method 'java.lang.Object clone()' in class java.lang.Object
Warning: there were 1 unresolved references to program class members.
         Your input classes appear to be inconsistent.
         You may need to recompile them and try again.
         Alternatively, you may have to specify the options
         '-dontskipnonpubliclibraryclasses' and/or
         '-dontskipnonpubliclibraryclassmembers'.
Error: Please correct the above warnings first.
C:\Users\Vladimir\Documents\NetBeansProjects\SecureIM_MIDP\build.xml:94: Obfuscation failed with error code 1.
BUILD FAILED (total time: 13 seconds)build-imp.xml's obfuscation:
<!--proguard-->
    <target name="proguard-init" description="Up-to-date check before obfuscation.">
        <property name="obfuscation.level" value="0"/>
        <condition property="no.obfusc">
            <or>
                <equals arg1="${obfuscation.level}" arg2="0"/>
                <uptodate targetfile="${obfuscator.destjar}">
                    <srcfiles dir="${buildsystem.baton}"/>
                </uptodate>
            </or>
        </condition>
        <uptodate property="obfuscation.up-to-date" targetfile="${obfuscator.destjar}">
            <srcfiles dir="${buildsystem.baton}"/>
        </uptodate>
    </target>
    <target name="skip-obfuscation" depends="proguard-init" if="obfuscation.up-to-date">
        <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
        <nb-overrideproperty name="buildsystem.baton" value="${obfuscated.classes.dir}"/>
    </target>
    <target name="proguard" depends="skip-obfuscation" description="Obfuscate project classes." unless="no.obfusc">
        <fail unless="obfuscated.classes.dir">Must set obfuscated.classes.dir</fail>
        <fail unless="obfuscator.srcjar">Must set obfuscator.srcjar</fail>
        <fail unless="obfuscator.destjar">Must set obfuscator.destjar</fail>
        <property name="obfuscator.classpath" value=""/>
        <dirname file="${obfuscator.srcjar}" property="obfuscator.srcjar.dir"/>
        <dirname file="${obfuscator.destjar}" property="obfuscator.destjar.dir"/>
        <mkdir dir="${obfuscator.srcjar.dir}"/>
        <mkdir dir="${obfuscator.destjar.dir}"/>
        <jar jarfile="${obfuscator.srcjar}" basedir="${buildsystem.baton}"/>
        <property name="obfuscation.custom" value=""/>
        <nb-obfuscate srcjar="${obfuscator.srcjar}" destjar="${obfuscator.destjar}" obfuscatorclasspath="${obfuscator.classpath}" classpath="${platform.bootclasspath}:${extra.classpath}" obfuscationLevel="${obfuscation.level}" extraScript="${obfuscation.custom}"/>
        <mkdir dir="${obfuscated.classes.dir}"/>
        <unjar src="${obfuscator.destjar}" dest="${obfuscated.classes.dir}"/>
        <nb-overrideproperty name="buildsystem.baton" value="${obfuscated.classes.dir}"/>
    </target>
    <!--obfuscate-->
    <target name="pre-obfuscate"/>
    <target name="post-obfuscate"/>
    <target name="obfuscate" depends="compile,pre-obfuscate,proguard,post-obfuscate" description="Obfuscate project classes."/>Thanks guys,
jangozo
Edited by: jangozo on Jan 24, 2010 1:55 PM
I just got rid of the BCrypt file.

I ran into this same problem when using ProGuard 4.1 for Java obfuscation. The problem is that there is a space in the path to your JDK/JRE, for example: c:\Program Files\Java\jdk1.6.0_03. Because there is a space before the word "Files", it isn't working. The solution to to wrap quotes around that particular command-line argument. In ANT, I needed to use single-quotes (because double-quotes were already in use for the XML attribute) such as:
<java jar="proguard.jar" fork="true" timeout="30000">
<arg value="-libraryjars"/>
<arg value="'${java.home}/lib/rt.jar'"/> <!-- Notice both double and single quotes used on this line. -->
...rest of the arguments go here...
</java>
Alternatively, using ProGuard's custom ANT Task, it would look something like (notice the use of double-quotes around the rt.jar location):
<proguard>
-libraryjars "${java.home}/lib/rt.jar"
...rest of the arguments go here...
</proguard>
Anyways, I hope this helps you or anyone else who runs into the same problem. Both of these approaches have worked for me.

Similar Messages

  • [svn:fx-trunk] 5554: Updating airframework and flex4 sample eclipse projects to more closely match the options set in the equivalent build .xml.

    Revision: 5554
    Author: [email protected]
    Date: 2009-03-25 13:46:00 -0700 (Wed, 25 Mar 2009)
    Log Message:
    Updating airframework and flex4 sample eclipse projects to more closely match the options set in the equivalent build.xml.
    Modified Paths:
    flex/sdk/trunk/development/eclipse/flex/airframework/.actionScriptProperties
    flex/sdk/trunk/development/eclipse/flex/airframework/.flexLibProperties
    flex/sdk/trunk/development/eclipse/flex/flex4/.actionScriptProperties

    If you're still using Buckminster 3.6, I strongly suggest switching to 3.7 - it has a number of bug fixes and improvements. This applies to both headless, and the IDE (assuming Eclipse 3.7 Indigo).
    Matthew

  • [svn:fx-trunk] 11541: Fix the textLayout build number that is set in the main build. xml to match what will be set when the build machine does NOT do the build

    Revision: 11541
    Author:   [email protected]
    Date:     2009-11-06 14:29:41 -0800 (Fri, 06 Nov 2009)
    Log Message:
    Fix the textLayout build number that is set in the main build.xml to match what will be set when the build machine does NOT do the build
    QE notes: no
    Doc notes: no
    Bugs: no
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/trunk/frameworks/air-config.xml
        flex/sdk/trunk/frameworks/flex-config.xml

    Thats good news.

  • Setting ANT_OPTS inside the build.xml

    I am using OAS 10.1.3. For the build process, i am using the ant and jdk inside the OAS itself.
    My problem is that, i need to set the ANT_OPTS everytime before i run the build script.
    I dnt want to do this. Instead, i want to set this somewhere inside the build file itselves.
    I understand that, i can set the ANT_OPTS inside ant.bat in $ANT_HOME and can also set ANT_OPTS in env variables.
    Is there any way, that i can set this option inside the build.xml ?

    Go to ant.jakarta.org. They have numerous tutorials. Do some research first. If you run into an actual problem, then post what it is.
    - Saish

  • Adding environment variable in build.xml(ANT)

    Hi,
    I need some information Regarding ANT,
    the problem is i have to add a property file in build.xml (as a environment varialble) so that i can read it in my java code. as
    System.getProperty("").
    Please sugggest me how to set environment variable in build.xml(ANT)
    Thanks
    Edited by: fdfddf on Apr 7, 2008 3:20 PM

    Hi Jakain, yep thanks for your information but my manager wants that way to do..
    he wanted me to set property file as a environment file using build.xml as this property file changes dynamically..
    can you suggest me

  • FU4CIListener build.xml not setting properties?

    I am following the Ant Task Setup.  I have flex sdk 3.6.0.X, apache-ant 1.8.2 and the flexunit source 4.1.0.
    When I run > ant -v clean package
    function(){return A.apply(null,[this].concat($A(arguments)))}
    Apache Ant(TM) version 1.8.2 compiled on December 20 2010
    Trying the default build file: build.xml
    Buildfile: C:\projects\FlexUnit4CIListener\build.xml
    Detected Java version: 1.7 in: C:\Program Files\Java\jdk1.7.0\jre
    Detected OS: Windows XP
    parsing buildfile C:\projects\FlexUnit4CIListener\build.xml with URI = file:/C:/projects/FlexUnit4CIListener/build.xml
    Project base dir set to: C:\projects\FlexUnit4CIListener
    parsing buildfile jar:file:/C:/apacheAnt/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/apacheAnt/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
    Importing file C:\projects\utils.xml from C:\projects\FlexUnit4CIListener\build.xml
    Overriding previous definition of reference to ant.projectHelper
    parsing buildfile C:\projects\utils.xml with URI = file:/C:/projects/utils.xml
    [macrodef] creating macro  gpg
    [macrodef] creating macro  sonatype-bundle
    Overriding previous definition of reference to ant.projectHelper
    [property] Loading Environment env.
    Property "build.version" has not been set
    Property "build.number" has not been set
    Property "build.sdk" has not been set
    Build sequence for target(s) `clean' is [clean]
    Complete build sequence is [clean, init, compile, report, package, deploy, ]
    clean:
       [delete] Deleting directory C:\projects\FlexUnit4CIListener\target
       [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\bin
       [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\docs
       [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\sonatype
       [delete] Deleting directory C:\projects\FlexUnit4CIListener\target
       [delete] Deleting C:\projects\FlexUnit4CIListener\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc
    Build sequence for target(s) `package' is [init, compile, report, package]
    Complete build sequence is [init, compile, report, package, clean, deploy, ]
    init:
        [mkdir] Skipping C:\projects\FlexUnit4CIListener\libs because it already exists.
        [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target
        [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\sonatype
        [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\bin
        [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\docs
         [copy] Copying 1 file to C:\projects\FlexUnit4CIListener\libs
         [copy] Copying C:\projects\FlexUnit4\target\flexunit-4.1.0-x-as3_y.y.y.y.swc to C:\projects\FlexUnit4CIListener\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc
    compile:
        [compc] Loading configuration file C:\flexunit\frameworks\flex-config.xml
        [compc] Adobe Compc (Flex Component Compiler)
        [compc] Version 3.6.0 build 16995
        [compc] Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.
        [compc]
        [compc] command line: Error: configuration variable 'output' value contains unknown token 'build.version'
        [compc]
        [compc] Use 'compc -help' for information about using the command line.
    BUILD FAILED
    C:\projects\FlexUnit4CIListener\build.xml:50: compc task failed
            at flex.ant.FlexTask.executeInProcess(FlexTask.java:299)
            at flex.ant.FlexTask.execute(FlexTask.java:225)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:390)
            at org.apache.tools.ant.Target.performTasks(Target.java:411)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
            at org.apache.tools.ant.Main.runBuild(Main.java:809)
            at org.apache.tools.ant.Main.startAnt(Main.java:217)
            at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
            at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
    Total time: 1 second
    build.version, build.number & build.sdk are properties that are not being set.  I would assume that they should be set internally somehow.  However, if I manually set them via -D switches (with arbitrary values) I get the following:
    >ant -v clean package -Dbuild.version=1.2.3.4 -Dbuild.number=666 -Dbuild.sdk=4.1
    function(){return A.apply(null,[this].concat($A(arguments)))}
    Apache Ant(TM) version 1.8.2 compiled on December 20 2010
    Trying the default build file: build.xml
    Buildfile: C:\projects\FlexUnit4CIListener\build.xml
    Detected Java version: 1.7 in: C:\Program Files\Java\jdk1.7.0\jre
    Detected OS: Windows XP
    parsing buildfile C:\projects\FlexUnit4CIListener\build.xml with URI = file:/C:/projects/FlexUnit4CIListener/build.xml
    Project base dir set to: C:\projects\FlexUnit4CIListener
    parsing buildfile jar:file:/C:/apacheAnt/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/apacheAnt/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
    Importing file C:\projects\utils.xml from C:\projects\FlexUnit4CIListener\build.xml
    Overriding previous definition of reference to ant.projectHelper
    parsing buildfile C:\projects\utils.xml with URI = file:/C:/projects/utils.xml
    [macrodef] creating macro  gpg
    [macrodef] creating macro  sonatype-bundle
    Overriding previous definition of reference to ant.projectHelper
    [property] Loading Environment env.
    Build sequence for target(s) `clean' is [clean]
    Complete build sequence is [clean, init, compile, report, package, deploy, ]
    clean:
       [delete] Deleting directory C:\projects\FlexUnit4CIListener\target
       [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\bin
       [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\docs
       [delete] Deleting directory C:\projects\FlexUnit4CIListener\target\sonatype
       [delete] Deleting directory C:\projects\FlexUnit4CIListener\target
       [delete] Deleting C:\projects\FlexUnit4CIListener\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc
    Build sequence for target(s) `package' is [init, compile, report, package]
    Complete build sequence is [init, compile, report, package, clean, deploy, ]
    init:
        [mkdir] Skipping C:\projects\FlexUnit4CIListener\libs because it already exists.
        [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target
        [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\sonatype
        [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\bin
        [mkdir] Created dir: C:\projects\FlexUnit4CIListener\target\docs
         [copy] Copying 1 file to C:\projects\FlexUnit4CIListener\libs
         [copy] Copying C:\projects\FlexUnit4\target\flexunit-4.1.0-x-as3_y.y.y.y.swc to C:\projects\FlexUnit4CIListener\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc
    compile:
        [compc] Loading configuration file C:\flexunit\frameworks\flex-config.xml
        [compc] C:\projects\FlexUnit4CIListener\target\bin\flexunit-cilistener-1.2.3.4-666-4.1.swc (11773 bytes)
    report:
    Skipped because property 'build.report' not set.
    package:
         [copy] Copying 1 file to C:\projects\FlexUnit4CIListener\target
         [copy] Copying C:\projects\FlexUnit4CIListener\target\bin\flexunit-cilistener-1.2.3.4-666-4.1.swc to C:\projects\FlexUnit4CIListener\target\flexunit-cilistener-1.2.3.4-666-4.1.swc
    BUILD SUCCESSFUL
    Total time: 4 seconds
    I can see where the previous 3 properties are being used in the swc output file name, but now there is a build.report property that is not being set.  How do I know which properties need to be set, and what to set them to?

    I was using the 4.5.1 flex SDK but there seemed to be other issues so I just used the link directly from the Ant Task Setup page (instead of using the newest SDK).  Upon following your instructions to ant build from the root directory, everything seemed to work correctly with a few exceptions.  Below is the last part of the output from the build.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    test:
    Detected Java version: 1.7 in: C:\Program Files\Java\jdk1.7.0\jre
    Detected OS: Windows XP
    Project base dir set to: C:\projects\FlexUnit4Test
          [ant] calling target(s) [test] in build file C:\projects\FlexUnit4Test\build.xml
    parsing buildfile C:\projects\FlexUnit4Test\build.xml with URI = file:/C:/projects/FlexUnit4Test/build.xml
    Project base dir set to: C:\projects\FlexUnit4Test
    [property] Loading Environment env.
    Override ignored for property "FLEX_HOME"
    Property "env.FLEX_COVER_VIEWER" has not been set
    [macrodef] creating macro  compile-runner
    [macrodef] creating macro  execute-tests
    [macrodef] creating macro  execute-tests-using-flexcover
    [macrodef] creating macro  generate-html-report
          [ant] Entering C:\projects\FlexUnit4Test\build.xml...
    Build sequence for target(s) `test' is [init, test-only, test-and-instrument, test]
    Complete build sequence is [init, test-only, test-and-instrument, test, clean, ]
    init:
        [mkdir] Created dir: C:\projects\FlexUnit4Test\target
        [mkdir] Created dir: C:\projects\FlexUnit4Test\target\bin
        [mkdir] Created dir: C:\projects\FlexUnit4Test\target\report\xunit\flex
        [mkdir] Created dir: C:\projects\FlexUnit4Test\target\report\xunit\as3
        [mkdir] Created dir: C:\projects\FlexUnit4Test\target\report\flexcover
         [copy] Copying 5 files to C:\projects\FlexUnit4Test\libs
         [copy] Copying C:\projects\FlexUnit4CIListener\target\flexunit-cilistener-4.1.0-x-y.y.y.y.swc to C:\projects\FlexUnit4Test\libs\flexunit-cilistener-4.1.0-x-y.y.y.y.swc
         [copy] Copying C:\projects\FlexUnit4FluintExtensions\target\fluint-extensions-4.1.0-x-y.y.y.y.swc to C:\projects\FlexUnit4Test\libs\fluint-extensions-4.1.0-x-y.y.y.y.swc
         [copy] Copying C:\projects\FlexUnit4\target\flexunit-4.1.0-x-as3_y.y.y.y.swc to C:\projects\FlexUnit4Test\libs\flexunit-4.1.0-x-as3_y.y.y.y.swc
         [copy] Copying C:\projects\FlexUnit4\target\flexunit-4.1.0-x-flex_y.y.y.y.swc to C:\projects\FlexUnit4Test\libs\flexunit-4.1.0-x-flex_y.y.y.y.swc
         [copy] Copying C:\projects\FlexUnit4FlexCoverListener\target\flexunit-flexcoverlistener-4.1.0-x-y.y.y.y. swc to C:\projects\FlexUnit4Test\libs\flexunit-flexcoverlistener-4.1.0-x-y.y.y.y.swc
         [copy] Copying 1 file to C:\projects\FlexUnit4Test\libs\build
         [copy] Copying C:\projects\FlexUnit4AntTasks\target\flexUnitTasks-4.1.0-x.jar to C:\projects\FlexUnit4Test\libs\build\flexUnitTasks-4.1.0-x.jar
    test-only:
         [echo] Testing FlexUnit Flex build...
        [mxmlc] Loading configuration file C:\flexunit\frameworks\flex-config.xml
        [mxmlc] C:\projects\FlexUnit4Test\target\bin\TestRunner-flex.swf (924564 bytes)
    [flexunit] Validating task attributes ...
    [flexunit] Generating default values ...
    [flexunit] Using default working dir [C:\projects\FlexUnit4Test]
    [flexunit] Using the following settings for the test run:
    [flexunit]  FLEX_HOME: [C:\flexunit]
    [flexunit]  haltonfailure: [false]
    [flexunit]  headless: [false]
    [flexunit]  display: [99]
    [flexunit]  localTrusted: [true]
    [flexunit]  player: [flash]
    [flexunit]  port: [1024]
    [flexunit]  swf: [C:\projects\FlexUnit4Test\target\bin\TestRunner-flex.swf]
    [flexunit]  timeout: [60000ms]
    [flexunit]  toDir: [C:\projects\FlexUnit4Test\target\report\xunit\flex]
    [flexunit] Setting up server process ...
    [flexunit] Starting server ...
    [flexunit] Entry [C:\projects\FlexUnit4Test\target\bin] already available in local trust file at [C:\Documents and Settings\Administrator\Application Data\Macromedia\Flash Player\#Security\FlashPlayerTrust\flexUnit.cfg].
    [flexunit] Executing 'rundll32' with arguments:
    [flexunit] 'url.dll,FileProtocolHandler'
    [flexunit] 'C:\projects\FlexUnit4Test\target\bin\TestRunner-flex.swf'
    [flexunit]
    [flexunit] The ' characters around the executable and arguments are
    [flexunit] not part of the command.
    [flexunit]
    [flexunit] Opening server socket on port [1024].
    [flexunit] Waiting for client connection ...
    [flexunit]
    [flexunit] Stopping server ...
    [flexunit] End of test data reached, sending acknowledgement to player ...
    [flexunit] Closing client connection ...
    [flexunit] Closing server on port [1024] ...
          [ant] Exiting C:\projects\FlexUnit4Test\build.xml.
    After this part of the log I get the following:
    function(){return A.apply(null,[this].concat($A(arguments)))}
    BUILD FAILED
    C:\projects\build.xml:103: The following error occurred while executing this line:
    C:\projects\FlexUnit4Test\build.xml:180: The following error occurred while executing this line:
    C:\projects\FlexUnit4Test\build.xml:62: java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report
            at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
            at java.util.concurrent.FutureTask.get(FutureTask.java:111)
            at org.flexunit.ant.tasks.TestRun.run(Unknown Source)
            at org.flexunit.ant.tasks.FlexUnitTask.execute(Unknown Source)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:390)
            at org.apache.tools.ant.Target.performTasks(Target.java:411)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
            at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 8)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
            at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:390)
            at org.apache.tools.ant.Target.performTasks(Target.java:411)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
            at org.apache.tools.ant.Main.runBuild(Main.java:809)
            at org.apache.tools.ant.Main.startAnt(Main.java:217)
            at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
            at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
    Caused by: Socket timeout waiting for flexunit report
            at org.flexunit.ant.FlexUnitSocketServer.start(Unknown Source)
            at org.flexunit.ant.FlexUnitSocketThread.call(Unknown Source)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
            at java.util.concurrent.FutureTask.run(FutureTask.java:166)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
            at java.lang.Thread.run(Thread.java:722)
    Caused by: java.net.SocketTimeoutException: Accept timed out
            at java.net.TwoStacksPlainSocketImpl.socketAccept(Native Method)
            at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:396)
            at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:183)
            at java.net.ServerSocket.implAccept(ServerSocket.java:522)
            at java.net.ServerSocket.accept(ServerSocket.java:490)
            at org.flexunit.ant.FlexUnitSocketServer.openClientSocket(Unknown Source)
            ... 7 more
    Total time: 1 minute 38 seconds
    So everything seems to be building correctly now, but not executing correctly.  Also, there are still a number of properties that are not being set:
    function(){return A.apply(null,[this].concat($A(arguments)))}
    report:
    Skipped because property 'build.report' not set.
    instrument-compile:
    Skipped because property 'build.instrument' not set.
    package-instrument:
    Skipped because property 'build.instrument' not set.
    pmdReport:
    Skipped because property 'build.pmd' not set.
    Where should these values be set and what are appropriate values?  What could be causing the socket timeout and what exactly is it waiting for or attempting to accomplish with the sockets?
    The end goal is to be able to use the flex SDK, flexunit and ANT on a linux server to automate my build/test process.  I am currently just trying to get ANT to work with the flex SDK and flexunit on a windows XP box so I can see what the output should be and how the whole system works before trying to inject it into my CI system.

  • Inernet Explorer error when setting report options to xml

    I get an error message stating that I need ot upgrade my ie to version 6 when I try to set reporting options to xml.  The ie version on the PC is 6.0.2900.2180....
    Has anyone had this problem? 

    Anand,
    thanks for the help. 
    Regarding your questions, I found the key to be missing on 3 computers.  One was a Dell Laptop with factory installed XP pro and the other 2 were Stealth computers (rack mount) also with XP pro from the factory.
    The computeres are on our network and get updates regularly, so I do not know if the updates had anything to do with the problem.
    Screenshot of IE is attached (.bmp)
    Attachments:
    IE6.jpg ‏52 KB

  • [SOLVED] Setting "comments" option in vim.

    Greetings.
    I've run into issues with setting the "comments" option in vim 7.2. I'm trying to set it to "s:/*,m:**,ex:*/".
    ** Comments should be formated like this!
    I've added the line "set comments=s:/*,m:**,ex:*/" to ~/.vimrc but it does not work and comments formatting reverts back to the default for the specific file extension. I suspect that this option gets overwritten from somewhere whitin vim's syntax files since setting the option for the active file works fine.
    Any suggestions on how I can get it to work like I want to?
    Last edited by msh (2009-01-24 20:14:50)

    Solved by adding the below code to ~/.vimrc.
    if !exists ("autocommands_loaded")
    let autocommands_loaded = 1
    autocmd FileType c set comments=s:/*,mb:**,ex:*/
    endif

  • How to set kernel module options at boot? (solved)

    I've got a netbook with bluetooth supported by the omnibook driver. In rc.conf, I left the modules autoloading on, and added 'omnibook' to the modules array, because it wasn't automatically loaded. Then I added the following line to /etc/modules.d/modprobe.conf:
    options omnibook ectype=12 wifi=1 bluetooth=1
    But I still don't get a Bluetooth device after the boot. I only get it if I run:
    sudo rmmod omnibook ; sudo modprobe omnibook ectype=12 wifi=1 bluetooth=1
    How should I set these options at boot time? I couldn't find any other orientation in the wiki. Thanks!
    Last edited by leonardof (2010-04-29 01:58:24)

    The omnibook module isn't something I've ever used but there is no need to include "sudo" in the options line.  How about trying:
    options omnibook ectype=12 wifi=1 bluetooth=1

  • Corrected build.xml for jta sample

    When building the jta example using ant I discovered several problems
    with use of environment variables
    APPLICATIONS/EX_WEBAPP_CLASSES/CLIENT_CLASSES requiring explicit
    declaration of "environment="
    Also an incorrect source directory for the client pointed at the
    clustered ejb example source.
    Here is a corrected build.xml for the jta example.
    <project name="jta-jmsjdbc" default="all" basedir=".">
    <!-- set global properties for this build -->
    <property file="../../../examples.properties"/>
    <property name="src" value="."/>
    <property name="APPLICATIONS" environment="env"/>
    <property name="EX_WEBAPP_CLASSES" environment="env"/>
    <property name="CLIENT_CLASSES" environment="env"/>
    <property name="build" value="${src}/build"/>
    <property name="dist" value="${src}/dist"/>
    <target name="all" depends="clean, init, compile_ejb, jar_ejb, ejbc,
    compile_webapp, compile_client"/>
    <target name="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="${build}/META-INF"/>
    <mkdir dir="${dist}"/>
    <copy todir="${build}/META-INF">
    <fileset dir="${src}">
    <include name="*.xml"/>
    </fileset>
    </copy>
    </target>
    <!-- Compile EJB classes into the build directory (jar preparation)
    -->
    <target name="compile_ejb">
    <javac srcdir="${src}" destdir="${build}"
    includes="ReceiveInTx.java, ReceiveInTxHome.java,
    ReceiveInTxBean.java"/>
    </target>
    <!-- Make a standard ejb jar file, including XML deployment
    descriptors -->
    <target name="jar_ejb" depends="compile_ejb">
    <jar jarfile="${dist}/std_jta_ejb_jmsjdbc.jar"
    basedir="${build}">
    </jar>
    </target>
    <!-- Run ejbc to create the deployable jar file -->
    <target name="ejbc" depends="jar_ejb">
    <java classname="weblogic.ejbc" fork="yes">
    <sysproperty key="weblogic.home" value="${WL_HOME}"/>
    <arg line="-compiler javac ${dist}/std_jta_ejb_jmsjdbc.jar
    ${env.APPLICATIONS}/jta_ejb_jmsjdbc.jar"/>
    <classpath>
    <pathelement
    path="${WL_HOME}/lib/weblogic_sp.jar;${WL_HOME}/lib/weblogic.jar"/>
    </classpath>
    </java>
    </target>
    <!-- Compile handler class into WEB-INF/classes directory of the
    Examples Web
    App. This ensures that the EJB class can be accessed by JSPs and
    servlets of
    the Examples Web App-->
    <target name="compile_webapp">
    <javac srcdir="${src}"
    destdir="${env.EX_WEBAPP_CLASSES}"
    includes="ReceiveInTx.java, ReceiveInTxHome.java"
    />
    </target>
    <!-- Compile Client class into the clientclasses directory -->
    <target name="compile_client">
    <!-- <javac srcdir="../../cluster/ejb" -->
    <javac srcdir="${src}"
    destdir="${env.CLIENT_CLASSES}"
    includes="ReceiveInTx.java, ReceiveInTxHome.java, Client.java"
    />
    </target>
    <target name="clean">
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
    </target>
    </project>

    Hi,
    I used dom parser and i think using that will solve your problem.....Create desired tags...establish a connection and retrive data into the tags...This would solve your problem.
    Other way is the database that you are using must be having some option to generate an xml from a table..that option will be more easy and useful..
    If u are to use a dom parser..so tell me...
    Regards
    Monali

  • Obfuscate in build.xml

    Hi,
    does obfuscating jars in ant in windows not work? I have the following code & get the error that seems to be related to obfuscation.
    <project name="sims" default="CustomerDist" basedir=".">
      <property file="ant.properties"/>
      <property environment="localenv"/>
      <!--
      <taskdef name="proguard" classname="proguard.ant.ProGuardTask" classpath="builder/proguard.jar" />
      -->
      <taskdef classpath="jcoverage.jar" resource="tasks.properties"/>
      <target name="init">
        <fail unless="PROPERTIESLOADED">missing PROPERTIESLOADED, have you renamed ant.properties.sample to ant.properties?</fail>
        <available property="elandlibs_DirectoryExists"
                   file="${elandlibs}"
                   type="dir"
                   />
        <fail unless="elandlibs_DirectoryExists">Cannot find the shared 'javalibs' CVS project. Have you checked this project out of CVS and set the elandlibs property in ant.properties?</fail>
        <mkdir dir="${testbuild}"/>
        <mkdir dir="${build}"/>
        <mkdir dir="${build2}"/>
        <mkdir dir="${dist}"/>
        <mkdir dir="distInternal"/>
        <mkdir dir="${libdir}"/>
        <fail unless="OBFUSCATE_JAR">missing environment variable OBFUSCATE_JAR from ant.properties</fail>
          <!-- Decide whether to OBFUSCATE  the sims jar file-->
          <condition property="obfuscate">
           <not><or>
            <equals arg1="${OBFUSCATE_JAR}" arg2="NO"/>
            <equals arg1="${OBFUSCATE_JAR}" arg2="No"/>
            <equals arg1="${OBFUSCATE_JAR}" arg2="no"/>
            <equals arg1="${OBFUSCATE_JAR}" arg2="False"/>
            <equals arg1="${OBFUSCATE_JAR}" arg2="FALSE"/>
           </or></not>
          </condition>
        <copy todir="${libdir}">
          <fileset dir="extra">
             <include name="com.ibm.mq.jar"/>
             <include name="com.ibm.mqjms.jar"/>
             <include name="elandjavadev-v2.1.008.jar"/>
             <include name="jbcl.jar"/>
             <include name="jgl3.1.0.jar"/>
          </fileset>
        </copy>
        <copy todir="${libdir}">
          <fileset dir="${elandlibs}">
             <include name="xmlrpc-1.1.jar"/>
             <include name="xercesImpl-2.4.jar"/>
             <include name="xml-apis-2.4.jar"/>
             <include name="xmlParserAPIs-2.4.jar"/>
             <include name="elandsdk-1.0.3.jar"/>
             <include name="rwos-v2.4.0.001_int-javaapi.jar"/>
             <include name="log4j-1.2.8.jar"/>
             <include name="oro-2.0.8.jar" />
             <include name="dom4j-1.3.jar" />
                <include name="castor-0.9.5.3-xml.jar"/>
                <include name="jta1.0.1.jar"/>
                <include name="xercesImpl-2.4.jar"/>
          </fileset>
        </copy>
          <path id="castor.classpath">
             <fileset dir="${elandlibs}">
                <include name="castor-0.9.5.3-xml.jar"/>
                <include name="jta1.0.1.jar"/>
                <include name="xercesImpl-2.4.jar"/>
             </fileset>
          </path>
      </target>
      <target name="installer" depends="CustomerDist">
         <copy todir="install">
             <fileset dir="${dist}"/>
         </copy>
         <ant antfile="build.xml" dir="install" target="installer"/>
      </target>
       <target name="refresh_config_beans" depends="init,cleancastorfiles">
           <property name="target_schema" value="RunwaySimulatorConfig.xsd" />
           <echo>Generating code for XSD Schema: ${target_schema}</echo>
          <copy file="RunwaySimulatorConfig.xsd" tofile="src/RunwaySimulatorConfig.xsd"/>
           <java classname="org.exolab.castor.builder.SourceGenerator"
            fork="yes" dir="${src}" classpathref="castor.classpath">
          <arg line="-i ${target_schema} -f -dest . -nomarshall -package com.elandtech.sims.config.castor"/>
           </java>
           <delete file="src/RunwaySimulatorConfig.xsd"/>
       </target>
       <target name="cleancastorfiles" depends="init">
          <delete dir="${src}/com/elandtech/sims/config/castor"/>
            <echo>Deleting the directory: ${src}/com/elandtech/sims/config/castor}</echo>
       </target>
      <target name="compile" depends="init,refresh_config_beans" description="compile the source " >
        <copy todir="${build}">
          <fileset dir="src" includes="**/*.jpg"/>
        </copy>
        <javac srcdir="${src}" destdir="${build}" debug="on" optimize="on" deprecation="off">
          <classpath>
            <fileset dir="${libdir}">
              <include name="**/*.jar" />
            </fileset>
            <pathelement path="${build}" />
          </classpath>
        </javac>
        <copy todir="${build}">
          <fileset dir="src" includes="**/*.properties"/>
        </copy>
        <copy todir="${build}">
          <fileset dir="src" includes="**/*.gif"/>
        </copy>
        <copy todir="${build}">
          <fileset dir="src" includes="**/*.jpg"/>
        </copy>
        <copy todir="${build}">
          <fileset dir="src" includes="**/*.txt"/>
        </copy>
        <copy todir="${build}">
          <fileset dir="src" includes="**/*.ghost"/>
        </copy>
        <copy todir="${build}">
          <fileset dir="src" includes="**/*.dec"/>
        </copy>
        <copy todir="${build}">
          <fileset dir="src" includes="**/*.nan"/>
        </copy>
      </target>
      <target name="jar" depends="compile" description="generate JAR file" >
        <mkdir dir="${dist}/lib"/>
        <copy todir="${dist}/lib">
          <fileset dir="${libdir}"/>
        </copy>
        <jar destfile="${dist}/lib/sims.jar"  manifest="jars/sims.mf" >
           <fileset dir="${build}">
               <exclude name="**/itc/**"/>
               <exclude name="**/ghostengines/ITCGhostEngine.class"/>
               <exclude name="**/ghostengines/runway/**"/>
               <exclude name="**/ghostengines/RunwayGhostEngine.class"/>
           </fileset>
        </jar>
        <jar destfile="${dist}/lib/GhostEngineRunway.jar"
           basedir="${build}"
           excludes="*"
           includes="**/ghostengines/runway/** **/ghostengines/RunwayGhostEngine.class **/ghostengines/RequestResponsePair.class" />
        <jar destfile="${dist}/lib/GhostEngineRunway.jar"
           basedir="${build}"
           excludes="*"
           includes="**/ghostengines/runway/** **/ghostengines/RunwayGhostEngine.class" />
        <jar destfile="${dist}/lib/GhostEngineITC.jar"
           basedir="${build}"
           excludes="*"
           includes="**/itc/** **/ghostengines/ITCGhostEngine.class" />
        <!-- <echo>Obfuscate avoidance set to ${localenv.OBFUSCATE}</echo> -->
        <echo>Obfuscate avoidance set to ${OBFUSCATE_JAR}</echo>
      </target>
      <target name="obfuscate" depends="jar" description="obfuscate code" if="obfuscate" >
        <move file="${dist}/lib/sims.jar" tofile="${dist}/lib/sims_unobf.jar"/>
      <taskdef resource="proguard/ant/task.properties"
               classpath="builder/proguard.jar" />
       <proguard ignorewarnings="on" >
            -injars       ${dist}/lib/sims_unobf.jar
            -outjars      ${dist}/lib/sims.jar
            -libraryjars  ${java.home}/lib/rt.jar
            -printmapping progaurd_mapping.txt
            -keep public class com.elandtech.sims.Main {
                public static void main(java.lang.String[]);
            -dontshrink
            -dontoptimize
            -renamesourcefileattribute SourceFile
            -keepattributes InnerClasses,SourceFile,LineNumberTable,Deprecated,Signature,*Annotation*,EnclosingMethod
            <!-- Ghost Engine Classes.. -->
            -keep public class com.elandtech.sims.ghostengines.GhostEngine
            -keep public class com.elandtech.sims.ghostengines.GhostEngine  {
                public protected *;
            -keep public class com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine
            -keep public class com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine {
                public protected *;
            -keep public class com.elandtech.sims.ghostengines.SimsGhostEngine
            -keep public class com.elandtech.sims.ghostengines.SimsGhostEngine {
                public protected *;
            -keep public class com.elandtech.sims.ghostengines.RequestResponsePair
            -keep public class com.elandtech.sims.ghostengines.RequestResponsePair {
                public protected *;
            -keep public class com.elandtech.sims.ghostengines.ITCGhostEngine
            -keep public class com.elandtech.sims.ghostengines.ITCGhostEngine {
                public protected *;
            -keep public class com.elandtech.sims.ghostengines.RunwayGhostEngine
            -keep public class com.elandtech.sims.ghostengines.RunwayGhostEngine {
                public protected *;
            <!-- Logging interface.. -->
            -keep public class com.elandtech.sims.logging.LogManager
            -keep public class com.elandtech.sims.logging.LogManager {
                public protected *;
            -keep public class com.elandtech.sims.logging.LogMessage
            -keep public class com.elandtech.sims.logging.LogMessage {
                public protected *;
            -keep public class com.elandtech.sims.logging.LogGenerator
            -keep public class com.elandtech.sims.logging.LogGenerator {
                public protected *;
            -keep public class com.elandtech.sims.logging.Log4jLogger {
                public protected *;
            -keep public class com.elandtech.sims.logging.LogListener. {
                public protected *;
            -keep public class com.elandtech.sims.logging.FileLogger {
                public protected *;
            <!-- Remote interface.. -->
            -keep public class com.elandtech.sims.api.Handler
             -keep public class com.elandtech.sims.api.Handler {
                  public protected *;
            -keep public class com.elandtech.sims.api.RemoteClient
              -keep public class com.elandtech.sims.api.RemoteClient {
                   public protected *;
            <!-- Configuration classes.. -->
            -keep public class com.elandtech.sims.config.SimsSettings
            -keep public class com.elandtech.sims.config.ConnectionSettings
            -keep public class com.elandtech.sims.config.SimsSettings {
                public protected *;
            -keep public class com.elandtech.sims.config.ConnectionSettings
            -keep public class com.elandtech.sims.config.ConnectionSettings {
                public protected *;
            <!-- Utility classes.. -->
            -keep public class com.elandtech.eland.commonx.text.EString {
                public protected *;
        </proguard>
        <delete file="${dist}/lib/sims_unobf.jar"/>
      </target>
      <!-- Create a Customer distribution. -->
      <target name="CustomerDist" depends="jar, obfuscate, readversion" description="generate the distribution" >
       <copy file="scripts/startup.bat" tofile="${dist}/startup.bat"/>
        <mkdir dir="${dist}/docs"/>
        <copy todir="${dist}/docs">
          <fileset dir="docs" includes="**/*.pdf"/>
        </copy>
        <copy file="RunwaySimulatorConfig.xsd" tofile="${dist}/docs/RunwaySimulatorConfig.xsd"/>
        <copy todir="${dist}">
          <fileset dir="configdist"/>
        </copy>
        <zip zipfile="RunwayHostsSimCustDist${version}.zip">
          <fileset dir="${dist}"/>
        </zip>
      </target>
      <target name="clean" description="clean up" >
        <delete dir="${testbuild}"/>
        <delete dir="${junitreports}"/>
        <delete dir="${build}"/>
        <delete dir="build2"/>
        <delete dir="${dist}"/>
        <delete dir="${libdir}"/>
        <delete dir="distInternal"/>
        <delete dir="tmp"/>
        <delete>
           <fileset dir="." includes="sims-**.zip"/>
        </delete>
      </target>
      <taskdef name="genjar" classname="org.apache.tools.ant.taskdefs.optional.genjar.GenJar" classpath="builder/GenJar.jar"/>
      <path id="classpath">
         <fileset dir="${libdir}">
             <include name="**/*.jar"/>
         </fileset>
      </path>
        <path id="classpath.sims">
            <pathelement location="${build}"/>
            <fileset dir="${libdir}">
                <include name="**/*.jar"/>
            </fileset>
        </path>
        <path id="classpath.build">
           <pathelement location="${build}"/>
        </path>
      <target name="includeAllResources" >
              <unzip dest="build2">
                <patternset>
                    <include name="**/*.properties"/>
                    <exclude name="**/*.java"/>
                    <exclude name="**/*.class"/>
                    <include name="**/*.gif" />
                    <include name="**/*.jpg" />
                </patternset>
                <fileset dir="extra">
                    <include name="**/*.jar"/>
                    <include name="**/*.zip"/>
                </fileset>
            </unzip>
      </target>
      <target name="gen-obfuscate"
              depends="jar"
              description="obfuscate the complete jar" if="obfuscate">
       <taskdef resource="proguard/ant/task.properties"
               classpath="builder/proguard.jar" />
       <move file="distInternal/sims.jar" tofile="distInternal/sims_temp.jar"/>
       <proguard>
            -injars       distInternal/sims_temp.jar
            -outjars      distInternal/sims.jar
            -libraryjars  ${java.home}/lib/rt.jar
            -printmapping progaurd_mapping.txt
            -keep public class com.elandtech.sims.Main {
                public static void main(java.lang.String[]);
            -dontshrink
            -dontoptimize
            -renamesourcefileattribute SourceFile
            -keepattributes InnerClasses,SourceFile,LineNumberTable,Deprecated,Signature,*Annotation*,EnclosingMethod
            <!-- Ghost Engine Classes.. -->
            -keep public class com.elandtech.sims.ghostengines.GhostEngine
            -keep public class com.elandtech.sims.ghostengines.GhostEngine  {
                public protected *;
            -keep public class com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine
            -keep public class com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine {
                public protected *;
            -keep public class com.elandtech.sims.ghostengines.SimsGhostEngine
            -keep public class com.elandtech.sims.ghostengines.SimsGhostEngine {
                public protected *;
            -keep public class com.elandtech.sims.ghostengines.RequestResponsePair
            -keep public class com.elandtech.sims.ghostengines.RequestResponsePair {
                public protected *;
            -keep public class com.elandtech.sims.ghostengines.ITCGhostEngine
            -keep public class com.elandtech.sims.ghostengines.ITCGhostEngine {
                public protected *;
            -keep public class com.elandtech.sims.ghostengines.RunwayGhostEngine
            -keep public class com.elandtech.sims.ghostengines.RunwayGhostEngine {
                public protected *;
            <!-- Logging interface.. -->
            -keep public class com.elandtech.sims.logging.LogManager
            -keep public class com.elandtech.sims.logging.LogManager {
                public protected *;
            -keep public class com.elandtech.sims.logging.LogMessage
            -keep public class com.elandtech.sims.logging.LogMessage {
                public protected *;
            -keep public class com.elandtech.sims.logging.LogGenerator
            -keep public class com.elandtech.sims.logging.LogGenerator {
                public protected *;
            -keep public class com.elandtech.sims.logging.Log4jLogger {
                public protected *;
            -keep public class com.elandtech.sims.logging.LogListener. {
                public protected *;
            -keep public class com.elandtech.sims.logging.FileLogger {
                public protected *;
            <!-- Remote interface.. -->
            -keep public class com.elandtech.sims.api.Handler
            -keep public class com.elandtech.sims.api.RemoteClient
            <!-- Configuration classes.. -->
            -keep public class com.elandtech.sims.config.SimsSettings
            -keep public class com.elandtech.sims.config.ConnectionSettings
            -keep public class com.elandtech.sims.config.SimsSettings {
                public protected *;
            -keep public class com.elandtech.sims.config.ConnectionSettings
            -keep public class com.elandtech.sims.config.ConnectionSettings {
                public protected *;
            <!-- Utility classes.. -->
            -keep public class com.elandtech.eland.commonx.text.EString {
                public protected *;
       </proguard>
        <delete file="distInternal/sims_temp.jar"/>
      </target>
      <!-- Create a combined distribution where all the classes and resources are combined in to one file. -->
      <target name="InternalDist"
              depends="readversion,jar,includeAllResources"
              description="Generates all in one Jar file">
        <copy file="${dist}/lib/sims.jar" tofile="distInternal/sims.jar"/>
        <!-- first perform the obfuscate  on the core SIMS product -->
        <antcall target="gen-obfuscate"/>
        <!-- Create a sims.jar file containing all the files required to run the sims-->
        <genjar jarfile="distInternal/sims${version}.jar">
          <class name="com.elandtech.sims.Main"/>
          <class name="com.elandtech.sims.ghostengines.SimsGhostEngine"/>
          <class name="com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine"/>
          <class name="com.elandtech.sims.ghostengines.RunwayGhostEngine"/>
          <class name="com.elandtech.sims.ghostengines.ITCGhostEngine"/>
          <library jar="${libdir}/castor-0.9.5.3-xml.jar"/>
          <library jar="${libdir}/log4j-1.2.8.jar"/>
          <library jar="distInternal/sims.jar"/>
          <library jar="${libdir}/xmlrpc-1.1.jar"/>
          <library jar="${libdir}/xml-apis-2.4.jar"/>
          <library jar="${libdir}/xercesImpl-2.4.jar"/>
          <resource>
             <fileset dir="${build}">
               <include name="**/*.properties" />
               <include name="**/*.gif" />
               <include name="**/*.jpg" />
             </fileset>
          </resource>
          <resource>
             <fileset dir="${build2}">
               <include name="**/*.properties" />
               <include name="**/*.gif" />
               <include name="**/*.jpg" />
             </fileset>
          </resource>
          <classpath>
              <pathelement location="distInternal/sims.jar"/>
            <pathelement location="build"/>
            <fileset dir="${libdir}">
                <include name="**/*.jar"/>
            </fileset>
          </classpath>
          <manifest template="${src}/META-INF/sims.mf"/>
        </genjar>
        <copyfile src="scripts/startup_dist2.bat" dest="distInternal/startup.bat"/>
        <mkdir dir="distInternal/docs"/>
        <copy todir="distInternal/docs">
          <fileset dir="docs" includes="**/*.pdf"/>
        </copy>
        <copy file="RunwaySimulatorConfig.xsd" tofile="distInternal/docs/RunwaySimulatorConfig.xsd"/>
        <replace file="distInternal/startup.bat" token="${SIMS_FILENAME}" value="sims_${version}.jar"/>
        <copy todir="distInternal">
          <fileset dir="configdist"/>
        </copy>
        <zip zipfile="RunwayHostsSimIntDist${version}.zip">
          <fileset dir="distInternal"/>
        </zip>
        <delete file="distInternal/sims.jar"/>
      </target>
      <!--  ************************************************************
                         Create a jar containing the
                         Ghost Runway Ghost Engine API Only
            ************************************************************ -->
      <target name="genGhostEngine"
              depends="readversion,compile,includeAllResources"
              description="Generates all in one Jar file">
          <!-- -->
        <genjar jarfile="ghostEngine.jar">
          <class name="com.elandtech.sims.ghostengines.sample.TestRunwayGhost"/>
          <!--
          <resource>
             <fileset dir="${build}">
               <include name="**/*.properties" />
               <include name="**/*.gif" />
               <include name="**/*.jpg" />
               <include name="**/*.dec" />
               <include name="**/*.ghost" />
               <include name="**/*.txt" />
             </fileset>
          </resource>
          <resource>
             <fileset dir="${build2}">
               <include name="**/*.properties" />
               <include name="**/*.gif" />
               <include name="**/*.jpg" />
               <include name="**/*.dec" />
               <include name="**/*.ghost" />
               <include name="**/*.txt" />
             </fileset>
          </resource>
          -->
          <classpath refid="classpath.sims" />
          <!--<manifest template="${src}/META-INF/sims.mf"/> -->
        </genjar>
      </target>
      <!-- utility task to get version information and put it in to enviornment variables ${version} and ${cvsversion}-->
      <taskdef name="getversion" classname="com.elandtech.anttasks.GetVersion" classpath="builder/elandAntTasks.jar"/>
      <target name="readversion" >
         <getversion file="${app.version.file}" />
         <echo>Reading version information from file = ${app.version.file}</echo>
         <echo>version = ${version}</echo>
         <echo>cvsversion = ${cvsversion}</echo>
      </target>
      <!--
          These targets are defined in versionbuild.xml
      -->
      <!-- Tag all files using the variable ${cvsversion}  read in from ${app.version.file} -->
       <target name="cvstag" depends="readversion">
         <ant antfile="versionbuild.xml" dir="." target="cvstag"/>
      </target>
      <!-- increment mini version number-->
      <target name="newmini" >
         <ant antfile="versionbuild.xml" dir="." target="newmini"/>
      </target>
      <!-- increment minor version number-->
      <target name="newminor"  >
         <ant antfile="versionbuild.xml" dir="." target="newminor"/>
      </target>
      <!-- increment Major version number-->
      <target name="newmajor" >
         <ant antfile="versionbuild.xml" dir="." target="newmajor"/>
      </target>
      <!-- Turn beta version on-->
      <target name="betaon" >
         <ant antfile="versionbuild.xml" dir="." target="betaon"/>
      </target>
      <!-- Turn beta version off-->
      <target name="betaoff" >
         <ant antfile="versionbuild.xml" dir="." target="betaoff"/>
      </target>
      <!--
          These targets are defined in junitbuild.xml
      -->
      <target name="testall" depends="init,compile" description="Calls testall in junitbuild.xml">
         <ant antfile="junitbuild.xml" dir="." target="testall"/>
      </target>
      <target name="testsubset" depends="init,compile" description="Calls testsubset in junitbuild.xml">
         <ant antfile="junitbuild.xml" dir="." target="testsubset"/>
      </target>
      <target name="coverage" depends="init,compile" description="Calls coverage in junitbuild.xml">
         <ant antfile="junitbuild.xml" dir="." target="testall-coverage"/>
      </target>
    </project>and I get th errors:
    BUILD FAILED
    C:\myProjects\sims\build.xml:487: The following error occurred while executing this line:
    C:\myProjects\sims\build.xml:383: Expecting class path separator ';' before 'Files\Java\jre1.5.0_09/lib/rt.jar' in argument number 1
    can anyone help with this please?

    I ran into this same problem when using ProGuard 4.1 for Java obfuscation. The problem is that there is a space in the path to your JDK/JRE, for example: c:\Program Files\Java\jdk1.6.0_03. Because there is a space before the word "Files", it isn't working. The solution to to wrap quotes around that particular command-line argument. In ANT, I needed to use single-quotes (because double-quotes were already in use for the XML attribute) such as:
    <java jar="proguard.jar" fork="true" timeout="30000">
    <arg value="-libraryjars"/>
    <arg value="'${java.home}/lib/rt.jar'"/> <!-- Notice both double and single quotes used on this line. -->
    ...rest of the arguments go here...
    </java>
    Alternatively, using ProGuard's custom ANT Task, it would look something like (notice the use of double-quotes around the rt.jar location):
    <proguard>
    -libraryjars "${java.home}/lib/rt.jar"
    ...rest of the arguments go here...
    </proguard>
    Anyways, I hope this helps you or anyone else who runs into the same problem. Both of these approaches have worked for me.

  • Why not all jars picked up by ojdeloy and how to generate build.xml from command line and not JDEV GUI - quick question

    Hi All
    We have 11.1.1.7 ojdeploy to compile our app.
    We notice in the log that not all jars are used in classpath arguments when we explicitly set them up for compilation.
    eg:
      <path id="classpath">
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/commons-el.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/jsp-el-api.jar"/>
        <pathelement location="../../Oracle/Middleware/oracle_common/modules/oracle.adf.share_11.1.1/oracle-el.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/a.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/b.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/c.jar"/>
        <pathelement location="interface/public_html/WEB-INF/lib/d.jar"/>
    </path>
    Log Output -
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/bin/javac
    [ora:ojdeploy] -g
      [ora:ojdeploy] -Xlint:all
      [ora:ojdeploy] -Xlint:-cast
    [ora:ojdeploy] -Xlint:-empty
      [ora:ojdeploy] -Xlint:-fallthrough
      [ora:ojdeploy] -Xlint:-path
      [ora:ojdeploy] -Xlint:-serial
      [ora:ojdeploy] -Xlint:-unchecked
      [ora:ojdeploy] -source 1.6
      [ora:ojdeploy] -target 1.6
      [ora:ojdeploy] -verbose
      [ora:ojdeploy] -encoding Cp1252
      [ora:ojdeploy] -classpath
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/resources.jar:
    [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/rt.jar:
      [ora:ojdeploy] /path/to/Oracle/Middleware/jdk160_24/jre/lib/jsse.jar:
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/a.jar"/>
        [ora:ojdeploy] /path/to/interface/public_html/WEB-INF/lib/c.jar"/>
    1- Is it because it depends on how jpr or jws are configured ?
    2- How can we automatically generate a build file of the application from command-line (as opposed to using Jdev IDE to click to generate a build.xml) ?

    The first  warning is happening because you're stating drivers for input devices without need. You haven't disabled hotplug so evdev gets used instead of kbd. This is normal, and you should change the driver line from kbd to evdev so that whatever options (if any) you've specified for the keyboard get parsed.
    The second warning is about you not installing acpid.
    The third I have no idea about, but look at the synaptics wiki. None of the (WW) are related to your video card.
    And every card that has 2 or more output ports show up as "two cards". You also don't need to specify the pci port in xorg.conf. edit: this is the general case with laptops, might be different for desktops.
    When I do lspci -v I get:
    00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at dfe80000 (32-bit, non-prefetchable) [size=512K]
    I/O ports at d0f0 [size=8]
    Memory at c0000000 (32-bit, prefetchable) [size=256M]
    Memory at dff00000 (32-bit, non-prefetchable) [size=256K]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: <access denied>
    00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
    Subsystem: Micro-Star International Co., Ltd. Device 0110
    Flags: bus master, fast devsel, latency 0
    Memory at dfe00000 (32-bit, non-prefetchable) [size=512K]
    Capabilities: <access denied>
    And it doesn't matter if it errs in trying to sli up with it self. That's just not a possibility.
    Last edited by gog (2009-10-15 23:59:49)

  • How does one set the option to pre-compile JSPs on deployment in WL 10.3?

    Outside of manually creating and modifying weblogic.xml, that is.
    There used to be a tool Weblogic Builder that gave a graphical interface to modify weblogic.xml. Has this been replaced in 10.3 or just thrown away?
    Also, can I set the option at all in an app deployed as a war without exploding the war manually.
    Thanks.
    Edited by: joeb on Jan 29, 2009 5:26 PM

    You might be able to do this with a deployment plan. If doing this requires adding an element, as opposed to simply modifying the value of an element, then it might not help.
    It would be conceivable to add this capability as part of a build process, as you can use the "xmltask" Ant task library, to automatically modify the file. You'd also have to add in tasks that automatically exploded and reconstruct the WAR file. At least you wouldn't have to do this manually.
    I doubt there's any way to change this in an already deployed app, without redeploying the app.

  • Jwsdp-1.4/xws-security/samples/simple/build.xml:108: wsdeploy failed

    Hi everyone,
    I am trying to deploy the simple sample for xws-security in the JWSDP 1.4 on redhat 9.0, I have done all the configurations as suggested by the tutorial and the readme file in the sample. But when I tried to run the sample by running "asant run-sample", I got a "wsdeploy failed" error. It looks like the following and happened at the "process-war" stage: (The earlier targets including "clean", "prepare", "gen-server", "compile-server", " set-web-inf", "raw-war" etc. work fine).
    [snip]
    process-war:
    [echo] Running wsdeploy...
    [wsdeploy] Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.<init>(Lorg/apache/xml/dtm/DTMManager;Ljavax/xml/transform/Source;ILorg/apache/xml/dtm/DTMWSFilter;Lorg/apache/xml/utils/XMLStringFactory;ZIZZ)V
    [wsdeploy] at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2.<init>(SAX2DTM2.java:1901)
    [wsdeploy] at org.apache.xalan.xsltc.dom.SAXImpl.<init>(SAXImpl.java:767)
    [wsdeploy] at org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:324)
    [wsdeploy] at org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:267)
    [wsdeploy] at org.apache.xalan.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:477)
    [wsdeploy] at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:637)
    [wsdeploy] at org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:317)
    [wsdeploy] at com.sun.xml.rpc.tools.wsdeploy.DeployTool.defineServletsAndListeners(DeployTool.java:553)
    [wsdeploy] at com.sun.xml.rpc.tools.wsdeploy.DeployTool.run(DeployTool.java:255)
    [wsdeploy] at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
    [wsdeploy] at com.sun.xml.rpc.tools.wsdeploy.Main.main(Main.java:22)
    [wsdeploy] Command invoked: /work/nzw3/SUNWappserver/jdk/jre/bin/java -classpath /work/nzw3/SUNWappserver/lib/endorsed/dom.jar:/work/nzw3/SUNWappserver/lib/endorsed/xercesImpl.jar:/work/nzw3/SUNWappserver/lib/endorsed/xalan.jar:/work/nzw3/SUNWappserver/lib/ant/lib/xercesImpl.jar:/work/nzw3/SUNWappserver/lib/ant/lib/ant.jar:/work/nzw3/SUNWappserver/lib/ant/lib/xml-apis.jar:/work/nzw3/SUNWappserver/lib/ant/lib/optional.jar:/work/nzw3/SUNWappserver/lib/soapprocessor.jar:/work/nzw3/SUNWappserver/lib/jaxr-api.jar:/work/nzw3/SUNWappserver/lib/saaj-api.jar:/work/nzw3/SUNWappserver/lib/activation.jar:/work/nzw3/SUNWappserver/lib/security-plugin.jar:/work/nzw3/SUNWappserver/lib/jaxb-xjc.jar:/work/nzw3/SUNWappserver/lib/jax-qname.jar:/work/nzw3/SUNWappserver/lib/jhall.jar:/work/nzw3/SUNWappserver/lib/xmlsec.jar:/work/nzw3/SUNWappserver/lib/j2ee-svc.jar:/work/nzw3/SUNWappserver/lib/deployment/sun-as-jsr88-dm.jar:/work/nzw3/SUNWappserver/lib/jaxrpc-sec.jar:/work/nzw3/SUNWappserver/lib/mail.jar:/work/nzw3/SUNWappserver/lib/appserv-admin.jar:/work/nzw3/SUNWappserver/lib/jaxb-impl.jar:/work/nzw3/SUNWappserver/lib/appserv-cmp.jar:/work/nzw3/SUNWappserver/lib/appserv-jstl.jar:/work/nzw3/SUNWappserver/lib/jaxb-libs.jar:/work/nzw3/SUNWappserver/lib/jwsdp-tools-lib/jax-qname.jar:/work/nzw3/SUNWappserver/lib/jwsdp-tools-lib/namespace.jar:/work/nzw3/SUNWappserver/lib/jaxr-impl.jar:/work/nzw3/SUNWappserver/lib/xercesImpl.jar:/work/nzw3/SUNWappserver/lib/jaxrpc-spi.jar:/work/nzw3/SUNWappserver/lib/verifier/verifierhelp.jar:/work/nzw3/SUNWappserver/lib/xalan.jar:/work/nzw3/SUNWappserver/lib/appserv-upgrade.jar:/work/nzw3/SUNWappserver/lib/appserv-assemblytool.jar:/work/nzw3/SUNWappserver/lib/deployhelp.jar:/work/nzw3/SUNWappserver/lib/j2ee.jar:/work/nzw3/SUNWappserver/lib/xmldsig.jar:/work/nzw3/SUNWappserver/lib/commons-logging.jar:/work/nzw3/SUNWappserver/lib/saaj-impl.jar:/work/nzw3/SUNWappserver/lib/jaxrpc-impl.jar:/work/nzw3/SUNWappserver/lib/appserv-tags.jar:/work/nzw3/SUNWappserver/lib/appserv-ext.jar:/work/nzw3/SUNWappserver/lib/relaxngDatatype.jar:/work/nzw3/SUNWappserver/lib/admin-cli.jar:/work/nzw3/SUNWappserver/lib/jaxrpc-api.jar:/work/nzw3/SUNWappserver/lib/jsf-api.jar:/work/nzw3/SUNWappserver/lib/jaxb-api.jar:/work/nzw3/SUNWappserver/lib/install/applications/__cp/jdbc.jar:/work/nzw3/SUNWappserver/lib/install/applications/__ds/jdbc.jar:/work/nzw3/SUNWappserver/lib/install/applications/__xa/jdbc.jar:/work/nzw3/SUNWappserver/lib/install/applications/jmsra/imqjmsra.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/admin.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/cc.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/admingui-jsp.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/framework.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/jato.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/admin-en.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/admin-xml.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/framework-en.jar:/work/nzw3/SUNWappserver/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/help.jar:/work/nzw3/SUNWappserver/lib/install/applications/samples.jar:/work/nzw3/SUNWappserver/lib/install/applications/com_sun_web_ui/WEB-INF/lib/registrationservlet.jar:/work/nzw3/SUNWappserver/lib/install/applications/jaxr-ra/jaxr-ra.jar:/work/nzw3/SUNWappserver/lib/commons-launcher.jar:/work/nzw3/SUNWappserver/lib/jsf-impl.jar:/work/nzw3/SUNWappserver/lib/sun-appserv-ant.jar:/work/nzw3/SUNWappserver/lib/appserv-rt.jar:/work/nzw3/SUNWappserver/lib/xsdlib.jar:/work/nzw3/j2sdk1.4.2_04/lib/tools.jar com.sun.xml.rpc.tools.wsdeploy.Main -keep -tmpdir /work/nzw3/jwsdp-1.4/xws-security/samples/simple/build/server -o /work/nzw3/jwsdp-1.4/xws-security/samples/simple/dist/securesimple.war /work/nzw3/jwsdp-1.4/xws-security/samples/simple/dist/simple-portable.war
    BUILD FAILED
    file:/work/nzw3/jwsdp-1.4/xws-security/samples/simple/build.xml:108: wsdeploy failed
    If anyone has any idea about this problem, please let me know.
    Many thanks,
    Jake

    Hello again,
    I got progress today, but still have some errors for the simple sample in the xws-security . (I am running on Redhat 9.0 and with Sun Java System Application Server 8) Looks like the sending message is ok, but at the receiving message stage, I got the following errors when running "asant run-sample":
    [snip]
    run-sample:
    [echo] Running the simple.TestClient program....
    [java] Service URL=http://giga15.ncl.ac.uk:8080/securesimple/Ping
    [java] Sep 8, 2004 1:14:19 AM com.sun.xml.wss.filter.DumpFilter process
    [java] INFO: ==== Sending Message Start ====
    [java] <?xml version="1.0" encoding="UTF-8"?>
    [java] <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://xmlsoap.org/Ping" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    [java] <env:Header>
    [java] <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" env:mustUnderstand="1">
    [java] <wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="Id4487442798885738858">MIIFKDCCBBCgAwIBAgICBl4wDQYJKoZIhvcNAQEEBQAwcDELMAkGA1UEBhMCVUsxETAPBgNVBAoT
    [java] CGVTY2llbmNlMRIwEAYDVQQLEwlBdXRob3JpdHkxCzAJBgNVBAMTAkNBMS0wKwYJKoZIhvcNAQkB
    [java] Fh5jYS1vcGVyYXRvckBncmlkLXN1cHBvcnQuYWMudWswHhcNMDQwMjEwMTQzMDUyWhcNMDUwMjA5
    [java] MTQzMDUyWjBcMQswCQYDVQQGEwJVSzERMA8GA1UEChMIZVNjaWVuY2UxEjAQBgNVBAsTCU5ld2Nh
    [java] c3RsZTEPMA0GA1UEBxMGTkVSZVNDMRUwEwYDVQQDEwxqYWtlIHpoZW5nd3UwgZ8wDQYJKoZIhvcN
    [java] AQEBBQADgY0AMIGJAoGBAO7B3texMjuzdA6zT6/F/hx3U4a+iWglhNWptB3JerhHHu7El0HkWky0
    [java] 9AzYVKZ7Y3n5qpgmSOe16a2MKySii5ud44DABj+3qkRBzkb/LDgNuF02X/XORbFbuZYEWwCHckZI
    [java] xQ50vJpdxJQqLOwrhMP48RXNBzrdXo9iYfcWP5cnAgMBAAGjggJiMIICXjAMBgNVHRMBAf8EAjAA
    [java] MBEGCWCGSAGG+EIBAQQEAwIFoDAOBgNVHQ8BAf8EBAMCA+gwLAYJYIZIAYb4QgENBB8WHVVLIGUt
    [java] U2NpZW5jZSBVc2VyIENlcnRpZmljYXRlMB0GA1UdDgQWBBRlyb19GkybkmGa6QnQ9fPZ7mQ+NzCB
    [java] mgYDVR0jBIGSMIGPgBQCOKsRo5aAiw3TFSsIpY4w2rLaqKF0pHIwcDELMAkGA1UEBhMCVUsxETAP
    [java] BgNVBAoTCGVTY2llbmNlMRIwEAYDVQQLEwlBdXRob3JpdHkxCzAJBgNVBAMTAkNBMS0wKwYJKoZI
    [java] hvcNAQkBFh5jYS1vcGVyYXRvckBncmlkLXN1cHBvcnQuYWMudWuCAQAwKQYDVR0SBCIwIIEeY2Et
    [java] b3BlcmF0b3JAZ3JpZC1zdXBwb3J0LmFjLnVrMBkGA1UdIAQSMBAwDgYMKwYBBAHZLwEBAQEEMD0G
    [java] CWCGSAGG+EIBBAQwFi5odHRwOi8vY2EuZ3JpZC1zdXBwb3J0LmFjLnVrL2NnaS1iaW4vaW1wb3J0
    [java] Q1JMMD0GCWCGSAGG+EIBAwQwFi5odHRwOi8vY2EuZ3JpZC1zdXBwb3J0LmFjLnVrL2NnaS1iaW4v
    [java] aW1wb3J0Q1JMMDwGCWCGSAGG+EIBBwQvFi1odHRwOi8vY2EtcmVuZXcuZ3JpZC1zdXBwb3J0LmFj
    [java] LnVrL3JlbmV3Lmh0bWwwPwYDVR0fBDgwNjA0oDKgMIYuaHR0cDovL2NhLmdyaWQtc3VwcG9ydC5h
    [java] Yy51ay9jZ2ktYmluL2ltcG9ydENSTDANBgkqhkiG9w0BAQQFAAOCAQEAgdN714aoC53Wef9JGaDD
    [java] PDJkmgmwVbL8ZuovBpORFsgy2GOPgIdtw15qTQx1NFbsFqW2I7d/9AteeXAk3sUGUODOvq8loeYB
    [java] iA+QofduwJ0VWO8TZ0e+7+J3cDQKbsukptRJd2L2W8PeCNPojCRkfiV/nT6BiF5yjh4Ui5e+pWGw
    [java] t3oN1qFDZViCFOTiB6Koi0MB+cu47gOEIxBQfP8jTEyf/SSy4RzjI+7C1LpDYCZpO/jqXMb67j9b
    [java] KdcmlWhMrzNOyRDM7A11rt5nBMABgRVAJsdBZIDevfKJ/kRGxUHGHqf8Pg+3qK22mNwMN8U2plr7
    [java] TgORAx6aOn4EQP2AzA==</wsse:BinarySecurityToken>
    [java] <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    [java] <ds:SignedInfo>
    [java] <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
    [java] <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
    [java] <ds:Reference URI="#Id5553294937503469412">
    [java] <ds:Transforms>
    [java] <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
    [java] </ds:Transforms>
    [java] <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
    [java] <ds:DigestValue>AcRqiIoxfOWauZ/FDnng4D1C5WU=</ds:DigestValue>
    [java] </ds:Reference>
    [java] </ds:SignedInfo>
    [java] <ds:SignatureValue>
    [java] omVS7TF+IqESZuMcRdsFfet8INaU4J9Vall1oGaPMRoEkc9xks+YK2ew4nG7hSekITwJrQLx42hH
    [java] Vb6HvEdWgsIrjOJslqQILQkYU7qdoptb6OEgY5lHQpjUJaTKNn4krsDXgpwZieQE45Gcu/zuP4eY
    [java] v8yMhUwVUE8xHy+6dLs=
    [java] </ds:SignatureValue>
    [java] <ds:KeyInfo>
    [java] <wsse:SecurityTokenReference>
    [java] <wsse:Reference URI="#Id4487442798885738858" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
    [java] </wsse:SecurityTokenReference>
    [java] </ds:KeyInfo>
    [java] </ds:Signature>
    [java] </wsse:Security>
    [java] </env:Header>
    [java] <env:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Id5553294937503469412">
    [java] <ns0:Ping>
    [java] <ns0:ticket>SUNW</ns0:ticket>
    [java] <ns0:text>Hello !</ns0:text>
    [java] </ns0:Ping>
    [java] </env:Body>
    [java] </env:Envelope>
    [java] ==== Sending Message End ====
    [java] Sep 8, 2004 1:14:23 AM com.sun.xml.wss.filter.DumpFilter process
    [java] INFO: ==== Received Message Start ====
    [java] <?xml version="1.0" encoding="UTF-8"?>
    [java] <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://xmlsoap.org/Ping" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    [java] <env:Body>
    [java] <env:Fault>
    [java] <faultcode xmlns:ans1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ans1:InvalidSecurityToken</faultcode>
    [java] <faultstring>Certificate validation failed</faultstring>
    [java] </env:Fault>
    [java] </env:Body>
    [java] </env:Envelope>
    [java] ==== Received Message End ====
    [java] Sep 8, 2004 1:14:23 AM com.sun.xml.wss.filter.ProcessSecurityHeaderFilter process
    [java] WARNING: Message does not contain wsse:Security header
    [java] Exception in thread "main" javax.xml.rpc.soap.SOAPFaultException: Certificate validation failed
    [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:515)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:294)
    [java] at simple.PingPort_Stub.ping(PingPort_Stub.java:80)
    [java] at simple.TestClient.main(TestClient.java:37)
    [java] Java Result: 1
    I don't know if I have configured anything wrong. Basically, i just want to sign the outgoing soap message with my own p12 format certificate, hence I have chosen the following in the $JWSDP_HOME/xws-security/samples/simple/build.properties :
    client.security.config=config/sign-client.xml
    server.security.config=config/dump-server.xml
    Also, according to the last section of the jWSDP release notes at http://java.sun.com/webservices/docs/1.4/ReleaseNotes.html#KnownIssues
    I added these two changes,
    1. In the <jwsdp.home>/xws-security/samples/buildconfig/sjsas-config.xml file, delete the original .... app.classpath element definition and replace it with the following definition:
    <path id="app.classpath">
    <fileset dir="${sjsas.home}/lib/endorsed">
    <include name="dom.jar"/>
    </fileset>
    <fileset dir="${sjsas.home}/lib">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="${javahome}/lib">
    <include name="tools.jar"/>
    </fileset>
    </path>
    2. In the <as.home>/domains/domain1/config/server.policy file, add the following configurations to the server.policy file, for the securesimple sample and pingservice samples, respectively.
    // These permissions apply to securesimple webapp grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/securesimple/WEB-INF/-" {
    permission javax.security.auth.AuthPermission "modifyPrincipals";
    permission javax.security.auth.AuthPermission "modifyPublicCredentials"; permission javax.security.auth.AuthPermission "modifyPrivateCredentials";
    permission javax.security.auth.AuthPermission "getSubject";
    permission javax.security.auth.PrivateCredentialPermission "javax.security.auth.x500.X500PrivateCredential * \"*\"","read";
    permission java.security.SecurityPermission "putProviderProperty.BC";
    Moreover, has the sent message really been signed correctly? how can I tell the message has been signed by my own certificate? I have done the following:
    1. In the $JWSDP_HOME/xws-security/samples/simple/config/sign-client.xml, change to
    <xwss:SecurityConfiguration
    xmlns:xwss="http://com.sun.xml.wss.configuration" dumpMessages="true">
    <xwss:Sign/>
    </xwss:SecurityConfiguration>
    2. In the $JWSDP_HOME/xws-security/samples/simple/config/build.xml, change to something like the following in the run-sample target,
    <sysproperty key="javax.net.ssl.keyStore" value="/work/nzw3/jakenew.p12"/>
    <sysproperty key="javax.net.ssl.keyStorePassword" value="jake"/>
    <sysproperty key="javax.net.ssl.keyStoreType" value="pkcs12"/>
    I didn't change anything about truststore.
    What was the problem? What have I done wrong?
    Many thanks,
    Jake

  • "Build.xml file not exist"

    Hey Guys,
    i am currently involving in a servelet project (RendreX). i want to install apachi ant as a prerequirement. i am using windows 2003 server. I already downloded latest ant version and apache tomcat4.0. Also i have set all the class path,ANT-HOME(C:\ANT) and other relevent paths. But when i run ant command in the command prompt(C:\ANT>ant)will generate error state that "build.xml" file can't be found. Have i done any wrong thing here? Can anybody give a way that i can easily install apache ant on winows.
    It would be greatly appriciated if u can send me some advice to over come this problem.
    Best Regards
    Mohan

    build.xml is the default build file assumed by ant. You have to provide a build file to control what you expect from ant to do.

Maybe you are looking for

  • Runtime error while i add a node in ALV Tree in oops

    i am adding a node to alv tree using oop am passing a work area and when i execute it is going for a dump and it says UC_OBJECTS_NOT_CONVERTIBLE and the below where it is bold and italic it is where the dump is occuring METHOD ADD_NODE. FIELD-SYMBOLS

  • Tungsten E2 Reset Loop After Applying Security Panel Update and Daylight Savings Updates

    I applied the Security Panel and Daylight Savings updates to my Tungsten E2 handheld.  The hotsync operation required me to press reset. Now my handheld loops on the Palm Powered screen.  Subsequent attempts to reset have the same result or ask me to

  • Local ReadWriteBackingMap and access keys

    I am looking for some code to have a storage node access it's local ReadWriteBackingMap and get a list of all keys that are local to that node. I am assuming this is possible?? thanx kevin

  • Eventing between multiple IViews

    I have multiple Dynpage IViews on one page. I raise and receive events between the IViews. I can alert the databag or eventObject values. The problem is when I try and write to the IView that has subxcribed to the event. ending IView: /******  store

  • Two ID 's in I cloud. How to remove one of them?

    On my Ipad en phone i have already an apple ID. Now i've got a Mac and this needed an ID to. It refused to go with the excisting ID so i made a new one. I have two ID's now and that's not smart because my documents are not syngronized on I cloud. Any