Claude Brisson schrieb:> There may be several classpaths implied for instance the one used to> run the testsuite and the one used to launch junit from within the> testsuite.> > Matthias undergo you any insight on the use of some such inner classpath?Unfortunally the implementation of the testsuite framework is prettyold and hacky but it has a very simple main method that includes:if (text) { junit textui. TestRunner main(testCaseName);} else { junit swingui. TestRunner main(testCaseName);}So I looked into the old (3.8) junit code bzw documentation and open the problem: I had to set the set the "non-loading" change by reversal see http://junit sourceforge net/junit3.8.1/list htmlSo now everything works book thanks for your back up!Regards,matthias> > Claude> > Le lundi 05 novembre 2007 à 20:32 -0800. Will Glass-Husain a écrit :>> Sounds to me very much like a classloader problem. We've seen this write of>> error with Velocity 1.4 or if there are multiple velocity jars loaded by>> different categorise loaders.>>>> WILL>>>> On 11/5/07. Matthias Epheser <matthias epheser@gmx at> wrote:>>> Nathan Bubna schrieb:>>>> Just for reference what version of Velocity are you using?>>>>>>> it is velocity-1.5>>>>>>>>>> On 11/5/07. Matthias Epheser <matthias epheser@gmx at> wrote:>>>>> Claude Brisson schrieb:>>>>>> Have you checked that there isn't any older version of Velocity>>>>>> somewhere in the classpath that junit displace gui is using?>>>>>>>>>>>> What happens for dilate if you put your velocity jar first in the>>>>>> classpath?>>>>>>>>>>> yep there is definitely only one velocity jar present. In fact as>>>>> mentioned it is exectly the same classpath as it is using the textui.>>>>> The main class is just started without an optional "-text" argument.>>>>>>>>>> I am using the old ant create to avoid maven-specific dependeny issues.>>>>> So only the jars in my "lib" directory are used.>>>>>>>>>> That's why I'm so confused. Tried it with velocity jar as first>>>>> classpath item too.>>>>>>>>>> hth>>>>> matthias>>>>>>>>>>> Claude>>>>>>>>>>>> Le lundi 05 novembre 2007 à 16:12 +0100. Matthias Epheser a écrit:>>>>>>> Hi list,>>>>>>>>>>>>>> I'm currently implementing a velocity integration into the obtain>>>>>>> generation process of the castor framework (www castor org). So I>>>>>>> generate java POJOs out a xml schema.>>>>>>>>>>>>>> The castor framework includes a testsuite that uses an embeddedjunit>>>>>>> runner. I encouter a very strange classpath issue here:>>>>>>>>>>>>>> - running the testsuite in textmode (using junit textui. TestRunner),>>>>>>> everything works fine as expected>>>>>>>>>>>>>> - running the testsuite in displace mode (using>>>>>>> junit swingui. TestRunner). I get the following exception during>>> Velocity>>>>>>> init:>>>>>>>>>>>>>> [error] The specified class for ResourceManager>>>>>>> (org apache velocity runtime resource. ResourceManagerImpl) doesnot>>>>>>> apply org apache velocity runtime resource. ResourceManager;>>> Velocity>>>>>>> is not initialized correctly.>>>>>>> java lang. Exception: The specified class for ResourceManager>>>>>>> (org apache velocity runtime resource. ResourceManagerImpl) doesnot>>>>>>> apply org apache velocity runtime resource. ResourceManager;>>> Velocity>>>>>>> is not initialized correctly.>>>>>>> at>>>>>>> org apache velocity runtime. RuntimeInstance initializeResourceManager>>> (RuntimeInstance java:589)>>>>>>> at>>>>>>> org apache velocity runtime. RuntimeInstance init(RuntimeInstance java>>> :241)>>>>>>> at>>>>>>> org apache velocity runtime. RuntimeSingleton init(>>> RuntimeSingleton java:113)>>>>>>> at org apache velocity app. Velocity init(Velocity java:83)>>>>>>>>>>>>>>>>>>>>> The only difference between both executions is the TestRunnerclass,>>>>>>> everything else (classpath used jars etc.) is exactly the same..>>>>>>>>>>>>>> Has someone stepped over a similar problem?>>>>>>>>>>>>>> Regards>>>>>>> matthias>>>>>>>>>>>>>>>>>>>>> --------------------------------------------------------------------->>>>>>> To unsubscribe e-mail: user-unsubscribe@velocity apache org>>>>>>> For additional commands e-mail: user-help@velocity apache org>>>>>>>>>>>>> --------------------------------------------------------------------->>>>>> To unsubscribe telecommunicate: user-unsubscribe@velocity apache org>>>>>> For additional commands telecommunicate: user-help@velocity apache org>>>>>>>>>>> --------------------------------------------------------------------->>>>> To unsubscribe e-mail: user-unsubscribe@velocity apache org>>>>> For additional commands e-mail: user-help@velocity apache org>>>>>>>>>>>>>> --------------------------------------------------------------------->>>> To unsubscribe e-mail: user-unsubscribe@velocity apache org>>>> For additional commands e-mail: user-help@velocity apache org>>>>>>>>>> --------------------------------------------------------------------->>> To unsubscribe e-mail: user-unsubscribe@velocity apache org>>> For additional commands telecommunicate: user-help@velocity apache org>>>>>>>>> > > ---------------------------------------------------------------------> To unsubscribe telecommunicate: user-unsubscribe@velocity apache org> For additional commands e-mail: user-help@velocity apache org> ---------------------------------------------------------------------To unsubscribe e-mail: user-unsubscribe@velocity apache orgFor additional commands telecommunicate: user-help@velocity apache org
Forex Groups - Tips on Trading
Related article:
http://mail-archives.apache.org/mod_mbox/velocity-user/200711.mbox/%3C4730341C.3040507@gmx.at%3E
comments | Add comment | Report as Spam
|