XJC Ant Task Problem

Hi!
When i try to run the xjc ant task in my build file i get the error showed below Could some one help or give me an advice about this?
In my build file i have the next lines of xml:
<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask"/>
and
<target name="xsdCompile">
<xjc target="${src}/java" package="com.getronics.cea.cie.mopab.documentos">
<schema dir="${schemas.home}" includes="*.xsd"/>
</xjc>
</target>
Thanks a lot!
Adolfo de Unanue
!xsdCompile Running target: xsdCompile
xsdCompile:
[xjc] Compiling file:/home/aunanue/mopab3/mopab/src/xml/schemas/administracionYCobranza.xsd and others
org.iso_relax.verifier.VerifierConfigurationException: no validation engine available for: http://relaxng.org/ns/structure/1.0
     at org.iso_relax.verifier.VerifierFactory.newInstance(Unknown Source)
     at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserImpl.getContentHandler(AnnotationParserImpl.java:61)
     at com.sun.xml.xsom.impl.parser.state.annotation.action0(annotation.java:42)
     at com.sun.xml.xsom.impl.parser.state.annotation.enterElement(annotation.java:59)
     at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.spawnChildFromEnterElement(NGCCRuntime.java:431)
     at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:222)
     at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:210)
     at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
     at com.sun.tools.xjc.reader.xmlschema.IncorrectNamespaceURIChecker.startElement(IncorrectNamespaceURIChecker.java:85)
     at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
     at com.sun.tools.xjc.reader.xmlschema.ProhibitedFeaturesFilter.startElement(ProhibitedFeaturesFilter.java:123)
     at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
     at org.iso_relax.verifier.impl.VerifierFilterImpl.startElement(Unknown Source)
     at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
     at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:877)
     at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:569)
     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:759)
     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
     at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
     at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
     at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
     at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
     at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
     at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
     at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
     at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:151)
     at com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMParser.java:116)
     at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:511)
     at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
     at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:149)
     at org.apache.tools.ant.Task.perform(Task.java:317)
     at org.apache.tools.ant.Target.execute(Target.java:309)
     at org.apache.tools.ant.Target.performTasks(Target.java:334)
     at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
     at antfarm.TargetRunner.runAntTarget(Unknown Source)
     at antfarm.TargetRunner.run(Unknown Source)
BUILD FAILED
java.lang.InternalError
     at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserImpl.getContentHandler(AnnotationParserImpl.java:71)
     at com.sun.xml.xsom.impl.parser.state.annotation.action0(annotation.java:42)
     at com.sun.xml.xsom.impl.parser.state.annotation.enterElement(annotation.java:59)
     at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.spawnChildFromEnterElement(NGCCRuntime.java:431)
     at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:222)
     at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:210)
     at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
     at com.sun.tools.xjc.reader.xmlschema.IncorrectNamespaceURIChecker.startElement(IncorrectNamespaceURIChecker.java:85)
     at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
     at com.sun.tools.xjc.reader.xmlschema.ProhibitedFeaturesFilter.startElement(ProhibitedFeaturesFilter.java:123)
     at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
     at org.iso_relax.verifier.impl.VerifierFilterImpl.startElement(Unknown Source)
     at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
     at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:877)
     at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:569)
     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:759)
     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
     at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
     at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
     at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
     at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
     at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
     at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
     at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
     at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:151)
     at com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMParser.java:116)
     at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:511)
     at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
     at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:149)
     at org.apache.tools.ant.Task.perform(Task.java:317)
     at org.apache.tools.ant.Target.execute(Target.java:309)
     at org.apache.tools.ant.Target.performTasks(Target.java:334)
     at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
     at antfarm.TargetRunner.runAntTarget(Unknown Source)
     at antfarm.TargetRunner.run(Unknown Source)

Hi
When you define the xjc task you will need to
include all the jaxb, jaxp jars in the classpath.
See the <JWSDP>/jaxb-1.0/examples/users-guide/SampleApp1/build.xml
for more information
Regards,
Bhakti
Hi!
When i try to run the xjc ant task in my build file i
get the error showed below Could some one help or give
me an advice about this?
In my build file i have the next lines of xml:
<taskdef name="xjc"
classname="com.sun.tools.xjc.XJCTask"/>
and
<target name="xsdCompile">
<xjc target="${src}/java"
va" package="com.getronics.cea.cie.mopab.documentos">
<schema dir="${schemas.home}"
.home}" includes="*.xsd"/>
</xjc>
</target>
Thanks a lot!
Adolfo de Unanue
!xsdCompile Running target: xsdCompile
xsdCompile:
[xjc] Compiling
iling
file:/home/aunanue/mopab3/mopab/src/xml/schemas/adminis
racionYCobranza.xsd and others
org.iso_relax.verifier.VerifierConfigurationException:
no validation engine available for:
http://relaxng.org/ns/structure/1.0
at
org.iso_relax.verifier.VerifierFactory.newInstance(Unk
own Source)
at
com.sun.tools.xjc.reader.xmlschema.bindinfo.Annotation
arserImpl.getContentHandler(AnnotationParserImpl.java:6
at
com.sun.xml.xsom.impl.parser.state.annotation.action0(
nnotation.java:42)
at
com.sun.xml.xsom.impl.parser.state.annotation.enterEle
ent(annotation.java:59)
at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.spawnCh
ldFromEnterElement(NGCCRuntime.java:431)
at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement
Schema.java:222)
at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startEl
ment(NGCCRuntime.java:210)
at
org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown
Source)
at
com.sun.tools.xjc.reader.xmlschema.IncorrectNamespaceU
IChecker.startElement(IncorrectNamespaceURIChecker.java
85)
at
org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown
Source)
at
com.sun.tools.xjc.reader.xmlschema.ProhibitedFeaturesF
lter.startElement(ProhibitedFeaturesFilter.java:123)
at
org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown
Source)
at
org.iso_relax.verifier.impl.VerifierFilterImpl.startEl
ment(Unknown Source)
at
org.apache.xerces.parsers.AbstractSAXParser.startEleme
t(AbstractSAXParser.java:459)
at
org.apache.xerces.impl.XMLNamespaceBinder.handleStartE
ement(XMLNamespaceBinder.java:877)
at
org.apache.xerces.impl.XMLNamespaceBinder.startElement
XMLNamespaceBinder.java:569)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.
canStartElement(XMLDocumentFragmentScannerImpl.java:759
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$
ragmentContentDispatcher.dispatch(XMLDocumentFragmentSc
nnerImpl.java:1477)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.
canDocument(XMLDocumentFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDCo
figuration.java:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDCo
figuration.java:581)
at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.ja
a:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(Abst
actSAXParser.java:1175)
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
Source)
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
Source)
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
Source)
at
com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity
NGCCRuntimeEx.java:151)
at
com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMPars
r.java:116)
at
com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.j
va:511)
at
com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
at
com.sun.tools.xjc.XJCTask.execute(XJCTask.java:149)
     at org.apache.tools.ant.Task.perform(Task.java:317)
at
org.apache.tools.ant.Target.execute(Target.java:309)
at
org.apache.tools.ant.Target.performTasks(Target.java:3
4)
at
org.apache.tools.ant.Project.executeTarget(Project.jav
:1306)
     at antfarm.TargetRunner.runAntTarget(Unknown Source)
     at antfarm.TargetRunner.run(Unknown Source)
BUILD FAILED
java.lang.InternalError
at
com.sun.tools.xjc.reader.xmlschema.bindinfo.Annotation
arserImpl.getContentHandler(AnnotationParserImpl.java:7
at
com.sun.xml.xsom.impl.parser.state.annotation.action0(
nnotation.java:42)
at
com.sun.xml.xsom.impl.parser.state.annotation.enterEle
ent(annotation.java:59)
at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.spawnCh
ldFromEnterElement(NGCCRuntime.java:431)
at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement
Schema.java:222)
at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startEl
ment(NGCCRuntime.java:210)
at
org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown
Source)
at
com.sun.tools.xjc.reader.xmlschema.IncorrectNamespaceU
IChecker.startElement(IncorrectNamespaceURIChecker.java
85)
at
org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown
Source)
at
com.sun.tools.xjc.reader.xmlschema.ProhibitedFeaturesF
lter.startElement(ProhibitedFeaturesFilter.java:123)
at
org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown
Source)
at
org.iso_relax.verifier.impl.VerifierFilterImpl.startEl
ment(Unknown Source)
at
org.apache.xerces.parsers.AbstractSAXParser.startEleme
t(AbstractSAXParser.java:459)
at
org.apache.xerces.impl.XMLNamespaceBinder.handleStartE
ement(XMLNamespaceBinder.java:877)
at
org.apache.xerces.impl.XMLNamespaceBinder.startElement
XMLNamespaceBinder.java:569)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.
canStartElement(XMLDocumentFragmentScannerImpl.java:759
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$
ragmentContentDispatcher.dispatch(XMLDocumentFragmentSc
nnerImpl.java:1477)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.
canDocument(XMLDocumentFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDCo
figuration.java:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDCo
figuration.java:581)
at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.ja
a:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(Abst
actSAXParser.java:1175)
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
Source)
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
Source)
at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
Source)
at
com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity
NGCCRuntimeEx.java:151)
at
com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMPars
r.java:116)
at
com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.j
va:511)
at
com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
at
com.sun.tools.xjc.XJCTask.execute(XJCTask.java:149)
     at org.apache.tools.ant.Task.perform(Task.java:317)
at
org.apache.tools.ant.Target.execute(Target.java:309)
at
org.apache.tools.ant.Target.performTasks(Target.java:3
4)
at
org.apache.tools.ant.Project.executeTarget(Project.jav
:1306)
     at antfarm.TargetRunner.runAntTarget(Unknown Source)
     at antfarm.TargetRunner.run(Unknown Source)

Similar Messages

  • Wsdlc Ant Task - Problem creating java files in the correct package

    In eclipse, for weblogic 9.2
    Using the wsdlc WebLogic Web Services Ant Task, I am trying to auto-generate the java files for the web service based on the WSDL. I have specified the packageName as one of the parameters. However the java files are being created and packaged based on the TargetNameSpace of the WSDL rather then under the package name specified. Following is part of my build.xml
    autogen.src.dir=../code/java/beaAutoGen
    base.dest=../../../var/build/wsmToPlmWS
    bea.build.dir=beaBuild
         <target name="generate-from-wsdl" depends="prepare">
              <delete dir="${src.dir}" includeemptydirs="true" />
              <delete dir="${autogen.src.dir}" includeemptydirs="true" />
              <wsdlc srcWsdl="../config/sourceWSDL/MRPBindingPort.wsdl"
                   destJwsDir="${base.dest}/${bea.build.dir}/compiledWsdl" destImplDir="${base.dest}/${bea.build.dir}/impl"
                   packageName="com.lmco.iplm.webservices.wsmtoplm" debug="on"
                   srcServiceName="WSPlmMto_Service"
                   debugLevel="DEBUG" autoDetectWrapped="true" jaxRPCWrappedArrayStyle="true"
                   verbose="on" classpathref="bea-classpath" />
    <!-- unjar to get the all the details so we can tokenize -->
              <unjar dest="${autogen.src.dir}"
                   src="${base.dest}/${bea.build.dir}/compiledWsdl/MRPBindingPort_wsdl.jar" />
    <!-- copy over the impl file -->
              <copy todir="../code/java/src">
                   <fileset dir="${base.dest}/${bea.build.dir}/impl" />
              </copy>
         </target>

    In eclipse, for weblogic 9.2
    Using the wsdlc WebLogic Web Services Ant Task, I am trying to auto-generate the java files for the web service based on the WSDL. I have specified the packageName as one of the parameters. However the java files are being created and packaged based on the TargetNameSpace of the WSDL rather then under the package name specified. Following is part of my build.xml
    autogen.src.dir=../code/java/beaAutoGen
    base.dest=../../../var/build/wsmToPlmWS
    bea.build.dir=beaBuild
         <target name="generate-from-wsdl" depends="prepare">
              <delete dir="${src.dir}" includeemptydirs="true" />
              <delete dir="${autogen.src.dir}" includeemptydirs="true" />
              <wsdlc srcWsdl="../config/sourceWSDL/MRPBindingPort.wsdl"
                   destJwsDir="${base.dest}/${bea.build.dir}/compiledWsdl" destImplDir="${base.dest}/${bea.build.dir}/impl"
                   packageName="com.lmco.iplm.webservices.wsmtoplm" debug="on"
                   srcServiceName="WSPlmMto_Service"
                   debugLevel="DEBUG" autoDetectWrapped="true" jaxRPCWrappedArrayStyle="true"
                   verbose="on" classpathref="bea-classpath" />
    <!-- unjar to get the all the details so we can tokenize -->
              <unjar dest="${autogen.src.dir}"
                   src="${base.dest}/${bea.build.dir}/compiledWsdl/MRPBindingPort_wsdl.jar" />
    <!-- copy over the impl file -->
              <copy todir="../code/java/src">
                   <fileset dir="${base.dest}/${bea.build.dir}/impl" />
              </copy>
         </target>

  • Flexunit ant task on CI Server - rundll32.exe causing problems

    My team is using flexunit and a CI server running Hudson. On a development system, everything runs fine, and we get the reports just like we need them. It also works fine on the CI server when just the flexunit task is run, but the build fails when the CI server tries to run a full build - the build tries to run the tests and clean to prepare for the next build, but the clean fails because there is a "rundll32.exe" process using one of the files and it can't be deleted. We tracked this process down to the one run by the flexunit task.
    Our task is:
        <target name="xci-test" depends="set-flex-coverage-home, prepare-domain-metadata-to-war, prepare-sounds-to-war, prepare-domain-metadata-for-testing, compile-unit-test-flex">
            <echo>**** The flexunit target requires that you have the standalone flash player installed and configured to run .swf files automatically! ****</echo>
            <mkdir dir="${dir.flexgui.test.output}"/>
        <!-- Execute TestRunner.swf as FlexUnit tests and publish reports -->
        <!-- Please see http://docs.flexunit.org/index.php?title=Ant_Task -->
        <flexunit workingDir="${dir.flexgui.test.output}"   
                  swf="${dir.flexgui.build.war}/${flex.swf.name}test.swf"
                  toDir="${dir.flexgui.test.output}"
                  haltonfailure="false" verbose="true" localTrusted="true"
                                port="11028" timeout="40000"/>
            <!-- Generate readable JUnit-style reports -->
            <junitreport todir="${dir.flexgui.test.output}">
                <fileset dir="${dir.flexgui.test.output}">
                    <include name="TEST-*.xml"/>
                </fileset>
                <report format="frames" todir="${dir.flexgui.test.output}/"/>
            </junitreport>
            <sleep seconds="10"/>
        </target>
    I can reproduce this behavior on my dev machine by running "ant xci-test clean". We tried putting a sleep in to give the process time to shut down, no change. We attempted to use the 'command' option to the flexunit task to bypass the use of rundll32.exe, but then the flash player just hangs onto the file and the clean still fails. Since "ant xci-test" followed by "ant clean" works, we also tried running ant from within ant in order to force the process to stop, but that also didn't work. Any help on this would be greatly appreciated.
    Thanks for your time,
    Linden

    @Linden - Have not heard of this side effect from anyone as of yet, but good to know.  Sounds like the file lock is coming from the Flash Player and causing the spawning process (rundll32.exe) to hang around as well.  The FlexUnit team runs on Hudson using the FlexUnit Ant task, but we don't seem to encounter the same issue.  What's the longest interval you've tried to use with the sleep task?  Does the FP ever release its handle to the test SWF on your development machines?
    Not sure this is a problem with the FlexUnit Ant task, but in 4.2 we could try to explicitly kill the rundll32 process since we'll have the PID when the task launches it.  Head on over to JIRA and file a feature request for us and I'll see what I can do in the new year.  In the short term though, maybe try upgrading your version of the stand alone debug flash player to see if that helps.  Has anyone else seen this issue?  Could you possible just move the clean target to be called before the xci-test target is run?  Just some suggestions.
    -Brian

  • Problems with wlserver ant task for WL 8.1

    hi
    i have a problem with using wlserver ant task for Weblogic 8.1
    basically i want to start the server that is already preconfigured and deploy
    one ear.
    here's what i do:
    <taskdef name="wlserver" classname="weblogic.ant.taskdefs.management.WLServer">
    <classpath refid="lib.classpath"/>
    </taskdef>
    <wlserver action="start" dir="D:/BEA/user_projects/domains/mydomain"
    output="wls81.log"/>
    (and then the deployment task - irrelevant here)     
    the classpath is generated automatically and includes all jars in the specific
    project directory:
         <path id="lib.classpath">
         <fileset dir="${proj.lib.dir}">
              <include name="**/*.jar"/>
         </fileset>
         </path>
    (weblogic.jar is there as well)
    the problem is when i run it, the following happens:
    - if i have action="start" (or no action attribute at all), i get the following
    exception:
    java.lang.NullPointerException
    at weblogic.Home.<init>(Home.java:29)
    at weblogic.Home.getInstance(Home.java:86)
    at weblogic.Home.getPath(Home.java:94)
    at weblogic.Home.getFile(Home.java:99)
    at weblogic.ant.taskdefs.management.WLServer.execute(WLServer.java:260)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    at org.apache.tools.ant.Main.runBuild(Main.java:609)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)
    - if i change it to action="startup" as specified on "wlserver Ant Task Reference"
    it seems that this task is skipped completely. no error messages, no stack trace,
    nothing. i tried -verbose and -debug options on ant, but there're no logs displayed
    whatsoever. it takes less than a second to run this task so i presume it's just
    getting skipped completely.
    i run this from the standalone Ant 1.5.4 on Windows environment.
    i've followed the topic "wlserver Ant task for WebLogic 8.1" where kind of similar
    problem is described but putting weblogic.jar on the system CLASSPATH is not an
    option for this project.
    anyone has any idea about how to get this going?
    cheers
    Andrei

    sounds bug to me. NPE should be correctly handled with appropriate error
    message. Please contact BEA support to log the call.
    "Andrei Rusakou" <[email protected]> wrote in message
    news:[email protected]...
    >
    hi
    i have a problem with using wlserver ant task for Weblogic 8.1
    basically i want to start the server that is already preconfigured anddeploy
    one ear.
    here's what i do:
    <taskdef name="wlserver"classname="weblogic.ant.taskdefs.management.WLServer">
    <classpath refid="lib.classpath"/>
    </taskdef>
    <wlserver action="start" dir="D:/BEA/user_projects/domains/mydomain"
    output="wls81.log"/>
    (and then the deployment task - irrelevant here)
    the classpath is generated automatically and includes all jars in thespecific
    project directory:
    <path id="lib.classpath">
    <fileset dir="${proj.lib.dir}">
    <include name="**/*.jar"/>
    </fileset>
    </path>
    (weblogic.jar is there as well)
    the problem is when i run it, the following happens:
    - if i have action="start" (or no action attribute at all), i get thefollowing
    exception:
    java.lang.NullPointerException
    at weblogic.Home.<init>(Home.java:29)
    at weblogic.Home.getInstance(Home.java:86)
    at weblogic.Home.getPath(Home.java:94)
    at weblogic.Home.getFile(Home.java:99)
    atweblogic.ant.taskdefs.management.WLServer.execute(WLServer.java:260)
    atorg.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    at org.apache.tools.ant.Main.runBuild(Main.java:609)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)
    - if i change it to action="startup" as specified on "wlserver Ant TaskReference"
    it seems that this task is skipped completely. no error messages, no stacktrace,
    nothing. i tried -verbose and -debug options on ant, but there're no logsdisplayed
    whatsoever. it takes less than a second to run this task so i presume it'sjust
    getting skipped completely.
    i run this from the standalone Ant 1.5.4 on Windows environment.
    i've followed the topic "wlserver Ant task for WebLogic 8.1" where kind ofsimilar
    problem is described but putting weblogic.jar on the system CLASSPATH isnot an
    option for this project.
    anyone has any idea about how to get this going?
    cheers
    Andrei

  • Problem in ant task "oracle:jaxwsGenImpl " on Jdev 11G Tech Preview 4

    I am running an ant task in Oracle JDeveloper 11g Tech Preview 4
    the Task is as follows :
    <target name="generate-from-wsdl5" >
    <oracle:jaxwsGenImpl
    wsdl="contract/wsdl/${SRC_WSDL}"
    />
    </target>
    The Output is :
    D:\Pras3\WebServiceRi\ws>ant generate-from-wsdl5
    Buildfile: build.xml
    [taskdef] File D:\Pras3\WebServiceRi\ws\oracle\antlib.xml does not exist
    generate-from-wsdl5:
    BUILD FAILED
    D:\Pras3\WebServiceRi\ws\build.xml:188: Problem: failed to create task or type antlib:oracle:jaxwsGenImpl
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.
    This appears to be an antlib declaration.
    Action: Check that the implementing library exists in one of:
    -D:\Jdev11-Tecpr4\ant\lib
    -C:\Documents and Settings\jnandi\.ant\lib
    -a directory added on the command line with the -lib argument
    Total time: 0 seconds
    I am getting the above error can sommeone please help me and please tell me how to use the ant task "oracle:jaxwsGenImpl " on Jdev 11G Tech Preview 4 or Jdev 11G Tech Prev 4 dont support this
    Thanks and Regards
    Jyoti

    Hi,
    the JDeveloper 11 forum is: JDeveloper and OC4J 11g Technology Preview
    Frank

  • Problem :ant task "oracle:jaxwsGenImpl " on Jdev 11G Tech Preview 4

    Hi,
    I am running an ant task in Oracle JDeveloper 11g Tech Preview 4
    the Task is as follows :
    <target name="generate-from-wsdl5" >
    <oracle:jaxwsGenImpl
    wsdl="contract/wsdl/${SRC_WSDL}"
    />
    </target>
    The Output is :
    D:\Pras3\WebServiceRi\ws>ant generate-from-wsdl5
    Buildfile: build.xml
    [taskdef] File D:\Pras3\WebServiceRi\ws\oracle\antlib.xml does not exist
    generate-from-wsdl5:
    BUILD FAILED
    D:\Pras3\WebServiceRi\ws\build.xml:188: Problem: failed to create task or type antlib:oracle:jaxwsGenImpl
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.
    This appears to be an antlib declaration.
    Action: Check that the implementing library exists in one of:
    -D:\Jdev11-Tecpr4\ant\lib
    -C:\Documents and Settings\jnandi\.ant\lib
    -a directory added on the command line with the -lib argument
    Total time: 0 seconds
    I am getting the above error can sommeone please help me and please tell me how to use the ant task "oracle:jaxwsGenImpl " on Jdev 11G Tech Preview 4 or Jdev 11G Tech Prev 4 dont support this
    Thanks and Regards
    Jyoti

    Hi,
    the JDeveloper 11 forum is: JDeveloper and OC4J 11g Technology Preview
    Frank

  • Enhacer ant task license key problem

    Hi,
    I'am developing web applicaiton with workshop studio 3.0 and I use It's
    ejb3(kodo 4 EA4) mapping generator.I try to use ant task for
    enhancement,here is my build.xml file's kodoc task
         <target name="enhance">
              <echo>
    ================================================================
    Running the enhancer
    ================================================================
              </echo>
              <taskdef name="kodoc" classname="kodo.ant.PCEnhancerTask">
                   <classpath refid="cp"/>
              </taskdef>
              <kodoc>
              <fileset dir="${basedir}">
              <include name="**/com/demo/model/*.java" />
              </fileset>
              <classpath>
              <pathelement location="${basedir}/classes"/>
              <pathelement location="${basedir}/src"/>
              <pathelement path="${java.class.path}"/>
              </classpath>
              </kodoc>
         </target>
    ant task starts enhancer,finds my domain classes but gives the following
    expcetion during enhancement of first class
    [echo] ================================================================
    [echo] Running the enhancer
    [echo]
    ================================================================
    [kodoc] 611 INFO [main] kodo.Tool - Enhancer running on type "class
    com.demo.model.MyClass".
    [kodoc] com.solarmetric.license.LicenseException: No product license
    key was found. Please ensure that your license key is specified in your
    configuration file (or in the "General" tab of your IDE''s configuration
    dialog), that the key has not expired, and that it is the correct key for
    the version of the product that you are running...
    build.xml is in WEB_INF directory and my source are in src directory
    compiled classes are in classes directory,I place persistence.xml file in
    the directiory WEB-INF/META-INF/
    my license key is in persistence.xml file and it will expire 3-4 weeks
    later.Here my persistencex.xml file
    <persistence>
         <persistence-unit name="kodo">
              <provider>kodo.persistence.PersistenceProviderImpl</provider>
              <class>com.demo.model.MyClass</class>
              <properties>
         <property name="kodo.LicenseKey" value="xxxxxx"/>
              <property name="kodo.ConnectionDriverName"
    value="org.apache.derby.jdbc.ClientDriver"/>
              <property name="kodo.ConnectionURL"
    value="jdbc:derby://localhost:1527/xxxDB"/>
              <property name="kodo.ConnectionUserName" value="xxx"/>
              <property name="kodo.ConnectionPassword" value="xxxx"/>
              <property name="kodo.jdbc.Schema" value="xxxx"/>
         <property name="kodo.Log" value="DefaultLevel=WARN, Tool=INFO"/>
         </properties>
    </persistence-unit>
    </persistence>
    where should I pu my license key or persistence.xml file.
    Not:I was using previsous release of kodo (EA3),for ejb3 I set access
    property of Entity annotaion to access=AccessType.FIELD so I did not need
    to enhance and It does works but this version we do not have this
    option,Am I right.Do we always have to enhance our ejb3 entities in EA4
    release

    murat wrote:
    Hi,
    I'am developing web applicaiton with workshop studio 3.0 and I use It's
    ejb3(kodo 4 EA4) mapping generator.I try to use ant task for
    enhancement,here is my build.xml file's kodoc task
         <target name="enhance">
              <echo>
    ================================================================
    Running the enhancer
    ================================================================
              </echo>
              <taskdef name="kodoc" classname="kodo.ant.PCEnhancerTask">
                   <classpath refid="cp"/>
              </taskdef>
              <kodoc>
              <fileset dir="$">
              <include name="**/com/demo/model/*.java" />
              </fileset>
              <classpath>
              <pathelement location="$/classes"/>
              <pathelement location="$/src"/>
              <pathelement path="$"/>
              </classpath>
              </kodoc>
         </target>
    ant task starts enhancer,finds my domain classes but gives the following
    expcetion during enhancement of first class
    [echo] ================================================================
    [echo] Running the enhancer
    [echo]
    ================================================================
    [kodoc] 611 INFO [main] kodo.Tool - Enhancer running on type "class
    com.demo.model.MyClass".
    [kodoc] com.solarmetric.license.LicenseException: No product license
    key was found. Please ensure that your license key is specified in your
    configuration file (or in the "General" tab of your IDE''s configuration
    dialog), that the key has not expired, and that it is the correct key for
    the version of the product that you are running...
    build.xml is in WEB_INF directory and my source are in src directory
    compiled classes are in classes directory,I place persistence.xml file in
    the directiory WEB-INF/META-INF/
    my license key is in persistence.xml file and it will expire 3-4 weeks
    later.Here my persistencex.xml file
    <persistence>
         <persistence-unit name="kodo">
              <provider>kodo.persistence.PersistenceProviderImpl</provider>
              <class>com.demo.model.MyClass</class>
              <properties>
         <property name="kodo.LicenseKey" value="xxxxxx"/>
              <property name="kodo.ConnectionDriverName"
    value="org.apache.derby.jdbc.ClientDriver"/>
              <property name="kodo.ConnectionURL"
    value="jdbc:derby://localhost:1527/xxxDB"/>
              <property name="kodo.ConnectionUserName" value="xxx"/>
              <property name="kodo.ConnectionPassword" value="xxxx"/>
              <property name="kodo.jdbc.Schema" value="xxxx"/>
         <property name="kodo.Log" value="DefaultLevel=WARN, Tool=INFO"/>
         </properties>
    </persistence-unit>
    </persistence>
    where should I pu my license key or persistence.xml file.
    Not:I was using previsous release of kodo (EA3),for ejb3 I set access
    property of Entity annotaion to access=AccessType.FIELD so I did not need
    to enhance and It does works but this version we do not have this
    option,Am I right.Do we always have to enhance our ejb3 entities in EA4
    release

  • Is there an ant task on FlexUnit to open browser with swf embedded?

    Here is the same (unanswered) question asked by someone else: http://forums.adobe.com/thread/740495?tstart=0#740495
    Basically I need to open my flex app in a browser window from ant, and the FlexUnit task apparently does not support this.
    I have downloaded a sample from FlexMonkey. When they (sample writers) execute flexunit in this sample, one of the arguments to FU is "url". However, I can find no evidence of this version of FU (that uses that "url" argument) existing anywhere. Using the swf argument doesn't work as documented in the previous question above. So I don't know if my problem is Flex version, or it's just not supported by FlexUnit.
    I'm using the Flex sdk 3.2.0 and the FU libraries below:
    flexunit-4.1.0-33-as3_3.5.0.12683.swc
    flexunit-4.1.0-33-flex_3.5.0.12683.swc
    flexunit-cilistener-4.1.0-33-3.5.0.12683.swc
    flexunit-uilistener-4.1.0-33-3.5.0.12683.swc
    flexUnitTasks-4.1.0-33.jar
    Please tell me if this issue has been solved and if so what libraries I need to implement it. If it is done for Flex 4.x, but not for Flex 3.2, perhaps you could guide me to the java source for the ant task for Flex 4.x so that I can implement this for Flex 3.2 or Flex 3.x.
    thanks,
    Phil

    @Linden - Have not heard of this side effect from anyone as of yet, but good to know.  Sounds like the file lock is coming from the Flash Player and causing the spawning process (rundll32.exe) to hang around as well.  The FlexUnit team runs on Hudson using the FlexUnit Ant task, but we don't seem to encounter the same issue.  What's the longest interval you've tried to use with the sleep task?  Does the FP ever release its handle to the test SWF on your development machines?
    Not sure this is a problem with the FlexUnit Ant task, but in 4.2 we could try to explicitly kill the rundll32 process since we'll have the PID when the task launches it.  Head on over to JIRA and file a feature request for us and I'll see what I can do in the new year.  In the short term though, maybe try upgrading your version of the stand alone debug flash player to see if that helps.  Has anyone else seen this issue?  Could you possible just move the clean target to be called before the xci-test target is run?  Just some suggestions.
    -Brian

  • Unable to run ALBPM Ant tasks on Linux

    Hi,
    I am trying to execute a simple build script that creates a session with given directory details and deploys/publishes a project on to the Enterprise Server. With usual modifications, this scripts works fine on Windows, but on Linux it keeps on giving an error that makes no sense. I am copying my build file as well as error stack trace below. Please help me on urgent basis.
    OS: Linux 64 bit
    Oracle Enterprise Server: 10.3.1.0.0
    JAVA_HOME=/usr/java/jdk1.6.0_16
    ANT_HOME=/usr/ant/apache-ant-1.8.1
    build.xml
    <!-- This script publishes and deploys a BPM Project, undeploys and unpublishes a BPM Project, Export Organisation.xml -->
    <project name="sampleproj"
         xmlns:fuego="antlib:fuego.tools.ant.enterprise"
         xmlns:fuego.j2ee="antlib:fuego.tools.ant.j2ee">
    <!-- Include properties -->
    <property file="build.properties"/>
    <echo message="Enterprise Home Directory:: ${fuego.basedir}" />
    <echo message="Ant Version:: ${ant.version}" />
    <echo message="Connecting to directory:: ${fuego.directoryid}" />
    <fuego:passport id="passport"
    directoryid="${fuego.directoryid}"
    preset="engine" />
    <target name="publish-on-linux" description="Publish and deploy processes">
    <echo message="Creating session..."/>
    <!-- Open a session to the ALBPM directory -->
    <fuego:session passportref="passport"
    verbose="true"
    haltonerror="true">
    <!-- Publish processes -->
    <fuego:publish fpr="${bpm.project.path}"
    deploy="true"
    engine="${fuego.engine}"
              haltonerror="true"
              importdata="true"
              automapconfigs="true"
              automapvars="true"
              automaproles="true"
              automapbuspars="true"
              importcustomviews="true">
    </fuego:publish>
    </fuego:session>
    </target>
    </project>
    build.properties
    # Enterprise installation directory
    fuego.basedir=/opt/OraBPMwlHome
    # Name of ALBPM Engine to deploy to
    fuego.engine=bpmengine
    # Project to deploy
    bpm.project.path=/usr/test_ant/sampleproj
    # Directory details
    fuego.directoryid=default
    Error on running the target publish-on-linux
    [echo] Enterprise Home Directory:: /opt/OraBPMwlHome
    [echo] Ant Version:: Apache Ant version 1.8.1 compiled on April 30 2010
    [echo] Connecting to directory:: default
    publish-on-linux:
    [echo] Creating session...
    [fuego:session] fuego base dir [opt/OraBPMwlHome]
    BUILD FAILED
    /usr/test_ant/build1.xml:25: java.lang.NullPointerException
    at fuego.tools.ant.BaseFuegoTask.getClassLoader(Unknown Source)
    at fuego.tools.ant.BaseFuegoTask.executeTask(Unknown Source)
    at fuego.tools.ant.enterprise.taskdefs.DirectorySessionTask.executeImpl(Unknown Source)
    at fuego.tools.ant.BaseFuegoTask.execute(Unknown Source)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    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:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
    at org.apache.tools.ant.Main.runBuild(Main.java:801)
    at org.apache.tools.ant.Main.startAnt(Main.java:218)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
    Total time: 0 seconds

    Amit Zini wrote:
    Dear All,
    I am unable to run my oracle 10g forms application on Linux machine which is runing Fedora 16.
    i have tried to install jre 6 but mozilla firefox 10 is not loading my oracle 10 forms application, it says plugin missing.
    Kindly help me to short out the problem.
    java version "1.6.0_24"
    OpenJDK Runtime Environment (IcedTea6 1.11.1) (fedora-65.1.11.1.fc16-i386)
    OpenJDK Server VM (build 20.0-b12, mixed mode)
    Regards.
    Amit.Try with down grade of Mozilla firefox. may be version 6 to 8. not 9/10.
    Firefox with 9 and higher doesn't support JRE version 1.6.XX.
    Hopes this helps

  • Error in writing an Ant task for creating a new connection pool.

    I have written the following ant task to create a new connection pool in weblogic 10.3.
    <target name="pool.dev">
         <wlconfig url="http://localhost:7001/" username="weblogic" password="weblogic">
         <query domain="C:/weblogic/rtg-L0" name="myserver"/>
         <create type="JDBCConnectionPool" name="OneSourceConnectionPool">
         <set attribute="DriverName"
         value="oracle.jdbc.OracleDriver"/>
         <set attribute="InitialCapacity" value="1"/>
         <set attribute="MaxCapacity" value="5"/>
         <set attribute="Password" value="rating"/>
         <set attribute="Properties" value="user=rating"/>
         <set attribute="RefreshMinutes" value="0"/>
         <set attribute="ShrinkPeriodMinutes" value="15"/>
         <set attribute="ShrinkingEnabled" value="true"/>
         <set attribute="TestConnectionsOnRelease" value="true"/>
         <set attribute="TestConnectionsOnReserve" value="true"/>
         <set attribute="TestConnectionsOnCreate" value="true"/>
         <set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
         <set attribute="URL"
         value="jdbc:oracle:thin:@xyz.com:1522:oradvl"/>
         <set attribute="Targets" value="myserver"/>
         </create>
         </wlconfig>
    </target>
    When I run it, I see the following error:
    BUILD FAILED
    C:\ganymede\eclipse\workspace1\RtgSvr\build.xml:286: Failed to connect to the server: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
         java.io.EOFException]
    Can anybody please help me regarding this...
    Thank you,
    Sowmya

    Hi everybody,
    Thank you very much for your replies....actually I added weblogic.jar to the classpath of the target. So, now I dont see that error. But, I have another problem which is as follows:
    <target name="initJDBC">
    <wlconfig url="t3://${host}:${port}" username="${username}" password="${password}">
         <query domain="domain.name" type="Server" name="${target.server}" property="${target.server}"/>
         <create type="JDBCConnectionPool" name="TestConnectionPool">
         <set attribute="DriverName" value="oracle.jdbc.OracleDriver"/>
         <set attribute="Password" value="welcome"/>
         <set attribute="Properties" value="user=welcome"/>
         <set attribute="URL" value="jdbc:oracle:thin:@test.com:1522:oradvl"/>
              <set attribute="Targets" value=""/>
         <set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
         <set attribute="TestConnectionsOnRelease" value="false"/>
         <set attribute="TestConnectionsOnReserve" value="true"/>
         </create>
         <create type="JDBCDataSource" name="TestDataSource">
              <set attribute="JNDIName" value="TestDataSource"/>
              <set attribute="PoolName" value="TestConnectionPool"/>
              <set attribute="Targets" value=""/>
              </create>
         </wlconfig>
         </target>
    I am not knowing what to give in the value field of <set attribute="Targets" value=""/>. The following is my build.properties file:
    target.server=myserver
    host=127.0.0.1
    port=7001
    username=weblogic
    password=weblogic
    domain.name=testDomain
    If I give <set attribute="Targets" value="${myserver}"/>, I get the following error:
    BUILD FAILED
    C:\ganymede\eclipse\workspace1\TestSvr\build.xml:290: Property not set: ${myserver}
    When I set myserver=myserver in build.properties, I get the following error:
    BUILD FAILED
    C:\ganymede\eclipse\workspace1\TestSvr\build.xml:290: Error invoking MBean command: java.lang.IllegalArgumentException: Property Name and value not valid for the MBean. Value myserver for parameter[Targets].java.lang.IllegalArgumentException: Unable to convert the argument valuemyserver to class javax.management.ObjectName.java.lang.reflect.InvocationTargetException
    Can someone plzz help me in this regard.
    Thank you,
    Sowmya

  • Not able to create a new domain through ant task

    Hi,
    I have to upgrade weblogic 8.1 to weblogic 10.3 and I am using vanilla version of it. the first step to it is to create weblogic domain and then configure it and then start teh server and then deploy it. The problem starts when I am creating the domain, I am using ant task for domain creation and following these steps
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/ant_tasks.html
    when ant-task is trying to build the specified domain, it is looking for some config.xml and that config.xml should also generated by wlserver/ant task through a template. I have no idea, where and how to define that template.. hence getting following error.. tried hard but not able to get through. can anyone please help..
    Thanks in Advance
    Error stack trace:
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:27 PM IST> <Info> <Management> <BEA-1
    40013> <C:\WIRES\Standalone\weblogic\domains\THSStandAlone\config\config.xml not
    found>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:27 PM IST> <Info> <Management> <BEA-1
    41254> <Generating new domain directory in C:\WIRES\Standalone\weblogic\domains\
    THSStandAlone>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Critical> <WebLogicServer
    <BEA-000362> <Server failed. Reason:[WLServer THS-SA-Admin] There are 1 nested errors:
    [WLServer THS-SA-Admin] weblogic.management.ManagementException: Failure during
    domain creation
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.generateDomain(DomainDirectoryService.java:229)
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.ensureDomainExists(DomainDirectoryService.java:152)
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.start(DomainDirectoryService.java:72)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.ServerServicesManager.startS
    ervice(ServerServicesManager.java:459)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.ServerServicesManager.startI
    nStandbyState(ServerServicesManager.java:164)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.T3Srvr.initializeStandby(T3S
    rvr.java:711)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:4
    82)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:440)
    [WLServer THS-SA-Admin] at weblogic.Server.main(Server.java:67)
    [WLServer THS-SA-Admin] Caused by: com.bea.plateng.domain.script.ScriptException
    : Template "null" does not exist. Line 1
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic$StateMachine.processRead(ScriptParserClassic.java:510)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic$StateMachine.execute(ScriptParserClassic.java:428)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic.parseAndRun(ScriptParserClassic.java:150)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic.doExecute(ScriptParserClassic.java:112)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParser.ex
    ecute(ScriptParser.java:73)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.DomainInfoHelper.execu
    teSilentScript(DomainInfoHelper.java:861)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.DomainInfoHelper.creat
    eDefaultDomain(DomainInfoHelper.java:1755)
    [WLServer THS-SA-Admin] at sun.reflect.NativeMethodAccessorImpl.invoke0(
    Native Method)
    [WLServer THS-SA-Admin] at sun.reflect.NativeMethodAccessorImpl.invoke(N
    ativeMethodAccessorImpl.java:39)
    [WLServer THS-SA-Admin] at sun.reflect.DelegatingMethodAccessorImpl.invo
    ke(DelegatingMethodAccessorImpl.java:25)
    [WLServer THS-SA-Admin] at java.lang.reflect.Method.invoke(Method.java:5
    97)
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.generateDomain(DomainDirectoryService.java:224)
    [WLServer THS-SA-Admin] ... 8 more
    [WLServer THS-SA-Admin] >
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Notice> <WebLogicServer>
    <BEA-000365> <Server state changed to FAILED>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Error> <WebLogicServer> <
    BEA-000383> <A critical service failed. The server will shut itself down>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Notice> <WebLogicServer>
    <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    [WLServer THS-SA-Admin] Error in server execution (THS-SA-Admin)

    Thanks for your reply.
    I have seen sample xml and my target looks the same
    <wlserver dir="${weblogic.domain.dir}"
                             port="${weblogic.domain.admin.server.port}"
                             servername="${weblogic.domain.admin.server.name}"
                             username="${weblogic.domain.admin.user}"
                             domainname="${weblogic.domain.name}"
                             password="${weblogic.domain.admin.password}"
                             configFile="config.xml"
                             generateConfig="true"
                             action="start"
                             beahome="${env.BEA_HOME}"/>
    my requirement is to use ant task.. otherwise I am able to create through configuration wizard
    Thanks

  • Are the WLS 9.1 Web Service Ant Tasks ready for prime time?

    I am trying to create a Proof of Concept (POC) for Enterprise and B2B Services at Wendy's Int'l, Inc.
    As part of this POC, I created a WSDL for an in-house service and then used the wsdlc and jwsc Ant Tasks to translate this WSDL to Java classes and ultimately (I hoped) a deployable services.
    In this document, I describe the issues I encountered setting up what I consider to be a simple POC.
    I'll try to attach my WSDL file and build.xml so you can follow along.
    I'll also try to attach my CSS file so you can compare how the generated WSDL appears in the Browser to the way I want it to appear.
    If attachments are not allowed on these forums, then I will wait and see if there is interest in those documents before I paste them under this topic.
    Some preliminary information about my environment.
    Environment:
         Windows XP Pro SP2
         WebLogic 9.1
         Java 1.5.0_04
    Service Name:
         AppRelease
    Note: If I modify my WSDL (perhaps to add a new Operation or to change the definition of an element) and run wsdlc again, the AppReleaseSOAPPortImpl.java file is overwritten For this reason, I implemented my service logic in a class called AppReleaseServiceImple.java.
    Now, for the issues.
    1.     Bug:
    In the WSDL generated by wsdlc, the wsdl:part child of the wsdl:message tag is erroneously prefixed with a colon.
    This occurs whether or not I specify a prefix for the http://schemas.xmlsoap.org/wsdl/ namespace.
    Work around: Extract the wsdl from the jar file, fix it and add it back into the jar.
    2.     Bug:
    In the WSDL generated by wsdlc, the wsdl:input and wsdl:output children of the wsdl:operation child of wsdl:portType tag are erroneously prefixed with a colon. Like 1 above, this occurs whether or not I specify a prefix for the http://schemas.xmlsoap.org/wsdl/ namespace.
    Work around: Extract the wsdl from the jar file, fix it and add it back into the jar.
    The error message generated by Bugs 1 and 2 is not helpful in diagnosing the problem:
    [jwsc] Error at line:46 col:7 ':' expected [?! -- [CDATA[ ]
    3.     Bug:
    In the WSDL generated by wsdlc, the documentation elements have all of my html elements stripped out, as well as my xhtml and wsdl namespace references. This completely negates one of the best features of the documentation tag, being able to present the WSDL in a browser as a nicely formatted, human friendly document which is also the underlying WSDL that can be viewed when the person views the source document.
    I label this as a bug because it greatly reduces the functionality of the resulting WSDL.
    4.     Annoyance:
    The WSDL generated by wsdlc has all of my comments stripped out, except the comments in the xsd:schema section of the wsdl:types element. I would prefer that all my comments be left in the WSDL, but if comments must be stripped out then I think all of the comments should be stripped out.
    5.     Annoyance:
    The WSDL generated by wsdlc has my CSS specification stripped.
    Work around: I don’t know if adding the CSS back will do any good because I have not yet created a deployable service (see the last issue below).
    6.     Annoyance:
    The WSDL generated by wsdlc has different namespace prefixes than the ones I specified for my application's namespace and for the http://schemas.xmlsoap.org/wsdl/soap/ namespace.
    Work around: Perform a find/replace on namespace prefixes "s0" and "s1" to return them to my prefered values.
    Another thing I can do at this point is simply replace the generated WSDL in the jar file with my original WSDL. This would address issues 1 thru 6 above.
    7.     Annoyance:
    The java source files created by wsdlc are put into a jar file. This makes it annoying when working within a traditional IDE like Eclipse because there is no way to reference the source files within the jar as working source.
    Work around: Extract the source files from the jar and identify the resulting directory structure as part of the source structure of the project.
    8.     Bug:
    The jwsc task complains if the same parameter name is used in multiple operations. I received the following Errors from jwsc:
    [jwsc] C:\IDE\workspace\Acre-WL9.1\AppReleaseSOAPPort.java 0:0
    [jwsc] [ERROR] - Parameter element "{http://acre.services.wendys.com/AppRelease/}garRequest" is not unique across document/literal bare WebService.
    Since the operation names are unique, I see no reason to also require uniqueness in the parameter names used by those operations.
    Work around: Use unique element names for the input parameters of the services operations.
    9.     Bug:
    Once items 1, 2 and 8 above are taken care of, jwsc fails with the following error:
    java.lang.AssertionError: java.lang.ClassNotFoundException: weblogic.j2ee.descriptor.ApplicationBeanImpl
    This seems to be due to the weblogic.jar file not being in the System Classpath.
    However, I should note that when I set verbose="on" and debug="on" in the jwsc ant task, there was a message from the task which stated "[jwsc] [search path for class files: [big freakin’ jar list]". In the big freakin’ jar list, I did find weblogic.jar and weblogic.jar has the required ApplicationBeanImpl. This indicates to me that the jwsc task does not fully honor either its classpathref attribute, nor an embedded classpath element.
    Work around: Make sure the weblogic.jar is in the System Classpath.
    10.     Bug:
    I fixed bug #9 by running a setDomainEnv script and then ran my ant task. This time I received the following output:
    ant build-serviceBuildfile: build.xml
    build-service:
    [jwsc] 1 JWS files will be processed.
    [jwsc] Processing JWS: C:\IDE\workspace\Acre-WL9.1\src\com\wendys\services\acre\AppReleaseServiceImpl.java
    [jwsc] JWS: C:\IDE\workspace\Acre-WL9.1\src\com\wendys\services\acre\AppReleaseServiceImpl.java Validated.
    [AntUtil.deleteDir] Deleting directory <some temporary directory>
    BUILD FAILED
    java.lang.ExceptionInInitializerError
    At this point, I am completely stymied about how to proceed.
    I wonder what new issues await once this 10th issue is addressed.
    Really, is this tool set ready for prime time?

    <i>Sorry to hear you are having so many issues with using the WLS 9.1 web service Ant tasks, inside of Eclipse.
    I generally create a User Library for the couple weblogic jars needed, and use it (the User Library) in my Eclipse projects that I create JWSes in.</i><br>
    I also have a separate WebLogic Library in Eclipse (actually 2 libraries since I work with WL 8.1 and now WL 9.1). As you may know, one of the long-standing issues with the Ant integration within Eclipse is the fact that Ant, being an External Tool, does not receive the Project-specific Paths/Libraries. However, since most Java-relevant Ant tasks can take classpath and classpathref attributes, this is usually not an issue. In the case of the BEA-supplied wsdlc Ant task, it is apparent from the verbose/debug console output that wsdlc can see the jars in its classpathref, but it ignores those references when resolving class references and instead only uses the system classpath.
    <p>
    <i>I've only needed the weblogic.jar and xbean.jar, not all the ones you mentioned in an earlier thread of this post.</i><br>
    I have not tried to winnow down exactly which jars are required. I simply included all the jars that exist and were added to the system classpath by the setDomainEnv.bat file created by WebLogic 9.1.
    <p>
    <i>Afterwards, I create an Ant Builder to build the JWS Web Service EAR, as opposed to fiddlin' with Eclipse.</i><br>
    I too use Ant to build my deployable archives. Eclipse is simply my IDE of choice. I validated that all the issues I listed occurred when running Ant from the command line.
    <p>
    <i>If you are interested in how I do it, send me an e-mail (to [email protected]), and I'll send you a zip of one of these JWS projects. The build.xml script for the project, takes care of a lot of the "annoyances" you mentioned, one of which I think is not accurate. I have never had a situation where the wsdlc Ant task "overwrote" my XXXImpl.java file..</i><br>
    Since I'm doing a POC to determine how we want to proceed with developing Web Services and an SOA in general, I tried to perform the same tasks using Axis 2 1.0, the WebLogic 9.1 tools, and XFire 1.1. Overwriting the Impl class is a common failing in the tools which take a WSDL and create Java source files for all three frameworks.
    <p>
    Try my scenario. Add another operation to an existing WSDL, and run the wsdlc Ant Task. The old IMPL class will be over-written.
    <p>
    Because of this, I have a separate Impl class and I make sure that all its methods and annotations match the methods and annotations in the Skeleton Impl class created by wsdlc.
    <p>
    <i>Maybe that's because I use the <exec> Ant task with jar.exe (the xvf options) in my build.xml, to only get what I need out of the .jar/.zip the wsdlc generates. I'm typically only interest in the interface class that my XXXImpl.java file needs to implements, because I use XMLBeans for the input args (and return values) of my web service operations.</i><br>
    Perhaps. I am not using XMLBeans in any of the three frameworks because the resulting service seems to be lighter-weight in all three frameworks if XMLBeans is not used. I'm sure there will be scenarios where XMLBeans is preferred, but I have not encountered that case in this POC.
    <p>
    <i>Regards,
    Mike Wooten</i>
    Thanks for the follow-up.
    Mike McAngus

  • FU Ant task failure: java.util.concurrent.ExecutionException: could not close client/server socket

    We sometimes see this failure intermitently when using the FlexUnit Ant task to run tests in a CI environment. The Ant task throws this exception:
    java.util.concurrent.ExecutionException: could not close client/server socket
    I have seen this for a while now, and still see it with the latest 4.1 RC versions.
    Here is the console output seen along with the above exception:
    FlexUnit player target: flash
    Validating task attributes ...
    Generating default values ...
    Using default working dir [C:\DJTE\commons.formatter_swc\d3flxcmn32\extracted\Source\Flex]
    Using the following settings for the test run:
    FLEX_HOME: [C:\dev\vert-d3flxcmn32\302100.41.0.20110323122739_d3flxcmn32]
    haltonfailure: [false]
    headless: [false]
    display: [99]
    localTrusted: [true]
    player: [flash]
    port: [1024]
    swf: [C:\DJTE\commons.formatter_swc\d3flxcmn32\extracted\build\commons.formatter.tests.unit.sw f]
    timeout: [1800000ms]
    toDir: [C:\DJTE\commons.formatter_swc\d3flxcmn32\reports\xml]
    Setting up server process ...
    Entry  [C:\DJTE\commons.formatter_swc\d3flxcmn32\extracted\build] already  available in local trust file at  [C:\Users\user\AppData\Roaming\Macromedia\Flash  Player\#Security\FlashPlayerTrust\flexUnit.cfg].
    Executing 'rundll32' with arguments:
    'url.dll,FileProtocolHandler'
    'C:\DJTE\commons.formatter_swc\d3flxcmn32\extracted\build\commons.formatter.tests.unit.swf '
    The ' characters around the executable and arguments are
    not part of the command.
    Starting server ...
    Opening server socket on port [1024].
    Waiting for client connection ...
    Client connected.
    Setting inbound buffer size to [262144] bytes.
    Receiving data ...
    Sending acknowledgement to player to start sending test data ...
    Stopping server ...
    End of test data reached, sending acknowledgement to player ...
    When the problem occurs, it is not always during the running of any particular test (that I am aware of). Recent runs where this failure was seen had the following number of tests executed (note: the total number that should be run is 45677): 18021, 18, 229.
    Here is a "good" run when the problem does not occur:
    Setting inbound buffer size to [262144] bytes.
    Receiving data ...
    Sending acknowledgement to player to start sending test data ...
    Stopping server ...
    End of test data reached, sending acknowledgement to player ...
    Closing client connection ...
    Closing server on port [1024] ...
    Analyzing reports ...
    Suite: com.formatters.help.TestGeographicSiteUrls
    Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
    Suite: com.formatters.functionalUnitTest.testCases.TestNumericUDF
    Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 sec
    Results :
    Tests run: 45,677, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 201.186 sec
    Has anyone else ran across this problem?
    Thanks,
    Trevor

    I am not sure if this information will help everyone, but here goes...
    For us, these problems with FlexUnit tests crashing the Flash Player appear to be related to couple of factors. Recently, we moved up from Flex 3.2 to Flex 4.1 as our development baseline.  Many people complained that their development environment (Flash Builder, etc.) was much more unstable.  Apparently, 4.1 produces SWFs that require more memory to run than 3.2 does?  Anyway, we still had Flash Player 10.1 as our runtime baseline.  Apparently, that version of the player was not as capable of running larger FlexUnit test SWFs, and would crash (as I posted months earlier).  I upgraded to the latest 10.3 standalone player versions, and the crashes have now ceased.  It would be nice to know exactly what was causing the crashes, but memory management (or lack of) is my best guess.
    So, if you are seeing these issues, try upgrading to the latest Flash Player version.
    Regards,
    Trevor

  • Ant task cyclic library refrence

    Hello everyone,
    I am using flex ant task from my Flash builder to compile application. Its working fine and I am able to get the output. But the problem is whenever I use a library in my main project which is refrencing other library than I am unable to find refrence of components in lib 2. Below is the structure
    NewLib >> contains a NewLibGrid(which is a normal spark grid)
    MainLib >> ExtPanel which includes NewLibGrid from NewLib .
    MainApp >> This uses ExtPanel
    No I am getting error during ant compilation
    [compc] D:\Data\Flex\Projects\CompLib\src\ExtPanel.mxml: Error: Could not resolve <local:NewLibGrid> to a component implementation.
    Here is part of antscript I am using
    <target name="lib1" depends="lib2">
    <compc output="${STAGE_DIR}/stagingDir/CompLib.swc"
       keep-generated-actionscript="${DEBUG}"
       debug="${DEBUG}"
       optimize="${OPTIMIZE}"
       target-player="${TARGET_FLASH_PLAYER}"
       include-classes="ExtPanel">
    <runtime-shared-library-path path-element="${FLEX_HOME}/frameworks/libs/framework.swc">                                                                                              
    <url rsl-url="framework_${FLEX_VERSION}.swf"/>                                                                                                        
    <url rsl-url="framework_${FLEX_VERSION}.swz"/>                                                                                              
    </runtime-shared-library-path>
    <runtime-shared-library-path path-element="${PROJ_HOME}/NewLib/bin/NewLib.swc">                                                                                              
    <url rsl-url="${PROJ_HOME}/NewLib/bin/NewLib.swf"/>                                                                                                        
    <url rsl-url="${PROJ_HOME}/NewLib/bin/NewLib.swz"/>                                                                                              
    </runtime-shared-library-path>
    <compiler.library-path dir=".." append="true">
    <include name="Common/libraries"/>
    <exclude name="global_library.swc" />
    </compiler.library-path>
    <source-path path-element="../CompLib/src" />
    </compc>
    </target>
    <target name="lib2">
    <compc output="${STAGE_DIR}/stagingDir/NewLib.swc"
       keep-generated-actionscript="${DEBUG}"
       debug="${DEBUG}"
       optimize="${OPTIMIZE}"
       target-player="${TARGET_FLASH_PLAYER}"
       include-classes="NewLibGrid">
    <runtime-shared-library-path path-element="${FLEX_HOME}/frameworks/libs/framework.swc">                                                                                              
    <url rsl-url="framework_${FLEX_VERSION}.swf"/>                                                                                                        
    <url rsl-url="framework_${FLEX_VERSION}.swz"/>                                                                                              
    </runtime-shared-library-path>
    <compiler.library-path dir=".." append="true">
    <include name="Common/libraries"/>
    <exclude name="global_library.swc" />
    </compiler.library-path>
    <source-path path-element="../NewLib/src" />
    </compc>
    </target>

        <mxmlc
             file="${project.name}/src/Test.mxml"
             output="${build.mxmlc.dir}/Test.swf"
             static-link-runtime-shared-libraries="true"
        >
              <load-config filename="${air.config}"/>
              <source-path path-element="${project.name}/src" />
             <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/framework.swc">
                    <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swz"/>
                    <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swf"/>
             </runtime-shared-library-path>
             <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/datavisualization.swc">
                    <url rsl-url="${rsl.dir}/datavisualization_3.2.0.3958.swf"/>
             </runtime-shared-library-path>
        </mxmlc>
    This also seems to work. AIR libraries are included in my output SWF. It all happens right when I have static-link-runtime-shared-libraries="true" . Why? Why does that not work when i have static-link-runtime-shared-libraries="false"  ??

  • Compc ant task and external framework

    I'm writing an ant task to compile a couple of libraries into
    SWCs and then a shell app (that uses the libraries) into a SWF for
    deployment. If I compile the libraries by hand then run just the
    'mxmlc' part of my ant script it compiles fine. However when I try
    and first compile a library into a SWC with 'compc' it compiles but
    then the shell app complains that the classes from the library are
    missing. One thing that may be causing the problem is my library
    path (through flex builder) has it's framework.swc set to 'Link
    Type: External' and I'm not sure how to define that with 'compc'.
    The weird thing is the flex builder compiled and 'compc' compiled
    SWCs are the same size. Here's my target for 'compc':

        <mxmlc
             file="${project.name}/src/Test.mxml"
             output="${build.mxmlc.dir}/Test.swf"
             static-link-runtime-shared-libraries="true"
        >
              <load-config filename="${air.config}"/>
              <source-path path-element="${project.name}/src" />
             <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/framework.swc">
                    <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swz"/>
                    <url rsl-url="${rsl.dir}/framework_3.2.0.3958.swf"/>
             </runtime-shared-library-path>
             <runtime-shared-library-path path-element="${flex.frameworks.dir}/libs/datavisualization.swc">
                    <url rsl-url="${rsl.dir}/datavisualization_3.2.0.3958.swf"/>
             </runtime-shared-library-path>
        </mxmlc>
    This also seems to work. AIR libraries are included in my output SWF. It all happens right when I have static-link-runtime-shared-libraries="true" . Why? Why does that not work when i have static-link-runtime-shared-libraries="false"  ??

Maybe you are looking for

  • USB ports do not work on Equium 40X after OS reinstallation

    Hi all, I have formatted my Equium 40X laptop recently and since then the USB ports aren't recognising anything that's plugged into the ports. Can anyone provide me with the drivers. I am using Windows XP Professional. Thanks in advance SKP

  • [ANN] Oracle JDeveloper 10g production is now available for download.

    It's probably worth a mention in this forum too ;-) In case you haven't notice we have just released Oracle JDeveloper 10g production with a many new features that makes it the ideal Java tools for Oracle Application Server users. Check it out at: ht

  • 64 Bit XML libraries for Sun Solaris

    Will the libxml8.a and libxmlc8.a libraries be included in the 8.1.7 (64) release for Sun Solaris?

  • Transfering Dreamweaver Problems

    Here is the issue - I just bought a new macbook pro and put my old dreamweaver program on it. I put in the sereial # but couldn't regester it, because it said it was already registered. This is because I used it on my old machine. Anyhow, I went to g

  • 13" MacBook pro vs 11" MacBook air

    Hi guys. I've been looking for a laptop. Like the Pro but it might be heavy. Like the air but no cd/DVD player. Also is it slow because it has 1.6ghz? Using it for essay a little editing and movies/browsing. Help is appreciated