Wldeploy/wlserver Ant tasks & cruisecontrol output

Hi,
We are using the wlserver and wldeploy Ant tasks with cruisecontrol. We have found that the output from these tasks in included in the cruise email which is sent out, and are looking for a way to redirect this output to a file so that cruise doesn't think that this is warning output from the JVM. Currently, with all the deploy messages weblogic publishes cruise thinks that our code has 500 warnings.
I would expect that this should be easy, but can't figure out for the life of me how to do it.
Regards

I'm coming back a few month later, and don't remember how I solved this problem. Today, I'm sure it is resolved, the task looks like this :
<wldeploy action="deploy"
source="${weblogic.deploy.dir}/${module.name}.ear"
name="${module.name}"
user="${weblogic.user}"
password="${weblogic.password}"
verbose="true"
adminurl="${weblogic.adminurl}"
debug="true"
targets="${weblogic.servers.name}" />
It should work since I've upgraded from WL 8.1 SP2 to WL 8.1 SP4.
Regards
Bernard

Similar Messages

  • Problems with wlserver ant task for WL 8.1

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

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

  • Exception starting server when using wlserver Ant task

    Hello All:
    When attempting to start my server using the wlserver Ant task, i receive the following error:
    [wlserver] java.lang.NoClassDefFoundError: weblogic/Server
    [wlserver] Exception in thread "main"
    [wlserver] Error in server execution
    my snippet is as follows:
    <target name="start-server">
    <wlserver beahome="C:\bea" weblogichome="c:\bea\weblogic81" host="localhost"
                        port="7001" username="weblogic" domainname="mydomain" password="weblogic"
                        servername="myserver" action="start"/>
    </target>
    It seems as if it should work fine. Anybody have any solutions? Thanks in advance.
    Ricky

    Ricky,
    You have to add the weblogic JARs to the classpath of the wlserver task.
    add something similar to the following (bold text are additions):
    <path id="classpath.weblogic">
    <fileset dir="c:/bea/weblogic81/server/lib">
    <include name="weblogic_sp.jar" />
    <include name="weblogic.jar" />
    <include name="webserviceclient.jar" />
    </fileset>
    </path>
    <target name="start-server">
    <wlserver beahome="C:\bea" weblogichome="c:\bea\weblogic81" host="localhost"
    port="7001" username="weblogic" domainname="mydomain" password="weblogic"
    servername="myserver" action="start" classpathref="classpath.weblogic"/>
    </target>
    --Peter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Wlserver ant task

    When I use the wlserver task is in ant build file I get an error saying class weblogic.ant.taskdefs...
    not found even though I have set it in my build file..
    I am not using ant which comes with weblogic.
    Anil

    I heard that wlconfig and wlserver ant tasks do not work with Weblogic 7.0 is that
    true?
    Anil
    "Vitaly Yurik" <[email protected]> wrote:
    >
    Hi Anil,
    Could you send your build file as an attachment. Also I need to know
    under which
    directory this build file is place. Is it correct that you are failing
    to run
    command:
    ant weblogic.Admin
    Vitaly
    "Anil Jacob" <[email protected]> wrote:
    Hi vitaly,
    I am using ant 1.5 which is downloaded from the ant website. Currently
    I use the
    weblogic.Admin utility as a task in the ant build file for stopping,
    starting
    etc.
    However I wanted to see if the wlserver tak gives me any added advantage.
    I have my own build file. I use the ant command to run the build.
    I know I am missing a class, I want to know which class I need in my
    ant /lib
    folder or in my classpath?
    Thanks
    Anil
    "Vitaly Yurik" <[email protected]> wrote:
    Hi Anil,
    When you are saying: "I am not using ant which comes with weblogic.",
    does it
    mean that
    you are using a different version of ant. If so which version are you
    using.
    Also,
    1. are you using the Weblogic build file?
    2. What "ant" command are yo running.
    Vitaly Yurik
    "Anil Jacob" <[email protected]> wrote:
    When I use the wlserver task is in ant build file I get an error saying
    class weblogic.ant.taskdefs...
    not found even though I have set it in my build file..
    I am not using ant which comes with weblogic.
    Anil

  • How to start weblogic instance using wlserv ant task

    Hi,
    Iam using weblogic 8.1
    Iam trying to write build script which starts remote weblogic instance and does deploy using wldeploy and restarts the instance.
    First iam trying with starting weblogic.
    ==============================
    <wlserver
                   dir="${server.project.root.dir}"
                   domainName="${weblogic.domain.name}"
                   serverName="${weblogic.server.name}"
                   host="10.106.90.50"
                   port="8001"
                   generateConfig="true"
                   productionModeEnabled="false"
                   weblogicHome="${weblogic.home}/weblogic81"
              username="weblogic"
                   password="password"
                   args = "-XX:MaxPermSize=512M -Xms256m -Xmx512m"
                   action="start">
                   <classpath refid="weblogic.classpath"/>
              </wlserver>
    ==============================
    Iam getting an issue here , it starts the weblogic but automatically it stops the weblogic , without any exception.
    as per their documentation
    "When you use the wlserver task in an Ant script, the task does not return control until the specified server is available and listening for connections. If you start up a server instance using wlserver, the server process automatically terminates after the Ant VM terminates. If you only connect to a currently-running server using the wlserver task, the server process keeps running after Ant completes."
    I understand what they are saying , but what is the remedy to it , how to rectify it. I tried starting default server it gives NPE.
    ITs kinda very urgent for me any help , or available scripts will be very use ful.
    Thanks in advance.

    meghab,
    Thanks for the reply.
    I tried using java task , now the server is starting sucessfully but iam getting exception while starting the Queue.
    Here is my ant task.
    ===================================
    <target name="weblogicrun">
              <java fork="yes" dir="${weblogic.domain.dir}" classpathref="weblogic-classpath" classname="weblogic.Server">
                   <jvmarg value="-server"/>
                   <jvmarg value="-Dweblogic.Name=MyAppServer"/>
                   <jvmarg value="-Dweblogic.RootDirectory=${weblogic.config.dir}"/>
                   <jvmarg value="-Xms256m"/>
                   <jvmarg value="-Xmx512m"/>
                   <jvmarg value="-XX:MaxPermSize=128m"/>
                   <jvmarg value="-da"/>
                   <jvmarg value="-Dplatform.home=D:/bea"/>
                   <jvmarg value="-Dwls.home=D:/bea/weblogic81/server"/>
                   <jvmarg value="-Dweblogic.ProductionModeEnabled=false"/>
                   <jvmarg value="-Djava.security.policy=D:/bea/weblogic81/server/lib/weblogic.policy"/>
              </java>
         </target>
    ===================================
    In my project i have default queue , it gives INSTANTIATION EXCEPTION while trying to invoke weblogic.jms.common.DestinationImpl
    ==================================
    java.lang.InstantiationError: weblogic.jms.common.DestinationImpl
    =====================================
    Iam providing the config information from config.xml
    <JMSServer Name="WSStoreForwardInternalJMSServerMyServer"
    Store="FileStore" Targets="MyAppServer">
    <JMSQueue CreationTime="1179819623120"
    JNDIName="jms.internal.queue.WSStoreForwardQueue"
    JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSStoreForwardQueueCCAppServer"/>
    <JMSQueue CreationTime="1179819623511"
    JNDIName="jms.internal.queue.WSDupsEliminationHistoryQueue"
    JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSDupsEliminationHistoryQueueMyAppServer"/>
    </JMSServer>
    =========================================
    The full exception stack is below...
    [java] <Oct 11, 2007 1:54:28 PM IST> <Notice> <WebLogicServer> <BEA-000327> <Starting WebLogic Admin Server "MyAppServer" for domain "MyAppDomain">
    [java] <Oct 11, 2007 1:54:41 PM IST> <Error> <JMS> <BEA-040368> <The following exception has occurred:
    [java] java.lang.InstantiationError: weblogic.jms.common.DestinationImpl
    [java] at weblogic.jms.backend.BEDestination.initialize(BEDestination.java:801)
    [java] at weblogic.jms.backend.BEDestination.initialize(BEDestination.java:341)
    [java] at weblogic.jms.backend.BackEnd.createDestination(BackEnd.java:1952)
    [java] at weblogic.jms.backend.BackEnd.initialize(BackEnd.java:667)
    [java] at weblogic.jms.JMSService.addJMSServer(JMSService.java:2247)
    [java] at weblogic.jms.JMSService.addDeployment(JMSService.java:2031)
    [java] at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:337)
    [java] at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:597)
    [java] at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:575)
    [java] at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:755)
    [java] at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:734)
    [java] at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:516)
    [java] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
    [java] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
    [java] at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:990)
    [java] at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:948)
    [java] at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:948)
    [java] at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
    [java] at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7731)
    [java] at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1321)
    [java] at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:339)
    [java] at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
    [java] at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
    [java] at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
    [java] at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
    [java] at weblogic.Server.main(Server.java:32)
    Am i missing something.
    Thanks in advance.
    Edited by rdayalan at 10/11/2007 1:45 AM

  • 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

  • Finer control of system management using Ant tasks

    I would like to startup and shutdown a server using an Ant script that controls
    the classpath and the JVM options. The wlserver task does not allow these options
    to be set under Ant control. They are fiixed by the scripts setWLSEnv.cmd (or
    setWLSEnv.sh) which are run prior to running Ant, which defeats my purpose. Access
    to the weblogic.Server javadoc (and the weblogic.server Javadoc) would help solve
    the problem but this documentation has proven very elusive.
    I'm using WebLogic Server 8.1
    Any help is much appreciated.
    -pmr

    You can utilize the wlserver ant task to start and stop a WLS instance, documented
    in e-docs at:
    http://edocs.bea.com/wls/docs81/admin_ref/ant_tasks.html#1023263
    Hope this helps.
    Erik Johnson
    "Paul Reilly" <[email protected]> wrote:
    >
    I would like to startup and shutdown a server using an Ant script that
    controls
    the classpath and the JVM options. The wlserver task does not allow
    these options
    to be set under Ant control. They are fiixed by the scripts setWLSEnv.cmd
    (or
    setWLSEnv.sh) which are run prior to running Ant, which defeats my purpose.
    Access
    to the weblogic.Server javadoc (and the weblogic.server Javadoc) would
    help solve
    the problem but this documentation has proven very elusive.
    I'm using WebLogic Server 8.1
    Any help is much appreciated.
    -pmr

  • ClassCastException using Subant and wldeploy ant task

    Hi!
    I'm using subant to call all diffrent build.xml files located in subdirectories. The buildfile looks like this:
    <project name="extern.call" default="callall">
         <target name="callall">
              <fileset      id="buildfile.set" dir=".." includes="*2/build.xml">
                   <exclude name="Br*2/*"/>
              </fileset>
              <subant target="deploy-local" inheritall ="false" failonerror="true">
                   <fileset      refid="buildfile.set"/>
              </subant>
         </target>
    </project>
    The first called build.xml files works fine ... but the execution of the second build.xml (it's not important which file is the second one, it's crash always at the second call), stop with a "java.lang.ClassCastException".
    See Stacktrace:
    [subant] weblogic.Deployer -debug -nowait -verbose -upload -noexit -name ClarifyRead -source \build\ClarifyRead\delivery\ClarifyRead.ear -targets myserver -adminurl t3://localhost:7001 -user weblogic -password ******** -deploy
    [subant] dumping Exception stack
    [subant] java.lang.ClassCastException
    [subant] at weblogic.management.deploy.utils.DeployerHelper.uploadSource(DeployerHelper.java:586)
    [subant] at weblogic.Deployer.runBodyWithAuthenticatedSubject(Deployer.java:824)
    [subant] at weblogic.Deployer.runBody(Deployer.java:711)
    [subant] at weblogic.utils.compiler.Tool.run(Tool.java:146)
    [subant] at weblogic.utils.compiler.Tool.run(Tool.java:103)
    [subant] at weblogic.Deployer.runMain(Deployer.java:566)
    [subant] at weblogic.Deployer.mainWithExceptions(Deployer.java:576)
    [subant] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [subant] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [subant] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [subant] at java.lang.reflect.Method.invoke(Method.java:324)
    [subant] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:264)
    [subant] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:204)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:65)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:340)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:65)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:340)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.Target.execute(Target.java:301)
    [subant] at org.apache.tools.ant.Target.performTasks(Target.java:328)
    [subant] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    [subant] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
    [subant] at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:182)
    [subant] at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:112)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.Target.execute(Target.java:301)
    [subant] at org.apache.tools.ant.Target.performTasks(Target.java:328)
    [subant] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    [subant] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379)
    [subant] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)
    There is no diffrent between using ant in eclipse environment or as standalone, the result it the same.
    Do someone else have the same problem?
    Kind regards
    Joseph

    Hi
    I got the same message and I couldn't resolve it too, I am wordering if you got the key to the problem?
    Thanks
    Daivd Huang

  • Changing the wldeploy ant task behaviour

    wldeploy ant task while deploying the application deploys it under <configured weblogic upload dir>/<application name>/app/ application name.
    Is there any way we can change this behaviour as we couldnt find the options in ant task to change it

    That is all you should have to do, the ant tasks are sitting inside the
    weblogic.jar.
    Cheers
    mbg
    "Shane Witbeck" <[email protected]> wrote in message
    news:[email protected]..
    Rob Bennett <[email protected]> wrote in message
    news:<[email protected]>...
    What is required for the wldeploy ant task to function properly? I am
    able to use it when I run ant from the command line and use the version
    of ant that came with Weblogic 8 (I have the platform beta, not the
    release version). When I try to use it inside of eclipse (which uses
    its own copy of ant), the task fails.. it looks like it is trying to
    generate RMI stubs. If anyone can shed light on what I am missing from
    the eclipse environment, I would appreciate it.
    -RobI actually just got it to work by adding the weblogic.jar to my
    classpath. (Im using WL 8.1).
    -Shane

  • WL8.1 wldeploy Ant Task seems to be fairly slow...

    We currently have a clustered environment with 4 machines. When we try to hot deploy
    using the wldeploy Ant Task it takes about 3-5 minutes to re-deploy the ~30mb
    ear file. While this ear is being deployed users can not access the system. Is
    there anything I can do to increase these times?
    Thanks,
    Franz

    Rob,
    Thanks for your reply.
    My build.xml file exits and kills the server instance......do you know any means
    to rsolve it.
    iam not sure if i can use "fork" or something like that ????
    Please advise.
    -sangita
    Rob Woollen <[email protected]> wrote:
    Have a look at the Avitek Medical Records example that ships with WLS
    8.1. It shows you how to use wldeploy.
    -- Rob
    sangita wrote:
    if you don't mind, can you share your build.xml file here on this forum?
    iam trying to do exact same thing, but as my knowledge of ANT is little,iam having
    trouble. if you can share this xml file, then i would learn a littlefaster on
    how to deploy application on wls8.1 using ANT.
    i have read the document though .....but i wanted to see actual xmlfile as yours
    .........thanks !!!!!
    "Franz Garsombke" <[email protected]> wrote:
    We currently have a clustered environment with 4 machines. When we
    try
    to hot deploy
    using the wldeploy Ant Task it takes about 3-5 minutes to re-deploythe
    ~30mb
    ear file. While this ear is being deployed users can not access thesystem.
    Is
    there anything I can do to increase these times?
    Thanks,
    Franz

  • Wldeploy Ant task deploys app in 'New' state

    I am trying to deploy a web application in WL 10.0 using the wldeploy Ant task. However, everytime the application is deployed, the consolidated state is 'New' (or deferred deployment). I have to bounce the servers everytime to bring the app in the Active state.
    Here is my code:
    <target name="undeployWeb">
              <!-- Undeploy the existing deployment -->
              <wldeploy action="undeploy" verbose="true" debug="false" name="${deploymentName}" user="${weblogicUsername}" password="${weblogicPassword}" adminurl="${weblogicAdminURL}" targets="${weblogicTargetServers}" failonerror="false" />
    </target>
    <!-- Deploy .WAR to a target server -->
    <target name="deployWeb">
              <!-- Deploy the application remotely -->
              <wldeploy action="deploy" stage="stage" usenonexclusivelock="true" source="${weblogicDeploymentLocation}/${deploymentName}.war" remote="true" name="${deploymentName}" upload="false" user="${weblogicUsername}" password="${weblogicPassword}" verbose="true" adminurl="${weblogicAdminURL}" debug="true" targets="${weblogicTargetServers}" />
    </target>
    Is there any way to avoid the bounce of the target servers? I wish to activate the web app straightaway. Please help.
    ~hartbrekk

    Thanks user10939158, for looking into this.
    Reason I am saying network is not an issue here because the artifact copy to the remote servers and deployment happens fast, it is just at the step of closing DM connection, it is waiting for a long time (>5 mins). I am guessing that the Deployment Manager message exchanges with the server (internally) has something to do with LAN vs WAN. And, I would expect deployment over WAN take a minute extra as opposed to 5-9 minutes extra what we are seeing now.
    Yes, I tried running the wlst script on the remote server and it is fast as well.
    Just to clarify, I do not have a local server. I run the plain simple ant script on a build box(lean linux box) which is in the US.
    Thanks for your help again.
    - Kris
    Edited by: kris_2000 on May 25, 2010 2:08 PM

  • 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

  • Wldeploy ant task and WLS 7?

    I'm trying to set up an ant task for WLDeploy in WLS 7. To docs reference the class as:
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
    But where is that class? It's not in weblogic.jar.
    TIA,
    Jon

    Just a followup: this ant task does not exist in early service packs. I'm not sure where it first shows up, but it does exist in SP 7.

  • Weblogic 9.1 Deployment errors using the ANT task wldeploy

    I am not able to deploy applicatons using the ANT task. The same works with Weblogic 8.1. It is throwing a NoClassDefFoundError. It is looking for a class by name javax/management/InvalidAttributeValueException.
    This class file is shipped as part of jmx.jar. I tried to include it and then there was another NoClassDefFoundError that occured.
    The problem is I don't want to keep adding these different jars to make the ant deployment work. Can anyone please let me know what could be the problem.
    I am using a Windows XP OS and 1.4.2_10 as java version.
    I have added all the jars in the weblogic91\server\lib directory to the classpath.
    Also I have my apache ant tasks set in the classpath.
    Thanks
    Shankar Chandrasekaran

    Have had a bit of these CLASSPATH issues when jumping versions.
    Have had the best success when I create a different profile for each one, making sure the version you want is the only one defined. the main thing my profile sets is
    unset PATH
    unset CLASSPATH
    unset JAVA_HOME
    then
    export PATH=
    export CLASSPATH= the weblogic 9 one
    export JAVA_HOME= the one with 9
    or however they do it in windows, but make sure you CLASSPATH is only refencing the 9 jars

  • 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

Maybe you are looking for

  • Smart form print

    i have created a smartform.and it is excuting correctly(print preview) . but the problem comes when i am giving a print.a spool request is getting created but it is not printing. this is the message i am getting. <b>Spool request (number 22,839) crea

  • Combining data from different applications

    Dear all,   I am using BPC 5.1   I have a "Sales" application with dimensions "account", "entity", "time", "rptcurrency", "category", "product". And another "HR" application with the same dimensions as "Sales" except for "product".   How do i create

  • Show username and date on results slide

    Hi, Is it possible in captivate that a user can enter the user name and date in the beginning of the project which later can be displayed on results slide

  • Deploying EJBs in 8i iAS 8.1.6

    I am getting a corba.COMM_FAILURE error trying to deploy Session EJB from helloworld example. Everything else works (JSP, Servlets). Any ideas?

  • Function module "CONVERT_RESULT_NEW'

    After that I went to SAP Service Marketplace, and searched the SAP notes using the search word "CONVERT_RESULT_NEW". I found 6 OSS Notes 736293,746540,733133,721496,929765,754621.Out of above five OSS Notes, only 929765 has n't implemented in our sys