Shervin Asgari wrote:
David M Johnson wrote:
That is a pretty weird error message. I don't know how to explain it. Is it possible that you compiled part of Roller with JDK 1.5 and one part with 1.4.2? Or maybe there are some classes in the source download. Hmmm... Have you tried a full rebuild? For example, maybe this would clear up the problem:

   c:\roller-src\> build rebuild tests

It's strange, because after running this command suddenly things started happening, but now I get another BUILD FAILED. This time the output is:

build-tests:
   [mkdir] Created dir: C:\roller-src\build\tests
   [mkdir] Created dir: C:\roller-src\build\tests\logs
   [mkdir] Created dir: C:\roller-src\build\tests\planet-cache
   [mkdir] Created dir: C:\roller-src\build\tests\WEB-INF\classes
   [mkdir] Created dir: C:\roller-src\build\tests\WEB-INF\classes\them
es
   [javac] Compiling 40 source files to C:\roller-src\build\tests\WEB-
INF\classes
   [javac] Note: Some input files use or override a deprecated API.
   [javac] Note: Recompile with -deprecation for details.

BUILD FAILED
C:\roller-src\build.xml:743: C:\roller-src\testdata not found.


Total time: 3 minutes 35 seconds

Any ideas? I appreciate your help so far. I have set the PATH to use j2sdk1.4.2_11 first, and also set the JAVA_HOME to j2sdk1.4.2_11 , so I think its strange if it suddenly chooses jdk 5.0

Shervin
After examining the error message more closely I saw that it says that it couldn't find C:\roller-src\testdata
I tried to see if this directory existed, and surely it did not.
Then I manually created this directory and run the test again, and this time it managed to come further in the unit test. I believe this is a bug on windows system, surely you don't have to manually create this directory? Anyways, further in the test I get many error messages. We have tried to run this from a Linux computer and a Windows computer with the same error messages. The first message is a warning, saying:

     [sql] 99 of 99 SQL statements executed successfully
   [junit] Running org.roller.business.BookmarkManagerTest
   [junit] 23.mar.2006 10:07:22 java.util.jar.Attributes read
   [junit] WARNING: Duplicate name in Manifest: Class-Path
[junit] 2006-03-23 10:07:23,496 WARN org.roller.config.RollerConfig - failed to load custom properties from C:\roller-src\build\tests\.\build\tests\roller-custom.properties

I tried to again see if this directory C:\roller-src\build\tests\.\build\tests\roller-custom.properties existed, and it did not. I also tried to search for roller-custom.properties with no luck. But I don't think a Warning is the real problem here. The real problems comes when trying to run Hibernate.
This is the next output:

[junit] 2006-03-23 10:07:23,656 ERROR org.roller.business.hibernate.HibernateRollerImpl - Error Setting up SessionFactory
   [junit] org.hibernate.HibernateException: /hibernate.cfg.xml not found
[junit] at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1087) [junit] at org.hibernate.cfg.Configuration.configure(Configuration.java:1111)

I get this error message with both a Linux and Windows computer. I don't know what the problem can be. Again I point out that I have followed the installation guide. I appreciate any help

Shervin


Reply via email to