|
List Info
Thread: Problems running Unit Tests
|
|
| Problems running Unit Tests |

|
2006-03-22 13:01:46 |
Hello. I am following the DeveloperGuide on
http://rollerweblogger.org/wiki/Wiki.jsp?page=Develo
perGuide
and everything is working fine until I reach
Running Unit Tests [#4]
I am running this on Windows XP, and after running
"build tests"
I get BUILD FAILED
java.lang.ClassFormatError: org/roller/ant/StartHsqldbTask
(Illegal
Field name "
has inconsistent hierarchy")
I understand that the problem is that the Hsqldb doesnt
start, but how
to fix this is beyond my comprehension.
This is a more detailed output after running "build
tests"
C:\roller-src>build tests
C:\J2sdk1.4.2_11\lib\tools.jar;.\tools\buildtime\ant-1
.6.2\ant.jar;.\tools\build
time\ant-1.6.2\ant-launcher.jar;.\tools\buildtime\ant-1
.6.2\ant-junit.jar;.\tool
s\buildtime\ant-1.6.2\ant-commons-net.jar;.\tools\build
time\ant-1.6.2\commons-ne
t-1.2.2.jar;.\tools\buildtime\ant-1.6.2\jakarta-oro-2.0.
8.jar;.\tools\buildtime\
junit-3.8.1.jar
Buildfile: build.xml
build-beans:
[jar] Building jar:
C:\roller-src\build\lib\rollerbeans.jar
build-web:
prepare.resin:
undo.resin:
stage-web:
[jar] Building jar:
C:\roller-src\build\roller\WEB-INF\lib\roller
web.jar
[copy] Copying 1 file to
C:\roller-src\build\roller\WEB-INF\lib
stage-dbscripts:
[texen] Using contextProperties file:
C:\roller-src\metadata\databa
se\mysql.properties
[texen] C:\roller-src/metadata/database/
[texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
ipts\mysql\README.txt
[texen] Using contextProperties file:
C:\roller-src\metadata\databa
se\postgresql.properties
[texen] C:\roller-src/metadata/database/
[texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
ipts\postgresql\README.txt
[texen] Using contextProperties file:
C:\roller-src\metadata\databa
se\hsqldb.properties
[texen] C:\roller-src/metadata/database/
[texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
ipts\hsqldb\README.txt
[texen] Using contextProperties file:
C:\roller-src\metadata\databa
se\derby.properties
[texen] C:\roller-src/metadata/database/
[texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
ipts\derby\README.txt
[texen] Using contextProperties file:
C:\roller-src\metadata\databa
se\db2.properties
[texen] C:\roller-src/metadata/database/
[texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
ipts\db2\README.txt
[texen] Using contextProperties file:
C:\roller-src\metadata\databa
se\oracle.properties
[texen] C:\roller-src/metadata/database/
[texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
ipts\oracle\README.txt
copy-web:
build-contrib:
[echo] making ../build/compile_contrib
plugins:
[jar] Building jar:
C:\roller-src\build\roller\WEB-INF\lib\roller
contrib.jar
build:
build-tests:
BUILD FAILED
java.lang.ClassFormatError: org/roller/ant/StartHsqldbTask
(Illegal
Field name "
has inconsistent hierarchy")
Total time: 7 seconds
Shervin
|
|
| Problems running Unit Tests |

|
2006-03-22 19:08:48 |
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
-Dave
On Mar 22, 2006, at 8:01 AM, Shervin Asgari wrote:
> Hello. I am following the DeveloperGuide on http://
> rollerweblogger.org/wiki/Wiki.jsp?page=DeveloperGuide
> and everything is working fine until I reach
> Running Unit Tests [#4]
> I am running this on Windows XP, and after running
"build tests"
> I get BUILD FAILED
> java.lang.ClassFormatError:
org/roller/ant/StartHsqldbTask (Illegal
> Field name "
> has inconsistent hierarchy")
>
> I understand that the problem is that the Hsqldb doesnt
start, but
> how to fix this is beyond my comprehension.
> This is a more detailed output after running
"build tests"
>
> C:\roller-src>build tests
>
C:\J2sdk1.4.2_11\lib\tools.jar;.\tools\buildtime\ant-1
.6.2\ant.jar;.
> \tools\build
>
time\ant-1.6.2\ant-launcher.jar;.\tools\buildtime\ant-1
.6.2\ant-
> junit.jar;.\tool
>
s\buildtime\ant-1.6.2\ant-commons-net.jar;.\tools\build
time
> \ant-1.6.2\commons-ne
>
t-1.2.2.jar;.\tools\buildtime\ant-1.6.2\jakarta-oro-2.0.
8.jar;.
> \tools\buildtime\
> junit-3.8.1.jar
> Buildfile: build.xml
>
> build-beans:
> [jar] Building jar:
C:\roller-src\build\lib\rollerbeans.jar
>
> build-web:
>
> prepare.resin:
>
> undo.resin:
>
> stage-web:
> [jar] Building jar:
C:\roller-src\build\roller\WEB-INF\lib\roller
> web.jar
> [copy] Copying 1 file to
C:\roller-src\build\roller\WEB-INF\lib
>
> stage-dbscripts:
> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
> se\mysql.properties
> [texen] C:\roller-src/metadata/database/
> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
> ipts\mysql\README.txt
> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
> se\postgresql.properties
> [texen] C:\roller-src/metadata/database/
> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
> ipts\postgresql\README.txt
> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
> se\hsqldb.properties
> [texen] C:\roller-src/metadata/database/
> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
> ipts\hsqldb\README.txt
> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
> se\derby.properties
> [texen] C:\roller-src/metadata/database/
> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
> ipts\derby\README.txt
> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
> se\db2.properties
> [texen] C:\roller-src/metadata/database/
> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
> ipts\db2\README.txt
> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
> se\oracle.properties
> [texen] C:\roller-src/metadata/database/
> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
> ipts\oracle\README.txt
>
> copy-web:
>
> build-contrib:
> [echo] making ../build/compile_contrib
>
> plugins:
> [jar] Building jar:
C:\roller-src\build\roller\WEB-INF\lib\roller
> contrib.jar
>
> build:
>
> build-tests:
>
> BUILD FAILED
> java.lang.ClassFormatError:
org/roller/ant/StartHsqldbTask (Illegal
> Field name "
> has inconsistent hierarchy")
>
> Total time: 7 seconds
>
> Shervin
|
|
| Problems running Unit Tests |

|
2006-03-22 21:48:05 |
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
>
> -Dave
>
>
> On Mar 22, 2006, at 8:01 AM, Shervin Asgari wrote:
>
>> Hello. I am following the DeveloperGuide on
>> http://rollerweblogger.org/wiki/Wiki.jsp?page=Develo
perGuide
>> and everything is working fine until I reach
>> Running Unit Tests [#4]
>> I am running this on Windows XP, and after running
"build tests"
>> I get BUILD FAILED
>> java.lang.ClassFormatError:
org/roller/ant/StartHsqldbTask (Illegal
>> Field name "
>> has inconsistent hierarchy")
>>
>> I understand that the problem is that the Hsqldb
doesnt start, but
>> how to fix this is beyond my comprehension.
>> This is a more detailed output after running
"build tests"
>>
>> C:\roller-src>build tests
>>
C:\J2sdk1.4.2_11\lib\tools.jar;.\tools\buildtime\ant-1
.6.2\ant.jar;.\tools\build
>>
>>
time\ant-1.6.2\ant-launcher.jar;.\tools\buildtime\ant-1
.6.2\ant-junit.jar;.\tool
>>
>>
s\buildtime\ant-1.6.2\ant-commons-net.jar;.\tools\build
time\ant-1.6.2\commons-ne
>>
>>
t-1.2.2.jar;.\tools\buildtime\ant-1.6.2\jakarta-oro-2.0.
8.jar;.\tools\buildtime\
>>
>> junit-3.8.1.jar
>> Buildfile: build.xml
>>
>> build-beans:
>> [jar] Building jar:
C:\roller-src\build\lib\rollerbeans.jar
>>
>> build-web:
>>
>> prepare.resin:
>>
>> undo.resin:
>>
>> stage-web:
>> [jar] Building jar:
C:\roller-src\build\roller\WEB-INF\lib\roller
>> web.jar
>> [copy] Copying 1 file to
C:\roller-src\build\roller\WEB-INF\lib
>>
>> stage-dbscripts:
>> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
>> se\mysql.properties
>> [texen] C:\roller-src/metadata/database/
>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>> ipts\mysql\README.txt
>> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
>> se\postgresql.properties
>> [texen] C:\roller-src/metadata/database/
>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>> ipts\postgresql\README.txt
>> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
>> se\hsqldb.properties
>> [texen] C:\roller-src/metadata/database/
>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>> ipts\hsqldb\README.txt
>> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
>> se\derby.properties
>> [texen] C:\roller-src/metadata/database/
>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>> ipts\derby\README.txt
>> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
>> se\db2.properties
>> [texen] C:\roller-src/metadata/database/
>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>> ipts\db2\README.txt
>> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
>> se\oracle.properties
>> [texen] C:\roller-src/metadata/database/
>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>> ipts\oracle\README.txt
>>
>> copy-web:
>>
>> build-contrib:
>> [echo] making ../build/compile_contrib
>>
>> plugins:
>> [jar] Building jar:
C:\roller-src\build\roller\WEB-INF\lib\roller
>> contrib.jar
>>
>> build:
>>
>> build-tests:
>>
>> BUILD FAILED
>> java.lang.ClassFormatError:
org/roller/ant/StartHsqldbTask (Illegal
>> Field name "
>> has inconsistent hierarchy")
>>
>> Total time: 7 seconds
>>
>> Shervin
>
--
Med vennlig hilsen
Shervin Asgari
Systemkonsulent
Linpro AS
Ledende på Linux
Mobil: +47 918 64 148
|
|
| Problems running Unit Tests |

|
2006-03-23 09:24:39 |
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
|
|
| Problems running Unit Tests |

|
2006-03-23 20:13:42 |
Apparently, the directory testdata is not included in the
source
release. I just added it to the build for 2.2. In the
meantime,
you'll have to use SVN if you want to build from source:
http://rollerweblogger.org/wiki/Wiki.jsp?pag
e=RollerSourceCodeAccess
Sorry about the inconvenience.
- Dave
On Mar 22, 2006, at 4:48 PM, 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
>>
>> -Dave
>>
>>
>> On Mar 22, 2006, at 8:01 AM, Shervin Asgari wrote:
>>
>>> Hello. I am following the DeveloperGuide on
http://
>>>
rollerweblogger.org/wiki/Wiki.jsp?page=DeveloperGuide
>>> and everything is working fine until I reach
>>> Running Unit Tests [#4]
>>> I am running this on Windows XP, and after
running "build tests"
>>> I get BUILD FAILED
>>> java.lang.ClassFormatError:
org/roller/ant/StartHsqldbTask
>>> (Illegal Field name "
>>> has inconsistent hierarchy")
>>>
>>> I understand that the problem is that the
Hsqldb doesnt start,
>>> but how to fix this is beyond my comprehension.
>>> This is a more detailed output after running
"build tests"
>>>
>>> C:\roller-src>build tests
>>>
C:\J2sdk1.4.2_11\lib\tools.jar;.\tools\buildtime\ant-1
.6.2
>>> \ant.jar;.\tools\build
>>>
time\ant-1.6.2\ant-launcher.jar;.\tools\buildtime\ant-1
.6.2\ant-
>>> junit.jar;.\tool
>>>
s\buildtime\ant-1.6.2\ant-commons-net.jar;.\tools\build
time
>>> \ant-1.6.2\commons-ne
>>>
t-1.2.2.jar;.\tools\buildtime\ant-1.6.2\jakarta-oro-2.0.
8.jar;.
>>> \tools\buildtime\
>>> junit-3.8.1.jar
>>> Buildfile: build.xml
>>>
>>> build-beans:
>>> [jar] Building jar:
C:\roller-src\build\lib\rollerbeans.jar
>>>
>>> build-web:
>>>
>>> prepare.resin:
>>>
>>> undo.resin:
>>>
>>> stage-web:
>>> [jar] Building jar:
C:\roller-src\build\roller\WEB-INF\lib
>>> \roller
>>> web.jar
>>> [copy] Copying 1 file to
C:\roller-src\build\roller\WEB-INF\lib
>>>
>>> stage-dbscripts:
>>> [texen] Using contextProperties file:
C:\roller-src\metadata
>>> \databa
>>> se\mysql.properties
>>> [texen] C:\roller-src/metadata/database/
>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF
>>> \dbscr
>>> ipts\mysql\README.txt
>>> [texen] Using contextProperties file:
C:\roller-src\metadata
>>> \databa
>>> se\postgresql.properties
>>> [texen] C:\roller-src/metadata/database/
>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF
>>> \dbscr
>>> ipts\postgresql\README.txt
>>> [texen] Using contextProperties file:
C:\roller-src\metadata
>>> \databa
>>> se\hsqldb.properties
>>> [texen] C:\roller-src/metadata/database/
>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF
>>> \dbscr
>>> ipts\hsqldb\README.txt
>>> [texen] Using contextProperties file:
C:\roller-src\metadata
>>> \databa
>>> se\derby.properties
>>> [texen] C:\roller-src/metadata/database/
>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF
>>> \dbscr
>>> ipts\derby\README.txt
>>> [texen] Using contextProperties file:
C:\roller-src\metadata
>>> \databa
>>> se\db2.properties
>>> [texen] C:\roller-src/metadata/database/
>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF
>>> \dbscr
>>> ipts\db2\README.txt
>>> [texen] Using contextProperties file:
C:\roller-src\metadata
>>> \databa
>>> se\oracle.properties
>>> [texen] C:\roller-src/metadata/database/
>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF
>>> \dbscr
>>> ipts\oracle\README.txt
>>>
>>> copy-web:
>>>
>>> build-contrib:
>>> [echo] making ../build/compile_contrib
>>>
>>> plugins:
>>> [jar] Building jar:
C:\roller-src\build\roller\WEB-INF\lib
>>> \roller
>>> contrib.jar
>>>
>>> build:
>>>
>>> build-tests:
>>>
>>> BUILD FAILED
>>> java.lang.ClassFormatError:
org/roller/ant/StartHsqldbTask
>>> (Illegal Field name "
>>> has inconsistent hierarchy")
>>>
>>> Total time: 7 seconds
>>>
>>> Shervin
>>
>
>
> --
> Med vennlig hilsen
>
> Shervin Asgari
> Systemkonsulent
>
> Linpro AS
> Ledende på Linux
>
> Mobil: +47 918 64 148
>
|
|
| Problems running Unit Tests |

|
2006-03-24 12:19:57 |
After Running the build from the SVN, I still get some
failures (7 to be
exact), but the overall build is successfull. I got this
output I
thought would be useful to share:
[junit] ERROR 2006-03-24 13:15:11,071 |
HibernateConfigManagerImpl:getRoller
Config | Someone is trying to use the old config!!
[junit] This configuration mechanism has been deprecated
[junit] You should see this message only once when you
first upgrade
[junit] your installation to roller 1.2
[junit] If you continue to see this message please shoot
us an email
[junit] at roller-development lists.sourceforge.net with
some output
[junit] from your log files.
Shervin
David M Johnson wrote:
> Apparently, the directory testdata is not included in
the source
> release. I just added it to the build for 2.2. In the
meantime, you'll
> have to use SVN if you want to build from source:
>
> http://rollerweblogger.org/wiki/Wiki.jsp?pag
e=RollerSourceCodeAccess
>
> Sorry about the inconvenience.
>
>
> - Dave
>
>
> On Mar 22, 2006, at 4:48 PM, 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
>>>
>>> -Dave
>>>
>>>
>>> On Mar 22, 2006, at 8:01 AM, Shervin Asgari
wrote:
>>>
>>>> Hello. I am following the DeveloperGuide on
>>>> http://rollerweblogger.org/wiki/Wiki.jsp?page=Develo
perGuide
>>>> and everything is working fine until I
reach
>>>> Running Unit Tests [#4]
>>>> I am running this on Windows XP, and after
running "build tests"
>>>> I get BUILD FAILED
>>>> java.lang.ClassFormatError:
org/roller/ant/StartHsqldbTask (Illegal
>>>> Field name "
>>>> has inconsistent hierarchy")
>>>>
>>>> I understand that the problem is that the
Hsqldb doesnt start, but
>>>> how to fix this is beyond my comprehension.
>>>> This is a more detailed output after
running "build tests"
>>>>
>>>> C:\roller-src>build tests
>>>>
C:\J2sdk1.4.2_11\lib\tools.jar;.\tools\buildtime\ant-1
.6.2\ant.jar;.\tools\build
>>>>
>>>>
time\ant-1.6.2\ant-launcher.jar;.\tools\buildtime\ant-1
.6.2\ant-junit.jar;.\tool
>>>>
>>>>
s\buildtime\ant-1.6.2\ant-commons-net.jar;.\tools\build
time\ant-1.6.2\commons-ne
>>>>
>>>>
t-1.2.2.jar;.\tools\buildtime\ant-1.6.2\jakarta-oro-2.0.
8.jar;.\tools\buildtime\
>>>>
>>>> junit-3.8.1.jar
>>>> Buildfile: build.xml
>>>>
>>>> build-beans:
>>>> [jar] Building jar:
C:\roller-src\build\lib\rollerbeans.jar
>>>>
>>>> build-web:
>>>>
>>>> prepare.resin:
>>>>
>>>> undo.resin:
>>>>
>>>> stage-web:
>>>> [jar] Building jar:
C:\roller-src\build\roller\WEB-INF\lib\roller
>>>> web.jar
>>>> [copy] Copying 1 file to
C:\roller-src\build\roller\WEB-INF\lib
>>>>
>>>> stage-dbscripts:
>>>> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
>>>> se\mysql.properties
>>>> [texen]
C:\roller-src/metadata/database/
>>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>>>> ipts\mysql\README.txt
>>>> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
>>>> se\postgresql.properties
>>>> [texen]
C:\roller-src/metadata/database/
>>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>>>> ipts\postgresql\README.txt
>>>> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
>>>> se\hsqldb.properties
>>>> [texen]
C:\roller-src/metadata/database/
>>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>>>> ipts\hsqldb\README.txt
>>>> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
>>>> se\derby.properties
>>>> [texen]
C:\roller-src/metadata/database/
>>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>>>> ipts\derby\README.txt
>>>> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
>>>> se\db2.properties
>>>> [texen]
C:\roller-src/metadata/database/
>>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>>>> ipts\db2\README.txt
>>>> [texen] Using contextProperties file:
C:\roller-src\metadata\databa
>>>> se\oracle.properties
>>>> [texen]
C:\roller-src/metadata/database/
>>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>>>> ipts\oracle\README.txt
>>>>
>>>> copy-web:
>>>>
>>>> build-contrib:
>>>> [echo] making ../build/compile_contrib
>>>>
>>>> plugins:
>>>> [jar] Building jar:
C:\roller-src\build\roller\WEB-INF\lib\roller
>>>> contrib.jar
>>>>
>>>> build:
>>>>
>>>> build-tests:
>>>>
>>>> BUILD FAILED
>>>> java.lang.ClassFormatError:
org/roller/ant/StartHsqldbTask (Illegal
>>>> Field name "
>>>> has inconsistent hierarchy")
>>>>
>>>> Total time: 7 seconds
>>>>
>>>> Shervin
>>>
>>
>>
>> --Med vennlig hilsen
>>
>> Shervin Asgari
>> Systemkonsulent
>>
>> Linpro AS
>> Ledende på Linux
>>
>> Mobil: +47 918 64 148
>>
>
|
|
| Problems running Unit Tests |

|
2006-03-24 18:09:13 |
If you got that running the unit tests then it can be
ignored. We need
to delete that unit test since it is no longer valid.
-- Allen
Shervin Asgari wrote:
> After Running the build from the SVN, I still get some
failures (7 to be
> exact), but the overall build is successfull. I got
this output I
> thought would be useful to share:
> [junit] ERROR 2006-03-24 13:15:11,071 |
> HibernateConfigManagerImpl:getRoller
> Config | Someone is trying to use the old config!!
> [junit] This configuration mechanism has been
deprecated
> [junit] You should see this message only once when
you first upgrade
> [junit] your installation to roller 1.2
>
> [junit] If you continue to see this message please
shoot us an email
> [junit] at roller-development lists.sourceforge.net with
some output
> [junit] from your log files.
>
> Shervin
>
>
>
> David M Johnson wrote:
>> Apparently, the directory testdata is not included
in the source
>> release. I just added it to the build for 2.2. In
the meantime, you'll
>> have to use SVN if you want to build from source:
>>
>> http://rollerweblogger.org/wiki/Wiki.jsp?pag
e=RollerSourceCodeAccess
>>
>> Sorry about the inconvenience.
>>
>>
>> - Dave
>>
>>
>> On Mar 22, 2006, at 4:48 PM, 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
>>>>
>>>> -Dave
>>>>
>>>>
>>>> On Mar 22, 2006, at 8:01 AM, Shervin Asgari
wrote:
>>>>
>>>>> Hello. I am following the
DeveloperGuide on
>>>>> http://rollerweblogger.org/wiki/Wiki.jsp?page=Develo
perGuide
>>>>> and everything is working fine until I
reach
>>>>> Running Unit Tests [#4]
>>>>> I am running this on Windows XP, and
after running "build tests"
>>>>> I get BUILD FAILED
>>>>> java.lang.ClassFormatError:
org/roller/ant/StartHsqldbTask (Illegal
>>>>> Field name "
>>>>> has inconsistent hierarchy")
>>>>>
>>>>> I understand that the problem is that
the Hsqldb doesnt start, but
>>>>> how to fix this is beyond my
comprehension.
>>>>> This is a more detailed output after
running "build tests"
>>>>>
>>>>> C:\roller-src>build tests
>>>>>
C:\J2sdk1.4.2_11\lib\tools.jar;.\tools\buildtime\ant-1
.6.2\ant.jar;.\tools\build
>>>>>
>>>>>
time\ant-1.6.2\ant-launcher.jar;.\tools\buildtime\ant-1
.6.2\ant-junit.jar;.\tool
>>>>>
>>>>>
s\buildtime\ant-1.6.2\ant-commons-net.jar;.\tools\build
time\ant-1.6.2\commons-ne
>>>>>
>>>>>
t-1.2.2.jar;.\tools\buildtime\ant-1.6.2\jakarta-oro-2.0.
8.jar;.\tools\buildtime\
>>>>>
>>>>> junit-3.8.1.jar
>>>>> Buildfile: build.xml
>>>>>
>>>>> build-beans:
>>>>> [jar] Building jar:
C:\roller-src\build\lib\rollerbeans.jar
>>>>>
>>>>> build-web:
>>>>>
>>>>> prepare.resin:
>>>>>
>>>>> undo.resin:
>>>>>
>>>>> stage-web:
>>>>> [jar] Building jar:
C:\roller-src\build\roller\WEB-INF\lib\roller
>>>>> web.jar
>>>>> [copy] Copying 1 file to
C:\roller-src\build\roller\WEB-INF\lib
>>>>>
>>>>> stage-dbscripts:
>>>>> [texen] Using contextProperties
file: C:\roller-src\metadata\databa
>>>>> se\mysql.properties
>>>>> [texen]
C:\roller-src/metadata/database/
>>>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>>>>> ipts\mysql\README.txt
>>>>> [texen] Using contextProperties
file: C:\roller-src\metadata\databa
>>>>> se\postgresql.properties
>>>>> [texen]
C:\roller-src/metadata/database/
>>>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>>>>> ipts\postgresql\README.txt
>>>>> [texen] Using contextProperties
file: C:\roller-src\metadata\databa
>>>>> se\hsqldb.properties
>>>>> [texen]
C:\roller-src/metadata/database/
>>>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>>>>> ipts\hsqldb\README.txt
>>>>> [texen] Using contextProperties
file: C:\roller-src\metadata\databa
>>>>> se\derby.properties
>>>>> [texen]
C:\roller-src/metadata/database/
>>>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>>>>> ipts\derby\README.txt
>>>>> [texen] Using contextProperties
file: C:\roller-src\metadata\databa
>>>>> se\db2.properties
>>>>> [texen]
C:\roller-src/metadata/database/
>>>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>>>>> ipts\db2\README.txt
>>>>> [texen] Using contextProperties
file: C:\roller-src\metadata\databa
>>>>> se\oracle.properties
>>>>> [texen]
C:\roller-src/metadata/database/
>>>>> [texen] Generating to file
C:\roller-src\build\roller\WEB-INF\dbscr
>>>>> ipts\oracle\README.txt
>>>>>
>>>>> copy-web:
>>>>>
>>>>> build-contrib:
>>>>> [echo] making
../build/compile_contrib
>>>>>
>>>>> plugins:
>>>>> [jar] Building jar:
C:\roller-src\build\roller\WEB-INF\lib\roller
>>>>> contrib.jar
>>>>>
>>>>> build:
>>>>>
>>>>> build-tests:
>>>>>
>>>>> BUILD FAILED
>>>>> java.lang.ClassFormatError:
org/roller/ant/StartHsqldbTask (Illegal
>>>>> Field name "
>>>>> has inconsistent hierarchy")
>>>>>
>>>>> Total time: 7 seconds
>>>>>
>>>>> Shervin
>>>>
>>>
>>>
>>> --Med vennlig hilsen
>>>
>>> Shervin Asgari
>>> Systemkonsulent
>>>
>>> Linpro AS
>>> Ledende på Linux
>>>
>>> Mobil: +47 918 64 148
>>>
>>
>
|
|
| Problems running Unit Tests |

|
2006-03-24 20:13:55 |
Allen Gilliland wrote:
> If you got that running the unit tests then it can be
ignored. We
> need to delete that unit test since it is no longer
valid.
>
> -- Allen
Yes I did get that running the unit test. I kinda understood
that I
could ignore it, just thought it would be nice to share
since it told me
to mail it
Shervin
>
>
> Shervin Asgari wrote:
>> After Running the build from the SVN, I still get
some failures (7 to
>> be exact), but the overall build is successfull. I
got this output I
>> thought would be useful to share:
>> [junit] ERROR 2006-03-24 13:15:11,071 |
>> HibernateConfigManagerImpl:getRoller
>> Config | Someone is trying to use the old config!!
>> [junit] This configuration mechanism has been
deprecated
>> [junit] You should see this message only once
when you first upgrade
>> [junit] your installation to roller 1.2
>>
>> [junit] If you continue to see this message
please shoot us an email
>> [junit] at roller-development lists.sourceforge.net with some output
>> [junit] from your log files.
>>
>> Shervin
>>
>>
>>
>> David M Johnson wrote:
>>> Apparently, the directory testdata is not
included in the source
>>> release. I just added it to the build for 2.2.
In the meantime,
>>> you'll have to use SVN if you want to build
from source:
>>>
>>> http://rollerweblogger.org/wiki/Wiki.jsp?pag
e=RollerSourceCodeAccess
>>>
>>> Sorry about the inconvenience.
>>>
>>>
>>> - Dave
>>>
>>>
>>> On Mar 22, 2006, at 4:48 PM, 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
>>>>>
>>>>> -Dave
>>>>>
>>>>>
>>>>> On Mar 22, 2006, at 8:01 AM, Shervin
Asgari wrote:
>>>>>
>>>>>> Hello. I am following the
DeveloperGuide on
>>>>>> http://rollerweblogger.org/wiki/Wiki.jsp?page=Develo
perGuide
>>>>>> and everything is working fine
until I reach
>>>>>> Running Unit Tests [#4]
>>>>>> I am running this on Windows XP,
and after running "build tests"
>>>>>> I get BUILD FAILED
>>>>>> java.lang.ClassFormatError:
org/roller/ant/StartHsqldbTask
>>>>>> (Illegal Field name "
>>>>>> has inconsistent hierarchy")
>>>>>>
>>>>>> I understand that the problem is
that the Hsqldb doesnt start,
>>>>>> but how to fix this is beyond my
comprehension.
>>>>>> This is a more detailed output
after running "build tests"
>>>>>>
>>>>>> C:\roller-src>build tests
>>>>>>
C:\J2sdk1.4.2_11\lib\tools.jar;.\tools\buildtime\ant-1
.6.2\ant.jar;.\tools\build
>>>>>>
>>>>>>
time\ant-1.6.2\ant-launcher.jar;.\tools\buildtime\ant-1
.6.2\ant-junit.jar;.\tool
>>>>>>
>>>>>>
s\buildtime\ant-1.6.2\ant-commons-net.jar;.\tools\build
time\ant-1.6.2\commons-ne
>>>>>>
>>>>>>
t-1.2.2.jar;.\tools\buildtime\ant-1.6.2\jakarta-oro-2.0.
8.jar;.\tools\buildtime\
>>>>>>
>>>>>> junit-3.8.1.jar
>>>>>> Buildfile: build.xml
>>>>>>
>>>>>> build-beans:
>>>>>> [jar] Building jar:
C:\roller-src\build\lib\rollerbeans.jar
>>>>>>
>>>>>> build-web:
>>>>>>
>>>>>> prepare.resin:
>>>>>>
>>>>>> undo.resin:
>>>>>>
>>>>>> stage-web:
>>>>>> [jar] Building jar:
>>>>>>
C:\roller-src\build\roller\WEB-INF\lib\roller
>>>>>> web.jar
>>>>>> [copy] Copying 1 file to
C:\roller-src\build\roller\WEB-INF\lib
>>>>>>
>>>>>> stage-dbscripts:
>>>>>> [texen] Using contextProperties
file:
>>>>>> C:\roller-src\metadata\databa
>>>>>> se\mysql.properties
>>>>>> [texen]
C:\roller-src/metadata/database/
>>>>>> [texen] Generating to file
>>>>>>
C:\roller-src\build\roller\WEB-INF\dbscr
>>>>>> ipts\mysql\README.txt
>>>>>> [texen] Using contextProperties
file:
>>>>>> C:\roller-src\metadata\databa
>>>>>> se\postgresql.properties
>>>>>> [texen]
C:\roller-src/metadata/database/
>>>>>> [texen] Generating to file
>>>>>>
C:\roller-src\build\roller\WEB-INF\dbscr
>>>>>> ipts\postgresql\README.txt
>>>>>> [texen] Using contextProperties
file:
>>>>>> C:\roller-src\metadata\databa
>>>>>> se\hsqldb.properties
>>>>>> [texen]
C:\roller-src/metadata/database/
>>>>>> [texen] Generating to file
>>>>>>
C:\roller-src\build\roller\WEB-INF\dbscr
>>>>>> ipts\hsqldb\README.txt
>>>>>> [texen] Using contextProperties
file:
>>>>>> C:\roller-src\metadata\databa
>>>>>> se\derby.properties
>>>>>> [texen]
C:\roller-src/metadata/database/
>>>>>> [texen] Generating to file
>>>>>>
C:\roller-src\build\roller\WEB-INF\dbscr
>>>>>> ipts\derby\README.txt
>>>>>> [texen] Using contextProperties
file:
>>>>>> C:\roller-src\metadata\databa
>>>>>> se\db2.properties
>>>>>> [texen]
C:\roller-src/metadata/database/
>>>>>> [texen] Generating to file
>>>>>>
C:\roller-src\build\roller\WEB-INF\dbscr
>>>>>> ipts\db2\README.txt
>>>>>> [texen] Using contextProperties
file:
>>>>>> C:\roller-src\metadata\databa
>>>>>> se\oracle.properties
>>>>>> [texen]
C:\roller-src/metadata/database/
>>>>>> [texen] Generating to file
>>>>>>
C:\roller-src\build\roller\WEB-INF\dbscr
>>>>>> ipts\oracle\README.txt
>>>>>>
>>>>>> copy-web:
>>>>>>
>>>>>> build-contrib:
>>>>>> [echo] making
../build/compile_contrib
>>>>>>
>>>>>> plugins:
>>>>>> [jar] Building jar:
>>>>>>
C:\roller-src\build\roller\WEB-INF\lib\roller
>>>>>> contrib.jar
>>>>>>
>>>>>> build:
>>>>>>
>>>>>> build-tests:
>>>>>>
>>>>>> BUILD FAILED
>>>>>> java.lang.ClassFormatError:
org/roller/ant/StartHsqldbTask
>>>>>> (Illegal Field name "
>>>>>> has inconsistent hierarchy")
>>>>>>
>>>>>> Total time: 7 seconds
>>>>>>
>>>>>> Shervin
>>>>>
>>>>
>>>>
>>>> --Med vennlig hilsen
>>>>
>>>> Shervin Asgari
>>>> Systemkonsulent
>>>>
>>>> Linpro AS
>>>> Ledende på Linux
>>>>
>>>> Mobil: +47 918 64 148
>>>>
>>>
>>
|
|
[1-8]
|
|