Ant Task through Web

Hi,
Is it possible to run a Ant Task from a web interface. What I want a nice little web interface with some buttons on it like Run JavaDoc, Deploy, Compile, Unit Test etc and when a developer clicks on any of the buttons, performs ANT Task.
Any ideas?
Thanks

Take a look at antidote (or eclipse etc) and just port the Swing GUI. Shouldn't be too difficult.
http://ant.apache.org/projects/antidote/

Similar Messages

  • Using Eclipse Ant tasks - for web service client creation

    Hi,
    I am following Eclipse documentation for creating Axis runtime environment web services and clients using web services Ant tasks.
    As per document when I import Ant files into workspace, files that will be imported are wsgen.xml (Ant file) , axisservice.properties and axisclient.properties but for me these files are not getting imported into the project instead files axis_bujava.properties and axis_bujava.xml are imported.
    Please do let me know if anyone have any ideas on this asap.
    Thanks,
    Roopa.

    Hi,
    I am following Eclipse documentation for creating Axis runtime environment web services and clients using web services Ant tasks.
    As per document when I import Ant files into workspace, files that will be imported are wsgen.xml (Ant file) , axisservice.properties and axisclient.properties but for me these files are not getting imported into the project instead files axis_bujava.properties and axis_bujava.xml are imported.
    Please do let me know if anyone have any ideas on this asap.
    Thanks,
    Roopa.

  • 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

  • Creating Execute Queue through WLConfig ANT tasks

    We are planning to create a new Execute Queue for a existing server in weblogic 8.1. When we create a new execute queue through the web admin console it add the following line within the Server tag in config.xml.
    <?xml version="1.0" encoding="UTF-8"?>
    <Domain Name="weblogicdomain">
    <Server ListenAddress="" ListenPort="6110" Name="servername">
    <ExecuteQueue Name="FileDownloadsExecuteQueue" ThreadCount="1"/>
    </Server>
    ....Other resources....
    </Domain>
    Now we have to create this execute queue NOT through the web admin console but through wlconfig ANT tasks. How should we create this? There are samples ANT tasks to add a resource (JDBC connection pool etc) directly within the Domain tag of the config.xml but our requirement is to add a new element (ExecuteQueue) within the existing server tag. As the server is already created we cannot create server mbean and nest it with one more create of execute queue. We have to attach the new execute queue to the current existing server.
    Can we set a new element (not a attribute) to the server by quering or any other method?
    Thanks.

    I haven't tried this with wlconfig, but I was able to accomplish it by invoking weblogic.Admin from the <java> task:
    <!-- Create the ExecuteQueue -->
    <java classname="weblogic.Admin" fork="true">
    <arg line="-url ${deploy.server.name}:${deploy.server.port}"/>
    <arg line="-username ${deploy.username}"/>
    <arg line="-password ${deploy.password}"/>
    <arg value="CREATE"/>
    <arg line="-mbean portal:Type=ExecuteQueue,Name=newRenderQueue,Server=${deploy.target}"/>
    <classpath>
    <pathelement location="${weblogic.home.dir}/server/lib/weblogic.jar"/>
    </classpath>
    </java>
    <!-- Set the ThreadCount -->
    <java classname="weblogic.Admin" fork="true">
    <arg line="-url ${deploy.server.name}:${deploy.server.port}"/>
    <arg line="-username ${deploy.username}"/>
    <arg line="-password ${deploy.password}"/>
    <arg value="SET"/>
    <arg line="-mbean portal:Type=ExecuteQueue,Name=newRenderQueue,Server=${deploy.target}"/>
    <arg line="-property ThreadCount 5"/>
    <classpath>
    <pathelement location="${weblogic.home.dir}/server/lib/weblogic.jar"/>
    </classpath>
    </java>
    Hope that helps,
    George

  • ANT task wsgen error while deploying RPC style web service

    Hi
    I am trying to assemble/deploy an rpc style weblogic web service using the 'wsgen'
    Ant task and the build.xml scripts provided with the samples. I get this error:
    Please help
    Thanks,
    Praveen
    C:\test>ant
    Buildfile: build.xml
    webservice:
    clean:
    [delete] Deleting directory C:\test\build
    init:
    [mkdir] Created dir: C:\test\build
    [mkdir] Created dir: C:\test\build\META-INF
    [copy] Copying 5 files to C:\test\build\META-INF
    compile_ejb:
    [javac] Compiling 5 source files to C:\test\build
    jar_ejb:
    [jar] Building jar: C:\test\a_statelessSession.jar
    ejbc:
    all:
    wsgen:
    Error at line:8 col:12 ':' Already got a ':' in name
    at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseExc
    on(SAXElementFactory.java:60)
    at weblogic.xml.babel.parsers.StreamParser.<init>(StreamParser.java:
    at weblogic.xml.babel.parsers.BabelXMLEventStream.startDocument(Babe
    EventStream.java:28)
    at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:6
    at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:5
    at weblogic.soap.WebServiceProxy.getServiceFrom(WebServiceProxy.java
    at weblogic.ant.taskdefs.ejb.WSGenHelper.writeClientJar(WSGenHelper.
    :1125)
    at weblogic.ant.taskdefs.ejb.WSGenHelper.writeWSDL(WSGenHelper.java:
    at weblogic.ant.taskdefs.ejb.WSGenHelper.saveDescriptors(WSGenHelper
    a:1415)
    at weblogic.ant.taskdefs.ejb.WSGenHelper.output(WSGenHelper.java:148
    at weblogic.ant.taskdefs.ejb.WSGenHelper.doit(WSGenHelper.java:1517)
    at weblogic.ant.taskdefs.ejb.WSGen.execute(WSGen.java:93)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.Project.executeTargets(Project.java:510)
    at org.apache.tools.ant.Main.runBuild(Main.java:421)
    at org.apache.tools.ant.Main.main(Main.java:149)
    BUILD SUCCESSFUL
    Total time: 34 seconds
    C:\test>

    WLS6.1, service pack 2? I didn't know there were any service packs for 6.1 and
    6.0 didn't support wsgen and web services??
    simon.
    manoj cheenath <[email protected]> wrote:
    >
    >
    This is a known bug which is fixed in WLS 6.1 SP2.
    The workaround is to change the complex data types
    to have more than one level package names.
    for eg: change ....
    package foo;
    class Data{}
    to :
    package foo.bar;
    class Data{}
    -manoj
    Praveen wrote:
    Hi
    I am trying to assemble/deploy an rpc style weblogic web service usingthe 'wsgen'
    Ant task and the build.xml scripts provided with the samples. I getthis error:
    Please help
    Thanks,
    Praveen
    C:\test>ant
    Buildfile: build.xml
    webservice:
    clean:
    [delete] Deleting directory C:\test\build
    init:
    [mkdir] Created dir: C:\test\build
    [mkdir] Created dir: C:\test\build\META-INF
    [copy] Copying 5 files to C:\test\build\META-INF
    compile_ejb:
    [javac] Compiling 5 source files to C:\test\build
    jar_ejb:
    [jar] Building jar: C:\test\a_statelessSession.jar
    ejbc:
    all:
    wsgen:
    Error at line:8 col:12 ':' Already got a ':' in name
    at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseExc
    on(SAXElementFactory.java:60)
    at weblogic.xml.babel.parsers.StreamParser.<init>(StreamParser.java:
    at weblogic.xml.babel.parsers.BabelXMLEventStream.startDocument(Babe
    EventStream.java:28)
    at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:6
    at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:5
    at weblogic.soap.WebServiceProxy.getServiceFrom(WebServiceProxy.java
    at weblogic.ant.taskdefs.ejb.WSGenHelper.writeClientJar(WSGenHelper.
    :1125)
    at weblogic.ant.taskdefs.ejb.WSGenHelper.writeWSDL(WSGenHelper.java:
    at weblogic.ant.taskdefs.ejb.WSGenHelper.saveDescriptors(WSGenHelper
    a:1415)
    at weblogic.ant.taskdefs.ejb.WSGenHelper.output(WSGenHelper.java:148
    at weblogic.ant.taskdefs.ejb.WSGenHelper.doit(WSGenHelper.java:1517)
    at weblogic.ant.taskdefs.ejb.WSGen.execute(WSGen.java:93)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.Project.executeTargets(Project.java:510)
    at org.apache.tools.ant.Main.runBuild(Main.java:421)
    at org.apache.tools.ant.Main.main(Main.java:149)
    BUILD SUCCESSFUL
    Total time: 34 seconds
    C:\test>
    -----------------------------------------------------------------<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    This is a known bug which is fixed in WLS 6.1 SP2.
    <p>The workaround is to change the complex data types
    <br>to have more than one level package names.
    <p>for eg: change ....
    <p><font color="#3366FF">package foo;</font>
    <br>class Data{}
    <p>to :
    <p><font color="#3333FF">package foo.bar;</font>
    <br>class Data{}
    <p>-manoj
    <p>Praveen wrote:
    <blockquote TYPE=CITE>Hi
    <br>I am trying to assemble/deploy an rpc style weblogic web service
    using
    the 'wsgen'
    <br>Ant task and the build.xml scripts provided with the samples. I get
    this error:
    <br>Please help
    <br>Thanks,
    <br>Praveen
    <br>-----------------------------------------------------------------
    <br>C:\test>ant
    <br>Buildfile: build.xml
    <p>webservice:
    <p>clean:
    <br>   [delete] Deleting directory C:\test\build
    <p>init:
    <br>    [mkdir] Created dir: C:\test\build
    <br>    [mkdir] Created dir: C:\test\build\META-INF
    <br>     [copy] Copying 5 files to C:\test\build\META-INF
    <p>compile_ejb:
    <br>    [javac] Compiling 5 source files to C:\test\build
    <p>jar_ejb:
    <br>      [jar] Building jar: C:\test\a_statelessSession.jar
    <p>ejbc:
    <p>all:
    <p>wsgen:
    <br>Error at line:8 col:12  ':' Already got a ':' in name
    <br>        at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseExc
    <br>on(SAXElementFactory.java:60)
    <br>        at weblogic.xml.babel.parsers.StreamParser.<init>(StreamParser.java:
    <br>        at weblogic.xml.babel.parsers.BabelXMLEventStream.startDocument(Babe
    <br>EventStream.java:28)
    <br>        at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:6
    <br>        at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:5
    <br>        at weblogic.soap.WebServiceProxy.getServiceFrom(WebServiceProxy.java
    <br>)
    <br>        at weblogic.ant.taskdefs.ejb.WSGenHelper.writeClientJar(WSGenHelper.
    <br>:1125)
    <br>        at weblogic.ant.taskdefs.ejb.WSGenHelper.writeWSDL(WSGenHelper.java:
    <br>)
    <br>        at weblogic.ant.taskdefs.ejb.WSGenHelper.saveDescriptors(WSGenHelper
    <br>a:1415)
    <br>        at weblogic.ant.taskdefs.ejb.WSGenHelper.output(WSGenHelper.java:148
    <br>        at weblogic.ant.taskdefs.ejb.WSGenHelper.doit(WSGenHelper.java:1517)
    <br>        at weblogic.ant.taskdefs.ejb.WSGen.execute(WSGen.java:93)
    <br>        at org.apache.tools.ant.Target.execute(Target.java:153)
    <br>        at org.apache.tools.ant.Project.runTarget(Project.java:898)
    <br>        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    <br>        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
    <br>        at org.apache.tools.ant.Target.execute(Target.java:153)
    <br>        at org.apache.tools.ant.Project.runTarget(Project.java:898)
    <br>        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    <br>        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
    <br>        at org.apache.tools.ant.Main.runBuild(Main.java:421)
    <br>        at org.apache.tools.ant.Main.main(Main.java:149)
    <p>BUILD SUCCESSFUL
    <p>Total time: 34 seconds
    <p>C:\test>
    <br>-----------------------------------------------------------------</blockquote>
    </html>

  • 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

  • Fail to create web service with user-defined data type using jwsc Ant task!

    Hello every body!
    I used JAXWS to create WSDL from a jws file.
    This is my jws:
    package ws;
    import javax.jws.WebService;
    import javax.jws.WebMethod;
    import ws.MyDataType;
    *@WebService*
    *public class MyWebService {*
    public MyWebService()
    *@WebMethod*
    public MyDataType MyWebMethod(MyDataType mdt)
    *// mdt.setS("I got it!");*
    return mdt;
    and this is my data type:
    package ws;
    *public class MyDataType {*
    String s;
    public MyDataType()
    *public String getS() {*
    return s;
    *public void setS(String s) {*
    this.s = s;
    and this is my Ant build.xml
    *<project default="all">*
    *<property name="weblogic.jar.classpath" value="D:/Projects/bea103/wlserver_10.3/server/lib"/>*
    *<taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">*
    *<classpath>*
    *<path id="weblogic.classpath">*
    *<pathelement path="WEBLOGIC_HOME"/>*
    *<fileset dir="${weblogic.jar.classpath}">*
    *<include name="weblogic.jar"/>*
    *</fileset>*
    *</path>*
    *</classpath>*
    *</taskdef>*
    *<target name="all" depends="clean,build-service"/>*
    *<target name="clean">*
    *<delete dir="output"/>*
    *</target>*
    *<target name="build-service">*
    *<!--add jwsc and related tasks here -->*
    *<jwsc srcdir="" destdir="wsoutput">*
    *<jws file="MyWebService.java" type="JAXWS"/>*
    *</jwsc>*
    *</target>*
    *<!--<target name="deploy"> --><!--add wldeploy task here --><!-- </target>-->*
    *</project>*
    I run the Ant task but I get this error:
    Buildfile: build.xml
    clean:
    build-service:
    [jwsc] JWS: processing module /MyWebService
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 1 JWS files being processed for module /MyWebService
    *[jwsc] [JAM] Warning: failed to resolve class MyDataType*
    [jwsc] JWS: C:\Documents and Settings\samimi\IdeaProjects\SampleWebService\src\ws\MyWebService.java Validated.
    [jwsc] Processing 1 JAX-WS web services...
    *[jwsc] error: Could not get TypeDeclaration for: MyDataType in apt round: 1*..........
    BUILD FAILED
    C:\Documents and Settings\samimi\IdeaProjects\SampleWebService\src\ws\build.xml:
    19: weblogic.wsee.tools.WsBuildException: Error processing JAX-WS web services
    Please help me to solve this issue.
    Thank you,
    Mojir

    Thank u very much Jay SenSharma this was helpful
    and thank u sandeep_singh this is the answer,
    I find another answer too :
    adding my class files to the path remove the error:
    <project default="all">
    <property name="weblogic.jar.classpath" value="D:/Projects/bea103/wlserver_10.3/server/lib"/>
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
    <classpath>
    <path id="my.path">
    <pathelement path="D:/Projects/bea103/jdk160_05/lib/tools.jar"/>
    <pathelement path="D:/Projects/bea103/wlserver_10.3/server/lib/weblogic.jar"/>
    *<pathelement path="D:/Projects/LifeInsurance Project Original/BusinessModule/classes/"/>* adding this line solved my problem.
    <pathelement path="${java.class.path}"/>
    </path>
    <path id="weblogic.classpath">
    <pathelement path="WEBLOGIC_HOME"/>
    <fileset dir="${weblogic.jar.classpath}">
    <include name="weblogic.jar"/>
    </fileset>
    </path>
    </classpath>
    </taskdef>
    <target name="all" depends="clean,build-service"/>
    <target name="clean">
    <delete dir="output"/>
    </target>
    <target name="build-service">
    <jwsc sourcepath="mytype" classpathref="my.path" debug="true" srcdir="" destdir="wsoutput">
    <jws file="NegotiationService.java" generatewsdl="true" type="JAXWS"/>
    </jwsc>
    </target>
    </project>
    Thank u very much,
    Mojir

  • JWSC Ant task with JAXWS web services failed

    Hi,
    I do not manage to generate my JAXWS web services using jwsc ant task. It worked when my web services were JAX-RPC web services but now I have an error.
    In my build process, I generate first the web service artifacts from wsdl files using wsdlc :
    <path id="bea-ant-task.classpath">
      <pathelement location="${java.home}/../lib/tools.jar" />
      <fileset dir="${bea.home.dir}/wlserver_10.0/server/lib"/>
      <fileset dir="${bea.home.dir}/modules"/>
    </path>
    <taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask">
      <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-artifacts">
       <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlarmWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
       <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlertWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    </target>Then I tried to generate my web services with jwsc :
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
      <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-webservices">
      <jwsc srcdir="src" destdir="${ear.dir}" keepGenerated="yes" classpathref="compile.classpath" >
           <module contextpath="myappli" name="webservices.jar" explode="true">
          <jws type="JAXWS" file="${myappli.path}/alarm/jwsendpoint/AlarmBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlarmWS_wsdl.jar"/>
          <jws type="JAXWS" file="${myappli.path}/alert/jwsendpoint/AlertBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlertWS_wsdl.jar"/>
        </module>
      </jwsc>
    </target>This task generate the following error :
    generate-webservices:
         [jwsc] JWS: processing module webservices.jar
         [jwsc] Parsing source files
         [jwsc] Parsing source files
         [jwsc] 2 JWS files being processed for module webservices.jar
         [jwsc] JWS: C:\projects\appli\main\src\net\aze\appli\services\alarm\jwsendpoint\AlarmBean.java Validated.
         [jwsc] JWS: C:\projects\appli\main\src\net\aze\appli\services\alert\jwsendpoint\AlertBean.java Validated.
         [jwsc] Processing 2 JAX-WS web services...
         [jwsc] warning: Annotation types without processors: [javax.ejb.Stateless, javax.annotation.Resource, javax.annotation.security.RolesAllowed]
         [jwsc] C:\DOCUME~1\wg\LOCALS~1\Temp\_jg4rtr3\net\aze\appli\jws\alert\PTAlert.java:33: The endpoint interface net.aze.appli.jws.alarm.PTAlarm does not match the interface net.aze.appli.jws.alert.PTAlert.
         [jwsc] public interface PTAlert {
         [jwsc]        ^
         [jwsc] 1 error
         [jwsc] 1 warning
         [jwsc] Command invoked: apt C:\apps\bea10\JROCKI~1\jre\bin\java.exe -classpath C:\projects\appli\lib\common\caplib.jar;C:\pr......[pre]
    C:\projects\aze\main\bea-build.xml:15: The following error occurred while executing this line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:46: The following error occurred while executing this line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:110: weblogic.wsee.tools.WsBuildException: Error processing JAX-WS web servicesHere is my bean implementation :
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName = "applids", type = DataSource.class)
    @WebService(endpointInterface = "net.aze.appli.jws.alarm.PTAlarm")
    @HandlerChain(file = "../../../handler/alarmHandlerChain.xml")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlarmBean implements PTAlarm {
        @Resource
        private SessionContext sessionContext;
        public AlarmCreateOut persist(AlarmCreateIn in) {
            return AlarmDelegate.getInstance(sessionContext).persist(in);
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName = "applids", type = DataSource.class)
    @WebService(endpointInterface = "net.aze.appli.jws.alert.PTAlert")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlertBean implements PTAlert {
        @Resource
        private SessionContext sessionContext;
        public AlertCreateOut persist(AlertCreateIn in) {
            return AlertDelegate.getInstance(sessionContext).persist(in);
    }Jwsc seems to mix the interfaces... If I try to generate only one bean in jwsc it works...
    Any ideas? I can't find the solution, could it be a bug?
    Thanks for your help.
    Edited by will_mad at 09/11/2007 1:56 AM

    Hi,
    I do not manage to generate my JAXWS web services
    using jwsc ant task. It worked when my web services
    were JAX-RPC web services but now I have an error.
    In my build process, I generate first the web service
    artifacts from wsdl files using wsdlc :
    <path id="bea-ant-task.classpath">
    <pathelement location="${java.home}/../lib/tools.jar" />
    <fileset dir="${bea.home.dir}/wlserver_10.0/server/lib"/>
    <fileset dir="${bea.home.dir}/modules"/>
    </path>
    <taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask">
    <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-artifacts">
    <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlarmWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlertWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    </target>Then I tried to generate my web services with jwsc :
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
    <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-webservices">
    <jwsc srcdir="src" destdir="${ear.dir}" keepGenerated="yes" classpathref="compile.classpath" >
    <module contextpath="myappli" name="webservices.jar" explode="true">
    <jws type="JAXWS" file="${myappli.path}/alarm/jwsendpoint/AlarmBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlarmWS_wsdl.jar"/>
    <jws type="JAXWS" file="${myappli.path}/alert/jwsendpoint/AlertBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlertWS_wsdl.jar"/>
    </module>
    </jwsc>
    </target>This task generate the following error :
    generate-webservices:
    [jwsc] JWS: processing module webservices.jar
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 2 JWS files being processed for module
    odule webservices.jar
    [jwsc] JWS:
    JWS:
    C:\projects\appli\main\src\net\aze\appli\services\alar
    m\jwsendpoint\AlarmBean.java Validated.
    [jwsc] JWS:
    JWS:
    C:\projects\appli\main\src\net\aze\appli\services\aler
    t\jwsendpoint\AlertBean.java Validated.
    [jwsc] Processing 2 JAX-WS web services...
    [jwsc] warning: Annotation types without
    thout processors: [javax.ejb.Stateless,
    javax.annotation.Resource,
    javax.annotation.security.RolesAllowed]
    [jwsc]
    jwsc]
    C:\DOCUME~1\wg\LOCALS~1\Temp\_jg4rtr3\net\aze\appli\jw
    s\alert\PTAlert.java:33: The endpoint interface
    net.aze.appli.jws.alarm.PTAlarm does not match the
    interface net.aze.appli.jws.alert.PTAlert.
    [jwsc] public interface PTAlert {
    [jwsc]        ^
    [jwsc] 1 error
    [jwsc] 1 warning
    [jwsc] Command invoked: apt
    : apt C:\apps\bea10\JROCKI~1\jre\bin\java.exe
    -classpath
    C:\projects\appli\lib\common\caplib.jar;C:\pr......[pr
    e]
    C:\projects\aze\main\bea-build.xml:15: The following
    error occurred while executing this line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:
    46: The following error occurred while executing this
    line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:
    110: weblogic.wsee.tools.WsBuildException: Error
    processing JAX-WS web servicesHere is my bean implementation :
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName =
    "applids", type = DataSource.class)
    @WebService(endpointInterface =
    "net.aze.appli.jws.alarm.PTAlarm")
    @HandlerChain(file =
    "../../../handler/alarmHandlerChain.xml")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlarmBean implements PTAlarm {
    @Resource
    private SessionContext sessionContext;
    public AlarmCreateOut persist(AlarmCreateIn in)
    in) {
    return
    return
    n
    AlarmDelegate.getInstance(sessionContext).persist(in);
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName =
    "applids", type = DataSource.class)
    @WebService(endpointInterface =
    "net.aze.appli.jws.alert.PTAlert")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlertBean implements PTAlert {
    @Resource
    private SessionContext sessionContext;
    public AlertCreateOut persist(AlertCreateIn in)
    in) {
    return
    return
    n
    AlertDelegate.getInstance(sessionContext).persist(in);
    }Jwsc seems to mix the interfaces... If I try to
    generate only one bean in jwsc it works...
    Any ideas? I can't find the solution, could it be a
    bug?
    Thanks for your help.
    Edited by will_mad at 09/11/2007 1:56 AM
    Hi,
    I do not manage to generate my JAXWS web services
    using jwsc ant task. It worked when my web services
    were JAX-RPC web services but now I have an error.
    In my build process, I generate first the web service
    artifacts from wsdl files using wsdlc :
    <path id="bea-ant-task.classpath">
    <pathelement location="${java.home}/../lib/tools.jar" />
    <fileset dir="${bea.home.dir}/wlserver_10.0/server/lib"/>
    <fileset dir="${bea.home.dir}/modules"/>
    </path>
    <taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask">
    <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-artifacts">
    <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlarmWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlertWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    </target>Then I tried to generate my web services with jwsc :
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
    <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-webservices">
    <jwsc srcdir="src" destdir="${ear.dir}" keepGenerated="yes" classpathref="compile.classpath" >
    <module contextpath="myappli" name="webservices.jar" explode="true">
    <jws type="JAXWS" file="${myappli.path}/alarm/jwsendpoint/AlarmBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlarmWS_wsdl.jar"/>
    <jws type="JAXWS" file="${myappli.path}/alert/jwsendpoint/AlertBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlertWS_wsdl.jar"/>
    </module>
    </jwsc>
    </target>This task generate the following error :
    generate-webservices:
    [jwsc] JWS: processing module webservices.jar
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 2 JWS files being processed for module
    odule webservices.jar
    [jwsc] JWS:
    JWS:
    C:\projects\appli\main\src\net\aze\appli\services\alar
    m\jwsendpoint\AlarmBean.java Validated.
    [jwsc] JWS:
    JWS:
    C:\projects\appli\main\src\net\aze\appli\services\aler
    t\jwsendpoint\AlertBean.java Validated.
    [jwsc] Processing 2 JAX-WS web services...
    [jwsc] warning: Annotation types without
    thout processors: [javax.ejb.Stateless,
    javax.annotation.Resource,
    javax.annotation.security.RolesAllowed]
    [jwsc]
    jwsc]
    C:\DOCUME~1\wg\LOCALS~1\Temp\_jg4rtr3\net\aze\appli\jw
    s\alert\PTAlert.java:33: The endpoint interface
    net.aze.appli.jws.alarm.PTAlarm does not match the
    interface net.aze.appli.jws.alert.PTAlert.
    [jwsc] public interface PTAlert {
    [jwsc]        ^
    [jwsc] 1 error
    [jwsc] 1 warning
    [jwsc] Command invoked: apt
    : apt C:\apps\bea10\JROCKI~1\jre\bin\java.exe
    -classpath
    C:\projects\appli\lib\common\caplib.jar;C:\pr......[pr
    e]
    C:\projects\aze\main\bea-build.xml:15: The following
    error occurred while executing this line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:
    46: The following error occurred while executing this
    line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:
    110: weblogic.wsee.tools.WsBuildException: Error
    processing JAX-WS web servicesHere is my bean implementation :
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName =
    "applids", type = DataSource.class)
    @WebService(endpointInterface =
    "net.aze.appli.jws.alarm.PTAlarm")
    @HandlerChain(file =
    "../../../handler/alarmHandlerChain.xml")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlarmBean implements PTAlarm {
    @Resource
    private SessionContext sessionContext;
    public AlarmCreateOut persist(AlarmCreateIn in)
    in) {
    return
    return
    n
    AlarmDelegate.getInstance(sessionContext).persist(in);
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName =
    "applids", type = DataSource.class)
    @WebService(endpointInterface =
    "net.aze.appli.jws.alert.PTAlert")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlertBean implements PTAlert {
    @Resource
    private SessionContext sessionContext;
    public AlertCreateOut persist(AlertCreateIn in)
    in) {
    return
    return
    n
    AlertDelegate.getInstance(sessionContext).persist(in);
    }Jwsc seems to mix the interfaces... If I try to
    generate only one bean in jwsc it works...
    Any ideas? I can't find the solution, could it be a
    bug?
    Thanks for your help.
    Edited by will_mad at 09/11/2007 1:56 AMI too am getting similar error. If you hit a solution, do let me know :)

  • Wsdd-merge to merge web-services.xml where is Ant Task

    Can anyone tell me the the java class for the <wsdd-merge> ant target, I am using
    Ant 1.6.1 and need to add the taskdef e.g.:-
    <taskdef name="wsdd-merge" classname="???/" />
    many thanks.

    Bruce,
    thanks for replying, I have multiple web services to merge into a compound web-services.xml.
    I originally tried
    <source2wsdd> with the option mergeWithExistingWS="true" , but found this didn't
    work. I noticed in the examples 'Multiple Web Services in one war' at http://manojc.com/?sample12
    that instead of using the merge option :-
    <move file="${output_dir}/WEB-INF/web-services.xml"
    tofile="${output_dir}/WEB-INF/web-services2.xml" />
    <wsdd-merge targetDD="${output_dir}/WEB-INF/web-services.xml" >
    <filelist dir="${output_dir}/WEB-INF/"
    files="web-services1.xml, web-services2.xml" />
    </wsdd-merge>
    So I was trying to do this. However I have now found that CR128214 has patched
    the original mergeWithExistingWS not working problem, and should be in WL8.1 sp3
    cheers.
    Bruce Stephens <[email protected]> wrote:
    Hi Pete,
    Web service ant tasks are doc'ed here [1]; I'm not sure about this
    one...where RU using this?
    Regards,
    Bruce
    [1]
    http://e-docs.bea.com/wls/docs81/webserv/anttasks.html
    Pete wrote:
    Can anyone tell me the the java class for the <wsdd-merge> ant target,I am using
    Ant 1.6.1 and need to add the taskdef e.g.:-
    <taskdef name="wsdd-merge" classname="???/" />
    many thanks.

  • ANT task to interate through sub directories

    I want to execute the same ANT target over a number of subdirectories. I also need to "pass" or set and environment variable which is the sub-directory name and pass it to the ANT target. I have researched the documentation, but have found no task that will do this. Any suggestions, short of writing my own ANT task?
    thanks
    Don

    OK, so I wrote my own task, but I am having a bit of a problem:
    creating an Ant task which loops through subdirectories and then calls an Ant target ? this is easy enough through the project.executeTarget method. I pass the subdirectory name as a property to the ?called? target. This I do through the project.setProperty method.
    Yet the target only has the original value of the property and not the modified value. I am assuming that this is because once a target and its tasks are loaded, the properties are then fixed ? immutable.
    So my strategy is to ?refresh? the target before my task executes the target. I was thinking to create a new target, do a shallow copy of info, copy to the project and then execute the new target. Thoughts? Other ideas?
    Here is the sample ANT build code:
      <target name="build" >
          <IterateDirectoryTask RootDirectory="." ExecuteTarget="TestTarget"/>
      </target>
      <target name="TestTarget" >
          <echo message="Hello from TestTarget" />
          <echo message="   subdirectory = ${subdirectory}" />
      </target> And here is the TASK:
    public class IterateDirectoryTask extends Task {
          private String _rootDirectory;
          private String _executeTargetName;
          public void setRootDirectory(String aDirectoryName) {
                _rootDirectory = aDirectoryName;
          public void setExecuteTarget(String aTargetName) {
                _executeTargetName =  aTargetName;
          public void execute() throws BuildException {
                if (_executeTargetName == null) {
                      throw new BuildException("ExecuteTarget must be specified");
                File lRootDirectory = new File(_rootDirectory);
                if (!lRootDirectory.isDirectory()) {
                      throw new BuildException("'"+_rootDirectory+"' is not a directory");
                File[] lFiles = lRootDirectory.listFiles();
                for (int i=0; i < lFiles.length; i++) {
                      if (lFiles.isDirectory()) {
    project.setProperty("subdirectory", lFiles[i].getName());
    Target lTarget = (Target)project.getTargets().get(_executeTargetName);
    project.executeTarget(_executeTargetName);

  • Jwsc ant task WL 9.1 does not support module and jwsfileset?

    Hi!
    I am doing some work using the WL9.1 tools in order to build and deploy web services.I have successfully used the jws tasks though while I have several files that I want to compile automatically I went through the WL documentation and the use of
    jwsc ..with nested tags Module and jwsfileset
    Though when I try to invoke the Ant task I get
    'The <jwsc> type doesn't support the nested "module" element'
    Any idea? Is it because of my 9.1 installation?do i need 9.2?
    my task is something like
    <target name="build-service">
    <jwsc
    srcdir="src"
    destdir="output/TestEar" >
    <module contextPath="test" name="myJar" >
    <jwsfileset srcdir="src/examples/webservices/jwsc" >
    <include name="**/*.java" />
    </jwsfileset>
    </jwsc>
    </target>
    Thank you for your time!

    Ok the answer was easy I suppose!Check the documentation of 9.1 and 9.2 the ant tasks do not have the same specs!
    9.2 feature then

  • Error While Bursting Invoices Through Web Service

    Hi All,
    In our present implementation, we are using BI Publisher to generate pdf invoices and send them to customer through email. We have three seperate servers say server A (Billing application server running on HP Unix), server B ( File server and other batch application server which is also running on HP Unix) and server c ( BIP Server running on windows). BIP is installed in windows server but the repository and other folders of BIP are located in server B. we have installed samba in server B so that BIP can access it.
    The billing application server running on hp unix generates invoice xml. one invoice xml may ontain upto 10k invoices. We transfer this xml to server B and shedule the batch job to generate the pdf invoices. The batch job is a java applicaiton which calls BIP web services after generating xdo files and passes the file name and location to web service.
    When we perfomr this task through BIP GUI, it works fine and pdf invocies are generated. However, the webservice call fails during scheduling process and gives foloiwng error.
    Exception in thread "main" com.sun.xml.internal.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html; charset=iso-8859-1 Supported ones are: [text/xml]
    at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:116)
    at com.sun.xml.internal.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:280)
    at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:158)
    at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:74)
    at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:581)
    at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:540)
    at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:525)
    at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:422)
    at com.sun.xml.internal.ws.client.Stub.process(Stub.java:235)
    at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:120)
    at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:230)
    at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
    at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
    at $Proxy34.runReportInSession(Unknown Source)
    at com.oracle.xmlns.oxp.service.publicreportservice.ConfigHandler.runReport(ConfigHandler.java:416)
    at com.oracle.xmlns.oxp.service.publicreportservice.ReportObject.createReportResponse(ReportObject.java:39)
    at com.oracle.xmlns.oxp.service.publicreportservice.ControlFileHandler.processSchedule(ControlFileHandler.java:132)
    at com.oracle.xmlns.oxp.service.publicreportservice.PublicReportServiceClient.main(PublicReportServiceClient.java:101)
    I am desperately looking for help on this and appreciate if you can spare some time to help me to find out the reason.
    Thanks
    Angshuman

    Hi All,
    Can any one help me on this please?
    Regards
    Angsuman

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

  • Insert Or Update Task Using Web Service

    I am facing difficulty in insertion of task against Account object using Oracle web service. Whenever I tried to insert new record in List of Task field of Account and update Account, I get the exception
    "No user key can be used for the Integration Component instance 'Account'.(SBL-EAI-04397)"
    as UserId does not exist in already present record. When i tried to update the field with already existing UserID, record of task of that particular UserId updated. Can anyone tell me how can we add task in the particular record through web service in oracle crm on demand? There is a wsdl named Account Task present in Data Loading. Do we require that wsdl to implement this work? If anyone has done this work, please update me with their solutions.
    Thanks
    Saad

    After a while I found out, that the SOAP message format "Document/Wrapped" was the problem.
    I setup RPC/Literal in my jDeveloper and then it worked.

  • Autotype ant task and java source file having method which  returns hashmap

    Hi Friends,
    I am using autotype ant task to generate types.xml and supporting java classes.
    The task is defined as follows .
    <target name="std">
    <source2wsdd javaSource="HelloWorld.java"
    typesInfo="types.xml"
    ddFile="ddfiles/web-services.xml"
    serviceURI="/HelloWorldService"/>
    </target>
    In my java source i have method which is returning an HashMap. In this scenario I am getting error when i run the task. The error is as follows
    C:\test-ws\javaclass>ant auto
    Buildfile: build.xml
    auto:
    [autotype] Autotyping for javaTypes TestBean
    [autotype] weblogic.xml.schema.binding.BindingException: Invalid class received
    : interface java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/jav
    a/util/Map.class. All classes that will be serialized or deserialized must be n
    on-interface, non-abstract classes that provide a public default constructor
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.en
    sureValidClass(JavaInspector.java:1050)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
    llDescriptor(JavaInspector.java:174)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
    tDescriptor(JavaInspector.java:139)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
    eateBeanProperty(JavaInspector.java:927)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
    eateBeanProperty(JavaInspector.java:905)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ad
    dPropertiesToScalar(JavaInspector.java:834)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
    llDescriptor(JavaInspector.java:209)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
    tDescriptor(JavaInspector.java:139)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
    eateDescriptorForClass(JavaInspector.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
    (Compiler.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:89)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:102)
    [autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
    ddMapping(TypeMappingBuilderBase.java:180)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTy
    peMapping(Java2SchemaImpl.java:267)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(
    Java2SchemaImpl.java:167)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doJav
    a2Schema(JavaSchema.java:302)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execu
    te(JavaSchema.java:184)
    [autotype] at org.apache.tools.ant.Task.perform(Task.java:341)
    [autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
    [autotype] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
    [autotype] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [autotype] at org.apache.tools.ant.Main.start(Main.java:196)
    [autotype] at org.apache.tools.ant.Main.main(Main.java:235)
    BUILD FAILED
    file:C:/test-ws/javaclass/build.xml:62: weblogic.webservice.tools.build.WSBuildE
    xception: Failed to do type mapping - with nested exception:
    [weblogic.xml.schema.binding.BindingException: Invalid class received: interface
    java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/java/util/Map.
    class.  All classes that will be serialized or deserialized must be non-interfac
    e, non-abstract classes that provide a public default constructor]
    Can any one provide the solution for this
    Thanks
    Anantha

    Hi Friends,
    I am using autotype ant task to generate types.xml and supporting java classes.
    The task is defined as follows .
    <target name="std">
    <source2wsdd javaSource="HelloWorld.java"
    typesInfo="types.xml"
    ddFile="ddfiles/web-services.xml"
    serviceURI="/HelloWorldService"/>
    </target>
    In my java source i have method which is returning an HashMap. In this scenario I am getting error when i run the task. The error is as follows
    C:\test-ws\javaclass>ant auto
    Buildfile: build.xml
    auto:
    [autotype] Autotyping for javaTypes TestBean
    [autotype] weblogic.xml.schema.binding.BindingException: Invalid class received
    : interface java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/jav
    a/util/Map.class. All classes that will be serialized or deserialized must be n
    on-interface, non-abstract classes that provide a public default constructor
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.en
    sureValidClass(JavaInspector.java:1050)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
    llDescriptor(JavaInspector.java:174)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
    tDescriptor(JavaInspector.java:139)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
    eateBeanProperty(JavaInspector.java:927)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
    eateBeanProperty(JavaInspector.java:905)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ad
    dPropertiesToScalar(JavaInspector.java:834)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fi
    llDescriptor(JavaInspector.java:209)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ge
    tDescriptor(JavaInspector.java:139)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.cr
    eateDescriptorForClass(JavaInspector.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile
    (Compiler.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:89)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.ma
    pClass(XSDTypeMappingBuilder.java:102)
    [autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.a
    ddMapping(TypeMappingBuilderBase.java:180)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTy
    peMapping(Java2SchemaImpl.java:267)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(
    Java2SchemaImpl.java:167)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doJav
    a2Schema(JavaSchema.java:302)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execu
    te(JavaSchema.java:184)
    [autotype] at org.apache.tools.ant.Task.perform(Task.java:341)
    [autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
    [autotype] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
    [autotype] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [autotype] at org.apache.tools.ant.Main.start(Main.java:196)
    [autotype] at org.apache.tools.ant.Main.main(Main.java:235)
    BUILD FAILED
    file:C:/test-ws/javaclass/build.xml:62: weblogic.webservice.tools.build.WSBuildE
    xception: Failed to do type mapping - with nested exception:
    [weblogic.xml.schema.binding.BindingException: Invalid class received: interface
    java.util.Map loaded from file:/C:/bea/jdk142_05/jre/lib/rt.jar!/java/util/Map.
    class.  All classes that will be serialized or deserialized must be non-interfac
    e, non-abstract classes that provide a public default constructor]
    Can any one provide the solution for this
    Thanks
    Anantha

Maybe you are looking for