Xmlbeans ant task help
I'm trying to integrate the ant task to my existing build file in my project.
However the ant task don't have any way to compile more than one .xsd in a different .jar
(i.e.: destdir attr is not supported).
For example, I have two schemas : mySchema.xsd and anotherSchema.xsd
What I need is to generate two different .jars : mySchema.jar and anotherSchema.jar
(The jar names must match with the xsd names, that's how our structure goes).
I don't know if it is possible, or if It would be better to compile everything inside a single .jar
Any suggestions will be much appreciated !!!
Thanks !!
Ah, I found it: the documentation has an error and I copied the supplied example.
http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.mylyn.wikitext.help.ui%2Fhelp%2FMylyn+WikiText+User+Guide.html says that one has to declare
<taskdef classpathref="wikitext.classpath" resource="org/eclipse/mylyn/wikitext/core/ant/tasks.properties"/>
but should be
<taskdef classpathref="wikitext.tasks.classpath" resource="org/eclipse/mylyn/internal/wikitext/mediawiki/core/tasks/tasks.properties" />
Filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=471965
regards,
Vlad
Similar Messages
-
Using xsb files with xmlbeans ant task
Hi all
I have got an xsd which references other schemas: for these other schemas I have only the xsbs. The xmlbeans ant task refuse to load the xsd I'm giving in because cannot found the other schemas. I'd like to simply import the existing xsb so that the ant task can use them: does anyone know how to do it?
Thank you in advance for any help
cdrActually it doesn't work properly in SQL Server 2008 R2. I have a similar EP task. If I set the working directory to \\server\share\subdir the task fails. However, if I map a drive latter to the \\server\share and set working directory to <drive>:\subdir
it works -
Oracle BPM Ant tasks with Oracle BPM Studio cant find jar
Hello,
There is this documentation
http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/anttasks/index.html
which states how to run Ant tasks to do different tasks on Oracle BPM. In EVERY example in the doc and the INTERNET there is this line in build.xml
<project name="OracleBPMExample" xmlns:fuego="antlib:fuego.tools.ant.enterprise">
Now, could anyone PLEASE tell me where to find fuego.tools.ant.enterprise. Ive searched every jar in my installation, and couldnt find such package. From what Ive found out it should be something like fuego-antlib.jar but while it is well known and well discussed it is NOT AVALIABLE ANYWHERE.
please, help. Im using Oracle BPM 10.3.2
regards,
PawelYou are right Mike... The ant tasks help you do process admin stuff... so that in the Enterprise environment, you can script it all, and not require manual deployments and such.
Just download 10g Enterprise.... the library will be in there...
HTH -
Xmlbean and ws8.1 ant tasks
hi,
i am looking to use xmlbeans to generate stubs for the input arameters and the output returned by the webservice designed using XSD schemas.
I am not planning to use weblogic workshop and will be using only weblogic server 8.1 sp3 server to implement the webservice.
From the weblogic server documentation I observed that using xmlbean is not supported. is that true ?
Please provide a sample of how to integrate xmlbean and weblogic server ant tasks to implement a webservice. The ant task <autotype> generates the types.xml to be included in the wsdl file.. is there is a similar facility in xmlbeans.
TIA
karthik
[[email protected]]Kiran,
Did you happen to get this solution to work?
I'm currently trying to use XMLBeans 2.x to create web services for ws8.1. My thought is that I would need to modify the types.xml to point to the XMLBeans custom serializer/deserializer class? I would then need to run the "wsdl2service" ant task to create the web-services.xml and web service implementation skeleton.
It appears difficult to create weblogic web services outside of Workshop that use XMLBeans! Any advice that you can offer would be appreciated.
-Shawn -
Xmlbeans and ws8.1 ant tasks
hi,
i am looking to use xmlbeans to generate stubs for the input arameters and the output returned by the webservice designed using XSD schemas.
I am not planning to use weblogic workshop and will be using only weblogic server 8.1 sp3 server to implement the webservice.
From the weblogic server documentation I observed that using xmlbean is not supported. is that true ?
Please provide a sample of how to integrate xmlbean and weblogic server ant tasks to implement a webservice. The ant task <autotype> generates the types.xml to be included in the wsdl file.. is there is a similar facility in xmlbeans.
TIA
karthik
[[email protected]]Kiran,
Did you happen to get this solution to work?
I'm currently trying to use XMLBeans 2.x to create web services for ws8.1. My thought is that I would need to modify the types.xml to point to the XMLBeans custom serializer/deserializer class? I would then need to run the "wsdl2service" ant task to create the web-services.xml and web service implementation skeleton.
It appears difficult to create weblogic web services outside of Workshop that use XMLBeans! Any advice that you can offer would be appreciated.
-Shawn -
Hello all. I've been using the MXMLC servlet compiler that
comes with the fds-tomcat tutorial. I have recently tried to
compile with MXMLC using the ant task. The application compiles the
swf correctly except it cant seem to find the spring services I had
configured.
[MessagingError message='Unknown destination 'xxxxx'.']
Now, when I go and try to get the servlet to compile it; ie:
Bringing up the MXML file from the web browser, it works fine. Can
Anybody identify what i'm doing wrong?Hey
After scratching my head for couple hours and wrestling with
the FDS configuration I have managed to get the application going.
Here is my ant target
<taskdef resource="flexTasks.tasks"
classpath="${file.flexTasks.jar}" />
<mxmlc file="${flex.main.file}"
keep-generated-actionscript="true"
use-network="true" output="${flex.output.file}"
as3="true" es="false"
benchmark="true" debug="true"
optimize="true" services="${file.flex.services.conf}"
context-root="/analytics" strict="true" >
<!--Third party classes -->
<compiler.library-path dir="${flex.user.classes.dir}"
append="true">
<include name="Cairngorm.swc" />
<include name="CairngormEnterprise.swc" />
</compiler.library-path>
<!--XDoclet generated DTOs -->
<compiler.source-path
path-element="${flex.actionscript.output.dir}"/>
</mxmlc> -
Are the WLS 9.1 Web Service Ant Tasks ready for prime time?
I am trying to create a Proof of Concept (POC) for Enterprise and B2B Services at Wendy's Int'l, Inc.
As part of this POC, I created a WSDL for an in-house service and then used the wsdlc and jwsc Ant Tasks to translate this WSDL to Java classes and ultimately (I hoped) a deployable services.
In this document, I describe the issues I encountered setting up what I consider to be a simple POC.
I'll try to attach my WSDL file and build.xml so you can follow along.
I'll also try to attach my CSS file so you can compare how the generated WSDL appears in the Browser to the way I want it to appear.
If attachments are not allowed on these forums, then I will wait and see if there is interest in those documents before I paste them under this topic.
Some preliminary information about my environment.
Environment:
Windows XP Pro SP2
WebLogic 9.1
Java 1.5.0_04
Service Name:
AppRelease
Note: If I modify my WSDL (perhaps to add a new Operation or to change the definition of an element) and run wsdlc again, the AppReleaseSOAPPortImpl.java file is overwritten For this reason, I implemented my service logic in a class called AppReleaseServiceImple.java.
Now, for the issues.
1. Bug:
In the WSDL generated by wsdlc, the wsdl:part child of the wsdl:message tag is erroneously prefixed with a colon.
This occurs whether or not I specify a prefix for the http://schemas.xmlsoap.org/wsdl/ namespace.
Work around: Extract the wsdl from the jar file, fix it and add it back into the jar.
2. Bug:
In the WSDL generated by wsdlc, the wsdl:input and wsdl:output children of the wsdl:operation child of wsdl:portType tag are erroneously prefixed with a colon. Like 1 above, this occurs whether or not I specify a prefix for the http://schemas.xmlsoap.org/wsdl/ namespace.
Work around: Extract the wsdl from the jar file, fix it and add it back into the jar.
The error message generated by Bugs 1 and 2 is not helpful in diagnosing the problem:
[jwsc] Error at line:46 col:7 ':' expected [?! -- [CDATA[ ]
3. Bug:
In the WSDL generated by wsdlc, the documentation elements have all of my html elements stripped out, as well as my xhtml and wsdl namespace references. This completely negates one of the best features of the documentation tag, being able to present the WSDL in a browser as a nicely formatted, human friendly document which is also the underlying WSDL that can be viewed when the person views the source document.
I label this as a bug because it greatly reduces the functionality of the resulting WSDL.
4. Annoyance:
The WSDL generated by wsdlc has all of my comments stripped out, except the comments in the xsd:schema section of the wsdl:types element. I would prefer that all my comments be left in the WSDL, but if comments must be stripped out then I think all of the comments should be stripped out.
5. Annoyance:
The WSDL generated by wsdlc has my CSS specification stripped.
Work around: I don’t know if adding the CSS back will do any good because I have not yet created a deployable service (see the last issue below).
6. Annoyance:
The WSDL generated by wsdlc has different namespace prefixes than the ones I specified for my application's namespace and for the http://schemas.xmlsoap.org/wsdl/soap/ namespace.
Work around: Perform a find/replace on namespace prefixes "s0" and "s1" to return them to my prefered values.
Another thing I can do at this point is simply replace the generated WSDL in the jar file with my original WSDL. This would address issues 1 thru 6 above.
7. Annoyance:
The java source files created by wsdlc are put into a jar file. This makes it annoying when working within a traditional IDE like Eclipse because there is no way to reference the source files within the jar as working source.
Work around: Extract the source files from the jar and identify the resulting directory structure as part of the source structure of the project.
8. Bug:
The jwsc task complains if the same parameter name is used in multiple operations. I received the following Errors from jwsc:
[jwsc] C:\IDE\workspace\Acre-WL9.1\AppReleaseSOAPPort.java 0:0
[jwsc] [ERROR] - Parameter element "{http://acre.services.wendys.com/AppRelease/}garRequest" is not unique across document/literal bare WebService.
Since the operation names are unique, I see no reason to also require uniqueness in the parameter names used by those operations.
Work around: Use unique element names for the input parameters of the services operations.
9. Bug:
Once items 1, 2 and 8 above are taken care of, jwsc fails with the following error:
java.lang.AssertionError: java.lang.ClassNotFoundException: weblogic.j2ee.descriptor.ApplicationBeanImpl
This seems to be due to the weblogic.jar file not being in the System Classpath.
However, I should note that when I set verbose="on" and debug="on" in the jwsc ant task, there was a message from the task which stated "[jwsc] [search path for class files: [big freakin’ jar list]". In the big freakin’ jar list, I did find weblogic.jar and weblogic.jar has the required ApplicationBeanImpl. This indicates to me that the jwsc task does not fully honor either its classpathref attribute, nor an embedded classpath element.
Work around: Make sure the weblogic.jar is in the System Classpath.
10. Bug:
I fixed bug #9 by running a setDomainEnv script and then ran my ant task. This time I received the following output:
ant build-serviceBuildfile: build.xml
build-service:
[jwsc] 1 JWS files will be processed.
[jwsc] Processing JWS: C:\IDE\workspace\Acre-WL9.1\src\com\wendys\services\acre\AppReleaseServiceImpl.java
[jwsc] JWS: C:\IDE\workspace\Acre-WL9.1\src\com\wendys\services\acre\AppReleaseServiceImpl.java Validated.
[AntUtil.deleteDir] Deleting directory <some temporary directory>
BUILD FAILED
java.lang.ExceptionInInitializerError
At this point, I am completely stymied about how to proceed.
I wonder what new issues await once this 10th issue is addressed.
Really, is this tool set ready for prime time?<i>Sorry to hear you are having so many issues with using the WLS 9.1 web service Ant tasks, inside of Eclipse.
I generally create a User Library for the couple weblogic jars needed, and use it (the User Library) in my Eclipse projects that I create JWSes in.</i><br>
I also have a separate WebLogic Library in Eclipse (actually 2 libraries since I work with WL 8.1 and now WL 9.1). As you may know, one of the long-standing issues with the Ant integration within Eclipse is the fact that Ant, being an External Tool, does not receive the Project-specific Paths/Libraries. However, since most Java-relevant Ant tasks can take classpath and classpathref attributes, this is usually not an issue. In the case of the BEA-supplied wsdlc Ant task, it is apparent from the verbose/debug console output that wsdlc can see the jars in its classpathref, but it ignores those references when resolving class references and instead only uses the system classpath.
<p>
<i>I've only needed the weblogic.jar and xbean.jar, not all the ones you mentioned in an earlier thread of this post.</i><br>
I have not tried to winnow down exactly which jars are required. I simply included all the jars that exist and were added to the system classpath by the setDomainEnv.bat file created by WebLogic 9.1.
<p>
<i>Afterwards, I create an Ant Builder to build the JWS Web Service EAR, as opposed to fiddlin' with Eclipse.</i><br>
I too use Ant to build my deployable archives. Eclipse is simply my IDE of choice. I validated that all the issues I listed occurred when running Ant from the command line.
<p>
<i>If you are interested in how I do it, send me an e-mail (to [email protected]), and I'll send you a zip of one of these JWS projects. The build.xml script for the project, takes care of a lot of the "annoyances" you mentioned, one of which I think is not accurate. I have never had a situation where the wsdlc Ant task "overwrote" my XXXImpl.java file..</i><br>
Since I'm doing a POC to determine how we want to proceed with developing Web Services and an SOA in general, I tried to perform the same tasks using Axis 2 1.0, the WebLogic 9.1 tools, and XFire 1.1. Overwriting the Impl class is a common failing in the tools which take a WSDL and create Java source files for all three frameworks.
<p>
Try my scenario. Add another operation to an existing WSDL, and run the wsdlc Ant Task. The old IMPL class will be over-written.
<p>
Because of this, I have a separate Impl class and I make sure that all its methods and annotations match the methods and annotations in the Skeleton Impl class created by wsdlc.
<p>
<i>Maybe that's because I use the <exec> Ant task with jar.exe (the xvf options) in my build.xml, to only get what I need out of the .jar/.zip the wsdlc generates. I'm typically only interest in the interface class that my XXXImpl.java file needs to implements, because I use XMLBeans for the input args (and return values) of my web service operations.</i><br>
Perhaps. I am not using XMLBeans in any of the three frameworks because the resulting service seems to be lighter-weight in all three frameworks if XMLBeans is not used. I'm sure there will be scenarios where XMLBeans is preferred, but I have not encountered that case in this POC.
<p>
<i>Regards,
Mike Wooten</i>
Thanks for the follow-up.
Mike McAngus -
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>
Maybe you are looking for
-
can you write an if statement in your css code that if the name of a particular web page is something, apply one css style otherwise apply another.
-
Apple Mail links will not open in Firefox. The address bar and page are blank.
I have just upgraded Firefox to version 4.0 and when I receive an email with a link in it, the link will not work. Firefox will load but the page is blank and the web address bar will sometimes show the link and sometimes not. If I cut and paste the
-
OWB 10gR2 documentation on Audit Tables
I want to review the schema and any description on the details of the Runtime audit tables and reports. I did a search on the User guide and only find the Audit Tables referred to but without any detail information. Suggestions? Jim Peterson
-
This is absolutely KILLING me guys...I'm trying to record a new song on Adobe Audition. I have the intrumental all laid out, good to go. I record, I'm on point and it sounds good. I play it back, and it is totally out of sync. My vocals are preced
-
Hi. I know hot to do i18n of ADF-based messages. I have read a lot how to do i18n of trinidad messages like "You must enter a value.". And I have found that you have to define inside faces-config.xml <faces-config version="2.0" xmlns="http://java.sun