From: Simon So <ss...@cs...> - 2002-03-17 22:56:35
|
Hi Assad, You can find out why the junit tests fail by going to the output directory (between build directory and src directory) and look at the junit test log file. For each test there is one log file corresponding to it. I cannot tell what error you are running into just by looking at this. Don't count my words, but I suspect it's a classpath problem. If you don't run into deploy error, that will mean your J2EE server is already running. BTW, only Sync4jHttpServletTest and TestAllCactus requires a running J2EE server. The other tests should just go through. javadoc.... Maybe you should just run <docs> target and see what happens. The last time I check, it produces javadoc. Debug a little bit with the log files I mentioned. It should give you plenty of insights as of what's going on with your environment. Cheers, Simon On Sun, 17 Mar 2002, Assad Jarrahian wrote: > > Hi Simon, > > I did as advised by you in the previous email. I got the latest versions for > ant and JDK. Now, the build is successful but all the junit tests fail. I am > sending the build file reqults with the -debug option. That file is > attached. > > Also, below is the output of the filed junit tests: > > [junit] TEST sync4j.tests.Base64Test FAILED > [junit] TEST sync4j.tests.CommandIdentifierTest FAILED > [junit] TEST sync4j.tests.SyncBodyTest FAILED > [junit] TEST sync4j.tests.SyncHeaderTest FAILED > [junit] TEST sync4j.tests.SyncCapabilitiesTest FAILED > [junit] TEST sync4j.tests.MessageTest FAILED > [junit] TEST sync4j.tests.Sync4jHttpServletTest FAILED > [junit] TEST sync4j.tests.MetaInfoTest FAILED > [junit] TEST sync4j.tests.DeviceInfoTest FAILED > [junit] TEST sync4j.tests.ClientFrameworkTest FAILED > [junit] TEST sync4j.tests.cactus.TestAllCactus FAILED > > Inspite of these failing tests, it says that the build s successful. Can you > please advise as to why these tests fail. Also, in the output directory (the > one formed after the build), there is a javadoc directory. That directoryis > empty. Is that suppose to be so? I don't have and can't find any > documentation as to how to actually run the client and the server. > > Could you kindly advise. Thanks for your time and cooperation in advance. > -Assad > > > > On 3/16/02 5:44 PM, "Simon So" <ss...@cs...> wrote: > > > Hi Assad, > > > > I got the previous problem yesterday by building with Forte for Java's > > 3.0 ANT facility. You never mentioned how you build. So I believe you > > are probably running some IDE with ANT support, but the IDE is not > > supporting the latest ANT. > > > > Plus, the first line of your debug file says ANT 1.3. So now the > > situation is like, if you are using JDK 1.1.7 to compile Sync4j, we can't > > guarantee or support 1.1.7 will work for Sync4j. > > > > Anyway, keep the line regarding manifest file. I believe you really need > > the latest ANT, 1.4.1. If IDE happens to be your problem, download a better > > IDE. The latest NetBeans 3.3.1 supports ANT 1.4.1 out of the box. Hope that > > will solve the problem. > > > > Another resort is to use command prompt to build instead of IDE... I > > started out with command prompt, built without any problems, thought > > about being cool to use IDE, PRESTO, problems. If you already use command > > prompt, the problem is so very apparent then -- use the latest ANT. > > > > As of how to enforce 1.4.1, it's your machine environment issue. I really > > don't know how you set things up et al. You just have to debug and make > > sure 1.4.1 libraries got the absolute ahead of everyone in the CLASSPATH. > > > > Hang in there. Looking forward to your contribution in Sync4j. > > > > > > Cheers, > > Simon > > > > BTW: ear is in a built-in task, not an optional task. > > |