Javadoc ant task
can someone show a sample ant task or point me to any link of how to create ant task to generate javadoc for all the packages
ANT 1.7.0 Link:
http://ant.apache.org/manual/CoreTasks/javadoc.html
Note: The Javadoc task documentation does come with examples!
Very simple example:
<javadoc destdir="docs/api">
<packageset dir="src" defaultexcludes="yes">
<include name="**"/>
</packageset>
</javadoc>
Similar Messages
-
Using javadoc ant task to generate Javadocs
Hi all
this may confuse you (probably because i'm fairly confused)
i was asked to write a script that in a project that could be ran to generate javadocs using ant libraries (org.apache.tools.ant.taskdefs.Javadoc)
Does anybody have any experience in doing this?
I know most ide s will generate them auomatically but that isnt what is need - and can some1 explain where the build.xml ant file comes in?
Thanksthanks both for your pointers.
I got the build.xml files to generate the javadoc - but is it possibly to get the javadocs of multiple source folders to be created in the place i.e
the current webapp is seperated into 4 project folders each with their own source code, their is a[b] masterbuild.xml which calls each individual build.xml. Current all this file contains is a 'build.all' target and a 'clean' target.
Is it possible to generate the javadocs for the whole webapp from here into the same docs folder with each java file being referenced from the same index.html? -
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 -
Weblogic ant tasks integration in Eclipse
Hi,
I would like to make Weblogic ant tasks ( web services one) work in Eclipse 3.0
. Someone on this newsgroup suggested to just add weblogic.jar and webservices.jar
to the built-in ant classpath of Eclipse. The problem is that it doesn't work
for me. The tasks don't run because ant doesn't recognize the tasks.
What should I do ? If anyone has already managed to do it, please let me know.
bengali.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 -
Hi,
Is it possible to run a Ant Task from a web interface. What I want a nice little web interface with some buttons on it like Run JavaDoc, Deploy, Compile, Unit Test etc and when a developer clicks on any of the buttons, performs ANT Task.
Any ideas?
ThanksTake a look at antidote (or eclipse etc) and just port the Swing GUI. Shouldn't be too difficult.
http://ant.apache.org/projects/antidote/ -
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 -
Built-in wlst ant task does not work in weblogic 10.3.1
Hi,
We have an installer script that deploys an ear file to a weblogic managed server. The script also invokes the build-tin wlst ant task to bounce the managed server. However, in version 10.3.1 the wlst task seems to be broken. I get this error:
[echo] [wlst] sys-package-mgr: can't create package cache dir, '/u00/webadmin/product/10.3.1/WLS/wlserver_10.3/server/lib/weblogic.jar/./java
tmp/wlstTemp/packages'
[echo] [wlst] java.io.IOException: No such file or directory
[echo] [wlst] at java.io.UnixFileSystem.createFileExclusively(Native Method)
[echo] [wlst] at java.io.File.checkAndCreate(File.java:1704)
[echo] [wlst] at java.io.File.createTempFile(File.java:1792)
[echo] [wlst] at java.io.File.createTempFile(File.java:1828)
[echo] [wlst] at com.bea.plateng.domain.script.jython.WLST_offline.getWLSTOfflineInitFilePath(WLST_offline.java:240)
[echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[echo] [wlst] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[echo] [wlst] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[echo] [wlst] at java.lang.reflect.Method.invoke(Method.java:597)
[echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.getOfflineWLSTScriptPath(WLSTUtil.java:63)
[echo] [wlst] at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:214)
[echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:133)
[echo] [wlst] at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:75)
[echo] [wlst] at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:103)
[echo] [wlst] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
Obviously that is not a valid directory...so I am wondering what it is trying to do, and why. The wlst task worked perfectly in 10.3.0. No changes were made when attempting to run the script against 10.3.0 and 10.3.1, which tells me that something is different with the 10.3.1 setup. Here is the ant code I am running:
<target name="init-taskdefs">
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="ant-ext/ant-contrib.jar" />
</classpath>
</taskdef>
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" />
<taskdef name="wlst" classname="weblogic.ant.taskdefs.management.WLSTTask" />
</target>
<macrodef name="wlShutdownServer">
<attribute name="adminUser" default="${deploy.admin.username}" />
<attribute name="adminPassword" default="${deploy.admin.password}" />
<attribute name="adminUrl" default="${deploy.admin.url}" />
<attribute name="serverTarget" />
<sequential>
<trycatch property="server.error">
<try>
<wlst failonerror="true"
arguments="@{adminUser} @{adminPassword} @{adminUrl} @{serverTarget}">
<script>
adminUser=sys.argv[0]
adminPassword=sys.argv[1]
adminUrl=sys.argv[2]
serverTarget=sys.argv[3]
connect(adminUser,adminPassword,adminUrl)
target=getMBean("/Servers/"+serverTarget)
if target == None:
target=getMBean("/Clusters/"+serverTarget)
type="Cluster"
else:
type="Server"
print 'Shutting down '+serverTarget+'...'
shutdown(serverTarget,type,'true',15,force='true')
print serverTarget+' was shut down successfully.'
</script>
</wlst>
<!-- setDomainEnv.sh must have been called to set DOMAIN_HOME. Remove all leftover .lok files to allow server
to start back up again. -->
<echo message="Deleting any lok files that have not been removed..." />
<delete failonerror="false">
<fileset dir="${env.DOMAIN_HOME}/servers/@{serverTarget}" includes="**/*.lok"/>
</delete>
</try>
<catch>
<fail message="@{serverTarget} shutdown failed. ${server.error}" />
</catch>
<finally/>
</trycatch>
</sequential>
</macrodef>
Any help would be appreciated. Thanks!Well, it looks like passing something like "-Djava.io.tmpdir=/var/tmp/javatmp/`date +%Y%m%d`" to ant did the trick. I had to make sure that directory existed first, otherwise it threw a java ioexception.
I still don't understand what changes between 10.3.0 and 10.3.1 to necessitate this change. -
Unable to run ALBPM Ant tasks on Linux
Hi,
I am trying to execute a simple build script that creates a session with given directory details and deploys/publishes a project on to the Enterprise Server. With usual modifications, this scripts works fine on Windows, but on Linux it keeps on giving an error that makes no sense. I am copying my build file as well as error stack trace below. Please help me on urgent basis.
OS: Linux 64 bit
Oracle Enterprise Server: 10.3.1.0.0
JAVA_HOME=/usr/java/jdk1.6.0_16
ANT_HOME=/usr/ant/apache-ant-1.8.1
build.xml
<!-- This script publishes and deploys a BPM Project, undeploys and unpublishes a BPM Project, Export Organisation.xml -->
<project name="sampleproj"
xmlns:fuego="antlib:fuego.tools.ant.enterprise"
xmlns:fuego.j2ee="antlib:fuego.tools.ant.j2ee">
<!-- Include properties -->
<property file="build.properties"/>
<echo message="Enterprise Home Directory:: ${fuego.basedir}" />
<echo message="Ant Version:: ${ant.version}" />
<echo message="Connecting to directory:: ${fuego.directoryid}" />
<fuego:passport id="passport"
directoryid="${fuego.directoryid}"
preset="engine" />
<target name="publish-on-linux" description="Publish and deploy processes">
<echo message="Creating session..."/>
<!-- Open a session to the ALBPM directory -->
<fuego:session passportref="passport"
verbose="true"
haltonerror="true">
<!-- Publish processes -->
<fuego:publish fpr="${bpm.project.path}"
deploy="true"
engine="${fuego.engine}"
haltonerror="true"
importdata="true"
automapconfigs="true"
automapvars="true"
automaproles="true"
automapbuspars="true"
importcustomviews="true">
</fuego:publish>
</fuego:session>
</target>
</project>
build.properties
# Enterprise installation directory
fuego.basedir=/opt/OraBPMwlHome
# Name of ALBPM Engine to deploy to
fuego.engine=bpmengine
# Project to deploy
bpm.project.path=/usr/test_ant/sampleproj
# Directory details
fuego.directoryid=default
Error on running the target publish-on-linux
[echo] Enterprise Home Directory:: /opt/OraBPMwlHome
[echo] Ant Version:: Apache Ant version 1.8.1 compiled on April 30 2010
[echo] Connecting to directory:: default
publish-on-linux:
[echo] Creating session...
[fuego:session] fuego base dir [opt/OraBPMwlHome]
BUILD FAILED
/usr/test_ant/build1.xml:25: java.lang.NullPointerException
at fuego.tools.ant.BaseFuegoTask.getClassLoader(Unknown Source)
at fuego.tools.ant.BaseFuegoTask.executeTask(Unknown Source)
at fuego.tools.ant.enterprise.taskdefs.DirectorySessionTask.executeImpl(Unknown Source)
at fuego.tools.ant.BaseFuegoTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
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:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
at org.apache.tools.ant.Main.runBuild(Main.java:801)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 0 secondsAmit Zini wrote:
Dear All,
I am unable to run my oracle 10g forms application on Linux machine which is runing Fedora 16.
i have tried to install jre 6 but mozilla firefox 10 is not loading my oracle 10 forms application, it says plugin missing.
Kindly help me to short out the problem.
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (fedora-65.1.11.1.fc16-i386)
OpenJDK Server VM (build 20.0-b12, mixed mode)
Regards.
Amit.Try with down grade of Mozilla firefox. may be version 6 to 8. not 9/10.
Firefox with 9 and higher doesn't support JRE version 1.6.XX.
Hopes this helps -
Error in writing an Ant task for creating a new connection pool.
I have written the following ant task to create a new connection pool in weblogic 10.3.
<target name="pool.dev">
<wlconfig url="http://localhost:7001/" username="weblogic" password="weblogic">
<query domain="C:/weblogic/rtg-L0" name="myserver"/>
<create type="JDBCConnectionPool" name="OneSourceConnectionPool">
<set attribute="DriverName"
value="oracle.jdbc.OracleDriver"/>
<set attribute="InitialCapacity" value="1"/>
<set attribute="MaxCapacity" value="5"/>
<set attribute="Password" value="rating"/>
<set attribute="Properties" value="user=rating"/>
<set attribute="RefreshMinutes" value="0"/>
<set attribute="ShrinkPeriodMinutes" value="15"/>
<set attribute="ShrinkingEnabled" value="true"/>
<set attribute="TestConnectionsOnRelease" value="true"/>
<set attribute="TestConnectionsOnReserve" value="true"/>
<set attribute="TestConnectionsOnCreate" value="true"/>
<set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
<set attribute="URL"
value="jdbc:oracle:thin:@xyz.com:1522:oradvl"/>
<set attribute="Targets" value="myserver"/>
</create>
</wlconfig>
</target>
When I run it, I see the following error:
BUILD FAILED
C:\ganymede\eclipse\workspace1\RtgSvr\build.xml:286: Failed to connect to the server: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.io.EOFException]
Can anybody please help me regarding this...
Thank you,
SowmyaHi everybody,
Thank you very much for your replies....actually I added weblogic.jar to the classpath of the target. So, now I dont see that error. But, I have another problem which is as follows:
<target name="initJDBC">
<wlconfig url="t3://${host}:${port}" username="${username}" password="${password}">
<query domain="domain.name" type="Server" name="${target.server}" property="${target.server}"/>
<create type="JDBCConnectionPool" name="TestConnectionPool">
<set attribute="DriverName" value="oracle.jdbc.OracleDriver"/>
<set attribute="Password" value="welcome"/>
<set attribute="Properties" value="user=welcome"/>
<set attribute="URL" value="jdbc:oracle:thin:@test.com:1522:oradvl"/>
<set attribute="Targets" value=""/>
<set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
<set attribute="TestConnectionsOnRelease" value="false"/>
<set attribute="TestConnectionsOnReserve" value="true"/>
</create>
<create type="JDBCDataSource" name="TestDataSource">
<set attribute="JNDIName" value="TestDataSource"/>
<set attribute="PoolName" value="TestConnectionPool"/>
<set attribute="Targets" value=""/>
</create>
</wlconfig>
</target>
I am not knowing what to give in the value field of <set attribute="Targets" value=""/>. The following is my build.properties file:
target.server=myserver
host=127.0.0.1
port=7001
username=weblogic
password=weblogic
domain.name=testDomain
If I give <set attribute="Targets" value="${myserver}"/>, I get the following error:
BUILD FAILED
C:\ganymede\eclipse\workspace1\TestSvr\build.xml:290: Property not set: ${myserver}
When I set myserver=myserver in build.properties, I get the following error:
BUILD FAILED
C:\ganymede\eclipse\workspace1\TestSvr\build.xml:290: Error invoking MBean command: java.lang.IllegalArgumentException: Property Name and value not valid for the MBean. Value myserver for parameter[Targets].java.lang.IllegalArgumentException: Unable to convert the argument valuemyserver to class javax.management.ObjectName.java.lang.reflect.InvocationTargetException
Can someone plzz help me in this regard.
Thank you,
Sowmya -
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 -
Error during deploying using sapdeploy ant task
I am attempting to deploy a simple service which I have created using Dev studio. Instead of deploying using Dev studio, I want to use ant task for the same.
This is the output I see in the console:
deploy:
[sapdeploy] Starting deployment with the following properties:
[sapdeploy] Version Handling Rule: all
[sapdeploy] Error Handling Strategies: [error action: 'prerequisites', error strategy: 'stop', error action: 'deploy', error strategy: 'stop']
[sapdeploy] The targeted SAP J2EE Engines are: [server host: 'myhost', server port '50000', user name 'J2EE_ADMIN'.]
[sapdeploy] Starting to validate the data...
[sapdeploy] Validation ended
[sapdeploy] root dir C:\temp\HelloWorldEAR
[sapdeploy] Selected archives for deployment:
[sapdeploy] 1: 'C:\temp\HelloWorldEAR\HelloWorldEAR.ear'
[sapdeploy] Starting validation for the engine 'server host: 'myhost', server port '50000', user name 'J2EE_ADMIN'.'
[sapdeploy] Engine data validated successfully
[sapdeploy] Starting deployment for the engine 'server host: 'myhost', server port '50000', user name 'J2EE_ADMIN'.'
[sapdeploy] An error occured during the deployment.
[sapdeploy] The result of the deployment is: Error
[sapdeploy] Deployment ended
Where can I get more details of what might be wrong with the deploy process? I tried "-v" flag but to no avail. Syslog of the server shows nothing of interest.
Thanks in advance for any help.
Regards,
SameerLogs will be in log\dc_log folder.
-
ANT task wsgen error while deploying RPC style web service
Hi
I am trying to assemble/deploy an rpc style weblogic web service using the 'wsgen'
Ant task and the build.xml scripts provided with the samples. I get this error:
Please help
Thanks,
Praveen
C:\test>ant
Buildfile: build.xml
webservice:
clean:
[delete] Deleting directory C:\test\build
init:
[mkdir] Created dir: C:\test\build
[mkdir] Created dir: C:\test\build\META-INF
[copy] Copying 5 files to C:\test\build\META-INF
compile_ejb:
[javac] Compiling 5 source files to C:\test\build
jar_ejb:
[jar] Building jar: C:\test\a_statelessSession.jar
ejbc:
all:
wsgen:
Error at line:8 col:12 ':' Already got a ':' in name
at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseExc
on(SAXElementFactory.java:60)
at weblogic.xml.babel.parsers.StreamParser.<init>(StreamParser.java:
at weblogic.xml.babel.parsers.BabelXMLEventStream.startDocument(Babe
EventStream.java:28)
at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:6
at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:5
at weblogic.soap.WebServiceProxy.getServiceFrom(WebServiceProxy.java
at weblogic.ant.taskdefs.ejb.WSGenHelper.writeClientJar(WSGenHelper.
:1125)
at weblogic.ant.taskdefs.ejb.WSGenHelper.writeWSDL(WSGenHelper.java:
at weblogic.ant.taskdefs.ejb.WSGenHelper.saveDescriptors(WSGenHelper
a:1415)
at weblogic.ant.taskdefs.ejb.WSGenHelper.output(WSGenHelper.java:148
at weblogic.ant.taskdefs.ejb.WSGenHelper.doit(WSGenHelper.java:1517)
at weblogic.ant.taskdefs.ejb.WSGen.execute(WSGen.java:93)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)
BUILD SUCCESSFUL
Total time: 34 seconds
C:\test>WLS6.1, service pack 2? I didn't know there were any service packs for 6.1 and
6.0 didn't support wsgen and web services??
simon.
manoj cheenath <[email protected]> wrote:
>
>
This is a known bug which is fixed in WLS 6.1 SP2.
The workaround is to change the complex data types
to have more than one level package names.
for eg: change ....
package foo;
class Data{}
to :
package foo.bar;
class Data{}
-manoj
Praveen wrote:
Hi
I am trying to assemble/deploy an rpc style weblogic web service usingthe 'wsgen'
Ant task and the build.xml scripts provided with the samples. I getthis error:
Please help
Thanks,
Praveen
C:\test>ant
Buildfile: build.xml
webservice:
clean:
[delete] Deleting directory C:\test\build
init:
[mkdir] Created dir: C:\test\build
[mkdir] Created dir: C:\test\build\META-INF
[copy] Copying 5 files to C:\test\build\META-INF
compile_ejb:
[javac] Compiling 5 source files to C:\test\build
jar_ejb:
[jar] Building jar: C:\test\a_statelessSession.jar
ejbc:
all:
wsgen:
Error at line:8 col:12 ':' Already got a ':' in name
at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseExc
on(SAXElementFactory.java:60)
at weblogic.xml.babel.parsers.StreamParser.<init>(StreamParser.java:
at weblogic.xml.babel.parsers.BabelXMLEventStream.startDocument(Babe
EventStream.java:28)
at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:6
at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:5
at weblogic.soap.WebServiceProxy.getServiceFrom(WebServiceProxy.java
at weblogic.ant.taskdefs.ejb.WSGenHelper.writeClientJar(WSGenHelper.
:1125)
at weblogic.ant.taskdefs.ejb.WSGenHelper.writeWSDL(WSGenHelper.java:
at weblogic.ant.taskdefs.ejb.WSGenHelper.saveDescriptors(WSGenHelper
a:1415)
at weblogic.ant.taskdefs.ejb.WSGenHelper.output(WSGenHelper.java:148
at weblogic.ant.taskdefs.ejb.WSGenHelper.doit(WSGenHelper.java:1517)
at weblogic.ant.taskdefs.ejb.WSGen.execute(WSGen.java:93)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)
BUILD SUCCESSFUL
Total time: 34 seconds
C:\test>
-----------------------------------------------------------------<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
This is a known bug which is fixed in WLS 6.1 SP2.
<p>The workaround is to change the complex data types
<br>to have more than one level package names.
<p>for eg: change ....
<p><font color="#3366FF">package foo;</font>
<br>class Data{}
<p>to :
<p><font color="#3333FF">package foo.bar;</font>
<br>class Data{}
<p>-manoj
<p>Praveen wrote:
<blockquote TYPE=CITE>Hi
<br>I am trying to assemble/deploy an rpc style weblogic web service
using
the 'wsgen'
<br>Ant task and the build.xml scripts provided with the samples. I get
this error:
<br>Please help
<br>Thanks,
<br>Praveen
<br>-----------------------------------------------------------------
<br>C:\test>ant
<br>Buildfile: build.xml
<p>webservice:
<p>clean:
<br> [delete] Deleting directory C:\test\build
<p>init:
<br> [mkdir] Created dir: C:\test\build
<br> [mkdir] Created dir: C:\test\build\META-INF
<br> [copy] Copying 5 files to C:\test\build\META-INF
<p>compile_ejb:
<br> [javac] Compiling 5 source files to C:\test\build
<p>jar_ejb:
<br> [jar] Building jar: C:\test\a_statelessSession.jar
<p>ejbc:
<p>all:
<p>wsgen:
<br>Error at line:8 col:12 ':' Already got a ':' in name
<br> at weblogic.xml.babel.baseparser.SAXElementFactory.createSAXParseExc
<br>on(SAXElementFactory.java:60)
<br> at weblogic.xml.babel.parsers.StreamParser.<init>(StreamParser.java:
<br> at weblogic.xml.babel.parsers.BabelXMLEventStream.startDocument(Babe
<br>EventStream.java:28)
<br> at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:6
<br> at weblogic.soap.WebServiceProxy.getXMLStream(WebServiceProxy.java:5
<br> at weblogic.soap.WebServiceProxy.getServiceFrom(WebServiceProxy.java
<br>)
<br> at weblogic.ant.taskdefs.ejb.WSGenHelper.writeClientJar(WSGenHelper.
<br>:1125)
<br> at weblogic.ant.taskdefs.ejb.WSGenHelper.writeWSDL(WSGenHelper.java:
<br>)
<br> at weblogic.ant.taskdefs.ejb.WSGenHelper.saveDescriptors(WSGenHelper
<br>a:1415)
<br> at weblogic.ant.taskdefs.ejb.WSGenHelper.output(WSGenHelper.java:148
<br> at weblogic.ant.taskdefs.ejb.WSGenHelper.doit(WSGenHelper.java:1517)
<br> at weblogic.ant.taskdefs.ejb.WSGen.execute(WSGen.java:93)
<br> at org.apache.tools.ant.Target.execute(Target.java:153)
<br> at org.apache.tools.ant.Project.runTarget(Project.java:898)
<br> at org.apache.tools.ant.Project.executeTarget(Project.java:536)
<br> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
<br> at org.apache.tools.ant.Target.execute(Target.java:153)
<br> at org.apache.tools.ant.Project.runTarget(Project.java:898)
<br> at org.apache.tools.ant.Project.executeTarget(Project.java:536)
<br> at org.apache.tools.ant.Project.executeTargets(Project.java:510)
<br> at org.apache.tools.ant.Main.runBuild(Main.java:421)
<br> at org.apache.tools.ant.Main.main(Main.java:149)
<p>BUILD SUCCESSFUL
<p>Total time: 34 seconds
<p>C:\test>
<br>-----------------------------------------------------------------</blockquote>
</html> -
Wsdlc Ant Task - Problem creating java files in the correct package
In eclipse, for weblogic 9.2
Using the wsdlc WebLogic Web Services Ant Task, I am trying to auto-generate the java files for the web service based on the WSDL. I have specified the packageName as one of the parameters. However the java files are being created and packaged based on the TargetNameSpace of the WSDL rather then under the package name specified. Following is part of my build.xml
autogen.src.dir=../code/java/beaAutoGen
base.dest=../../../var/build/wsmToPlmWS
bea.build.dir=beaBuild
<target name="generate-from-wsdl" depends="prepare">
<delete dir="${src.dir}" includeemptydirs="true" />
<delete dir="${autogen.src.dir}" includeemptydirs="true" />
<wsdlc srcWsdl="../config/sourceWSDL/MRPBindingPort.wsdl"
destJwsDir="${base.dest}/${bea.build.dir}/compiledWsdl" destImplDir="${base.dest}/${bea.build.dir}/impl"
packageName="com.lmco.iplm.webservices.wsmtoplm" debug="on"
srcServiceName="WSPlmMto_Service"
debugLevel="DEBUG" autoDetectWrapped="true" jaxRPCWrappedArrayStyle="true"
verbose="on" classpathref="bea-classpath" />
<!-- unjar to get the all the details so we can tokenize -->
<unjar dest="${autogen.src.dir}"
src="${base.dest}/${bea.build.dir}/compiledWsdl/MRPBindingPort_wsdl.jar" />
<!-- copy over the impl file -->
<copy todir="../code/java/src">
<fileset dir="${base.dest}/${bea.build.dir}/impl" />
</copy>
</target>In eclipse, for weblogic 9.2
Using the wsdlc WebLogic Web Services Ant Task, I am trying to auto-generate the java files for the web service based on the WSDL. I have specified the packageName as one of the parameters. However the java files are being created and packaged based on the TargetNameSpace of the WSDL rather then under the package name specified. Following is part of my build.xml
autogen.src.dir=../code/java/beaAutoGen
base.dest=../../../var/build/wsmToPlmWS
bea.build.dir=beaBuild
<target name="generate-from-wsdl" depends="prepare">
<delete dir="${src.dir}" includeemptydirs="true" />
<delete dir="${autogen.src.dir}" includeemptydirs="true" />
<wsdlc srcWsdl="../config/sourceWSDL/MRPBindingPort.wsdl"
destJwsDir="${base.dest}/${bea.build.dir}/compiledWsdl" destImplDir="${base.dest}/${bea.build.dir}/impl"
packageName="com.lmco.iplm.webservices.wsmtoplm" debug="on"
srcServiceName="WSPlmMto_Service"
debugLevel="DEBUG" autoDetectWrapped="true" jaxRPCWrappedArrayStyle="true"
verbose="on" classpathref="bea-classpath" />
<!-- unjar to get the all the details so we can tokenize -->
<unjar dest="${autogen.src.dir}"
src="${base.dest}/${bea.build.dir}/compiledWsdl/MRPBindingPort_wsdl.jar" />
<!-- copy over the impl file -->
<copy todir="../code/java/src">
<fileset dir="${base.dest}/${bea.build.dir}/impl" />
</copy>
</target>
Maybe you are looking for
-
Thin Line Border around Still Images?
Hi, just wondering if anyone can help me out, I've searched for an answer to this problem to no avail. I'm currently creating a very simple project in Premiere Pro CC, it's just a slideshow of JPEG images with a title text underneath the whole thing.
-
Save the export parameter as an excel or notepad file in ecatt
Hello, Que: I want to save the export parameter value to an excel or a notepad file in my ecatt script? Importing of notepad file can be handled as an external file variant input from test data container. But I am not able to export the value to a fi
-
Buggy ESPN Monday Night Football experience
Am I the only one who has a terrible time with WatchESPN on the Apple TV? Specifically during Monday Night Football. I am signed in using our COX account and trying to watch at work on my Apple TV 3 1st-gen. I have a clean 10Mbps-download, 2Mbps-up
-
Using Hierarchy in Query Designer
Dear all When I use hierarchy of InfoObject 0WBS_ELEMT, there is a hierarchy which has structure following: WBS 1 WBS 1.1 WBS 1.2 In every WBS, I focus on 3 infos (start date, finish date and duration) WBS 1.1 has startdate: 2/8/2010, finis
-
Someone help - why do they keep removing my helpful post?
I'm pretty new to Apple Discussions, so I'm still learning how it works, and I don't understand why one of my posts has been removed (twice). I spent a lot of time writing up a detailed description of what I consider an incredibly useful tip for iPod