Re: running junit from ant
Hi Stefan, of course I've tried different formatters, with and without "usefile". But I don't get any output. Only when I use the .class extension in the filename for the TestSuite class I get an ClassNotFoundException, otherwise nothing happens. Thanks, Lothar "Ant Users List" schrieb am 11.01.06 06:04:45: > > On Tue, 10 Jan 2006, Lothar Krenzien <[EMAIL PROTECTED]> wrote: > > > When I run a JUnit test suite from ant I would like to see at least > > the result of the tests. At the moment only errors are logged. > > That's what the brief formatter does. But you should be getting the > summary given your task. > > It sounds as if you wanted to use the plain formatter instead of the > brief one. > > Stefan > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Force PATH env variable - Enabling .DLL loading
[EMAIL PROTECTED] wrote: If a .dll depends on another .dll, then it must be found in the system-specific, on Windows the Path (on *nix, LD_LIBRARY_PATH usually). So to be platform "independend" you use both? Jan What version of Unix are you running that loads DLLs? :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: taskdef with classpathref not working
Michael Alexander wrote: I want to be able to define task's that use either the axis-1_1 or the axis-1_2_1 jars depending upon the value of a property. The intent is to avoid having users explicitly set their CLASSPATH before invoking the build. I have found examples such as the following that appear to be exactly what I want but I have not been able to get this (or a large number of other variants) to work. I'm running java 1.4.2 with ant 1.6.0 on linux. This runs great, the conditional is triggered correctly, the axis classpath is set correctly, but I get the following error upon build. init_axis-1_2_1: [echo] Setting axis.classpath to **/*.jar in /opt/jlib/axis-1_2_1/lib [echo] axis.classpath=/opt/jlib/axis-1_2_1/lib/activation.jar:/opt/jlib/axis-1_2_1/lib/axis-ant.jar:/opt/jlib/axis-1_2_1/lib/axis.jar:/opt/jlib/axis-1_2_1/lib/commons-discovery-0.2.jar:/opt/jlib/axis-1_2_1/lib/commons-httpclient-3.0-rc2.jar:/opt/jlib/axis-1_2_1/lib/commons-logging-1.0.4.jar:/opt/jlib/axis-1_2_1/lib/jaxrpc.jar:/opt/jlib/axis-1_2_1/lib/log4j-1.2.8.jar:/opt/jlib/axis-1_2_1/lib/mailapi_1_3_1.jar:/opt/jlib/axis-1_2_1/lib/saaj.jar:/opt/jlib/axis-1_2_1/lib/servlet.jar:/opt/jlib/axis-1_2_1/lib/wsdl4j-1.5.1.jar:/opt/jlib/axis-1_2_1/lib/xercesImpl.jar:/opt/jlib/axis-1_2_1/lib/xmlParserAPIs.jar BUILD FAILED /u01/opt/apps/share/lib/moSoap/moSoap-2.0.3X.xml:111: taskdef A class needed by class org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask cannot be found: org/apache/axis/utils/DefaultAuthenticator at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:501) at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:214) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237) at org.apache.tools.ant.Project.executeTargets(Project.java:1094) at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) Caused by: java.lang.NoClassDefFoundError: org/apache/axis/utils/DefaultAuthenticator The class is definitely on the classpath. Anyone know what gives? It looks like axis-ant.jar is being loaded, but part of axis.jar itself is not being picked up. Make sure there is no other axis-ant.jar in your classpath (do -diagnostics) to make sure it hasnt crept in Other points -there is a properties file somewhere under org.apache.axis.tools.ant. that defines all the ant tasks that axis includes -instead of two targets to set up the path and tasks, you could have one target which chooses a different axis.home value depending on a switch, then use that ...etc. I would also point out that Axis1.3 is newly out, and that I would really not use axis1.1 in a production system, due to some bugs, especially its quirky handling of mustUnderstand. -steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: Force PATH env variable - Enabling .DLL loading
>>>If a .dll depends on another .dll, then it must be found in the >>>system-specific, on Windows the Path (on *nix, LD_LIBRARY_PATH >>>usually). >> >> >> So to be platform "independend" you use both? >> >> >> >> >> >> Jan > >What version of Unix are you running that loads DLLs? :) Winix XP :-O That approach should work for unix and windows. An additional environment entry shouldnt make trouble. But the "right" key is set. Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MULTI DEPLOYMENT
Steve, I have been looking at using Ant for application deployment to multiple servers. I see there is a known problem with ant 1.6.5 where a sshexec request will close stdout. This can be patched, but this problem is pretty serious since multiple sshexec requests would be needed. I have been looking at the documentation for SmartFrog. Can you point out a doc that describes the issues of deployment? This would include distribution of build files, execution of deployment scripts, configuration, and logging/notification? Thanks much! --glenn On 1/4/06, Steve Loughran <[EMAIL PROTECTED]> wrote: ... > If it is more complex you have just entered the world of systems > management. This is no longer a build-time step, it is something that > operations want to get involved in too. SmartFrog (http://smartfrog.org) > is one option. Others are > > -the premium big-system management tools like the Microsoft Datacenter > thing, > -linux rpms (that is, package everything as rpms and use your server's > RPM tools to install stuff). > -cfengine (unix/linux only) > -bcfg > -lcfg (lcfg.org) > > Large-Scale CM is still a research topic. 3 machines is solved. 500+ > nodes is considered leading edge. > http://config.sage.org/faq.html > http://homepages.informatics.ed.ac.uk/group/lssconf/ > > Before you try any of this, find out who will be in charge of keeping > the machine operational and talk to them. Find out what they > like/dislike, and work with them to come up with a solution that > everyone is happy with. > > > -Steve > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ant War Problem
Hi, I'm using JDev 10g which uses Ant v 1.5.4. I'm having difficulty with the WAR task in Ant. I have: and I get an error: No directory specified for ZipFileSet and it points me to the first line of the Ant code above. Anyone know what it's really complaining about? Thnx - Yahoo! Photos Got holiday prints? See all the ways to get quality prints in your hands ASAP.
Re: running junit from ant
On 11/01/06, Lothar Krenzien <[EMAIL PROTECTED]> wrote: > > > Hi Stefan, > > of course I've tried different formatters, with and without "usefile". But > I don't get any output. Only when I use the .class extension in the filename > for the TestSuite class I get an ClassNotFoundException, otherwise nothing > happens. > > Thanks, Lothar > > "Ant Users List" schrieb am 11.01.06 06:04:45: > > > > On Tue, 10 Jan 2006, Lothar Krenzien <[EMAIL PROTECTED]> wrote: > > > > > When I run a JUnit test suite from ant I would like to see at least > > > the result of the tests. At the moment only errors are logged. > > > > That's what the brief formatter does. But you should be getting the > > summary given your task. > > > > It sounds as if you wanted to use the plain formatter instead of the > > brief one. > > > > Stefan > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > __ > Verschicken Sie romantische, coole und witzige Bilder per SMS! > Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Hi, I am not quite sure if I understood you correctly but let me write these: First Stefan is absolutely right - the fornatter nested element has "type" attribute, which should be set to one of these: brief(will only generate info for the testcases that failed), plain(will generate statistics for all the testcases), xml (will generate a xml infos). Second - according to the manual: "The name of the file is determined by the name of the test and can be set by the outfile attribute of ." So why don't you try this and tell us what happened? HTH -- Regards, Petar!
Re: Force PATH env variable - Enabling .DLL loading
On 1/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >If a .dll depends on another .dll, then it must be found in > >the system-specific, on Windows the Path (on *nix, > >LD_LIBRARY_PATH usually). > > So to be platform "independend" you use both? > > > > Jokes appart, to really be as platform "independent" as one can be when not doing 100% pure Java, using java.library.path only is the way to go. This implies using JNI native libraries which are mostly "self-containted", i.e. don't depend on other native libs (.dll, .so, etc... Steve ;-) except for system libraries found by default. But even Path/LD_LIBRARY_PATH can be hacked around I think, as I've seen one clever developer do, by "pre-emptive" loading of the libs depended upon using System.loadLibrary... You need JNI lib Top, which depends on Middle, which depends on Bottom, and by System.loadLibrary("Bottom") first explictly, then "Middle", and then finally "Top", it seems to work and "Top" has all its dependencies already satified. Weird, I know, but this developer was using this hack to work around WebStart limitations regarding Java apps that required native JNI libs. Not recommended for the faint of heart ;-) Some developers are too clever for their own good ;-))) I'd never have thought of this scheme. --DD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running junit from ant
Hi Petar, the problem is, that I want to execute a JUnit test suite (not only a single test) genereted by the eclipse wizard, but don't get any output/statistics ... back. As I said I tried it with different formatters, different versions of the test suite name (with and without package name, with dots or slashes, with and without '.class' as file type and so on). Also I've read several tutorials I found somewhere. In all cases either no statistics are generated or sometimes I get a ClassNotFoundException while the class is in the classpath. Also I'm sure that the ant task is executed because of some dummy messages I included. I've just tried it with the 'test'-task instead of 'batchtest' , but with no success. Could it be a problem that I use log4j for logging ? But the test classes don't use it at the moment, only assertXXX, fail or exception.printStackTrace(). With the eclipse plugin it works without any problems. Thanks, Lothar "Ant Users List" schrieb am 11.01.06 15:32:37: > > On 11/01/06, Lothar Krenzien <[EMAIL PROTECTED]> wrote: > > > > > > Hi Stefan, > > > > of course I've tried different formatters, with and without "usefile". But > > I don't get any output. Only when I use the .class extension in the filename > > for the TestSuite class I get an ClassNotFoundException, otherwise nothing > > happens. > > > > Thanks, Lothar > > > > "Ant Users List" schrieb am 11.01.06 06:04:45: > > > > > > On Tue, 10 Jan 2006, Lothar Krenzien <[EMAIL PROTECTED]> wrote: > > > > > > > When I run a JUnit test suite from ant I would like to see at least > > > > the result of the tests. At the moment only errors are logged. > > > > > > That's what the brief formatter does. But you should be getting the > > > summary given your task. > > > > > > It sounds as if you wanted to use the plain formatter instead of the > > > brief one. > > > > > > Stefan > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > __ > > Verschicken Sie romantische, coole und witzige Bilder per SMS! > > Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > Hi, I am not quite sure if I understood you correctly but let me write > these: > First Stefan is absolutely right - the fornatter nested element has "type" > attribute, which should be set to one of these: brief(will only generate > info for the testcases that failed), plain(will generate statistics for all > the testcases), xml (will generate a xml infos). > Second - according to the manual: > "The name of the file is determined by the name of the test and can be set > by the outfile attribute of ." > So why don't you try this and tell us what happened? > HTH > > -- > Regards, Petar! > __ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: scope of types
well am raising a question based on my observation. -Original Message- From: Jeffrey E Care [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 8:09 PM To: Ant Users List Subject: Re: scope of types I'm sorry, is there a question in there, or are you making a statement? -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) "shreedhar natarajan" <[EMAIL PROTECTED]> wrote on 01/10/2006 07:46:21 PM: > Hi all, > > Does n't ant support type scope. i.e. I define property in one > target and access it another target. Ant allows this. So that this > mean everything defined is project scope. > > Thanks, > > Shreedhar > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exec
In ant api class Exec is reported as deprecated. Which is the class that implements task ? Thanks, Shreedhar -Original Message- From: shreedhar natarajan [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 10:50 AM To: Ant Users List Subject: RE: scope of types well am raising a question based on my observation. -Original Message- From: Jeffrey E Care [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 8:09 PM To: Ant Users List Subject: Re: scope of types I'm sorry, is there a question in there, or are you making a statement? -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) "shreedhar natarajan" <[EMAIL PROTECTED]> wrote on 01/10/2006 07:46:21 PM: > Hi all, > > Does n't ant support type scope. i.e. I define property in one > target and access it another target. Ant allows this. So that this > mean everything defined is project scope. > > Thanks, > > Shreedhar > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exec
I believe that this question has been asked before... I am assuming you have access to the ANT source code...please look at the default.properties file (in the src\main\org\apache\tools\ant\taskdefs directory). The file contains the mapping between task name to implementation class. Enjoy, Ninju - Original Message From: shreedhar natarajan <[EMAIL PROTECTED]> To: Ant Users List Sent: Wednesday, January 11, 2006 10:02:45 AM Subject: Exec In ant api class Exec is reported as deprecated. Which is the class that implements task ? Thanks, Shreedhar -Original Message- From: shreedhar natarajan [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 10:50 AM To: Ant Users List Subject: RE: scope of types well am raising a question based on my observation. -Original Message- From: Jeffrey E Care [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 8:09 PM To: Ant Users List Subject: Re: scope of types I'm sorry, is there a question in there, or are you making a statement? -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) "shreedhar natarajan" <[EMAIL PROTECTED]> wrote on 01/10/2006 07:46:21 PM: > Hi all, > > Does n't ant support type scope. i.e. I define property in one > target and access it another target. Ant allows this. So that this > mean everything defined is project scope. > > Thanks, > > Shreedhar > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exec
Hello, --- Ninju Bohra <[EMAIL PROTECTED]> wrote: > I believe that this question has been asked > before... > > I am assuming you have access to the ANT source > code... It can be checked event without the ant's source code by looking at http://svn.apache.org/viewcvs.cgi/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/defaults.properties?view=markup > please look at the default.properties file > (in the src\main\org\apache\tools\ant\taskdefs > directory). The file contains the mapping between > task name to implementation class. > > Enjoy, > > Ninju > > > - Original Message > From: shreedhar natarajan <[EMAIL PROTECTED]> > To: Ant Users List > Sent: Wednesday, January 11, 2006 10:02:45 AM > Subject: Exec > > > In ant api class Exec is reported as deprecated. > Which is the class that implements task ? > > Thanks, > Shreedhar > > > -Original Message- > From: shreedhar natarajan > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 11, 2006 10:50 AM > To: Ant Users List > Subject: RE: scope of types > > > > well am raising a question based on my observation. > > -Original Message- > From: Jeffrey E Care [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 10, 2006 8:09 PM > To: Ant Users List > Subject: Re: scope of types > > > I'm sorry, is there a question in there, or are you > making a statement? > > -- > Jeffrey E. Care ([EMAIL PROTECTED]) > WebSphere v7 Release Engineer > WebSphere Build Tooling Lead (Project Mantis) > > > "shreedhar natarajan" <[EMAIL PROTECTED]> wrote on > 01/10/2006 07:46:21 > PM: > > > Hi all, > > > > Does n't ant support type scope. i.e. I define > property in one > > target and access it another target. Ant allows > this. So that this > > mean everything defined is project scope. > > > > Thanks, > > > > Shreedhar > > > > > - > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cpp task
Hi all, How does the cpp task makes a decision to compile/not to compile a cpp file. How about the objs are re-created if they are dirty. I know in java ant compares the date of the src with the class file. Thanks Shreedhar -Original Message- From: shreedhar natarajan [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 10:50 AM To: Ant Users List Subject: RE: scope of types well am raising a question based on my observation. -Original Message- From: Jeffrey E Care [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 10, 2006 8:09 PM To: Ant Users List Subject: Re: scope of types I'm sorry, is there a question in there, or are you making a statement? -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) "shreedhar natarajan" <[EMAIL PROTECTED]> wrote on 01/10/2006 07:46:21 PM: > Hi all, > > Does n't ant support type scope. i.e. I define property in one > target and access it another target. Ant allows this. So that this > mean everything defined is project scope. > > Thanks, > > Shreedhar > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: scope of types
You might want to read up on this then: http://www.catb.org/~esr/faqs/smart-questions.html -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) "shreedhar natarajan" <[EMAIL PROTECTED]> wrote on 01/11/2006 10:50:11 AM: > > well am raising a question based on my observation. > > -Original Message- > From: Jeffrey E Care [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 10, 2006 8:09 PM > To: Ant Users List > Subject: Re: scope of types > > > I'm sorry, is there a question in there, or are you making a statement? > > -- > Jeffrey E. Care ([EMAIL PROTECTED]) > WebSphere v7 Release Engineer > WebSphere Build Tooling Lead (Project Mantis) > > > "shreedhar natarajan" <[EMAIL PROTECTED]> wrote on 01/10/2006 07:46:21 > PM: > > > Hi all, > > > > Does n't ant support type scope. i.e. I define property in one > > target and access it another target. Ant allows this. So that this > > mean everything defined is project scope. > > > > Thanks, > > > > Shreedhar > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
Re: taskdef with classpathref not working
Thanks to Steve and Stefan! In experimenting, I had put the axis-ant.jar in $ANT_HOME/lib and that was the root of the classloading problem as described in the faq. I was able to quickly determine this to be the case by running an "ant -diagnostics". Steve Loughran wrote: Michael Alexander wrote: I want to be able to define task's that use either the axis-1_1 or the axis-1_2_1 jars depending upon the value of a property. The intent is to avoid having users explicitly set their CLASSPATH before invoking the build. I have found examples such as the following that appear to be exactly what I want but I have not been able to get this (or a large number of other variants) to work. I'm running java 1.4.2 with ant 1.6.0 on linux. classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask" classpathref="axis.classpath"> This runs great, the conditional is triggered correctly, the axis classpath is set correctly, but I get the following error upon build. init_axis-1_2_1: [echo] Setting axis.classpath to **/*.jar in /opt/jlib/axis-1_2_1/lib [echo] axis.classpath=/opt/jlib/axis-1_2_1/lib/activation.jar:/opt/jlib/axis-1_2_1/lib/axis-ant.jar:/opt/jlib/axis-1_2_1/lib/axis.jar:/opt/jlib/axis-1_2_1/lib/commons-discovery-0.2.jar:/opt/jlib/axis-1_2_1/lib/commons-httpclient-3.0-rc2.jar:/opt/jlib/axis-1_2_1/lib/commons-logging-1.0.4.jar:/opt/jlib/axis-1_2_1/lib/jaxrpc.jar:/opt/jlib/axis-1_2_1/lib/log4j-1.2.8.jar:/opt/jlib/axis-1_2_1/lib/mailapi_1_3_1.jar:/opt/jlib/axis-1_2_1/lib/saaj.jar:/opt/jlib/axis-1_2_1/lib/servlet.jar:/opt/jlib/axis-1_2_1/lib/wsdl4j-1.5.1.jar:/opt/jlib/axis-1_2_1/lib/xercesImpl.jar:/opt/jlib/axis-1_2_1/lib/xmlParserAPIs.jar BUILD FAILED /u01/opt/apps/share/lib/moSoap/moSoap-2.0.3X.xml:111: taskdef A class needed by class org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask cannot be found: org/apache/axis/utils/DefaultAuthenticator at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:501) at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:214) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237) at org.apache.tools.ant.Project.executeTargets(Project.java:1094) at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) Caused by: java.lang.NoClassDefFoundError: org/apache/axis/utils/DefaultAuthenticator The class is definitely on the classpath. Anyone know what gives? It looks like axis-ant.jar is being loaded, but part of axis.jar itself is not being picked up. Make sure there is no other axis-ant.jar in your classpath (do -diagnostics) to make sure it hasnt crept in Other points -there is a properties file somewhere under org.apache.axis.tools.ant. that defines all the ant tasks that axis includes -instead of two targets to set up the path and tasks, you could have one target which chooses a different axis.home value depending on a switch, then use that ...etc. I would also point out that Axis1.3 is newly out, and that I would really not use axis1.1 in a production system, due to some bugs, especially its quirky handling of mustUnderstand. -steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Javadoc problem
I'm having an odd problem with a Javadoc task in Ant 1.6.5. I'm using Eclipse but I have a second copy of Ant 1.6.5 outside of Eclipse and the exact same thing happens regardless of whether I run the build within Eclipse or outside of it. The Javadoc is writing the docs for 5 packages. I've created a package-info.java file for each of those packages with a few lines of documentation. Each package-info.java file was created in the same way and has similar brief contents with similar Javadoc tags. However, when I look at the generated Javadocs, I'm only getting the package comments for one of the five packages; the rest don't appear to have been 'seen' by the Javadoc task. I don't know how to debug this. If none of the package-info documentation was appearing, I'd assume I'd created those files incorrectly or had specified parameters to the javadoc task incorrectly. But one of the five worked just fine while the other four didn't get picked up, even though all were created in exactly the same way. Can anyone suggest a strategy to figure out why _some_ of the package-info documentation isn't appearing? Let me explain a little more clearly what is and isn't appearing in my Javadocs. My five package names are: - com.foo.common - com.foo.common.utilities - com.foo.resume - com.foo.resume.misc - com.foo.resume.Resources First, in the Javadoc overview, each of my five packages are showing up in the Other Packages table. Only one of them, com.foo.resume.Resources, has a comment in the second column; that comment is the one from the first line of the package-info.java file for that package. The other four packages have no comments at all in the Other Packages table. On the "package" pages for each package, the Enum Summary, Class Summary, and Interface Summary tables contains the names of the appropriate enums, classes, and interfaces and each of them has a comment, taken from the Javadoc comments for the individual enum, class or interface. However, only com.foo.resume.Resources has the package-info.java comments for its classes. The contents of each package-info.java file look like this: /** * This package contains blah blah blah. * * @author Rhino * @version 1.0 */ package com.foo.resume; (Naturally, the package name in the package statement varies in each case. Each package-info.java file is situated in the source tree of its package and contains its proper package name.) This is my javadoc task: -- overview="${resume.html.dir}\javadoc_overview.html" doctitle="Resume Overview" classpath="${iText.jar}:${common.bin}" description="Generate Javadocs for the project"> http://java.sun.com/j2se/1.5.0/docs/api"/> -- Can anyone help me figure out what is going wrong here? --- Rhino -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.17/226 - Release Date: 10/01/2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant War Problem
On Wednesday 11 January 2006 9:14 am, General Email wrote: > Hi, > >I'm using JDev 10g which uses Ant v 1.5.4. > > I'm having difficulty with the WAR task in Ant. I have: > > > > > > and I get an error: > > No directory specified for ZipFileSet > > and it points me to the first line of the Ant code above. > Anyone know what it's really complaining about? > > Thnx > > > - > Yahoo! Photos > Got holiday prints? See all the ways to get quality prints in your hands > ASAP. I'll take a stab and suggest u put a dir attribute on your war task. My docs say it's not required but since you're using the webxml attribute I'm guessing it's creating an implicit zipfileset object to prefix the web.xml file accordingly in your final output war file. I'm also guessing that since the implicit zipfileset is being used it needs a base dir from which to upll files from. -- Clifton C. Craig, Software Engineer Intelligent Computer Systems - A Division of GBG [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Property not resolving
On Tuesday 10 January 2006 7:44 pm, shreedhar natarajan wrote: > Hi all, > > I have a strange problem. > > I have a filelist defined in say filelist.xml and I have a main build.xml > that imports this filelist.xml. filelist refers to 2 properties. for eg. > > id="bb_db" dir="${prop1}" > files="${prop1}\ab.java > ${prop2}\dc.java > > > The property prop1 is defined in build.xml while prop2 I read from a > property file during an execution of a target in build.xml. I use the above > filelist in my custom task that too in the build.xml. When invoking the > custom task, prop1 is resolving to its value while prop2 does not seem to > resolve. Am i missing something here ? > > Thanks > > Best rgds > Shreedhar > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] I'm not sure but it could be an order of operations thing here. If the filelist is defined outside of any target it could be trying to expand prop2 before the target where it is defined is executed. I would suggest defining the filelist in the target where prop2 is defined or in another target executed after the target defining prop2. You didn't say but I'm guessing that prop1 is defined outside of any target. Then again I could be completely wrong on this. Those properties might get defined when the filelist is instantiated (used or referenced in the build). In that case I would make sure prop2 is defined before the filelist is instantiated. -- Clifton C. Craig, Software Engineer Intelligent Computer Systems - A Division of GBG [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant War Problem
On Wed, 11 Jan 2006, General Email <[EMAIL PROTECTED]> wrote: >I'm using JDev 10g which uses Ant v 1.5.4. Which is rather old (your version of Ant, that is). > > > I would expect a warning that your task was trying to add WEB-INF/web.xml twice, but not > No directory specified for ZipFileSet Are you sure that this is the complete task definition? The only ZipFileSet I can see is the one Ant creates internally to handle the webxml attribute, and that should work. Unless you'd be mixing versions of Ant in some place. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running junit from ant
On Wed, 11 Jan 2006, Lothar Krenzien <[EMAIL PROTECTED]> wrote: > of course I've tried different formatters, with and without > "usefile". But I don't get any output. Strange. It should work, and it does for many people, including myself. Can you run ant -debug to see what is going on in your case? Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: scope of types
On Wed, 11 Jan 2006, shreedhar natarajan <[EMAIL PROTECTED]> wrote: > well am raising a question based on my observation. The problem is that the question isn't easy to identify from your post. Are you asking whether properties are scoped in Ant? No, they are not. When a task is executed it creates a property at project scope and the property is accessible to all other tasks running after that task. and friends creates a new project scope and there is no (simple) way to transfer properties defined in that child scope back to the outer scope. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EJB compile
Hi, I need to compile my Beans: create stubs and skeletons. I need to deploy them on Websphere. Does anyone knows how to do that? I saw that task is supported only for Weblogic, in addition I did not see any EJB compile task defined in Websphere's ANT tasks. Can anyone give a hint or help? Many thanks, Uri Zeituni
Re: EJB compile
On 12/01/06, Uri Zeituni <[EMAIL PROTECTED]> wrote: > > Hi, > I need to compile my Beans: create stubs and skeletons. I need to deploy > them on Websphere. Does anyone knows how to do that? > I saw that task is supported only for Weblogic, in addition I did > not see any EJB compile task defined in Websphere's ANT tasks. > Can anyone give a hint or help? > Many thanks, > Uri Zeituni > > The Websphere Application Server provides a set of Ant tasks, and wsejbdeploy will create stubs and skeletons for you. More info here: http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/javadoc/ae/com/ibm/websphere/ant/tasks/WsEjbDeploy.html