Ant task wlserver
Hi, i try to use a wlserver task in my maven plugin :
<ant:wlserver
dir="c:/myDomain"
host="myHost"
port="7005"
username="name"
password="pwd"
action="start"
verbose="true"
domainname="msl"
servername="AdminServer"
beahome="C:/bea"
weblogichome="C:/bea/weblogic81">
<ant:classpath>
<ant:path refid="maven.dependency.classpath"/>
</ant:classpath>
</ant:wlserver>
i have the following exception :
[wlserver] The WebLogic Server did not start up properly.
[wlserver] java.lang.ExceptionInInitializerError
[wlserver] at weblogic.management.internal.BootStrap.<clinit>(BootStrap.java:116)
[wlserver] at weblogic.security.internal.BootProperties.<clinit>(BootProperties.java:31)
[wlserver] at weblogic.security.internal.ServerAuthenticate.main(ServerAuthenticate.java:88)
[wlserver] at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:333)
[wlserver] at weblogic.Server.main(Server.java:32)
[wlserver] Caused by: java.lang.RuntimeException: error in finding weblogic.Home
[wlserver] at weblogic.Home.<init>(Home.java:52)
[wlserver] at weblogic.Home.getInstance(Home.java:86)
[wlserver] at weblogic.Home.getPath(Home.java:94)
[wlserver] at weblogic.management.internal.BootStrapConstants.<clinit>(BootStrapConstants.java:91)
[wlserver] ... 5 more
I set weblogichome, so what is my mistake ?
Thanks for any help,
Fabrice
See CR294076 in [url http://edocs.bea.com/wls/docs92/issues/known_resolved.html]
Need to set in ANT_OPTS ignore the comment about javac its just java task which takes the jvmargs
Similar Messages
-
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.
ThanksIn 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 -
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!
DaveHello,
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 -
Hi all,
I'm trying to write a build script for starting the Weblogic server, stopping it, deploy applications and delete them from server. Till now it has been done manually, like clicking the startCmd.bat for the corresponding server domain. I have specifically mentioned some memory properties in MEM_ARGS (-Xms256m -Xmx512m -XX:MaxPermSize=128m). How can one specify the same memory arguments in Weblogic Ant task (wlserver). Thanks in advance.Hi all,
I'm trying to write a build script for starting the Weblogic server, stopping it, deploy applications and delete them from server. Till now it has been done manually, like clicking the startCmd.bat for the corresponding server domain. I have specifically mentioned some memory properties in MEM_ARGS (-Xms256m -Xmx512m -XX:MaxPermSize=128m). How can one specify the same memory arguments in Weblogic Ant task (wlserver). Thanks in advance. -
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
Andreisounds 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.
RickyRicky,
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 -
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 -
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.
RegardsI'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 -
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.
AnilI 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 -
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 -
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. -
WLST Ant task not working -- error in finding weblogic.Home
I am attempting to set up a WLST script to automatically set up my domain. The following is a minimal version of the Ant task I'm using:
<wlst debug="true" failOnError="true">
<classpath>
<pathelement location="${weblogic10.home}/server/lib/weblogic.jar"/>
</classpath>
<script>
connect('weblogic','weblogic','t3://localhost:5000')
</script>
</wlst>When I run the target, I get the following error:
java.lang.RuntimeException: error in finding weblogic.Home
at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:168)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)My weblogic10.home property (referenced in the ant target) points to the weblogic installation directory (C:/bea_10/wlserver_10.0). Weblogic.jar exists in the path specified, and contains the class weblogic.Home.
What am I missing? Any help would be greatly appreciated. I'm using Ant 1.6.5 and Weblogic 10.0 on Windows XP, if that makes a difference.
Thanks in advance!
-Jake
Edited by jakerobb at 07/12/2007 1:52 PMHi,
I too have this problem. I am trying to use my own ant installation. The docs say that we can do that. However, if i try to set the domain env then the ant command will point to bea's ant. Anyway I have defined the task using a taskdef as follows
<path id="wl_classpath">
<pathelement location="${BEA_HOME}/patch_weblogic922/profiles/default/sys_manifest_classpath/weblogic_patch.jar" />
<pathelement location="${env.JAVA_HOME}/lib/tools.jar" />
<pathelement location="${WL_HOME}/server/lib/weblogic_sp.jar" />
<pathelement location="${WL_HOME}/server/lib/weblogic.jar" />
<pathelement location="${WL_HOME}/server/lib/webservices.jar" />
</path>
<taskdef name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask">
<classpath refid="wl_classpath" />
</taskdef>
<target name="start_appinstance" description="--> Starts the Appinstance"
<wlst debug="true">
<script>
connect('weblogic','weblogic','t3://localhost:7001')
</script>
</wlst>
</target>there is no weblogichome or beahome attribute for this task.
My objective is to control a server using the node manager. I believe the only way to do this is to use wlst and not wlserver.
Thanks
Shaival
PS: i am using version 9.2MP2 for weblogic and ant 1.7 -
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.
-pmrYou 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 -
Is there an ant task on FlexUnit to open browser with swf embedded?
Here is the same (unanswered) question asked by someone else: http://forums.adobe.com/thread/740495?tstart=0#740495
Basically I need to open my flex app in a browser window from ant, and the FlexUnit task apparently does not support this.
I have downloaded a sample from FlexMonkey. When they (sample writers) execute flexunit in this sample, one of the arguments to FU is "url". However, I can find no evidence of this version of FU (that uses that "url" argument) existing anywhere. Using the swf argument doesn't work as documented in the previous question above. So I don't know if my problem is Flex version, or it's just not supported by FlexUnit.
I'm using the Flex sdk 3.2.0 and the FU libraries below:
flexunit-4.1.0-33-as3_3.5.0.12683.swc
flexunit-4.1.0-33-flex_3.5.0.12683.swc
flexunit-cilistener-4.1.0-33-3.5.0.12683.swc
flexunit-uilistener-4.1.0-33-3.5.0.12683.swc
flexUnitTasks-4.1.0-33.jar
Please tell me if this issue has been solved and if so what libraries I need to implement it. If it is done for Flex 4.x, but not for Flex 3.2, perhaps you could guide me to the java source for the ant task for Flex 4.x so that I can implement this for Flex 3.2 or Flex 3.x.
thanks,
Phil@Linden - Have not heard of this side effect from anyone as of yet, but good to know. Sounds like the file lock is coming from the Flash Player and causing the spawning process (rundll32.exe) to hang around as well. The FlexUnit team runs on Hudson using the FlexUnit Ant task, but we don't seem to encounter the same issue. What's the longest interval you've tried to use with the sleep task? Does the FP ever release its handle to the test SWF on your development machines?
Not sure this is a problem with the FlexUnit Ant task, but in 4.2 we could try to explicitly kill the rundll32 process since we'll have the PID when the task launches it. Head on over to JIRA and file a feature request for us and I'll see what I can do in the new year. In the short term though, maybe try upgrading your version of the stand alone debug flash player to see if that helps. Has anyone else seen this issue? Could you possible just move the clean target to be called before the xci-test target is run? Just some suggestions.
-Brian -
Does new type of unit testing in Flash Builder4 support ANT task ?
Hi,
I am using the new way of creating unit tests following this page http://help.adobe.com/en_US/flashbuilder/using/WS27ECA937-059A-4308-A2E2-F3A3AAB64337.html #WSF04FE993-D0BA-4a2b-BDF1-8B8ABF22E448, which is really easier and more efficient than old ways.
But I then found that the old ANT task "flexunit" for running unit test not working any more. So if I want to get the results of unit testing from a CI server, how could I do now?
Thanks a lot
Michael@Michael Lin89 - You can find information on using FlexUnit4 via Ant @ http://docs.flexunit.org/index.php?title=Ant_Task. There has been a lot of information collected on the wiki as well related to the CI process. You can see that info @ http://docs.flexunit.org/index.php?title=Continuous_Integration_Support. There are also an assortment of community projects built to work with FlexUnit which you can check out on the community page @ http://docs.flexunit.org/index.php?title=Community_Projects. There is also a sample project for working with CI, Ant, Maven, and a few other technologies @ http://docs.flexunit.org/index.php?title=CI_Sample_Project_Information.
Hope this helps to fill in the gaps as to what support we offer in terms of Ant and CI.
-Brian
Maybe you are looking for
-
"Maximum Session Length in Seconds" Not Working In Apex 3.2
Hello. I am using Apex 3.2 and have noticed that pages are session timing out after just 10 minutes of inactivity. I am aware of the new security attributes "Maximum Session Length in Seconds" and "Maximum Session Idle Time in Seconds". I asked our A
-
Does photoshop elements 13 work with windows vista?
I have V10 and a Windows Vista PC that is fast and paid for, Thinking of purchasing new software from Adobe. Does photoshop elements 13 work with Windows Vista?
-
How to mark all emails as read after syncing?
hey folks, i just synced my new iphone 3gs with my mbp and so far everything is fine except that all my mails from all my accounts (3x pop and 4x imap) are marked as "unread". is there any smooth way to set all (~6000) mails as read? i was kinda diss
-
5GHz option in time capsule settings
have also posted this in the airport extreme forum. with a 2009 1 GB time capsule running airport utility 6.1 on mountain lion : should i activate the 5GHz option under wireless settings in airport utility? should i rename it different from my regula
-
After starting a new .Mac family pack membership. I changed my .Mac user/pass in System Prefs, and "unpublished" the calendars in iCal. Now, when I go to Publish them I get Publish failed for calendar 'Main'. Request to the server failed. Which seems