Hello, Thanks for the suggestion, but sadly it did not work. I created now a atcktrace:
java.lang.IllegalArgumentException: interface com.intland.codebeamer.remoting.RemoteApi is not visible from class loader at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581) at com.caucho.hessian.client.HessianProxyFactory.create(HessianProxyFactory.java:393) at com.caucho.hessian.client.HessianProxyFactory.create(HessianProxyFactory.java:365) at com.intland.codebeamer.remoting.RemoteApiFactory.create(RemoteApiFactory.java:69) at com.intland.codebeamer.remoting.RemoteApiFactory.connect(RemoteApiFactory.java:86) at de.icongmbh.codebeamer.CBUtilities.connect2CB(CBUtilities.java:55) at de.icongmbh.codebeamer.CBUtilities.<init>(CBUtilities.java:42) at de.icongmbh.build.updateinstalldb2cb.UploadInstallDB2CB.upload2CB(UploadInstallDB2CB.java:125) at de.icongmbh.build.updateinstalldb2cb.UploadInstallDB2CB.updateInstallDSFinCB(UploadInstallDB2CB.java:224) at de.icongmbh.build.updateinstalldb2cb.DeployInstallDBAntTask.execute(DeployInstallDBAntTask.java:41) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) I still cant see, what the problem is. Greetings Jürgen -- Jürgen Knuplesch -----Ursprüngliche Nachricht----- Von: Martin Gainty [mailto:mgai...@hotmail.com] Gesendet: Freitag, 29. Mai 2009 15:23 An: Ant Users List Betreff: RE: Taskdef classpath still does not work - partIII können Sie versuchen: <path id="buildjava.path"> <fileset dir="lib" includes="D:/nightlybuild/exportbaseHEAD/IconCodebeamerCVS/lib/*.jar"/> </path> <taskdef name="deployinstalldb" classname="de.icongmbh.build.updateinstalldb2cb.DeployInstallDBAntTask" onerror="report" loaderref="buildjava.path.loader" Mit Freundliche Gruben Martin Vereinigte Staaten GMT+5 (diese Woche) ______________________________________________ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Subject: Taskdef classpath still does not work - partIII > Date: Fri, 29 May 2009 14:46:39 +0200 > From: juergen.knuple...@icongmbh.de > To: user@ant.apache.org > > Hello, > > My taskdef classpath still does not work (it sometimes worked). > > I do the following > > <property name="taskdef.compareCvs2DopeDB.basepath" > location="${cvs.exportboxbase}"/> > <getEclipseClasspath classpathid="buildjava.classpathid" > workspace="${taskdef.compareCvs2DopeDB.basepath}" > projectname="BuildJava" /> > > > <taskdef name="deployinstalldb" > > classname="de.icongmbh.build.updateinstalldb2cb.DeployInstallDBAntTask" > onerror="report" > loaderref="buildjava.path.loader" > > <classpath refid="buildjava.classpathid"/> > </taskdef> > > In the end Ant tells me: > BUILD FAILED > D:\Entwicklung\Build\DopeBuildServer\dopebuild_ant2.xml:376: > java.lang.IllegalArgumentException: interface > com.intland.codebeamer.remoting.RemoteApi is not visible from class > loader > > Total time: 14 seconds > > It looks like sth. (cb-api.jar) Missing on the classpath. > > But it is defintely in buildjava.classpathid. > (Log: [echo] | |-- > D:\nightlybuild\exportbaseHEAD\IconCodebeamerCVS\lib\cb-api.jar ) > So the classloader of Ant can not find cb-api.jar although ist on the taskdef > classpath. > > If I add this jar > (D:\nightlybuild\exportbaseHEAD\IconCodebeamerCVS\lib\cb-api.jar) to Ant it > works. > > This is crazy. Im working now a whole day on this topic and can not find a > reason. > > Has anyone an idea, whats going on or how I can debug deeper what happens? > > Greetings > > Jürgen > > -- > Jürgen Knuplesch > -----Ursprüngliche Nachricht----- > Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] > Gesendet: Donnerstag, 28. Mai 2009 18:54 > An: Ant Users List > Betreff: AW: AW: Taskdef classpath does not work - partII > > Hello, > > I use getEclipseClasspath to realize the classpath. > If I run the class withot Ant inside Eclipse it works with the classpath I > defined in Eclipse. > It also works if I add the jar to the Ant classpath. > It does not work if I only use the Eclipse classpath for the taskdef together > with Ant. > > The exception is: > BUILD FAILED > D:\Entwicklung\Build\DopeBuildServer\dopebuild_ant.xml:5794: > java.lang.IllegalArgumentException: interface > com.intland.codebeamer.remoting.RemoteApi is not visible from class > loader > > > -- > Jürgen Knuplesch > -----Ursprüngliche Nachricht----- > Von: Scot P. Floess [mailto:sflo...@nc.rr.com] > Gesendet: Donnerstag, 28. Mai 2009 18:40 > An: Ant Users List > Betreff: Re: AW: Taskdef classpath does not work - partII > > > So, how do you construct your class path? > > Also, what is the exception? > > On Thu, 28 May 2009, Knuplesch, Juergen wrote: > > > Hello, > > > > I have some additional information: > > > > My classpath is very long. > > When I change the classpath order an exception happen somewhere else! > > > > Is there a restriction of the length of a classpath that will be handled > > using taskdef? > > > > Greetings > > > > Jürgen > > > > > > -- > > Jürgen Knuplesch > > > > -----Ursprüngliche Nachricht----- > > Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] > > Gesendet: Donnerstag, 28. Mai 2009 16:50 > > An: Ant Users List > > Betreff: Taskdef classpath does nor work > > > > Hello, > > > > I do a taskdef with 1.7.1 like: > > > > <taskdef name="myTask" > > classname="myJavaClass"> > > <classpath refid="java.classpathid"/> </taskdef> > > > > When I display the classpath referenced in java.classpathid I see a certain > > jar. > > When I run the task it fails, because it can not find a class that is based > > in that certain jar. > > > > When I add the jar in the classpath of Ant it works. > > > > This is strange, because lots of other classes and jars are found > > using this task. (The task starts does a lot and the final step > > fails) > > > > Has Ant a problem with long classpaths or does it support only one > > classpath for all taskdefs???? (doesnt make sense to me) > > > > I can not find the reason. Please help! > > > > Greetings Jürgen > > > > > > -- > > Jürgen Knuplesch > > > > -------------------------------------------------------------------- > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For > > additional commands, e-mail: user-h...@ant.apache.org > > > > > > -------------------------------------------------------------------- > > - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For > > additional commands, e-mail: user-h...@ant.apache.org > > > > > > Scot P. Floess > 27 Lake Royale > Louisburg, NC 27549 > > 252-478-8087 (Home) > 919-890-8117 (Work) > > Chief Architect JPlate http://sourceforge.net/projects/jplate > Chief Architect JavaPIM http://sourceforge.net/projects/javapim > > Architect Keros http://sourceforge.net/projects/keros > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional > commands, e-mail: user-h...@ant.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional > commands, e-mail: user-h...@ant.apache.org > _________________________________________________________________ Hotmail® has ever-growing storage! Don't worry about storage limits. http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org