classpath problem with jsch

2009-11-21 Thread Johannens Zillmann
Dear ant users, i have a problem using the ant's Scp in my custom ant task. When executing my custom ant task (via ant) i get a ClassNotFoundException: com/jcraft/jsch/UserInfo. But the class is definitely in the classpath. Using this class in my custom task directly (before accessing Scp) gi

Re: AW: classpath problem when creating a jar

2009-04-07 Thread Luca Ferrari
On Tuesday 7 April 2009 14:55:33 Martin Gainty's cat walking on the keyboard wrote: > what does the jar's manifest display? Here it is: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 10.0-b23 (Sun Microsystems Inc.) Built-By: luca Main-Class: g2.main.Main Class-Path: aspectjrt.j

RE: AW: classpath problem when creating a jar

2009-04-07 Thread Martin Gainty
inito.it > To: user@ant.apache.org > Subject: Re: AW: classpath problem when creating a jar > Date: Tue, 7 Apr 2009 13:53:04 +0200 > > On Tuesday 7 April 2009 13:43:41 jan.mate...@rzf.fin-nrw.de's cat walking on > the keyboard wrote: > > So you got a directory layout w

Re: AW: classpath problem when creating a jar

2009-04-07 Thread Luca Ferrari
On Tuesday 7 April 2009 13:43:41 jan.mate...@rzf.fin-nrw.de's cat walking on the keyboard wrote: > So you got a directory layout with > > .../ > >| app.jar {Class-Path: ./conf } > >+-- conf > *.properties Yes, that's the final layout. But I don't get why it is not working. Luca

AW: classpath problem when creating a jar

2009-04-07 Thread Jan.Materne
>I've got my source tree that includes a conf directory with different >configuration files, including a resource bundle properties file. >Now in the jar task of my build file I've got the following entry: > > > >and before that I have a task that copies the conf directory >in the deployment dir

classpath problem when creating a jar

2009-04-07 Thread Luca Ferrari
Hi all, I've got my source tree that includes a conf directory with different configuration files, including a resource bundle properties file. Now in the jar task of my build file I've got the following entry: and before that I have a task that copies the conf directory in the deployment dir

classpath problem with custom task

2008-11-24 Thread Michelle Lin
Hi experts, I'm having strange classpath problem with custom task. The ANT version I use is: Apache Ant version 1.7.0 compiled on December 13 2006 and the JAVA version is 1.6 I have a java class XYZ.java that calls JMX client APIs to get mbean server and then get the mbean and invok

Re: Classpath problem / getting StarTeam tasks to work...

2008-03-12 Thread Ken Turner
I use StarTeam successfully simply by using the following -lib parameter when I call Ant: -lib "C:\Program Files\Borland\StarTeam SDK 2005\Lib" -- View this message in context: http://www.nabble.com/Classpath-problem---getting-StarTeam-tasks-to-work...-tp15499112p16001862.html Sen

Classpath problem / getting StarTeam tasks to work...

2008-02-15 Thread Robert Campbell
Hello, I can't seem to get the StarTeam tasks working in my ant script. I keep getting the following error: BUILD FAILED java.lang.NoClassDefFoundError: com/starbase/starteam/File I have the StarTeam 2006 R2 client installed. I have taken the " starteam93.jar" from ...\Borland\StarTeam SDK 9.3\L

Re: Java task, classpath problem

2007-08-28 Thread Ognjen Blagojevic
Hi Peter, Thanks for your answer. And sorry for late reply, I was on vacation. Peter Reilly wrote: The task does strange things with the classloader. My advice would be to use fork="yes" unless there is a reason not to. Yes, I see. fork="yes" solved the problem. As regards the exception y

Re: Java task, classpath problem

2007-08-16 Thread Peter Reilly
The task does strange things with the classloader. My advice would be to use fork="yes" unless there is a reason not to. As regards the exception you are seeing, this is as far as I can see behaviour as designed. If one gives a classpath to the task, the classname *must* be in the classpath, fo

Java task, classpath problem

2007-08-10 Thread Ognjen Blagojevic
Hi, Can someone try to explain this behavior of java ant task: gives: java.lang.NoSuchMethodException: (...)ContextFactory.main Which is what I expected. ContextFactory is class in JRE's lib rt.jar, java task can find it, but it does not have main method. However, this task:

Re: Java task classpath problem

2006-08-01 Thread Andrew Goktepe
2ee.rmi.RMIInitialContextFactory as the initail context >> factory. >> I have done everything obvious to solve this problem but to no avail. Has >> anybody had any similar experiences and if so, how did they resolve them? >> >> Thanks >> >> Angus >>

Re: Java task classpath problem

2006-08-01 Thread Angus Rose
t; factory. >> I have done everything obvious to solve this problem but to no avail. Has >> anybody had any similar experiences and if so, how did they resolve them? >> >> Thanks >> >> Angus >> -- &

Re: Java task classpath problem

2006-07-31 Thread Andrew Goktepe
nce of oracle.j2ee.rmi.RMIInitialContextFactory as the initail context factory. I have done everything obvious to solve this problem but to no avail. Has anybody had any similar experiences and if so, how did they resolve them? Thanks Angus -- View this message in context: http://www.nabble.com/Java-task-classpath-p

Java task classpath problem

2006-07-31 Thread Angus Rose
://www.nabble.com/Java-task-classpath-problem-tf2026624.html#a5573041 Sent from the Ant - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

A junit classpath problem on unix (same script/setup works on WinXP)

2006-07-11 Thread Master, Tariq \(Abbeywood\)
Environment: Solaris 9, Ant 1.6.5 ANT_HOME set. JDK: 1.4.2_04-b05 junit.jar and other external libraries in ~/.ant/lib/ When I run my test target, I get: test: Override ignored for property reports.junit.dir [junit] Found /export/home/myuser/.ant/lib/junit.jar [junit] Found /opt/ant/lib

Re: classpath problem using the java task

2006-07-05 Thread James Fuller
to access env vars (http://ant.apache.org/manual/index.html) and then echo out. though its best to leave nothing to chance and completely control either via a batch script that runs Ant or definition in ant build file things like PATH, etc... gl, Jim Fuller ---

Re: classpath problem using the java task

2006-07-05 Thread James Abley
ant -v or ant -d for more verbose output as to what ANT is doing. Jeffrey E Care wrote: Check out your property definition for appserver-home. Jeffrey E. (Jeff) Care [EMAIL PROTECTED]

Re: classpath problem using the java task

2006-07-04 Thread Jeffrey E Care
Check out your property definition for appserver-home. Jeffrey E. (Jeff) Care [EMAIL PROTECTED] IBM WebSphere Application Server Development WAS Pyxis Lead Release Engineer Douglas Dunn <

Re: classpath problem using the java task

2006-07-04 Thread Dominique Devienne
From http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html#options -jar Execute a program encapsulated in a JAR file. The first argument is the name of a JAR file instead of a startup class name. In order for this option to work, the manifest of the JAR file must contain a line of the f

classpath problem using the java task

2006-07-04 Thread Douglas Dunn
Like many programmers, I pride myself in no wasting other programmer's time by always making a best effort to find my own answers. BUT, I have just spend almost the entire Forth of July trying to find out why this VERY BASIC ant project fails. The problem is that ant cannot find the j2ee.jar ext

Re: Re: AW: ant fileproperties task classpath problem

2006-06-14 Thread Dexter Riley
Aha. although 'which ant' returns the right version of ant, there is an /etc/ant.conf. Removing it fixed the problem! Thanks to Jan, Antoine, and Peter for the help! -- View this message in context: http://www.nabble.com/ant-fileproperties-task-classpath-problem-t1784395.html#a48

Re: Re: AW: ant fileproperties task classpath problem

2006-06-14 Thread Peter Reilly
class or a class needed to create a field cannot be found. Regards, Antoine Original-Nachricht Datum: Wed, 14 Jun 2006 07:00:46 -0700 (PDT) Von: Dexter Riley <[EMAIL PROTECTED]> An: user@ant.apache.org Betreff: Re: AW: ant fileproperties task classpath problem > &

Re: Re: AW: ant fileproperties task classpath problem

2006-06-14 Thread Antoine Levy-Lambert
AIL PROTECTED]> An: user@ant.apache.org Betreff: Re: AW: ant fileproperties task classpath problem > > Thanks for the quick reply! I'm using the official binary, downloaded > yesterday. > > ant -version > Apache Ant version 1.6.5 compiled on May 3 2006 > >

Re: AW: ant fileproperties task classpath problem

2006-06-14 Thread Dexter Riley
empty CLASSPATH, but keep getting the same problem. -Dex -- View this message in context: http://www.nabble.com/ant-fileproperties-task-classpath-problem-t1784395.html#a4865384 Sent from the Ant - Users forum at Nabble.com. ---

AW: ant fileproperties task classpath problem

2006-06-14 Thread Jan.Materne
>Here's my configuration: > >JDK 1.5.0_07 installed to /usr/local/jdk1.5.0_07 >Ant 1.6.5 installed to usr/local/apache-ant-1.6.5 >$ANT_HOME=/usr/local/apache-ant-1.6.5 >$JAVA_HOME=/usr/local/jdk1.5.0_07 >$PATH=[...]:/usr/local/apache-ant-1.6.5/bin:/usr/local/jdk1.5.0_07/bin seems to be ok >buil

ant fileproperties task classpath problem

2006-06-14 Thread Dexter Riley
Thanks, Ed -- View this message in context: http://www.nabble.com/ant-fileproperties-task-classpath-problem-t1784395.html#a4859808 Sent from the Ant - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Task def and classpath problem

2006-02-22 Thread ar
Hi all, I define a task and try to use it (Hibernate Schema Update). It needs a classpath initialized. Here's how I defined it : ... This works fine on Windows environment, but not on

Classpath problem

2006-02-16 Thread Paulo . Moreira
Hi all, I’m having a very odd problem concerning the used classpath in ant targets. I have target1 and target2 like this:

RE: taskdef classpath problem

2005-12-31 Thread Gunnar Sigurdsson
Thanks for you help. Your suggestion did the trick ... Gunnar On Thu, 29 Dec 2005, Rainer Noack wrote: > [cut] > > The ThreadContextClassloader is typically not your task's classloader. > > You can set the ThreadContextClassloader before instantiating > ClassPathXmlApplicationContext. > > Do

RE: taskdef classpath problem

2005-12-30 Thread Rainer Noack
o ant ;-) Cheers Rainer > -Original Message- > From: Gunnar Sigurdsson [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 29, 2005 7:12 PM > To: Ant Users List > Subject: Re: taskdef classpath problem > > > I am not loading the resources directly, that happens as

Re: taskdef classpath problem

2005-12-29 Thread Gunnar Sigurdsson
I am not loading the resources directly, that happens as a side effect of GenDDL using a class from one of these other jars. The full details are like this. Lets say GenDDL.class is in GenDDL.jar, and GenDDL.class calls a class Context.class which is in Context.jar, and that same jar contains a te

Re: taskdef classpath problem

2005-12-29 Thread Stefan Bodewig
On Wed, 28 Dec 2005, Gunnar Sigurdsson <[EMAIL PROTECTED]> wrote: > The GenDDL class depends on other jar files that are in the same > "lib" directory. When the "ddl" target is executed, ant finds the > GenDDL class and executes it, but it does not find resources in the > other jar files. How

taskdef classpath problem

2005-12-28 Thread Gunnar Sigurdsson
I am using ant version 1.6.2. I have a custom task, com.xxx.ant.abc.GenDDL, which is stored in a jar file which is in the "lib" directory indicated in the "fileset" below. The GenDDL class depends on other jar files

SOLVED Classpath problem on a unix system: PLEASE HELP NEEDED

2005-10-27 Thread hind.lwahhabi
fool me... the ant-contrib-jar did not have the read and execute permissions. Hind Lwahhabi. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thu 10/27/2005 1:35 PM To: user@ant.apache.org Subject: FW: Classpath problem on a unix system: PLEASE HELP NEEDED

FW: Classpath problem on a unix system: PLEASE HELP NEEDED

2005-10-27 Thread hind.lwahhabi
5 10:44 AM To: user@ant.apache.org Subject: Classpath problem on a unix system: PLEASE HELP NEEDED Hello , thanks for your help but i still can't sort it out:( I have written a test target to echo the properties and here is what i get(note that the lib with all the bsf jars etc.. seems to

Classpath problem on a unix system: PLEASE HELP NEEDED

2005-10-27 Thread hind.lwahhabi
ed 10/26/2005 6:29 PM To: Lwahhabi, Hind; user@ant.apache.org Subject: Re: Classpath problem on a unix system On Wed, 26 Oct 2005 18:04:14 +0200, [EMAIL PROTECTED] wrote: >Any clue? >Any help would be really welcome. Try to find out how the shell wrapper (ant) on your system builds up the

Re: Classpath problem on a unix system

2005-10-26 Thread Juergen Hermann
On Wed, 26 Oct 2005 18:04:14 +0200, [EMAIL PROTECTED] wrote: >Any clue? >Any help would be really welcome. Try to find out how the shell wrapper (ant) on your system builds up the classpath. On SuSE f.x., ant has an --execdebug option to show the classpath used to launch Ant. And also there,

Classpath problem on a unix system

2005-10-26 Thread hind.lwahhabi
Hello the list! I am porting some originally windows-created ant scripts to a unix system.Those scripts were working fine on windows. Now on unix(AIX 5.2),i have copied all the external jars that i needed under the lib folder of my ant install directory. The problem is that those jars(ant-contrib

Re: classpath problem

2005-09-05 Thread luke
Hi. 05Sep2005 @ 10:11 Petar Tahchiev thusly spake > > Probably you have to enlose the tag in your tag like > this: > > > BLAH BLAH > > Thanks! Kind regards. Luke. -- ._.. .| .| |.|/.|_ . .|__.|_|.|\.|_ . :61 421 276 282: ---

RE: classpath problem

2005-09-05 Thread RADEMAKERS Tanguy
>To: user@ant.apache.org >Subject: classpath problem > >Hi. > >I've searched for a solution on this list, faq and google. >It's probably very simple. I am a beginner with ant. > >I want to compile some files that are part of a webapp. >So they need the servlet-

Re: classpath problem

2005-09-05 Thread Petar Tahchiev
On 03/09/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi. > > I've searched for a solution on this list, faq and google. > It's probably very simple. I am a beginner with ant. > > I want to compile some files that are part of a webapp. > So they need the servlet-api.jar file. > > When I

classpath problem

2005-09-03 Thread luke
Hi. I've searched for a solution on this list, faq and google. It's probably very simple. I am a beginner with ant. I want to compile some files that are part of a webapp. So they need the servlet-api.jar file. When I run ant with the following build.xml file it can't find the javax.servlet.* cl

taskdef classpath problem when invoking ant from java

2005-04-19 Thread j.alkjaer
Hi there. I have a problem when invoking ant (1.6.1) from a Quartz job which is scheduled in a webapp I have placed the following ant jars in the webapps classpath (WEB-INF/lib) ant.jar ant-jakarta-log4j.jar (I attach a Log4jListner to my project) ant-launcher.jar (probably not needed) ant-nod

classpath problem (source code)

2005-02-23 Thread Andre Dantas Rocha
Oops...  I forgot the code package ant; import java.io.File; import org.apache.tools.ant.Project; import org.apache.tools.ant.taskdefs.Javac; import org.apache.tools.ant.types.Path; public class AntRunner { // separador de arquivos (\) public static final String FILE_SEP = (String) System

classpath problem

2005-02-23 Thread Andre Dantas Rocha
Hi, I'm trying to use Ant to compile some classes. I'm doing it via java code, creating a Project and executing it. I'm setting the Javac task classpath via Path element, but seems that Ant does not uses it. When I print the classpath it looks ok, but it doesn't work... My code is attached, an

RE: Classpath problem with Checkstyle?

2004-10-28 Thread Dominique Devienne
> From: Roberto Juarez [mailto:[EMAIL PROTECTED] > I have in structed Checkstyle to allow the @throws tag for undeclared > exceptions in the checkstyle.xml configuration file This is not Ant-related. Just add a corresponding throws XyxException declaration to the method when you have a @throws

Classpath problem with Checkstyle?

2004-10-28 Thread Roberto Juarez
Hi folks, I am using Checkstyle 3.3 under Ant 1.6.2. I have in structed Checkstyle to allow the @throws tag for undeclared exceptions in the checkstyle.xml configuration file ... ... but Checkstyle is un

Re: java task and classpath problem

2003-11-11 Thread Caoilte O'Connor
sorry. i should have been clearer. it couldn't find the class i was trying to execute (ie the one with main in). error: [java] Could not find net.sportplan.dbunit.DBUnitUtils. Make sure you have it in your class path. (DBUnitUtils is the class with main in.) debug doesn't help 'caus it doesn't

Re: java task and classpath problem

2003-11-11 Thread Stefan Bodewig
On Tue, 11 Nov 2003, Caoilte O'Connor <[EMAIL PROTECTED]> wrote: > The below fails with a "not found on classpath error" Which class is it that Ant cannot find? Does ant -debug give any hints? Stefan - To unsubscribe, e-mail:

java task and classpath problem

2003-11-11 Thread Caoilte O'Connor
Hi, I think I'm just getting very confused about basic classpath stuff. could anyone spare thirty seconds to tell me why the first of these works and the second fails. It's tryi