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.

Similar Messages

  • Build problem with weblogic exported ANT scripts

    Hi,
    Im getting a null pointer exception while parsing the EAR projects build.xml at line
    <mdimport workspace="${workspace}" pjdir="${project.dir}" echo="${echo.metadata}">
    exception:
    BUILD FAILED
    /apps/opt/ccm/build_mgr/VSRMS,int/VSRMS/src/RMSWorkspace/rmsClaims/build.xml:78: java.lang.NullPointerException
    at org.apache.tools.ant.Task.perform(Task.java:373)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    at org.apache.tools.ant.Main.runBuild(Main.java:668)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Caused by: java.lang.NullPointerException
    at java.io.FileInputStream.<init>(FileInputStream.java:103)
    at com.bea.workshop.common.util.DomUtil.doc(DomUtil.java:73)
    at com.bea.workshop.common.util.DomUtil.root(DomUtil.java:118)
    at com.bea.workshop.cmdline.antlib.eclipse.wtp.WtpUtil.createVirtualFileSystem(WtpUtil.java:63)
    at com.bea.workshop.cmdline.antlib.eclipse.wtp.WtpEarLibrariesContainerResolver.getManifestFile(WtpEarLibrariesContainerResolver.java:115)
    at com.bea.workshop.cmdline.antlib.eclipse.wtp.WtpEarLibrariesContainerResolver.resolve(WtpEarLibrariesContainerResolver.java:40)
    at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.resolve(JavaImportParticipant.java:383)
    at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.getRawClasspath(JavaImportParticipant.java:257)
    at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.getRawClasspath(JavaImportParticipant.java:186)
    at com.bea.workshop.cmdline.antlib.eclipse.java.ClasspathProjectReferencesProvider.getReferencedProjects(ClasspathProjectReferencesProvider.java:23)
    at com.bea.workshop.cmdline.antlib.eclipse.ProjectReferencesUtil.readDependencyInfo(ProjectReferencesUtil.java:201)
    at com.bea.workshop.cmdline.antlib.eclipse.ProjectReferencesUtil.readDependencyInfo(ProjectReferencesUtil.java:215)
    at com.bea.workshop.cmdline.antlib.eclipse.ProjectReferencesUtil.getReferencedProjects(ProjectReferencesUtil.java:67)
    at com.bea.workshop.cmdline.antlib.eclipse.wtp.EarProjectImportParticipant.execute(EarProjectImportParticipant.java:33)
    at com.bea.workshop.cmdline.antlib.eclipse.ImportProjectMetadataTask.execute(ImportProjectMetadataTask.java:149)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    ... 10 more
    All the environment paths are set. Running the commEnv.sh before compiling the proj.
    Any help much appreciated.

    chk this
    Re: build errors using Ant
    1. If you are working from the user_projects directory, add the following to the properties section of the build xml "<property name="weblogic.jar.classpath" value="../../../../wlserver_10.3/server/lib"/>". Other wise set the value parameter to the full directory path of the wlserver_10.3 server lib directory.
    2. Within each taskdef element, add the following child element
    <classpath>
    <path id="weblogic.classpath" >
    <pathelement path="WEBLOGIC_HOME"/>
    <fileset dir="${weblogic.jar.classpath}">
    <include name="weblogic.jar"/>
    </fileset>
    </path>
    </classpath>
    3. Save and run ant task from your project directory.

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

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

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

  • Problem with exported ant build scripts of a  WebService Project

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

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

  • Export OSB configuration from eclipse using ant script

    I am trying to export an OSB project from eclipse using ant script
    I followed the link below http://biemond.blogspot.com/2010/07/osb-11g-ant-deployment-scripts.html
    It is using com.bea.alsb.core.ConfigExport to do the export. This export is always set to resource level.
    I see it generates a file ExportInfo setting some properties. It has a property that set the export level as below
    <imp:property name="projectLevelExport" value="false"/>*
    How can I export the project in project level? basically setting projectLevelExport to true?
    So that if a file does not exist in the sbconfig.jar file , then while importing the jar to OSB server it will delete the file from the server instead of skipping it?
    I appreciate any help
    here is the ant script snippet that gets executed to export from eclipse
    <target name="exportFromWorkspace">
         <delete failonerror="false" includeemptydirs="true"
    dir="${metadata.dir}"/>     
                   <!--eclipse.refreshLocal resource="${config.project}" depth="infinite"/-->
    <java dir="${eclipse.home}"
    jar="${eclipse.home}/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar"
    fork="true" failonerror="true" maxmemory="768m">
    <jvmarg line="-XX:MaxPermSize=256m"/>
    <arg line="-data ${workspace.dir}"/>
    <arg line="-application com.bea.alsb.core.ConfigExport"/>
    <arg line="-configProject ${config.project}"/>
    <arg line="-configJar ${config.jar}"/>
    <arg line="-configSubProjects ${config.subprojects}"/>
              <arg line="-exportLevel true"/>
    <arg line="-includeDependencies ${config.includeDependencies}"/>
    <sysproperty key="weblogic.home" value="${weblogic.home}"/>
    <sysproperty key="osb.home" value="${osb.home}"/>
    <sysproperty key="osgi.bundlefile.limit" value="500"/>
    <sysproperty key="harvester.home" value="${osb.home}/harvester"/>
    <sysproperty key="osgi.nl" value="en_US"/>
    <sysproperty key="sun.lang.ClassLoader.allowArraySyntax" value="true"/>
    </java>
    </target>

    yes, I specified the project name to export the whole project.
    Here is few lines from my properties file
    # properties for workspace export
    config.project="OSB Configuration-GW"
    config.jar=D:/workspace/osb/scripts/gateway/mycode2/ant_osb/dist/sbconfig.jar
    config.subprojects="GatewaySecurity"
    config.includeDependencies=true
    workspace.dir=D:/workspace/osb/gateway-workspace
    But this property does not make it to export at project level ,it export the specified project at resource level.
    And while importing this jar to OSB server, if a file is missing it skips the file instead of deleting the file from the OSB server
    If I unjar sbconfig.jar file, open ExportInfo file and update the line in bold below to true then it deletes the file from OSB server, if not exist in sbconfig.jar
    <imp:property name="exporttime" value="Thu Dec 29 13:57:44 EST 2011"/>
    <imp:property name="productname" value="Oracle Service Bus"/>
    <imp:property name="productversion" value="11.1.1.4"/>
    *<imp:property name="projectLevelExport" value="false"/>*
    Here is few lines from Oracle API java doc
    http://docs.oracle.com/cd/E13171_01/alsb/docs26/javadoc/com/bea/wli/sb/management/importexport/ALSBImportOperation.Operation.html
    public static final ALSBImportOperation.Operation Delete
    Indicates that the resource is deleted in the importing domain. This is the default operation when the project is exported in its entirety and the resource exists in the target domain but not in the jar file
    public static final ALSBImportOperation.Operation Skip
    Indicates that the resource is skipped meaning the resource is not touched in the importing domain. This is the default operation if the jar file was exported at the resource level, and a resource that exists in the target domain, does not exist in the jar file.

  • 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

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

  • Oracle Bam Ant Scripts

    Hi Frds,
       I doing ant scripts for Oracle BAM Import and export. its working fine.. i have created build.xml ,build.Properties,and export file, import file and BAMICommandConfig.xml.
    But now i have to merge all the file in build.xml except build.properties, is it possible, can any one suggest pls.
    Thanks in advance,
    Ravi.

    When you create a database, you run $ORACLE_HOME/rdbms/admin/catalog.sql and $ORACLE_HOME/rdbms/admin/catproc.sql
    These scripts call the scripts that create the data dictionary tables, views, and packages. Some of the internal packages are encrypted, so good luck ...

  • Error while deploying application in Web center Spaces via ant script

    Hi all,
    Jdeveloper version 11.1.1.6
    I am trying to deploy application in Web center Spaces using ant script .
    I am able to deploy it if i keep these two files in local machine .
    wls.userkey=C:\\myFiles\\myuserkeyfile.secure
    wls.userconfig=C:\\myFiles\\myuserconfigfile.secure
    where as when I am trying to pick these files from remote web-logic server I am getting following error
    [exec]  Deploy started at Thu Dec 12 17:26:41 2013
    [exec]
    [exec] Please enter your username :Please enter your password :
    [exec] java.lang.NullPointerException
    [exec] This Exception occurred at Thu Dec 12 17:26:41 GMT+05:30 2013.
    [exec] at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:176)
    [exec] at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:61)
    [exec] at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:147)
    [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [exec] at java.lang.reflect.Method.invoke(Method.java:597)
    [exec] at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    [exec] at org.python.core.PyMethod.__call__(Unknown Source)
    [exec] at org.python.core.PyObject.__call__(Unknown Source)
    [exec] at org.python.core.PyObject.invoke(Unknown Source)
    [exec] at org.python.pycode._pyx4.connect$1(<iostream>:16)
    [exec] at org.python.pycode._pyx4.call_function(<iostream>)
    [exec] at org.python.core.PyTableCode.call(Unknown Source)
    [exec] at org.python.core.PyTableCode.call(Unknown Source)
    [exec] at org.python.core.PyFunction.__call__(Unknown Source)
    [exec] at org.python.pycode._pyx72.f$0(C:\Abhishek_Mr.Price\SampleWebCenterSpacesExtensions\SampleWebCenterSpacesExtensions\WebCenterSpacesSharedLibExtension\extspaces.py:14)
         [exec] at org.python.pycode._pyx72.call_function(C:\Abhishek_Mr.Price\SampleWebCenterSpacesExtensions\SampleWebCenterSpacesExtensions\WebCenterSpacesSharedLibExtension\extspaces.py)
    [exec] at org.python.core.PyTableCode.call(Unknown Source)
    [exec] at org.python.core.PyCode.call(Unknown Source)
    [exec] at org.python.core.Py.runCode(Unknown Source)
    [exec] at org.python.util.PythonInterpreter.execfile(Unknown Source)
    [exec] at weblogic.management.scripting.WLST.main(WLST.java:124)
         [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [exec] at java.lang.reflect.Method.invoke(Method.java:597)
    [exec] at weblogic.WLST.main(WLST.java:29)
    [exec] None
    [exec] #########################################################
    [exec] #####     Deployment Failed #########
    [exec] #####     Contact support with Exception Stack #########
    [exec] #########################################################
    [exec]
    [exec]
    Chandana

    Any Updates

  • Error while running the ant script of fusion order demo -Infrastructure.jws

    Hi All,
    I was trying to run the store front application.
    As i was trying to run the scripts to create the tables, stored procedure, schemas etc, the execution of the ant script failed with the following error:
    The apache Ant log reads as follows:
    *[echo] USER_CONTEXT Package Created*
    compileImagesApp:
    *[javac] Compiling 3 source files to D:\11g\ADF-11g\FusionOrderDemo_R1PS1\Infrastructure\DBSchema\classes*
    BUILD FAILED
    D:\11g\ADF-11g\FusionOrderDemo_R1PS1\Infrastructure\Ant\build.xml:51: The following error occurred while executing this line:
    D:\11g\ADF-11g\FusionOrderDemo_R1PS1\Infrastructure\DBSchema\build.xml:312: D:\Jdev11g\oracle_common\modules\oracle.javacache_11.1.1 not found.
    Total time: 2 minutes 26 seconds
    I ignored the above error and when i tried to run the StoreFrontUI project, i was unable to see the images rendered on the User Interface.
    Can anybody help me as to why this would have happened?
    Is it not getting rendered because the ant script failed @ compileImagesApp? If so, what is the solution for the same?
    Thanks in Advance,
    Vijay

    Hi,
    Even after commenting and uncommenting the path for the imageurl variable in the ImageLoaderServiceAMImpl.java, i am getting the following error when trying to build the schema from the MasterbuildScript Project:
    compileImagesApp:
    *[javac] Compiling 3 source files to D:\11g\adf-Handson\FOD_11\Infrastructure\DBSchema\classes*
    BUILD FAILED
    D:\11g\adf-Handson\FOD_11\Infrastructure\Ant\build.xml:52: The following error occurred while executing this line:
    D:\11g\adf-Handson\FOD_11\Infrastructure\DBSchema\build.xml:262: D:\Jdev11g\jdeveloper\modules\oracle.xdk_11.1.1 not found.
    Total time: 59 seconds
    One more observation when i was changing the path in the ImageLoaderServiceAMImpl.java was that, there were lot many errors that were shown in the file:
    Following import statements were erroring out:
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.domain.BlobDomain;
    import oracle.jbo.domain.DBSequence;
    import oracle.jbo.domain.Timestamp;
    import oracle.jbo.domain.Number;
    import oracle.jbo.server.ApplicationModuleImpl;
    import oracle.jbo.server.ViewObjectImpl;
    Can you please provide some pointers on this as well?
    Regards,
    Vijay Swaminathan

  • Problem with Ant Script while deploying a BPEL Process

    Hi all,
    Im making use of Ant script to Deploy a BPEL process ...the bpel process simply invokes the credit rating service and returns the credit rating..credit rating service and the whole BPEL
    process are deployed in the default domain...now i made a new domain and making using of Ant scripts to deploy it to this Domain in the same local server ...i followed the steps
    from this blog http://blogs.oracle.com/rammenon/2007/07/deploying_bpel_process_to_mult.html now my problem is even though i mention a different Domain Name in
    ant- orabpel_dev.properties its always getting deployed to Default domain........can anyone Plzzz help me.
    Edited by: 0racler on Aug 15, 2009 12:09 PM

    in build.properties of the project -
    uncomment (remove the #) and change to the new domain
    # Change below if deploying in domain other than "default"
    #domain = default
    when you run deployProcess target - you should see which domain is used - based on the above variable.
    cheers

  • Error while compiling the composite through custom ant script

    Hi,
    I am getting the following error while compiling the composite through custom built ant scripts which are intern call the ant-sca-package.xml. And the composite is created by upgrading the 10g bpels. But the same composite is successfully compiling from Jdeveloper (11.1.1.4).
    oad of wsdl "oramds:/soa/shared/workflow/NotificationService.wsdl" failed
    oracle.fabric.common.FabricException: Error in getting XML input stream: oramds:/soa/shared/workflow/NotificationService.wsdl: oracle.mds.exception.MDSException: MDS-00054: The file to be loaded oramds:/soa/shared/workflow/NotificationService.wsdl does not exist.
         at oracle.fabric.common.metadata.MetadataManagerImpl.getInputStreamFromAbsoluteURL(MetadataManagerImpl.java:280)
         at oracle.integration.platform.common.MDSMetadataManagerImpl.getInputStreamFromAbsoluteURL(MDSMetadataManagerImpl.java:555)
         at oracle.fabric.common.metadata.MetadataManagerImpl.getDocumentAsInputStream(MetadataManagerImpl.java:159)
         at oracle.integration.platform.common.MDSMetadataManagerImpl.getDocumentAsInputStream(MDSMetadataManagerImpl.java:417)
         at oracle.fabric.common.wsdl.WSDLManager.loadWSDL(WSDLManager.java:241)
         at oracle.fabric.common.wsdl.WSDLManager.loadWSDL(WSDLManager.java:304)
         at oracle.soa.scac.ValidateComposite.loadWSDLs(ValidateComposite.java:934)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:491)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Caused by: java.io.IOException: oracle.mds.exception.MDSException: MDS-00054: The file to be loaded oramds:/soa/shared/workflow/NotificationService.wsdl does not exist.
         at oracle.mds.internal.net.AbstractOraMDSURLConnection.getPDocStream(AbstractOraMDSURLConnection.java:388)
         at oracle.mds.internal.net.AbstractOraMDSURLConnection.getInputStream(AbstractOraMDSURLConnection.java:176)
         at oracle.mds.internal.net.OraMDSURLConnection.getInputStream(OraMDSURLConnection.java:67)
         at java.net.URL.openStream(URL.java:1010)
         at oracle.fabric.common.metadata.MetadataManagerImpl.getInputStreamFromAbsoluteURL(MetadataManagerImpl.java:276)
         ... 9 more
    Caused by: oracle.mds.exception.MDSException: MDS-00054: The file to be loaded oramds:/soa/shared/workflow/NotificationService.wsdl does not exist.
         at oracle.mds.internal.net.AbstractOraMDSURLConnection.getPDocStream(AbstractOraMDSURLConnection.java:339)
    And in the following blog, its recommended to check for the adf-config.xml. But when upgrading the bpels from 10g to 11.1.1.4, I don't see any such file created by Jdeveloper.
    http://orasoa.blogspot.com/2010/08/ant-and-mds-composite-compile-error.html
    Not sure if I am missing some properties to add in by custom script while compiling.
    Thanks
    Sree
    Edited by: Sree on Jul 4, 2011 7:25 AM

    Hi Hussain,
    Thanks for the reply.
    Were you able to compile the form at the client side successfully?
    1) Were you able to compile the form at the client side successfully?:
    Ans: Yes, I was able to compile the form successfully at client side.
    2) Are you logged in as applmgr user? Have you sourced the application env file before compiling the form?
    Ans: No, I have not logged by applmgr user, i am using my own login. Yes I have sourced the application env file before compiling the form
    3) What does "echo $FORMS_PATH" return?
    Ans: echo $FORMS_PATH on server gives this path
    /u01/app/EBS00/apps/apps_st/appl/au/12.0.0/resource:/u01/app/EBS00/apps/apps_st/appl/au/12.0.0/resource/stub
    Can you please advise?
    Thanks,

  • Not able to Export sap script with RSTXSCRP in different languages IT,ES

    Hi all,
      I am trying to export sap script to local file using this program RSTXSCRP, but it's working fine for English but not other languages like IT,ES and DA. Even if i specify parameter in selection screen Language vector as IT. It's not exporting code from sap script for IT language. By default it's exporting only EN.
    Can you please tell me what I have to do to export sap script  from different language.
    Thank you.

    Hi!
    For Translating you can do it by
    Going in transaction SE63 -> Translation -> Abap objects -> Other Long Texts -> FS Forms and Styles.
    There you have to enter client and form name source lang. and target lang.
    Then you export it with the program RSTXSCRP in the language u have translated....
    As you have form created in English and  you can download and upload it in only  English .
    Regards.

  • How to deploy jar file in WLS using ant script

    Hi,
    Im trying to deploy a jar file in weblogic 10.3 using ant script and am running into the below error.
    +[wldeploy] weblogic.management.DeploymentException: [J2EE:160177]The application at "/u01//RSJBObjects.jar" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, please consult the WebLogic Server documentation.+
    When i try to deploy the same manually from the console, i get a warning stating that WLS thought this as a library and hence proceeding to deploy as a library. After this warning the deployment continues and completes.
    Problem is when i try to deploy using ant, it breaks at this point.
    Is there any means that we can deploy a jar to WLS using ant script. This has to be deployed as a library as other apps would be using this jar.
    Im unable to create a ear file for this single jar file.
    If there is any suggestion on can this be done, please share.
    Thanks,
    Vijay.

    Hi Sunil,
    Thanks for the reply, it worked.
    Another doubt on the same lines. Now that the jar has been deployed as a library in WLS, when i try to deploy a WAR which refers to this deployed jar library, im unable to. I run into and error stating that the library is inaccessible.
    I have to bounce the server and before doing that, i have to manually copy the library.jar from <WLS_domain>/servers/AdminServer/upload/ directory to <WLS_domain>/lib/ directory, once copied i then try to deploy the WAR, then the deployment goes fine.
    Is there any means that this deployed library jar be made available soon after deployment and also to avoid copying the file.
    Thanks,
    Vijay.

  • SOA Composite (having refernce to MDS )Deployment thru ANT script

    I have been trying to deploy SOA composite which has reference to 'oramds:/soa/shared/workflow/TaskServiceInterface.wsdl' thru ANT script.But getting below error -
    scac-validate:
    [echo] Running scac-validate in D:\apps\saurabhk\deployment\Error Logging\Ev
    entHandlerSubscriberComposite\bin/..//composite.xml
    [echo] oracle.home = D:/apps/common/mw_home/jdeveloper
    [input] skipping input as property compositeDir has already been set.
    [input] skipping input as property compositeName has already been set.
    [input] skipping input as property revision has already been set.
    scac:
    [scac] Validating composite "D:\apps\saurabhk\deployment\Error Logging\Event
    HandlerSubscriberComposite\bin/..//composite.xml"
    [scac] FATAL_ERROR: location {ns:composite}(12,61): Parse of component type
    files failed, check the adf-config.xml file : "oracle.fabric.common.FabricExcept
    ion: oracle.mds.config.MDSConfigurationException: MDS-01330: unable to load MDS c
    onfiguration document
    [scac] MDS-01329: unable to load element "persistence-config"
    [scac] MDS-01370: MetadataStore configuration for metadata-store-usage "msto
    re-usage_1" is invalid.
    [scac] MDS-01259: The metadata store "oracle.mds.persistence.stores.db.DBMet
    adataStore" cannot be instantiated.
    [scac] oracle.jdbc.driver.T4CConnection.isValid(I)Z
    [scac] : MDS-01330: unable to load MDS configuration document
    [scac] MDS-01329: unable to load element "persistence-config"
    [scac] MDS-01370: MetadataStore configuration for metadata-store-usage "msto
    re-usage_1" is invalid.
    [scac] MDS-01259: The metadata store "oracle.mds.persistence.stores.db.DBMet
    adataStore" cannot be instantiated.
    [scac] oracle.jdbc.driver.T4CConnection.isValid(I)Z
    [scac] : oracle.mds.config.MDSConfigurationException: MDS-01330: unable to l
    oad MDS configuration document
    [scac] MDS-01329: unable to load element "persistence-config"
    [scac] MDS-01370: MetadataStore configuration for metadata-store-usage "msto
    re-usage_1" is invalid.
    [scac] MDS-01259: The metadata store "oracle.mds.persistence.stores.db.DBMet
    adataStore" cannot be instantiated.
    [scac] oracle.jdbc.driver.T4CConnection.isValid(I)Z
    [scac] : MDS-01330: unable to load MDS configuration document
    [scac] MDS-01329: unable to load element "persistence-config"
    [scac] MDS-01370: MetadataStore configuration for metadata-store-usage "msto
    re-usage_1" is invalid.
    [scac] MDS-01259: The metadata store "oracle.mds.persistence.stores.db.DBMet
    adataStore" cannot be instantiated.
    [scac] oracle.jdbc.driver.T4CConnection.isValid(I)Z
    [scac] "
    BUILD FAILED
    I have mentioned MSD information in build.properties file and adf-config.xml file.
    build.properties :-
    foreign.mds.type=db
    mds.db.userid=XXX
    mds.db.password=XX
    mds.db.jdbc-url=jdbc:oracle:thin:@XXX.XXX.XXX.XXX:1521:DBC
    adf-config.xml:-
    <?xml version="1.0" encoding="windows-1252" ?>
    <adf-config xmlns="http://xmlns.oracle.com/adf/config"
    xmlns:sec="http://xmlns.oracle.com/adf/security/config">
    <!-- server side db backed mds settings -->
    <adf-mds-config xmlns="http://xmlns.oracle.com/adf/mds/config">
    <mds-config xmlns="http://xmlns.oracle.com/mds/config">
    <persistence-config>
    <metadata-namespaces>
    <!-- shared namespace for soa artifacts, such as xsd / wsdl -->
    <namespace metadata-store-usage="mstore-usage_1" path="/soa/shared"/>
    <!-- customer namespace for sharing stuff -->
    <namespace metadata-store-usage="mstore-usage_1" path="/apps"/>
    <!-- configuration namespace for the SE/BCs, only exists on the server -->
    <namespace metadata-store-usage="mstore-usage_1" path="/soa/configuration"/>
    </metadata-namespaces>
    <metadata-store-usages>
    <metadata-store-usage id="mstore-usage_1">
    <metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
    <property name="jdbc-userid" value="XXXX"/>
    <property name="jdbc-password" value="XXXX"/>
    <property name="jdbc-url"
    value="jdbc:oracle:thin:@XXX.XXX.XXX.XX:1521:DBC"/>
    <property name="partition-name" value="soa-infra"/>
    </metadata-store>
    </metadata-store-usage>
    </metadata-store-usages>
    </persistence-config>
    </mds-config>
    </adf-mds-config>
    <sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
    <CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore"
    credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
    </sec:adf-security-child>
    </adf-config>
    Please let me know if you need any more informattion.
    Thanks in advance

    [scac] MDS-01259: The metadata store "oracle.mds.persistence.stores.db.DBMetadataStore" cannot be instantiated.This error tells that the parameters you have given in build.properties are incorrect. Cross check them again. Make sure that property mds.db.userid points to a MDS schema (for example dev_mds)
    Regards,
    Anuj

Maybe you are looking for