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
Similar Messages
-
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 itThat 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,
FranzRob,
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.
~hartbrekkThanks 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 -
Re,
I am using the 10.1.3 beta of oc4j and we are starting to run into some problems with using the oracle deploy and bind ant tasks provided. As our application is growing, the deploy task is taking longer and longer (which by itself is not really a problem since that is to be expected, and when I say long it is only a few seconds so it is tolerable). The problem (I think) lies in the ant tasks. Our "bind" tasks depends on the "deploy" task. But, it seems that sometimes the bind task actually starts before the deploy task is finished. So, we are wondering if there is something wrong with the deploy task. Either oc4j is sending a signal that the deploy is complete before it actually is or the deploy ant task is just waiting a few seconds and then assuming it is complete.
The only way for us to make this problem go away is to run the deploy ant task, look at the console to see that the deploy is finished and then run the bind task separately. Needless to say, that is a bit annoying and hard to automate.
Any ideas?Chris,
Thanks. I dont think that is it. The process waits a while (so maybe they are the ones doing a sleep).
I am hoping to find out what is actually happening under the hood and if there is in fact a 'wait' giong on, implore to the development staff that they fix that issue before things are GA. Or, if something else is going on ... maybe I can fix it on my end.
Thanks,
Greg -
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,
JonJust 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.
-
Is wldeploy ANT task just always says "BUILD SUCCESFUL" ?
Hi All,
Iam using ANT and my build.xml file looks something like this:
<target name="deploy-now">
<echo message="...........This is the developmenet
box...deploying......"/>
<wldeploy action="${deploy.utility}" upload="true"
source="${source}" user="system" password="weblogic" nostage="true" verbo
se="true" adminurl="${bedlam-t.admin.url}" debug="true"
targets="${cmApplication.target}"/>
</target>
<target name="deploy-cm-testnet">
<antcall target="deploy-now"> <param name="source"
value="${cm1Application.source}"/>
</antcall>
<antcall target="deploy-now"> <param name="source"
value="${cm2Application.source}"/>
</antcall>
<antcall target="deploy-now"> <param name="source"
value="${cm3Application.source}"/>
</antcall>
</target>
So, basically iam calling my target "deploy-now" three times by using
<antcall>. Now my question is: iam getting BUILD SUCCESFUL although the
output looks like:
deploy-now: [echo] ...........This is the developmenet
box...deploying...... [wldeploy] weblogic.Deployer -debug -nostage -verbose -upload
-noexit -source
/export/home/beamon/applications/clientmanager/CMA_TW_333.war -targets UPSCAP
-adminurl http://bedlam-t.ams1907.com:8001 -user
system -password ******** -deploy
[wldeploy] DeploymentData : Delete Files:false [wldeploy] Timeout
:3600000 [wldeploy] Targets: [wldeploy] Files: [wldeploy] null
[wldeploy] Initiated Task: [87] [Deployer:149026]Deploy application
CMA_TW_333 on UPSCAP. [wldeploy] Application CMA_TW_333 preparing on
server upscap_bedlam1t_s1. [wldeploy] Module CMA_TW_333 failed to transition
from unprepared to prepared on server upscap_bedlam1t_s1. [wldeploy]
Application CMA_TW_333 failed on server upscap_bedlam1t_s1. [wldeploy]
Task 87 failed: [Deployer:149026]Deploy application CMA_TW_333 on UPSCAP.
[wldeploy] Deployment failed on Cluster UPSCAP [wldeploy] dumping
ApplicationException message
[wldeploy] Exception:weblogic.management.ApplicationException: prepare
failed for CMA_TW_333 [wldeploy] Module: CMA_TW_333 Error: Context path
'/CMA/US' is already in use by the module: CM_NO_333 application:
CM_NO_333
[wldeploy] dumping ApplicationException message
[wldeploy] Exception:weblogic.management.ApplicationException: prepare
failed for CMA_TW_333 [wldeploy] Module: CMA_TW_333 Error: Context path
'/CMA/US' is already in use by the module: CM_NO_333 application:
CM_NO_333
[wldeploy] Unpexpected Error Initializing Deployer:
weblogic.Deployer$DeployerException: Deployment exit status=1
deploy-now: [echo] ...........This is the developmenet
box...deploying...... [wldeploy] weblogic.Deployer -debug -nostage -verbose -upload
-noexit -source
/export/home/beamon/applications/clientmanager/CMA_NO_333.war -targets UPSCAP
-adminurl http://bedlam-t.ams1907.com:8001 -user
system -password ******** -deploy
[wldeploy] DeploymentData : Delete Files:false [wldeploy] Timeout
:3600000 [wldeploy] Targets: [wldeploy] Files: [wldeploy] null
[wldeploy] Initiated Task: [88] [Deployer:149026]Deploy application
CMA_NO_333 on UPSCAP. [wldeploy] Application CMA_NO_333 preparing on
server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: active to prepared
on server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: active to
prepared on server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333:
prepared to unprepared on server upscap_bedlam1t_s1. [wldeploy] Module
CMA_NO_333: prepared to unprepared on server upscap_bedlam1t_s1.
[wldeploy] Module CMA_NO_333: unprepared to prepared on server
upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: unprepared to prepared on server
upscap_bedlam1t_s1. [wldeploy] Application CMA_NO_333 prepared on server
upscap_bedlam1t_s1. [wldeploy] Application CMA_NO_333 activating on server
upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: prepared to active on
server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: prepared to
active on server upscap_bedlam1t_s1. [wldeploy] Application CMA_NO_333
activated on server upscap_bedlam1t_s1. [wldeploy] Task 88 completed:
[Deployer:149026]Deploy application CMA_NO_333 on UPSCAP. [wldeploy]
Deployment completed on Cluster UPSCAP
BUILD SUCCESSFUL
Please advise ......how can i show that the BUILD is NOT succesful as
there were EXCEPTIONS generated.....is ANT just always says "BUILD
SUCCESFUL"Infact it does complete, if i let it go on but it takes around 7 minutes more just to close the DM connection
[wldeploy] [ServerConnectionImpl.close():352] : Unregistered all listeners
[wldeploy] [ServerConnectionImpl.closeJMX():372] : Closed JMX connection
[wldeploy] [ServerConnectionImpl.closeJMX():384] : Closed Runtime JMX connection
[wldeploy] [ServerConnectionImpl.closeJMX():396] : Closed Edit JMX connection
BUILD SUCCESSFUL
Total time: 7 minutes 15 seconds
is anybody facing this issue? Why is closing DM Connection and Unregistered all listeners taking so much time to complete for a WAR i.e. just a few KBs.
Please Help! Thanks! -
Bugs in jdoc and jdoclet Ant tasks?
(The relevant lines in the build.xml file are at the end of this message.)
I encountered a problem with the jdoc Ant task:
- I added a description for a class in the metadata file. Everything rans
fine. Then I added another class to the metadata file, when the jdoc task
is invoked again by Ant the new class is not enhanced at all.
- However when I run the jdoc on the metadata file outside Ant, the new
class is enhanced.
I can't run the jdoclet task at all because Ant complains that it can't
find the class com.solarmetric.modules.integration.ant.KodoDocletTask.
However it doesn't have any problem finding the class
com.solarmetric.modules.integration.ant.JDOEnhancerTask. Aren't they both
in the kodo-jdoee.jar? I also tried using the classpath element inside the
target for the jdoclet without success.
Thanks for your help.
Here is an extract of the build.xml file:
<!--Set the classpath-->
<path id="classpath">
<pathelement location="d:/books/JDO/KODO/kodo-jdoee2.3.3/lib/jdo1_0.jar"/>
<pathelement
location="d:/books/JDO/KODO/kodo-jdoee-2.3.3/lib/kodo-jdoee.jar"/>
<pathelement location="C:\java\xdoclet-1.1.2\lib\xdoclet.jar"/>
</path>
<target name="taskdefs">
<taskdef name="jdodoclet"
classname="com.solarmetric.modules.integration.ant.KodoDocletTask"/>
<!-- the above line causes an error -->
<taskdef name="jdoc"
classname="com.solarmetric.modules.integration.ant.JDOEnhancerTask"/>
<!-- no problem with the above -->
<target name="enhanceAll" depends="compile">
<jdoc>
<fileset dir="./classes/quocp">
<include name="ent.jdo" />
</fileset>
<config licenseKey="<license key removed>" />
<classpath refid="classpath"/>
</jdoc>
</target>Actually I did have a classpath issue, the xdoclet jar was not being
included properly; once I got it included I now get this error:
BUILD FAILED: java.lang.LinkageError: duplicate class definition:
org/apache/log4j/Category
I think the xdoclet is incompatible with the version of log4j I have....but
I don't know for certain.
So I tried moving to the latest and greatest xdoclet and now I get a new
error (and it fails earlier):
Finding class com.solarmetric.modules.integration.ant.JDODocletSubTask
Exception reading component C:\dev2\java\devlib\kodo-jdo.jar
BUILD FAILED: java.lang.NoClassDefFoundError:
com/solarmetric/modules/integration/ant/JDODocletSubTask
One thing I have learned today is the -debug flag when running ant...very
helpful in finding out where the failure is occuring.
Any ideas you might have on how to proceed would be helpful...is there a way
to run the xdoclet stuff without the ant tasks?
Thanks,
Steven Balthazor
"Marc Prud'hommeaux" <[email protected]> wrote in message
news:[email protected]...
Steven-
If you include the Kodo devel jars in your system CLASSPATH, does it
work? I.e., is it a problem with the classpath, or with the XDoclet
integration in general?
In article <[email protected]>, Steven Balthazor wrote:
I have followed these instructions to the letter; but I am unable to get
the
Doclet task to work in ant. Specifically my taskdef:
<taskdef name="jdodoclet"
classname="com.solarmetric.modules.integration.ant.KodoDocletTask">
<classpath refid="cp" />
</taskdef>
Generates the following error when running ant:
BUILD FAILED: file:C:/dev2/java/devbuild.xml:54: taskdef class
com.solarmetric.modules.integration.ant.KodoDocletTask cannot be found
Now I would think this is a classpath problem; except if I change the
taskdef to:
<taskdef name="jdodoclet"
classname="com.solarmetric.modules.integration.ant.SchemaToolTask">
<classpath refid="cp" />
</taskdef>
I get a new error:
BUILD FAILED: file:C:/dev2/java/devbuild.xml:56: The <jdodoclet> task
doesn't support the nested "jdotags" element.
This looks like it is finding the SchemaToolTask and failing in the
implementation of jdodoclet. As far as I can tell, KodoDocletTask and
SchemaToolTask are in the same jar. So what gives?
I am using Kodo 2.5.2; and I have Xdoclet 1.1.2 in my classpath.
Any help would be appreciated.
Steven Balthazor
"Patrick Linskey" <[email protected]> wrote in message
news:[email protected]...
I'm guessing that the kodo jars are not in the classpath when you
launch
ant. If this is the case, then you must specify a classpath in your
taskdef, and probably in the jdodoclet execution as well. You can do
this with something like this:
<target ...>
<taskdef ...>
<classpath refid="cp"/>
</taskdef>
<jdodoclet ...>
<classpath refid="cp"/>
</jdodoclet>
</target>
This assumes that you've defined a path somewhere in your ant buildfile
with an id of 'cp'.
-Patrick
Quoc Pham wrote:
Hi Patrick,
I still haven\'t been able to solve the problem with the jdoclet
task:
>>>>
>>>>
I can\\\'t run the jdoclet task at all because Ant complains thatit
>>>>
can\\\'t
find the class
com.solarmetric.modules.integration.ant.KodoDocletTask.
However it doesn\\\'t have any problem finding the class
com.solarmetric.modules.integration.ant.JDOEnhancerTask. Aren\\\'tthey
both
in the kodo-jdoee.jar? I also tried using the classpath element
inside
the
target for the jdoclet without success.
Here is the jdoclet task:
classname=\\\"com.solarmetric.modules.integration.ant.KodoDocletTask\\\"/>
>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
When I run the above task, I got the error message:
Buildfile: build.xml
generateJdoMetadata
BUILD FAILED
file:d/jdev903/jdev/mywork/JDO/Ent/build.xml:102:taskdef class
com.solarmetric.modules.integration.ant.KodoDocletTask cannot be
found
>>>>
>>>>
Questions:
- How do I let ant know the class path to use to run this task?
- What should the value of sourcepath be?
- What should the value of dir be? The directory where the .javafiles
reside?--
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com -
When to use template builder versus ant tasks
Hi,
I like to know if ant tasks are more appropriate to use during application development for server configuration or template builder? or does it matter at all?
I am wondering how to manage the server configuration during integration and testing?
thanks,
NasrinAudacity (and other audio editors) are better suited for simple audio recoding and editing - they're much leaner and more reliant. I would never trust GB for a task like recording a long speech or concert.
I also prefer an audio editor to edit recorded speech - you can edit with much more detail, and by default the stuff you delete doesn't leave a gap (I know GB can do that too).
So basically, I use GB for anything that has to do with music or at least multi-track recording, the rest I do in an audio editor.
As for using both apps together: I've experimented with using both in parallel in the past – like taking a recording with a low level and normalize it in Audacity while the GB file is open. Nothing for the faint-hearted, since this is not something you're supposed to do - but as long as you don't change the length of a recording, GB was quite tolerant towards that procedure. -
Eclipse and WebLogic Ant Tasks
In WL_HOME/server/lib/ant/ is an ant.jar. It has a "defaults.properties" containing all of the ant taskdefs. I tried to extract that so that my build.xml could use them but it keeps complaining about weblogic.ant.taskdefs.perforce.P4Changes cannot be found. The reason why is that it's under the wrong package. How does one run the weblogic ant tasks outside of the weblogic ant installation? Thanks, Jeremy
bengali.Hi,
you also have to include a <taskdef> for the servicegen task of >weblogicThat's why I did but I still have a problem with the source2wsdd
ant task ( the other tasks run correctly within Eclipse).
I get a :
[source2wsdd] source2wsdd: Cannot find doclet class weblogic.webservice.tools.ddgen.ServiceGen
[source2wsdd] 1 error
BUILD FAILED: build.xml:324: javadoc execution failed
Total time: 3 seconds
The problem is that my source2wsdd has been defined with a well suited classpath
and is also called with the right classpath.
The problem only happens with this task !
Bengali -
Where are the bpelc and related ant tasks documented?
Hi,
Can anyone tell me where the soa suite-related ant tasks are documented? I only found a little bit of information and some examples in the developers guide.
Thanks,
Mark Nelsonchapter 19.4.2.
http://download-east.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/deployproc.htm#sthref3614 -
Hi All
I am trying to deploy\undeploy a WAR file on weblogic server 10.3.5 using ANT wldeploy task, but no matter what i do it always hangs at the below and doesn't complete (although deployment and undeployment is successful)
[wldeploy] [BasicOperation.execute():445] : Initiating deploy operation for app, ABCD, on targets:
[wldeploy] [BasicOperation.execute():447] : osb_server1
[wldeploy] Task 38 initiated: [Deployer:149026]deploy application ABCD on osb_server1.
[wldeploy] Task 38 completed: [Deployer:149026]deploy application ABCD on osb_server1.
[wldeploy] Target state: deploy completed on Server osb_server1
[wldeploy]
[wldeploy] Target Assignments:
[wldeploy] + ABCD osb_server1
[wldeploy] [ServerConnectionImpl.close():332] : Closing DM connection
Below are the targets used in ANT script. Please help!
<target name="undeploy" depends="buildWar">
<wldeploy action="undeploy" name="ABCD" user="${username}" password="${password}" debug="true" verbose="true" adminurl="t3://${adminhost}:${adminport}" targets="${target}" failonerror="false"/>
</target>
<target name="deploy" depends="undeploy">
<wldeploy action="deploy" name="ABCD" source="${basedir}/ABCD.war" user="${username}" password="${password}" upload="true" debug="true" stage="true" verbose="true" adminurl="t3://${adminhost}:${adminport}" targets="${target}"/>
</target>Infact it does complete, if i let it go on but it takes around 7 minutes more just to close the DM connection
[wldeploy] [ServerConnectionImpl.close():352] : Unregistered all listeners
[wldeploy] [ServerConnectionImpl.closeJMX():372] : Closed JMX connection
[wldeploy] [ServerConnectionImpl.closeJMX():384] : Closed Runtime JMX connection
[wldeploy] [ServerConnectionImpl.closeJMX():396] : Closed Edit JMX connection
BUILD SUCCESSFUL
Total time: 7 minutes 15 seconds
is anybody facing this issue? Why is closing DM Connection and Unregistered all listeners taking so much time to complete for a WAR i.e. just a few KBs.
Please Help! Thanks! -
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 -
Class generated by genInterface ant task does not compile
I am trying to build a web service from existing wsdl using genInterface and topDownAssemble ant tasks.
The wsdl contains following type definition. Java class generated from this type (see below) does not compile. The problem is that there are two class members named
'value'. Is this an issue with Web Services Assembly tool or there is some way to get
around it?
<s:simpleType name="quantityType">
<s:restriction base="s:string">
<s:enumeration value="summation"/>
<s:enumeration value="demand"/>
<s:enumeration value="value"/>
<s:enumeration value="consumption"/>
</s:restriction>
</s:simpleType>
// Version = Oracle WebServices (10.1.3.3.0, build 070610.1800.23513)
public class QuantityType implements java.io.Serializable {
private java.lang.String value;
private static final String _summationString = "summation";
private static final String _demandString = "demand";
private static final String _valueString = "value";
private static final String _consumptionString = "consumption";
public static final java.lang.String summation = new java.lang.String(summationString);
public static final java.lang.String demand = new java.lang.String(demandString);
public static final java.lang.String value = new java.lang.String(valueString);
public static final java.lang.String consumption = new java.lang.String(consumptionString);
public static final QuantityType summation = new QuantityType(_summation);
public static final QuantityType demand = new QuantityType(_demand);
public static final QuantityType value = new QuantityType(_value);
public static final QuantityType consumption = new QuantityType(_consumption);
AndreiPls set debug attribute of JWSC ant task to true or on, e.g.
<jwsc srcdir="." destdir="${output.dir}" debug="on" keepGenerated="true">
</jwsc> -
How to build ear files for ADF application using Ant task
How to build ear files for ADF applications using Ant. The ojdeploy ant task can not find application-level deployment profiles. I am trying to automated build and release for ADF application.
Any help is highly appreciated.
Thanks
ShivaHi Timo
Thanks for your reply.
I have successfully created ear file using ojdeploy on jenkins. however when am trying to auto deploy using WLDeploy ant task am getting the following
error :
weblogic.application.ModuleException: :oracle.mds.config.MDSConfigurationException:MDS-01335: namespace "/oracle/webcenter/quicklinks/scopedMD" mapped to metadata-store-usage "WebCenterFileMetadataStore" but its definition was not found in MDS configuration
Please advise how to handle this.
As am a newbie to ADF, could you please advise if it is possible for the ADF application deployments can be automated for different environments using jenkins due to this MDS dependencies.
Appreciate your help.
Thanks
Shiva
Maybe you are looking for
-
Opening CS4 projects in CS5 error with Canon 5D footage HELP!!!
HI Im trying out the new Premiere Pro CS5 demo and Im getting major problems opening projects. Initially I couldnt open any of my CS4 projects but could import single sequences one at a time only, not whole projects. So I was finally working fine yes
-
How To Switch On Array Fetch in JDev3.0
Hi, I would like to use the Array Fetch in JDeveloper 3.0. How do I use the Array Fetch in JDev3.0? I can use the simlary thing and set Arrarysize in Option Menu of SQL*PLUS. I can also use this on Oracle Forms's RunTime program. Thanks. Alan
-
Exporting WMP Ratings to ITunes
I have all of my songs rated already through Windows Media Player. Is there a way to use these ratings for ITunes instead of rating them one by one again?
-
Hey, habe ein Problem. Unzwar bekomme ich die ersten beiden artefakte die man normalerweise automatisch bekommt. Habe sie zwar im Rucksack drin werden aber nicht zu den 85 dazu gezählt
-
Hi! I'm new to OC4J and hope I can get help here. Using following (in an action class of a Struts based web app): private Log log = LogFactory.getLog("com.abc.xyz"); og.info("---->>>test of info log."); og.debug("---->>>test of debug log."); 1st line