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

Similar Messages

  • Any way to create Execute Queues or set Load Order using ANT?

    Hello All,
    Does anyone know whether wlconfig or some other Ant tasks can be used
    in order to automate the creation of specific Execute Queues? We'd like
    to script and package this so as to avoid having the user configure
    queues through the admin console.
    I'd also like to find out if there is some way to set the application
    Load Order through wlconfig or wldeploy.
    I have looked at the WebLogic command reference here: http://e-
    docs.bea.com/wls/docs81/admin_ref/ant_tasks.html but don't see anything
    promising.
    Am I missing something? I'm not too familiar with all the scripting
    possibilities so any help would be much appreciated. We are using
    WebLogic Server 8.1 SP3 on Windows and UNIX.
    Thanks

    Thanks Anilkumar, but I was trying to figure out how to create these using
    Ant scripts and NOT the admin console which is what your link seems to be
    pointing to.
    <akari> wrote in message news:[email protected]..
    Hi,
    go through the following link,In that you will find information about how
    to create execute Queues.
    http://e-docs.bea.com/wls/docs81/perform/AppTuning.html#1105201
    -----Anilkumar kari

  • Setting UseXADataSourceInterface to false using wlconfig ant task

    Is there any way, I can set the UseXADataSourceInterface property to false within the wlconfig ant task.? I am aware that this property can be set using the admin console. But I would like to set this in an ant task. Any pointers?
    Thanks in advance,
    Jacob

    According to document:
    Warning: In particular, the wlconfig Ant task uses the deprecated BEA
    proprietary API weblogic.management.MBeanHome to access WebLogic MBeans, the
    same as it did in Version 8.1 of WebLogic Server. The Ant task does not use
    the standard JMX interface (javax.management.MBeanServerConnection) to
    discover MBeans.
    Warning: This means that the only MBeans that you can access using wlconfig
    are those listed under the Deprecated MBeans category in the WebLogic Server
    MBean Reference.
    Since UseXADataSourceInterface is defined in JDBCDriverParamsBean which is
    introduced in WLS 9.0, so I feel this should be impossible.
    Maybe you can try WLST, which also can be used in Ant.
    <Jacob Marcus> wrote in message news:[email protected]..
    Is there any way, I can set the UseXADataSourceInterface property to false
    within the wlconfig ant task.? I am aware that this property can be set
    using the admin console. But I would like to set this in an >ant task. Any
    pointers?
    Thanks in advance,
    Jacob

  • What are the drawbacks of creating execute queues

    Hi thread Gurus
    What are the drawbacks of using execute queues. I understand that if queues are not used they stay idle but on solaris the SunOS scheduler will only give active
    threads CPU time. what ar the other resources being wasted in the process.
    I will appreciate if you can farward me to some documentation on this apart from performance docs on BEA site.
    Regards
    Parminder

    Hi Parminder,
    BEA docs cover tweaking exec queues pretty extensively.
    Could you provide more details on what kind of information
    you are looking for or which concerns do you have?
    Regards,
    Slava imeshev
    "Parminder" <[email protected]> wrote in message
    news:3ef86b40$[email protected]..
    Hi thread Gurus
    What are the drawbacks of using execute queues. I understand that ifqueues are not used they stay idle but on solaris the SunOS scheduler will
    only give active
    threads CPU time. what ar the other resources being wasted in the process.
    I will appreciate if you can farward me to some documentation on thisapart from performance docs on BEA site.
    Regards
    Parminder

  • Wlconfig ant task and JTA unde 8.1sp5

    How can I set the JTA timeout value from the wlcreate task within ant for 8.1sp5?
    If I use:
    <query domain="${domain.name}" type="Server" name="${admin.name}"
    property="admin.server" />
    <create type="UnixMachine" name="${unix_machine.name}"
    property="unix.machine" >
    /create>
    <create type="JTA" name="JTAname}">
    <set attribute="TimeoutSeconds" value="300" mbean="JTAname"/>
    </create>
    I get an exception; the UnixMachine gets created, but the JTA gets created in config.xml as:
    <JTA Name="JTAname"/>

    How can I set the JTA timeout value from the wlcreate task within ant for 8.1sp5?
    If I use:
    <query domain="${domain.name}" type="Server" name="${admin.name}"
    property="admin.server" />
    <create type="UnixMachine" name="${unix_machine.name}"
    property="unix.machine" >
    /create>
    <create type="JTA" name="JTAname}">
    <set attribute="TimeoutSeconds" value="300" mbean="JTAname"/>
    </create>
    I get an exception; the UnixMachine gets created, but the JTA gets created in config.xml as:
    <JTA Name="JTAname"/>

  • Ant tasks and SSL

    Hi-
              I create my domain using the ant tasks (wlserver and wlconfig) but I can't figure out how to tell the domain to enable SSL and use a specific port. Doing this in the console is simple but I can't find any docs showing how to do this with the ant tasks.
              Anyone know how to do this for WL 8.1?
              Thanks!
              Dave

    Hello,
    The OracleAS 10g Web Services Ant tasks are documented in the OracleAS Web Services Developer Guide, these tasks allow you to do the various WS developement operation such as create a service using bottom-up approach, create clients, ...
    Also OracleAS 10g 1.0.1.3 provides Ant tasks for deployment of application to the container, this is documente in the OracleAS Deployment Guide
    Regards
    Tugdual Grall

  • Ant Tasks for Pointbase

    In the online Docs, I found info regarding creating ant tasks to start and configure
    the WebLogic server. But I would like to also have an ant task that will start
    Pointbase. I have created ant tasks that will connect to pointbase and create/fill
    a database and another ant task that will drop a database. But I can't find any
    info about starting the Pointbase database. All of the BEA documentation only
    says to manually start the Pointbase database and then continue.
    Has anyone created or knows of an ant task that will launch Pointbase?? In my
    case, I'm only trying to launch and use Pointbase from the BEA directories.
    Jerald

    We have an ant task, but we dont doc it. This is in 8.1
    <taskdef name="pointbase"
    classname="weblogic.ant.taskdefs.pointbase.PointBase"/>
    <property name="pointbase.dbfile"
    value="${database.dir}/${pointbase.db.name}.dbn"/>
    <property name="pointbase.log" value="pointbase.log"/>
    <property name="pointbase.driver"
    value="com.pointbase.jdbc.jdbcUniversalDriver"/>
    <property name="pointbase.url"
    value="jdbc:pointbase:server://${pointbase.host}:${pointbase.port}/${pointba
    se.db.name}"/>
    <property name="pointbase.url.new"
    value="jdbc:pointbase:server://${pointbase.host}:${pointbase.port}/${pointba
    se.db.name},new"/>
    <target name="db.start">
    <!-- Start PointBase -->
    <echo message="Starting Pointbase..."/>
    <pointbase displaylevel="3" file="${pointbase.log}"
    home="${database.dir}"/>
    <sleep seconds="5"/>
    </target>
    Cheers
    mbg
    "Jerald Pratt" <[email protected]> wrote in message
    news:3f94d989$[email protected]..
    >
    In the online Docs, I found info regarding creating ant tasks to start andconfigure
    the WebLogic server. But I would like to also have an ant task that willstart
    Pointbase. I have created ant tasks that will connect to pointbase andcreate/fill
    a database and another ant task that will drop a database. But I can'tfind any
    info about starting the Pointbase database. All of the BEA documentationonly
    says to manually start the Pointbase database and then continue.
    Has anyone created or knows of an ant task that will launch Pointbase??In my
    case, I'm only trying to launch and use Pointbase from the BEAdirectories.
    >
    Jerald

  • 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

  • Using Ant task wlserver/wlconfig: Received exception while creating connection for pool.

    Hi,
    I am using ant tasks wlserver and wlconfig to configure my weblogic server. while creating a connection pool as shown below
    <target name="jdbcinfo">
    <wlconfig password="weblogic"
    username="weblogic"
    url="${url}"
    <query domain="mydomain" type="Server"
    name="myserver" property="serverbean"
    />
    <create type="JDBCConnectionPool"
    name="jdbcpoolA"
    property="jdbcPoolProp">
    <set value="false"
    attribute="ShrinkingEnabled"
    <set value
    attribute="
    <set value="${serverbean}"
    attribute="Targets"/>
    The JDBCConnectionPool is created as long as I don't specified the attribute "Targets"
    Once I add the target I get the following error
    <JDBC> <BEA-001129> <Received exception while creating connection for pool "poolname" invalid arguments in call>
    Please any help will be greatly appreciated.
    Thanks

    In your applicaion module configurations check if you are using 'JDBC URL' or 'JDBC DataSource'. You should use JDBC DataSource. Then make sure that your deployment descriptor (menu 'Application->Application Properties->Deployment) has the 'Auto Generate ...' checkbox set.
    Timo

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

  • 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

  • Ant tasks for creating ADF Library

    Created an ADF declarative component, exported it as an ADF library and got it working fine. The ADF Library jar was created within JDeveloper by setting up a Deployment profile. The created ADF Library file has the TLD file and TagHandler / Component class files created on the fly and packaged.
    Not sure of how We could get the same ADF library created by an Ant task. Are there Ant tasks for creating ADF library available? http://www.connotea.org/user/jdeveloper/tag/ant has some details on the JDeveloper based ant tasks but doesn't have details on creating ADF library.

    You can use the ojdeply executable to create and deploy your ADF Library from the commandline:
    <Jdev-install-location>/jdeveloper/jdev/bin/ojdeploy -workspace /mydirectory/yourworkspace.jws -profile yourprofile -project yourproject.jpr

  • DataSource is getting created without desired JNDI Name using ANT task

    Hi,
    While referring to http://weblogic-wonders.com/weblogic/2010/07/24/datasource-creation-using-ant-task-wlconfig/ when we try to create a DataSource using ANT Task <taskdef name=”wlconfig” classname=”weblogic.ant.taskdefs.management.WLConfig”/>
    We are unable to provide the Desired JNDI Name for our DataSource. It takes the DataSource Name itself as the JNDI Name of the DataSource. If we specify anyother JNDI Name then it doesnt reflect in the AdminConsole. But still the DataSource testing succeeds from the AmdinConsole.
    Is there anything Missing in the Ant Script?
    Thanks
    Jay SenSharma

    I think the attribute name should be JNDINames instead of JNDIName, this is also the name I always use in WLST (and is probably also used by wlconfig), for example,
    videotheekDataSource = cmo.createJDBCSystemResource('VideotheekDataSource');
    jdbcResource = videotheekDataSource.getJDBCResource();
    names = ['jdbc/exampleDS'];
    dataSourceParams = jdbcResource.getJDBCDataSourceParams();
    dataSourceParams.setJNDINames(names);
    Good luck and keep up the good work.

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

  • Ant task for creating a new weblogic domain in weblogic 10.3

    Hi,
    Can anybody help me in writing an ant task in build.xml for creating a new weblogic domain in weblogic 10.3, like as in <target name="new-domain">
         <echo message=""/>
         <echo message="Attempting to create new domain:"/>
         <delete dir="C:\bea\user_projects\domains" />
         <mkdir dir="C:\bea\user_projects\domains"/>
         <wlserver dir="C:\bea\user_projects\domains" domainname="mydomain"
         host="127.0.0.1" port="7001"
         generateConfig="true" servername="AdminServer" username="weblogic"
         password="weblogic" action="start"/>
         </target>
    Please suggest me adding something to the above in order to create the domain successfully.

    Hi,
    Can anybody help me in writing an ant task in build.xml for creating a new weblogic domain in weblogic 10.3, like as in <target name="new-domain">
         <echo message=""/>
         <echo message="Attempting to create new domain:"/>
         <delete dir="C:\bea\user_projects\domains" />
         <mkdir dir="C:\bea\user_projects\domains"/>
         <wlserver dir="C:\bea\user_projects\domains" domainname="mydomain"
         host="127.0.0.1" port="7001"
         generateConfig="true" servername="AdminServer" username="weblogic"
         password="weblogic" action="start"/>
         </target>
    Please suggest me adding something to the above in order to create the domain successfully.

Maybe you are looking for