JCOP tools ANT script generation

Hello,
does JCOP tools plug-in within Eclipse IDE provide facilities for automatic Ant .xml script generation for building the project (i.e. compilation and convertion) like it provides for javadoc generation?
I can write compilation .xml script for Ant on my own. But what about the convertion to CAP files?
Best regards,
Eve

I do not know of any possibility/task/facility that generates you an ant script. Ant itself is a way to automatize tasks. So I am afraid you need to dive into ant. It's worth it.

Similar Messages

  • Workshop ANT Script Error in JAX-WS and XMLBeans Facet

    I am having a strange problem. I have a web service project created in Eclipse BEA Weblogic 9.2 Workshop IDE. The structure is:
    -EAR...which consitutues
    -JAX-WS WAR project
    -EJB Project
    The JAX-WS WAR has XMLBeans/XMLBuilder facets enabled to be used for compiling my XSD schemas being used in my web service.
    When I build the project and export the ear through the IDE it works fine. I wanted to generate ANT scripts for all these projects so I can build and export the EAR through the command prompt. I was able to that. Now I wanted to check-in the project code in a source control management tool. Naturally I shouldn't check-in the .xbean_bin and .xbean_src folders generated by the the JAXB API against my schemas. The problem happens that when I delete these folders and then run my ANT build script through command prompt I get the following error:
    assembly: [mkdir] Created dir: C:\Projects\kc\kces2\kcesWs\build\assembly\.src
    [assemble] Input fileset contained no files, nothing to do. init.env: init.typedefs: init: generated.root.init: webservice.build:
    [jwsc] JWS: processing module weboutput
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 1 JWS files being processed for module weboutput [AntUtil.deleteDir] Deleting directory C:\DOCUME~1\Syunus\LOCALS~1\Temp\_5l950r10
    BUILD FAILED
    C:\Projects\KEYCOM~1\kces2\kcesEar\build.xml:184: The following error occurred while executing this line: jar:file:/C:/bea/WEBLOG%7e2/workshop/lib/wlw-antlib.jar!/com/bea/wlw/antlib/antlib.xml:91:
    The following error occurred while executing this line: C:\Projects\KEYCOM~1\kces2\kcesEar\build.xml:196:
    The following error occurred while executing this line: C:\Projects\kc\kces2\kcesWs\build.xml:401:
    The following error occurred while executing this line: C:\Projects\kc\kces2\kcesWs\build.xml:293:
    The following error occurred while executing this line: C:\Projects\kc\kces2\kcesWs\build.xml:490: java.lang.RuntimeException: java.lang.ExceptionInInitializerError
    Total time: 13 seconds
    The above mentioned XMLBean folders are created, my schemas are compiled but the build process terminates at that point when trying to compile the web service code file i.e. the jwsc task fails. Right after that, if I again initiate the build everything goes fine. Apparently the build script expects these 2 XMLBean folders to be present before hand?
    The ANT build chain goes like this:
    -ANT build script for the EAR project -> which calls child ANT build scripts for all referenced sub projects, which are the WAR (here it fails on the first run) and the EJB projects in my case.
    Any idea why it is happening? Thanks a lot.
    cross-posted at
    http://www.coderanch.com/t/485654/Ant-Maven-Other-Build-Tools/ANT-Script-Error-JAX-WS:

    Hi,
    Hope you are doing good.
    I needed some information on how to write a ANT script to create a deployable WAR file of web service built using JAX WS.
    Could you help me with steps / ANT tasks / sample if any.
    Thanks in advance.
    Chandan
    PWC

  • Error while deploying an apache ant script in Jdeveloper for webcenterspace

    Hi,
    I am trying to deploy the ExtendWebCenterSpaces project in Jdeveloper. I right clicked the build.xml -> Run Ant Target -> clean stage. This was successful. However, when I right-click build.xml -> Run Ant Target -> deploy-shared-lib, I get the following error:
    BUILD FAILED
    weblogic.security.internal.encryption.EncryptionServiceException: weblogic.security.internal.encryption.EncryptionServiceException: weblogic.security.internal.encryption.EncryptionServiceException: [Security:090219]Error decrypting Secret Key java.lang.SecurityException: The provider self-integrity check failed.
         at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.<init>(JSafeEncryptionServiceImpl.java:341)
         at weblogic.security.internal.encryption.JSafeEncryptionServiceFactory.getEncryptionService(JSafeEncryptionServiceFactory.java:48)
         at weblogic.security.UserConfigFileManager.initEncryptionRead(UserConfigFileManager.java:689)
         at weblogic.security.UserConfigFileManager.getUsernameAndPassword(UserConfigFileManager.java:171)
         at weblogic.deploy.utils.MBeanHomeTool.processUsernameAndPassword(MBeanHomeTool.java:411)
         at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:295)
         at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:137)
         at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
         at weblogic.utils.compiler.Tool.run(Tool.java:158)
         at weblogic.utils.compiler.Tool.run(Tool.java:115)
         at weblogic.Deployer.run(Deployer.java:70)
         at weblogic.Deployer.mainWithExceptions(Deployer.java:62)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:419)
         at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:349)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         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:357)
         at org.apache.tools.ant.Target.performTasks(Target.java:385)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
         at org.apache.tools.ant.Main.runBuild(Main.java:758)
         at org.apache.tools.ant.Main.startAnt(Main.java:217)
         at org.apache.tools.ant.Main.start(Main.java:179)
         at org.apache.tools.ant.Main.main(Main.java:268)
    Caused by: weblogic.security.internal.encryption.EncryptionServiceException: weblogic.security.internal.encryption.EncryptionServiceException: [Security:090219]Error decrypting Secret Key java.lang.SecurityException: The provider self-integrity check failed.
         at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.createCiphers(JSafeEncryptionServiceImpl.java:420)
         at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.create3DESKeyContext(JSafeEncryptionServiceImpl.java:359)
         at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.<init>(JSafeEncryptionServiceImpl.java:331)
         ... 34 more
    Caused by: weblogic.security.internal.encryption.EncryptionServiceException: [Security:090219]Error decrypting Secret Key java.lang.SecurityException: The provider self-integrity check failed.
         at weblogic.security.internal.encryption.JSafeSecretKeyEncryptor.decryptSecretKey(JSafeSecretKeyEncryptor.java:116)
         at weblogic.security.internal.encryption.JSafeEncryptionServiceImpl.createCiphers(JSafeEncryptionServiceImpl.java:395)
         ... 36 more
    Total time: 7 seconds
    Has anyone got any idea how to solve this?
    Thanks,
    C

    --> some error on posting please refer to the next post...
    From the error logs we can trace it out to the web project's Build.xml file ....I was getting a similar error and by commenting out the following lines in the web project's Build.xml I am able to run the build script correctly and get a EAR file. The lines are
    <!--
    <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>
         -->
    Please check it now, also if any one can let us know the function or role played by the above lines it would be great. Also if there would be any future or unseen problems by commenting out these lines please do let us know...
    Thanks
    -MiM
    Edited by prodigymonish83 at 10/22/2007 5:56 AM

  • Problem in ant script (starting tomcat)...

    Hi,
    in my ant script (build.xml) I have some targets to start/stop tomcat:
        <!-- ================================ -->
        <!-- start/stop tomcat servlet engine -->
        <!-- ================================ -->
        <!-- check whether server is already running -->
        <target name="-started">
            <condition property="server.started">
                <and>
                    <socket port="${tomcat.port}" server="${tomcat.server}"/>
                </and>
            </condition>
        </target>
        <!-- start tomcat -->
        <target name="start" depends="-started" description="start tomcat server"
            unless="server.started">
            <echo message="Starting tomcat servlet engine..."/>
                <java classname="org.apache.catalina.startup.Bootstrap" fork="yes">
                <jvmarg value="-Djava.endorsed.dirs=${catalina.dir}/common/endorsed"/>
                <jvmarg value="-Dcatalina.base=${catalina.dir}"/>
                <jvmarg value="-Dcatalina.home=${catalina.dir}"/>
                <jvmarg value="-Djava.io.tmpdir=${catalina.dir}/temp"/>
                <arg value="start"/>
                <classpath>
                    <pathelement location="${java.home}/../lib/tools.jar"/>
                    <pathelement location="${catalina.dir}/bin/bootstrap.jar"/>
                </classpath>
            </java>
        </target>
        <!-- check whether server is still running -->
        <target name="-stopped">
            <condition property="server.stopped">
                <and>
                    <socket port="${tomcat.port}" server="${tomcat.server}"/>
                    <not>
                        <isset property="server.started"/>
                    </not>
                </and>
            </condition>
        </target>
        <!-- stop tomcat -->
        <target name="stop" depends="-stopped" description="stop tomcat server"
            if="server.stopped">
            <echo message="Stopping tomcat servlet engine..."/>
            <java classname="org.apache.catalina.startup.Bootstrap" fork="yes">
                <jvmarg value="-Djava.endorsed.dirs=${catalina.dir}/common/endorsed"/>
                <jvmarg value="-Dcatalina.base=${catalina.dir}"/>
                <jvmarg value="-Dcatalina.home=${catalina.dir}"/>
                <jvmarg value="-Djava.io.tmpdir=${catalina.dir}/temp"/>
                <arg value="stop"/>
                <classpath>
                    <pathelement location="${java.home}/../lib/tools.jar"/>
                    <pathelement location="${catalina.dir}/bin/bootstrap.jar"/>
                </classpath>
            </java>
        </target>The problem I have is, when using another target which depends on the tomcat start target, for example my list target:
        <target name="list" depends="start" description="list installed web applications">
            <list url="${url}" username="${username}"
                password="${password}"/>
        </target>When executing the list target, tomcat starts up correctly but the list target is not executed.
    Any help would be greatly appreciated.
    Best regards
    - Stephan

    No, I don't think that's the problem.
    In my opinion, the problem has something to do with
    fork="yes"in the start target.
    But how can I tell ant to first execute another target (the target that starts tomcat) and then execute for example the list target (which lists all the installed web apps)? When using the depends attribute it doesn't work:
    <target name="list" depends="start">
        <list url=.../>
    </target>When executing the list target, tomcat starts automatically (start target) but the list target is not executed after that :-(
    Any ideas?
    Best regards
    - Stephan

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

  • JCOP tools without GUI

    Hello,
    i would like to know, what scripts is JCOP tools exactly running while building Java files (generating class files) and converting them to CAP files. I.e. what does "Build autoimatically" exactly do in ECLIPSE IDE with JCOP plug-in? What .jar files are also used?
    I.e. i want to be able to rebuild my Java Card projects for different version os java cards without opening the Eclipse IDE, openning projects and building them in IDE.
    I would appreciate nay information.
    Thanks a lot,
    best regards,
    newbie.

    Hello.
    Thanks a lot lexdabear for your reply.
    The post you've noticed above was very useful for me. I have solved the problem with tric.jar and also would like to add my 50 cents regarding some solutions proposed by Lillesand.
    The error listed below can be simply avoided by explicitly declaring the whole name of the applet, i.e. -a 0xF3:0xF3:0xF3:0xF3:0xF3:0xA1:0xA1:0xA1:0xA1:0xA1 no.qfree.keyexport.KeyDiversification.
    E:\tools\captest2>java -cp e:\eclipse\plugins\com.ibm.bluez.jcop.eclipse_3.1.2\tric.jar com.ibm.jc.apps.tric.jc.Converter
    -dd e:\tools\captest2\
    -cp e:\workspace\KeyExport\bin\;e:\tools\java_card_kit-2_2_2\lib\api.jar
    -ep E:\tools\java_card_kit-2_2_2\api_export_files
    -a 0xF3:0xF3:0xF3:0xF3:0xF3:0xA1:0xA1:0xA1:0xA1:0xA1 KeyDiversification 0xF3:0xF3:0xF3:0xF3:0xF3:0xA2:0xA2:0xA2:0xA2:0xA2 StringStorage
    no.qfree.keyexport 0xF3:0xF3:0xF3:0xF3:0xF3 1 0
    Error: class java.lang.RuntimeException, no such applet class LKeyDiversification; found in package no/qfree/keyexportAlso my there are some facts that i have figured out during the usage of tric.jar through command line:
    1. Eclipse IDE produces slightly different .class files than i do by using
    javac -source 1.3 -target 1.2 -g options during the compilation. May be it uses additional options?
    2. Perhaps, as a result, a bit different CAP files are produced that the ones built automatically using Eclipse IDE GUI. Those CAP files also slightly differ in size (usually smaller tha mines). The only components that differ in size are:
    Method.cap
    Debug.cap.
    The files produced through command line work just fine. I guess, that JCOP tools may additionally optimize the .class files to produce a bit smaller .CAP files.
    3. Regarding the version information JCOP tools tric.jar produces
    CAP files with version M=2, m=1 when using JC211 API, and
    CAP files with version M=2, M=2 when using JC221.
    I also converted the same files uding JCDKv2.2.1. It produces CAP files of version M=2, M=1.
    In my opinion, all the problems that occured in the aforementioned post by Lillesand were caused by wrong usage of the JC2.2.2 export files.
    I totally agree with you, lexdabear regarding choosing only one solution. In case you are using JCOP tools (through GUI or command line) you must use JCOP JC API .jar files and tric.jar converter.
    If you are using JCDK, you must use its api.jar library with export files and converter from JCDK (coverter.bat).
    I hope this info might be useful.
    Best regards,
    Eve
    Edited by: Ieva on Nov 5, 2007 4:11 AM

  • Unable to set classpath in Ant Script to compile AIA related api

    Hi everyone,
    I am trying to build customized ant scripts to compile,build & deploy (oracle 11g)AIA application using ANT tool.To compile composite application,"scac" target name is used.This scac will refer the classpath which was set at ant-sca-compile.xml.scac is compiling all integartion artifacts except AIA related api.I added aia.jar to classpath in ant-sca-compile.xml.still,scac is not recognizing aia.jar
    I am getting below compilation problem
    scac:
    [scac] Validating composite : 'F:\AIA_Dev\BBProcessSupplierAppln\SyncSupplierPartyBBProvABCSImpl\bin/..//composite.xml'
    [scac] F:\AIA_Dev\BBProcessSupplierAppln\SyncSupplierPartyBBProvABCSImpl\bin\..\SCA-INF\bpel\SyncSupplierPartyBBProvABCSImplProcess\src\orabpel\syncsupplierpartybbprovabcsimplprocess\ExecLetBxExe9.java:408: package oracle.apps.aia.core.eh.logging does not exist
    [scac] Note: F:\AIA_Dev\BBProcessSupplierAppln\SyncSupplierPartyBBProvABCSImpl\bin\..\SCA-INF\bpel\SyncSupplierPartyBBProvABCSImplProcess\src\orabpel\syncsupplierpartybbprovabcsimplprocess\BPEL_BIN.java uses unchecked or unsafe operations.
    [scac] Note: Recompile with -Xlint:unchecked for details.
    [scac] FATAL_ERROR: location {ns:composite/ns:component[@name='SyncSupplierPartyBBProvABCSImplProcess']}(42,62): Failed to compile bpel generated classes.
    [scac] failure to compile the generated BPEL classes for BPEL process "SyncSupplierPartyBBProvABCSImplProcess" of composite "default/SyncSupplierPartyBBProvABCSImpl!1.0"
    [scac] The class path setting is incorrect.
    [scac] Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    [scac]
    Please let me know any body have faced above problem & resolved it.It is consuming more time.It would be appreciable,if any body provides solution for this.
    Thanks in advance.
    Thanks,
    Hanu

    Hi,
    How are you referring to the class path. I have created my custom build file and I refer like this.
    <path id="classpath">
      <pathelement location="${oracle.home}/lib/aia.jar"/>
      <pathelement location="${oracle.common.home}/modules/org.apache.commons.logging_1.0.4.jar"/>
    </path> oracle.home is the location where my aia.jar resides.
    In the compile-classes target I have
    <!--Target for Class path details -->
    <target name="compile-classes">
      <mkdir dir="${sca-inf.classes.dir}"/>
      <javac destdir="${sca-inf.classes.dir}"   classpathref="classpath"
             debug="on"                         nowarn="${javac.nowarn}"
             deprecation="${javac.deprecation}" encoding="Cp1252"
             source="1.6"                       target="1.6">
        <src path="${src.dir}"/>
      </javac> 
    </target> Regards,
    Neeraj Sehgal

  • Need steps to create ant scripts for publishing and deploying projects.

    Need steps to create ant scripts for publishing and deploying projects.
    Have got ant, Oracle BPM Enterprise WL edition installed , Need to know what are the other configurations to be done.
    Any working example would help me to understand, please do mail me at [email protected]
    Thanks in advance.
    -Sree

    Sreekant,
    Please find the build file to publish and deploy.
    <project name="deployProject"
    xmlns:fuego="antlib:fuego.tools.ant.enterprise"
    xmlns:fuego.j2ee="antlib:fuego.tools.ant.j2ee" default = "publish">
              <property file="./Properties/fuego_deploy.properties"/>
              <fuego:passport id="fuego.passport"
    directoryid="${fuego.directoryid}"
    preset="engine" />
    <target name="publish" description="Publish and deploy processes" depends = "takeInputs">
    <!-- Open a session to the Oracle BPM directory -->
    <fuego:session
    passportref="fuego.passport"
    verbose="true"
                   properties="${fuego.basedir}/conf/directory.xml"
    haltonerror="true" >
    <!-- Publish processes -->
    <fuego:publish fpr="${fuego.project.name}"
    deploy="true"
    engine="${fuego.engineName}"
                        importdata = "${fuego.importdata}"
                        automaproles="${fuego.automaproles}"
                        automapbuspars = "${fuego.automapbuspars}"
                        automapvars="${fuego.automapvars}"
                        automapconfigs = "${fuego.automapconfigs}">
    </fuego:publish>
    </fuego:session>
    </target>
    <target name= "takeInputs" >
    <input
    message="Please enter admin-username:"
    addproperty="fuego.participant"
    />
    <input
    message="Please enter admin-password:"
    addproperty="fuego.password"
    >
    </input>
    </target>
    </project>
    and find the properties I have used..
    fuego.basedir=C:\OraBPMEnterpriseHome
    fuego.directoryid=default
    fuego.engineName = bpmengine
    fuego.project.name = E:/antExamples/Project/CommonUtilities
    # If the below property is true then ant script imports data from the project, as defined in Studio.
    # This includes importing:
    #      •Holiday and Calendar rules
    #      •Organizational Units
    #      •Roles
    #      •Resource configurations
    #      •External Variables
    fuego.importdata = true
    #If the below property is true ant script automatically map abstract roles to real ones with the same name.
    fuego.automaproles=true
    #If the below property is true ant script automatically map business parameter variable names (as defined in the project design) to an business parameter variable id with the same name (as defined in the Fuego Enterprise directory).
    fuego.automapbuspars = true
    #If the below property is true ant script automatically map external variable names (as defined in the project design) to an external variable id with the same name (as defined in the Fuego Enterprise directory).
    fuego.automapvars=true
    #If the below property is true ant script automatically map External Resources configurations (as defined in the project design) to real Configurations with the same name (as defined in the Fuego Enterprise directory).
    fuego.automapconfigs = true

  • OSB - Deploying a java service on different servers using Ant script

    Hi All,
    My scenario is, I have two installations of OSB(with workshop), one on unix machine and other on windows machine...Now the problem is like, I have one java code exposed as a weblogic service ( this is created in workshop of windows machine), I need to deploy this service on my unix server using ANT script....
    Could any one pls let me know how to do this ( deploying services using Ant on different boxes).....
    Any help is appreciated....
    Thanks & Regards
    Feroz Tasha.

    Use the "targets" option to set the server where you want deploy your app.
    More info in [http://edocs.bea.com/wls/docs81/deployment/tools.html#1000477]

  • Deploying a java service on different servers using Ant script

    Hi All,
    My scenario is, I have two installations of OSB(with workshop), one on unix machine and other on windows machine...Now the problem is like, I have one java code exposed as a weblogic service ( this is created in workshop of windows machine), I need to deploy this service on my unix server using ANT script....
    Could any one pls let me know how to do this ( deploying services using Ant on different boxes).....
    Any help is appreciated....
    Thanks & Regards
    Feroz Tasha.

    Use the "targets" option to set the server where you want deploy your app.
    More info in [http://edocs.bea.com/wls/docs81/deployment/tools.html#1000477]

  • Assembly failed Exception during building of WLI application - Ant Script

    Hi all,
    I have a WLI 10.3 application which builds fine when built within the workshop.
    But when the ant scripts are exported and the application is built through ant scripts I'm getting the below mentioned errors.The problem occurs during building of the 'assembly' section of the web application.
    Any help on this would be greatly appreciated.Thanks in advance.
    The error message:
    [assemble] <Fri Mar 26 13:05:03 PDT 2010> <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\bea10gR3Wli\user_projects\workspaces\Flow_Through_Package\Servic
    eActivation\integration\build\weboutput\WEB-INF\web.xml of module null. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
    [assemble] at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152)
    [assemble] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
    [assemble] at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:141)
    [assemble] at com.bea.control.assembly.internal.AssemblyUtils.loadWebXml(AssemblyUtils.java:113)
    [assemble] at com.bea.wlw.runtime.messagebuffer.assembly.MessageBufferAssembler.doWebXmlDDManipulation(MessageBufferAssembler.java:254)
    [assemble] at com.bea.wlw.runtime.messagebuffer.assembly.MessageBufferAssembler.assemble(MessageBufferAssembler.java:139)
    [assemble] at com.bea.control.assembly.internal.AssemblerImpl.postAssemble(AssemblerImpl.java:123)
    [assemble] at com.bea.control.assembly.internal.AssemblerImpl.assemble(AssemblerImpl.java:71)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [assemble] at java.lang.reflect.Method.invoke(Method.java:597)
    [assemble] at com.bea.control.assembly.internal.Assembler.assemble(Assembler.java:91)
    [assemble] at com.bea.control.assembly.AssembleTask.assemble(AssembleTask.java:234)
    [assemble] at com.bea.control.assembly.AssembleTask.execute(AssembleTask.java:206)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
    [assemble] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [assemble] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
    [assemble] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [assemble] at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
    [assemble] at com.bea.workshop.cmdline.antlib.AntCallExTask.execute(AntCallExTask.java:118)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [assemble] at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [assemble] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    [assemble] at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
    [assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [assemble] at java.lang.reflect.Method.invoke(Method.java:597)
    [assemble] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
    [assemble] at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
    [assemble] at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
    [assemble] at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
    [assemble] at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [assemble] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [assemble] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [assemble] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [assemble] at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [assemble] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    [assemble] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    [assemble] Caused by: com.bea.xml.XmlException: java.lang.AssertionError: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
    [assemble] at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:54)
    [assemble] at com.bea.staxb.runtime.internal.RuntimeBindingProperty.createObjectViaFactory(RuntimeBindingProperty.java:256)
    [assemble] at com.bea.staxb.runtime.internal.RuntimeBindingProperty.createIntermediary(RuntimeBindingProperty.java:129)
    [assemble] at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElementProperty(LiteralUnmarshalResult.java:162)
    [assemble] at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:136)
    [assemble] at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
    [assemble] at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoIntermediary(AttributeUnmarshaller.java:47)
    [assemble] at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:189)
    [assemble] at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:159)
    [assemble] at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
    [assemble] at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
    [assemble] ... 78 more
    [assemble] Caused by: java.lang.AssertionError: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
    [assemble] at weblogic.descriptor.internal.AbstractDescriptorBean._createChildBean(AbstractDescriptorBean.java:748)
    [assemble] at weblogic.descriptor.internal.AbstractDescriptorBean.createObject(AbstractDescriptorBean.java:88)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [assemble] at java.lang.reflect.Method.invoke(Method.java:597)
    [assemble] at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:48)
    [assemble] ... 88 more
    [assemble] Caused by: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
    [assemble] at weblogic.descriptor.internal.AbstractDescriptorBean.<init>(AbstractDescriptorBean.java:45)
    [assemble] at weblogic.j2ee.descriptor.ListenerBeanImpl.<init>(ListenerBeanImpl.java:59)
    [assemble] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [assemble] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [assemble] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [assemble] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    [assemble] at weblogic.descriptor.internal.AbstractDescriptorBean._createChildBean(AbstractDescriptorBean.java:740)
    [assemble] at weblogic.descriptor.internal.AbstractDescriptorBean.createObject(AbstractDescriptorBean.java:88)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [assemble] at java.lang.reflect.Method.invoke(Method.java:597)
    [assemble] at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:48)
    [assemble] at com.bea.staxb.runtime.internal.RuntimeBindingProperty.createObjectViaFactory(RuntimeBindingProperty.java:256)
    [assemble] at com.bea.staxb.runtime.internal.RuntimeBindingProperty.createIntermediary(RuntimeBindingProperty.java:129)
    [assemble] at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElementProperty(LiteralUnmarshalResult.java:162)
    [assemble] at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillElementProp(LiteralUnmarshalResult.java:136)
    [assemble] at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents(ByNameUnmarshaller.java:51)
    [assemble] at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoIntermediary(AttributeUnmarshaller.java:48)
    [assemble] at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:189)
    [assemble] at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:159)
    [assemble] at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
    [assemble] at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
    [assemble] at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:306)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
    [assemble] at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
    [assemble] at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:141)
    [assemble] at com.bea.control.assembly.internal.AssemblyUtils.loadWebXml(AssemblyUtils.java:113)
    [assemble] at com.bea.wlw.runtime.messagebuffer.assembly.MessageBufferAssembler.doWebXmlDDManipulation(MessageBufferAssembler.java:254)
    [assemble] at com.bea.wlw.runtime.messagebuffer.assembly.MessageBufferAssembler.assemble(MessageBufferAssembler.java:140)
    [assemble] at com.bea.control.assembly.internal.AssemblerImpl.postAssemble(AssemblerImpl.java:123)
    [assemble] at com.bea.control.assembly.internal.AssemblerImpl.assemble(AssemblerImpl.java:73)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [assemble] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [assemble] at java.lang.reflect.Method.invoke(Method.java:597)
    [assemble] at com.bea.control.assembly.internal.Assembler.assemble(Assembler.java:91)
    [assemble] at com.bea.control.assembly.AssembleTask.assemble(AssembleTask.java:236)
    [assemble] at com.bea.control.assembly.AssembleTask.execute(AssembleTask.java:206)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:39)
    [assemble] at org.apache.tools.ant.Project.executeTargets(Project.java:1070)
    [assemble] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
    [assemble] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:108)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1186)
    [assemble] at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
    [assemble] at com.bea.workshop.cmdline.antlib.AntCallExTask.execute(AntCallExTask.java:119)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1186)
    [assemble] at com.bea.workshop.cmdline.antlib.AntExTask.execute(AntExTask.java:406)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [assemble] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197)
    [assemble] at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
    [assemble] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [assemble] at java.lang.reflect.Method.invoke(Method.java:597)
    [assemble] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
    [assemble] at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259)
    [assemble] at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268)
    [assemble] at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:299)
    [assemble] at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:245)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
    [assemble] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [assemble] at org.apache.tools.ant.Task.perform(Task.java:364)
    [assemble] at org.apache.tools.ant.Target.execute(Target.java:341)
    [assemble] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [assemble] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [assemble] at org.apache.tools.ant.Project.executeTarget(Project.java:1186)
    [assemble] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [assemble] at org.apache.tools.ant.Project.executeTargets(Project.java:1070)
    [assemble] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [assemble] at org.apache.tools.ant.Main.startAnt(Main.java:188)
    [assemble] ... 2 more
    [assemble] .>
    [assemble] Assembly failed - Control Assembly process failed
    [assemble] Caused by: Unable to read file C:\bea10gR3Wli\user_projects\workspaces\Flow_Through_Package\ServiceActivation\integration\build\weboutput\WEB-INF\web.xml
    during assembly
    [assemble] Caused by: Unmarshaller failed
    [assemble] Caused by: java.lang.AssertionError: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
    [assemble] Caused by: java.lang.LinkageError: Class weblogic/descriptor/Descriptor violates loader constraints
    [assemble] Caused by: Class weblogic/descriptor/Descriptor violates loader constraints

    Added weblogic.jar in the classpath and that resolved the issue.

  • Calling Ant script from Jdeveloper

    Hello Gurus,
    I am trying to call Ant script from Jdeveloper.
    I am able to call it when i don't use any javac in ant script.
    But as soon as i include a javac command
       <javac srcdir="${src}" destdir="${build}"/>
    I get below error
    C:\ant\windows\svn\AntJava\Project1\build.xml:20: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK.
    It is currently set to "C:\Oracle\jdk160_24\jre"
    Needless to say i already have implemented all the steps mentioned in the internet.
    I have my JAVA_HOME correctly set in my PATH environment variable.
    I have tools.jar in the CLASSPATH
    Please give a solution from JDeveloper perspective and not a generic one as i am done with all the steps provided in internet.

    any one?????

  • Propagation with ant scripts

    Hi all,
    I'm trying to propagate repositories from one server to another, using propagation tools for ant scripts.
    There are some documention on how to do this, but I get errors that are not explained in these documents.
    Is there any further documentation available on this issue?
    Thx
    Steffen Vogdrup

    1st - There is a WLP specific forum, this one is for WLS:
    WebLogic Portal
    2nd - You should review this propagation guide by one of the WLP Architects:
    http://wlp.bea.com/docs/PropagationToolFieldGuide_v92.htm

  • JCOP Tools init-update problem

    Hello, everybody!!!
    I wanna simulate CardManager authentication behaviour and have some problems... Below i show you excerpts from my applet and the process of sending INITIALIZE UPDATE command to it using JCOP Shell.
    If somebody has an idea to deal with this issue, please help.
    Here's the definition of key i've used:
    byte[] secKey = new byte[] {
          (byte)0x40, (byte)0x41, (byte)0x42, (byte)0x43,
          (byte)0x44, (byte)0x45, (byte)0x46, (byte)0x47
    };This is done inside the constructor (secKey declared as a class field).
    Next, i've added method to process INITIALIZE UPDATE command:
       private boolean processInitUpdate(APDU apdu) {
          byte[] buffer = apdu.getBuffer();
          if((buffer[ISO7816.OFFSET_CLA] != 0x80) &&
                (buffer[ISO7816.OFFSET_INS] != 0x50))
             return false;
          byte challengeLen = buffer[ISO7816.OFFSET_LC];
          byte dataRead = (byte)apdu.setIncomingAndReceive();
          if((challengeLen != 0x08) || (dataRead != 0x08)) {
             ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
          // Encrypted cryptogram buffer
          byte[] cryptogram = new byte[8];
          DESKey des_key = (DESKey)KeyBuilder.buildKey(
                KeyBuilder.TYPE_DES, KeyBuilder.LENGTH_DES, false);
          des_key.setKey(secKey, (short)0);
          Cipher cipher = Cipher.getInstance(Cipher.ALG_DES_ECB_NOPAD, false);
          cipher.init(des_key, Cipher.MODE_ENCRYPT);
          // Encrypt the incoming challenge
          cipher.doFinal(buffer, ISO7816.OFFSET_CDATA, (byte)8, cryptogram, (byte)0);
          // Output data
          byte[] keyDeriviation = new byte[] {
                (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
                (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00
          byte[] keyInfo = new byte[] {
                (byte)0xff, (byte)0x02
          // TODO generate random
          byte[] challenge = new byte[] {
                (byte)0x11, (byte)0x22, (byte)0x33, (byte)0x44,
                (byte)0x55, (byte)0x66, (byte)0x77, (byte)0x88
          // Calculate total length of the data to be sent
          short totalLen = (short)(keyDeriviation.length + keyInfo.length +
                                   cryptogram.length + challenge.length);
          apdu.setOutgoing();
          apdu.setOutgoingLength(totalLen);
          apdu.sendBytesLong(keyDeriviation, (short)0, (short)keyDeriviation.length);
          apdu.sendBytesLong(keyInfo, (short)0, (short)keyInfo.length);
          apdu.sendBytesLong(challenge, (short)0, (short)challenge.length);
          apdu.sendBytesLong(cryptogram, (short)0, (short)cryptogram.length);
          return true;
       }This method returns true if command has been processed successfully.
    I've used GlobalPlatform specification to properly parse command APDU and to generate response APDU.
    Then i use JCOP Tools for Eclipse shell. I select above applet and define keys as follows:
    set-key 255/1/DES-ECB/4041424344454647
    set-key 255/2/DES-ECB/4041424344454647
    set-key 255/3/DES-ECB/4041424344454647Then i use init-update command:
    init-update 255Shell generates the following APDU command sequence:
    80 50 00 00 08 C3 17 13 59 C6 0F ED ED 00We can see the challenge, generated by simulator: C3 17 13 59 C6 0F ED ED.
    I got the response:
    00 00 00 00 00 00 00 00 00 00 FF 02 11 22 33 44 55 66 77 88 4D 4C E8 7E 6A 04 B1 43 90 00It seems everything all right, but shell shows an error:
    Status: No Error
    jcshell: Error code: -5 (Authentication failed)
    jcshell: Wrong response APDU: 00000000000000000000FF0211223344556677884D4CE87E6A04B1439000I think I set keys inside the shell incorrectly. I use triple-DES, but code uses simple DES. However, i use equal keysets for triple-DES so it's the same as DES.
    What's wrong?
    Thank you.

    Hello everybody, again!
    At last, I solved my problem. The issue was I incorrectly generated card cryptogram data. Cryptogram must be constructed using full triple DES algorithm. After that JCOP shell processes init-update 255 successfully.
    Below I'll present working code for processing INITIALIZE UPDATE command in JCOP tools, maybe this will be helpful for somebody.
       private boolean processInitUpdate(APDU apdu) {
          byte[] buffer = apdu.getBuffer();
          // Whether this INITIALIZE UPDATE command?
          if((buffer[ISO7816.OFFSET_CLA] != 0x80) &&
                (buffer[ISO7816.OFFSET_INS] != 0x50))
             return false;
          byte challengeLen = buffer[ISO7816.OFFSET_LC];
          byte dataRead = (byte)apdu.setIncomingAndReceive();
          if((challengeLen != 0x08) || (dataRead != 0x08)) {
             ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
          // TODO generate random
          // Card challange
          byte[] challenge = new byte[] {
                (byte)0x11, (byte)0x22, (byte)0x33, (byte)0x44,
                (byte)0x55, (byte)0x66, (byte)0x77, (byte)0x88
          // DES Secure Channel Encryption Key (S-ENC) generation
          // Deriviation data array
          byte[] derivData = new byte[16];
          // Secure Channel Encryption Key data array
          byte[] s_enc_key = new byte[16];
          // The construction of deriviation data
          Util.arrayCopy(buffer, (short)(ISO7816.OFFSET_CDATA + 4), derivData, (short)12, (short)4);
          Util.arrayCopy(challenge, (short)0, derivData, (short)8, (short)4);
          Util.arrayCopy(buffer, ISO7816.OFFSET_CDATA, derivData, (short)4, (short)4);
          Util.arrayCopy(challenge, (short)4, derivData, (short)0, (short)4);
          // Construct and initialize Cipher with des_key
          DESKey des_key = (DESKey)KeyBuilder.buildKey(
                KeyBuilder.TYPE_DES, KeyBuilder.LENGTH_DES3_2KEY, false);
          des_key.setKey(secKey, (short)0);
          Cipher cipher = Cipher.getInstance(Cipher.ALG_DES_ECB_NOPAD, false);
          cipher.init(des_key, Cipher.MODE_ENCRYPT);
          // Generate session S-ENC key
          cipher.doFinal(derivData, (byte)0, (byte)derivData.length, s_enc_key, (byte)0);
          // Card Authentication Cryptogram generation
          // Cryptogram data array
          byte[] cryptogram = new byte[8];
          // Initial vector data
          byte[] initVector = new byte[] {
                (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
                (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00
          // Construct and initialize Cipher with s_enc_key
          des_key.setKey(s_enc_key, (short)0);
          cipher = Cipher.getInstance(Cipher.ALG_DES_CBC_NOPAD, false);
          cipher.init(des_key, Cipher.MODE_ENCRYPT, initVector, (short)0, (short)initVector.length);
          // Extract host challenge from input buffer
          byte[] hostChallenge = new byte[8];
          Util.arrayCopy(buffer, ISO7816.OFFSET_CDATA, hostChallenge, (short)0, (short)hostChallenge.length);
          // Step 1: Encrypt host challenge using ICV of binary zeroes
          byte[] inputData = xorOperation(initVector, hostChallenge);
          cipher.doFinal(inputData, (short)0, (short)inputData.length, cryptogram, (short)0);
          // Step 2: Encrypt card challenge using results of the previous operation
          inputData = xorOperation(cryptogram, challenge);
          cipher.doFinal(inputData, (short)0, (short)inputData.length, cryptogram, (short)0);
          // Step 3: Encrypt DES padding data using results of the previous operation
          byte[] pad = new byte[] {
                (byte)0x80, (byte)0x00, (byte)0x00, (byte)0x00,
                (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00
          inputData = xorOperation(cryptogram, pad);
          cipher.doFinal(inputData, (short)0, (short)inputData.length, cryptogram, (short)0);
          // Generate output
          byte[] keyDeriviation = new byte[] {
                (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
                (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00
          byte[] keyInfo = new byte[] {
                (byte)0xff, (byte)0x01
          // Calculate total length of the data to be sent
          short totalLen = (short)(keyDeriviation.length + keyInfo.length +
                                   cryptogram.length + challenge.length);
          apdu.setOutgoing();
          apdu.setOutgoingLength(totalLen);
          apdu.sendBytesLong(keyDeriviation, (short)0, (short)keyDeriviation.length);
          apdu.sendBytesLong(keyInfo, (short)0, (short)keyInfo.length);
          apdu.sendBytesLong(challenge, (short)0, (short)challenge.length);
          apdu.sendBytesLong(cryptogram, (short)0, (short)cryptogram.length);
          return true;
       private byte[] xorOperation(byte[] op1, byte[] op2) {
          byte[] res = new byte[8];
          if((op1.length != 8) || (op2.length != 8)) return null;
          for(byte i = 0; i < res.length; i++) {
             res[i] = (byte)(op1[i] ^ op2);
    return res;
    Regards, Eugene.

  • Cannot Start Service Bus Domain from ANT script

    Hi,
    I am preparing a script which buils service bus domain using wlst script and then makes a jar file of the newly build domain and transfer it to the target location where it need to run.
    Once the jar file is in target location is jar is expanded in a folder.
    The above mentioned process if working fine. If i try to start the domain from that location either by double clicking startWebLogic.cmd or from dos prompt it does start the domain wihtout any error.
    However if i try to start the domain from with the same ANT script either using <wlserver> or <java classname="weblogic.WLST"> using startServer ('AdminServer','mydomainname','weblogic','weblogic','t3://localhost:7001') the domain startup does start but failes with same weblogic.management.deployment exception.
    complaining about all alsb specific applications error i.e.
    java.lang.ClassNotFoundException: com.bea.wli.sb.init.MarkerAppListener/com.bea.wli.sb.init.FrameworkStarter ..... under weblogic.management.deloymentexception.
    had anyone manager to start domain like this? any help?
    thanks
    salman

    I faced a similar issue when all ALSB specific applications were failing with ClassNot Found error when the managed servers were started using node manager. This was fixed by setting up the right Server Classpath for the WLS server.
    The issue was fixed after setting up the CLASSPATH to use when starting up the server as below, where E:/APPS/STAGE/OSB103 is the BEA_HOME
    E:\APPS\STAGE\OSB103\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_cie670\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_alsb1031\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\JROCKI~1\lib\tools.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\weblogic_sp.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\weblogic.jar;E:\APPS\STAGE\OSB103\modules\features\weblogic.server.modules_10.3.0.0.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\webservices.jar;E:\APPS\STAGE\OSB103\modules\ORGAPA~1.5/lib/ant-all.jar;E:\APPS\STAGE\OSB103\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\features\osb.server.modules_10.3.1.0.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\flow\sb-flow.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\com.bea.core.jaxen_1.0.1.0_1-1-1.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\version.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\alsb.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-ant.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-common.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-core.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-dameon.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\classes;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\com.bea.core.apache.commons.logging_1.1.0.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\jca-binding-api.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\bpm-infra.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\E:\APPS\STAGE\OSB103\patch_wlw1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_cie670\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\patch_alsb1031\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\APPS\STAGE\OSB103\JROCKI~1\lib\tools.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\weblogic_sp.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\weblogic.jar;E:\APPS\STAGE\OSB103\modules\features\weblogic.server.modules_10.3.0.0.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\webservices.jar;E:\APPS\STAGE\OSB103\modules\ORGAPA~1.5/lib/ant-all.jar;E:\APPS\STAGE\OSB103\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\features\osb.server.modules_10.3.1.0.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\flow\sb-flow.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\com.bea.core.jaxen_1.0.1.0_1-1-1.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\version.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\alsb.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-ant.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-common.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-core.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\lib\j2ssh-dameon.jar;E:\APPS\STAGE\OSB103\osb_10.3\3rdparty\classes;E:\APPS\STAGE\OSB103\WLSERV~1.3\..\modules\com.bea.core.apache.commons.logging_1.1.0.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\jca-binding-api.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\bpm-infra.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\log4j_1.2.8.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\xmlparserv2.jar;WL_HOME\server\ext\jdbc\oracle\orai18n.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\xqrl.jar;jca\log4j_1.2.8.jar;E:\APPS\STAGE\OSB103\osb_10.3\lib\transports\jca\xmlparserv2.jar;WL_HOME\server\ext\jdbc\oracle\orai18n.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;E:\APPS\STAGE\OSB103\WLSERV~1.3\server\lib\xqrl.jar;
    -Atheek

Maybe you are looking for