You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mark Lybarger <Ma...@CBC-Companies.com> on 2004/02/16 16:53:01 UTC

weblogic deployment 8.1

hi, 

i'm using wls 8.1. and am trying to deploy (and later update) a web module to the web server.  i'm using the serverdeploy/weblogic task to deploy my application.  it seems that weblogic has a newer deployer (weblogic.Deployer?) than this task uses.  does anyone have suggestions for deploying to weblogic 8.1 (with ant)?  we're using production mode, and have multiple servers setup, an admin, a web and an app server.  thus when i copy my beans to the deploy folder (applications folder) they're not automatically redeployed.  even if i shutdown/start the servers the beans aren't redeployed.  strange.  i figure i would like to manually (through and ant script) force deployment of the applications/ejbs.

Thanks!
~mark


i get an outofmemory error thought i have ANT_OPTS set to -Xmx256m, no help.


     [java] Executing '/usr/local/bea/weblogic81/jdk141_05/jre/bin/java' with arguments:
     [java] '-classpath'
     [java] '/usr/local/bea/weblogic81/weblogic81/server/lib/weblogic.jar'
     [java] 'weblogic.deploy'
     [java] '-component'
     [java] 'isac:isacWebServerDev'
     [java] '-url'
     [java] 'localhost:5000'
     [java] '-debug'
     [java] '-username'
     [java] 'username'
     [java] 'deploy'
     [java] 'password'
     [java] 'isac'
     [java] '/usr/local/bea/weblogic81/user_projects/domains/app-dev/applications/isac'
     [java] 
     [java] The ' characters around the executable and arguments are
     [java] not part of the command.
     [java] Exception in thread "main" java.lang.OutOfMemoryError



BUILD FAILED
/export/home/wlsdev/autobuilds/projects/ISAC/build/isac/httpUnit/build.deploy.xml:134: Java returned: 1
                    at org.apache.tools.ant.taskdefs.Java.execute(Java.java:118)
                    at org.apache.tools.ant.taskdefs.optional.j2ee.WebLogicHotDeploymentTool.deploy(WebLogicHotDeploymentTool.java:107)
                    at org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy.execute(ServerDeploy.java:145)
                    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
                    at org.apache.tools.ant.Task.perform(Task.java:401)
                    at org.apache.tools.ant.Target.execute(Target.java:338)
                    at org.apache.tools.ant.Target.performTasks(Target.java:365)
                    at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
                    at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
                    at org.apache.tools.ant.Main.runBuild(Main.java:669)
                    at org.apache.tools.ant.Main.startAnt(Main.java:220)
                    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
                    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004
 


Re: weblogic deployment 8.1

Posted by RADEMAKERS Tanguy <ta...@swift.com>.
Hello Mark,

We redeploy using a two-step process:

- first we ftp the loose files to the app server
- then we redeploy the app using the target below:

    <target name="front.redeploy" depends="ask.input" 
description="redeploys the eordering app on the dev 7001 server">
        <wldeploy action="redeploy"
            name="eordering"
            user="${WLS.USER_NAME}"
            password="${WLS.PASSWORD}"
            remote="true"
            verbose="true"
            adminurl="t3://beswwd70:7001"/>
    </target>

It would be possible to do this in one step with no ftp by using the 
source attribute to the wldeploy task, but we want to only upload the 
changed files, not the whole ear. For info, the taskdef of wldeploy is:

<taskdef file="${BUILD}/weblogicTasks.properties" 
classpathref="path.weblogic"/>

where weblogicTasks.properties =

# WLS tasks
wldeploy=weblogic.ant.taskdefs.management.WLDeploy
wlcompile=weblogic.ant.taskdefs.build.WLCompileTask
wlappc=weblogic.ant.taskdefs.j2ee.Appc

/t

Mark Lybarger wrote:

>hi, 
>
>i'm using wls 8.1. and am trying to deploy (and later update) a web module to the web server.  i'm using the serverdeploy/weblogic task to deploy my application.  it seems that weblogic has a newer deployer (weblogic.Deployer?) than this task uses.  does anyone have suggestions for deploying to weblogic 8.1 (with ant)?  we're using production mode, and have multiple servers setup, an admin, a web and an app server.  thus when i copy my beans to the deploy folder (applications folder) they're not automatically redeployed.  even if i shutdown/start the servers the beans aren't redeployed.  strange.  i figure i would like to manually (through and ant script) force deployment of the applications/ejbs.
>
>Thanks!
>~mark
>
>
>i get an outofmemory error thought i have ANT_OPTS set to -Xmx256m, no help.
>
>
>     [java] Executing '/usr/local/bea/weblogic81/jdk141_05/jre/bin/java' with arguments:
>     [java] '-classpath'
>     [java] '/usr/local/bea/weblogic81/weblogic81/server/lib/weblogic.jar'
>     [java] 'weblogic.deploy'
>     [java] '-component'
>     [java] 'isac:isacWebServerDev'
>     [java] '-url'
>     [java] 'localhost:5000'
>     [java] '-debug'
>     [java] '-username'
>     [java] 'username'
>     [java] 'deploy'
>     [java] 'password'
>     [java] 'isac'
>     [java] '/usr/local/bea/weblogic81/user_projects/domains/app-dev/applications/isac'
>     [java] 
>     [java] The ' characters around the executable and arguments are
>     [java] not part of the command.
>     [java] Exception in thread "main" java.lang.OutOfMemoryError
>
>
>
>BUILD FAILED
>/export/home/wlsdev/autobuilds/projects/ISAC/build/isac/httpUnit/build.deploy.xml:134: Java returned: 1
>                    at org.apache.tools.ant.taskdefs.Java.execute(Java.java:118)
>                    at org.apache.tools.ant.taskdefs.optional.j2ee.WebLogicHotDeploymentTool.deploy(WebLogicHotDeploymentTool.java:107)
>                    at org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy.execute(ServerDeploy.java:145)
>                    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
>                    at org.apache.tools.ant.Task.perform(Task.java:401)
>                    at org.apache.tools.ant.Target.execute(Target.java:338)
>                    at org.apache.tools.ant.Target.performTasks(Target.java:365)
>                    at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
>                    at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
>                    at org.apache.tools.ant.Main.runBuild(Main.java:669)
>                    at org.apache.tools.ant.Main.startAnt(Main.java:220)
>                    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
>                    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004
> 
>
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: weblogic deployment 8.1

Posted by kriss <ma...@hotmail.com>.
Hi,

I had the same error with older version of Weblogic, I solved my problem by desactivating the debug mode :)

Kriss
  ----- Original Message ----- 
  From: Mark Lybarger 
  To: Ant Users List (E-mail) 
  Sent: Monday, February 16, 2004 4:53 PM
  Subject: weblogic deployment 8.1


  hi, 

  i'm using wls 8.1. and am trying to deploy (and later update) a web module to the web server.  i'm using the serverdeploy/weblogic task to deploy my application.  it seems that weblogic has a newer deployer (weblogic.Deployer?) than this task uses.  does anyone have suggestions for deploying to weblogic 8.1 (with ant)?  we're using production mode, and have multiple servers setup, an admin, a web and an app server.  thus when i copy my beans to the deploy folder (applications folder) they're not automatically redeployed.  even if i shutdown/start the servers the beans aren't redeployed.  strange.  i figure i would like to manually (through and ant script) force deployment of the applications/ejbs.

  Thanks!
  ~mark


  i get an outofmemory error thought i have ANT_OPTS set to -Xmx256m, no help.


       [java] Executing '/usr/local/bea/weblogic81/jdk141_05/jre/bin/java' with arguments:
       [java] '-classpath'
       [java] '/usr/local/bea/weblogic81/weblogic81/server/lib/weblogic.jar'
       [java] 'weblogic.deploy'
       [java] '-component'
       [java] 'isac:isacWebServerDev'
       [java] '-url'
       [java] 'localhost:5000'
       [java] '-debug'
       [java] '-username'
       [java] 'username'
       [java] 'deploy'
       [java] 'password'
       [java] 'isac'
       [java] '/usr/local/bea/weblogic81/user_projects/domains/app-dev/applications/isac'
       [java] 
       [java] The ' characters around the executable and arguments are
       [java] not part of the command.
       [java] Exception in thread "main" java.lang.OutOfMemoryError



  BUILD FAILED
  /export/home/wlsdev/autobuilds/projects/ISAC/build/isac/httpUnit/build.deploy.xml:134: Java returned: 1
                      at org.apache.tools.ant.taskdefs.Java.execute(Java.java:118)
                      at org.apache.tools.ant.taskdefs.optional.j2ee.WebLogicHotDeploymentTool.deploy(WebLogicHotDeploymentTool.java:107)
                      at org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy.execute(ServerDeploy.java:145)
                      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
                      at org.apache.tools.ant.Task.perform(Task.java:401)
                      at org.apache.tools.ant.Target.execute(Target.java:338)
                      at org.apache.tools.ant.Target.performTasks(Target.java:365)
                      at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
                      at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
                      at org.apache.tools.ant.Main.runBuild(Main.java:669)
                      at org.apache.tools.ant.Main.startAnt(Main.java:220)
                      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
                      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)

  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.574 / Virus Database: 364 - Release Date: 1/29/2004
   




------------------------------------------------------------------------------


  ---------------------------------------------------------------------
  To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
  For additional commands, e-mail: user-help@ant.apache.org