You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Aswath Satrasala <as...@gmail.com> on 2005/08/17 00:44:54 UTC

build tests

Hello,
I was experimenting on building the roller source.

I performed 'build tests' and the following following BUILD FAILED. Any 
suggestions. Thanks.

build-test:
[mkdir] Created dir: C:\develop\roller\build\tests
[mkdir] Created dir: C:\develop\roller\build\tests\logs
[mkdir] Created dir: C:\develop\roller\build\tests\WEB-INF\classes
[mkdir] Created dir: C:\develop\roller\build\tests\WEB-INF\classes\themes
[javac] Compiling 39 source files to C:\develop\roller\build\tests\WEB-INF\c
lasses
[javac] Note: C:\develop\roller\tests\org\roller\business\ConfigManagerTest.
java uses or overrides a deprecated API.
[javac] Note: Recompile with -deprecation for details.

BUILD FAILED
C:\develop\roller\build.xml:656: Warning: Could not find file 
C:\develop\roller\
personal\testing\roller.properties to copy.

Re: build tests

Posted by Aswath Satrasala <as...@gmail.com>.
Hello,
I downloaded 1.2 sources from java.net <http://java.net>

Thanks.

On 8/18/05, Dave Johnson <da...@rollerweblogger.org> wrote:
> 
> 
> On Aug 18, 2005, at 3:04 AM, Aswath Satrasala wrote:
> 
> > Hi
> > Thanks. In addition to roller.properties, I have to copy
> > -bookmarks.opml
> > -log4j.properties and
> > -hibernate.cfg.xml
> > Now I got the following errors
> > Question: why is it starting HSQLDB?
> 
> For testing, we start HSQLDB, create the Roller tables, run the tests,
> and then shutdown the DB.
> 
> So the question is, why does ROLLERUSER already exist in the DB. I'd
> like to fix this, which branch are in working in?
> 
> - Dave
> 
> 
> >
> > test-hibernate:
> > [startdb] Starting HSQLDB
> > [startdb] [Server@1b06041]: [Thread[Thread-0,5,main]]:
> > checkRunning(false)
> > ent
> > ered
> > [startdb] [Server@1b06041]: [Thread[Thread-0,5,main]]:
> > checkRunning(false)
> > exi
> > ted
> > [startdb] [Server@1b06041]: Startup sequence initiated from main()
> > method
> > [startdb] [Server@1b06041]: Loaded properties from
> > [C:\develop\roller\server.p
> > roperties]
> > [startdb] [Server@1b06041]: Initiating startup sequence...
> > [startdb] [Server@1b06041]: Server socket opened successfully in 32 ms.
> > [startdb] [Server@1b06041]: Database [index=0, id=0,
> > db=file:./build/tests/tes
> > tdb, alias=] opened sucessfully in 469 ms.
> > [startdb] [Server@1b06041]: Startup sequence completed in 516 ms.
> > [startdb] [Server@1b06041]: 2005-08-17 23:59:41.562 HSQLDB server
> > 1.7.2 is
> > onl
> > ine
> > [startdb] [Server@1b06041]: To close normally, connect and execute
> > SHUTDOWN
> > SQ
> > L
> > [startdb] [Server@1b06041]: From command line, use [Ctrl]+[C] to abort
> > abruptl
> > y
> > [sql] Executing file:
> > C:\develop\roller\build\roller\WEB-INF\dbscripts\hsq
> > l\createdb.sql
> > [sql] Failed to execute: create table rolleruser ( id var
> > char(48) not null primary key, username varchar(255) not null,
> > passphrase
> > varchar(255) not null, fullname varchar(255) not null, emailaddress
> > varchar(255) not null, datecreated timestamp not null )
> >
> > BUILD FAILED
> > C:\develop\roller\build.xml:622: The following error occurred while
> > executing th
> > is line:
> > C:\develop\roller\build.xml:715: java.sql.SQLException: Table already
> > exists: RO
> > LLERUSER in statement [ create table rolleruser]
> >
> > Total time: 12 seconds
> > C:\develop\roller>
> >
> > On 8/17/05, Dave Johnson <da...@rollerweblogger.org> wrote:
> >>
> >> Until I fix this, you can (probably) get going by copying
> >> roller.properties from web/WEB-INF/classes to that personal/testing
> >> dir.
> >>
> >> - Dave
> >>
> >>
> >> On Aug 16, 2005, at 6:44 PM, Aswath Satrasala wrote:
> >>
> >>> Hello,
> >>> I was experimenting on building the roller source.
> >>>
> >>> I performed 'build tests' and the following following BUILD FAILED.
> >>> Any
> >>> suggestions. Thanks.
> >>>
> >>> build-test:
> >>> [mkdir] Created dir: C:\develop\roller\build\tests
> >>> [mkdir] Created dir: C:\develop\roller\build\tests\logs
> >>> [mkdir] Created dir: C:\develop\roller\build\tests\WEB-INF\classes
> >>> [mkdir] Created dir:
> >>> C:\develop\roller\build\tests\WEB-INF\classes\themes
> >>> [javac] Compiling 39 source files to
> >>> C:\develop\roller\build\tests\WEB-INF\c
> >>> lasses
> >>> [javac] Note:
> >>> C:\develop\roller\tests\org\roller\business\ConfigManagerTest.
> >>> java uses or overrides a deprecated API.
> >>> [javac] Note: Recompile with -deprecation for details.
> >>>
> >>> BUILD FAILED
> >>> C:\develop\roller\build.xml:656: Warning: Could not find file
> >>> C:\develop\roller\
> >>> personal\testing\roller.properties to copy.
> >>
> >>
> 
>

Re: build tests

Posted by Dave Johnson <da...@rollerweblogger.org>.
On Aug 18, 2005, at 3:04 AM, Aswath Satrasala wrote:

> Hi
> Thanks. In addition to roller.properties, I have to copy
> -bookmarks.opml
> -log4j.properties and
> -hibernate.cfg.xml
> Now I got the following errors
> Question: why is it starting HSQLDB?

For testing, we start HSQLDB, create the Roller tables, run the tests, 
and then shutdown the DB.

So the question is, why does ROLLERUSER already exist in the DB. I'd 
like to fix this, which branch are in working in?

- Dave


>
> test-hibernate:
> [startdb] Starting HSQLDB
> [startdb] [Server@1b06041]: [Thread[Thread-0,5,main]]: 
> checkRunning(false)
> ent
> ered
> [startdb] [Server@1b06041]: [Thread[Thread-0,5,main]]: 
> checkRunning(false)
> exi
> ted
> [startdb] [Server@1b06041]: Startup sequence initiated from main() 
> method
> [startdb] [Server@1b06041]: Loaded properties from
> [C:\develop\roller\server.p
> roperties]
> [startdb] [Server@1b06041]: Initiating startup sequence...
> [startdb] [Server@1b06041]: Server socket opened successfully in 32 ms.
> [startdb] [Server@1b06041]: Database [index=0, id=0,
> db=file:./build/tests/tes
> tdb, alias=] opened sucessfully in 469 ms.
> [startdb] [Server@1b06041]: Startup sequence completed in 516 ms.
> [startdb] [Server@1b06041]: 2005-08-17 23:59:41.562 HSQLDB server 
> 1.7.2 is
> onl
> ine
> [startdb] [Server@1b06041]: To close normally, connect and execute 
> SHUTDOWN
> SQ
> L
> [startdb] [Server@1b06041]: From command line, use [Ctrl]+[C] to abort
> abruptl
> y
> [sql] Executing file: 
> C:\develop\roller\build\roller\WEB-INF\dbscripts\hsq
> l\createdb.sql
> [sql] Failed to execute: create table rolleruser ( id var
> char(48) not null primary key, username varchar(255) not null, 
> passphrase
> varchar(255) not null, fullname varchar(255) not null, emailaddress
> varchar(255) not null, datecreated timestamp not null )
>
> BUILD FAILED
> C:\develop\roller\build.xml:622: The following error occurred while
> executing th
> is line:
> C:\develop\roller\build.xml:715: java.sql.SQLException: Table already
> exists: RO
> LLERUSER in statement [ create table rolleruser]
>
> Total time: 12 seconds
> C:\develop\roller>
>
> On 8/17/05, Dave Johnson <da...@rollerweblogger.org> wrote:
>>
>> Until I fix this, you can (probably) get going by copying
>> roller.properties from web/WEB-INF/classes to that personal/testing
>> dir.
>>
>> - Dave
>>
>>
>> On Aug 16, 2005, at 6:44 PM, Aswath Satrasala wrote:
>>
>>> Hello,
>>> I was experimenting on building the roller source.
>>>
>>> I performed 'build tests' and the following following BUILD FAILED. 
>>> Any
>>> suggestions. Thanks.
>>>
>>> build-test:
>>> [mkdir] Created dir: C:\develop\roller\build\tests
>>> [mkdir] Created dir: C:\develop\roller\build\tests\logs
>>> [mkdir] Created dir: C:\develop\roller\build\tests\WEB-INF\classes
>>> [mkdir] Created dir:
>>> C:\develop\roller\build\tests\WEB-INF\classes\themes
>>> [javac] Compiling 39 source files to
>>> C:\develop\roller\build\tests\WEB-INF\c
>>> lasses
>>> [javac] Note:
>>> C:\develop\roller\tests\org\roller\business\ConfigManagerTest.
>>> java uses or overrides a deprecated API.
>>> [javac] Note: Recompile with -deprecation for details.
>>>
>>> BUILD FAILED
>>> C:\develop\roller\build.xml:656: Warning: Could not find file
>>> C:\develop\roller\
>>> personal\testing\roller.properties to copy.
>>
>>


Re: build tests

Posted by Aswath Satrasala <as...@gmail.com>.
Hi
Thanks. In addition to roller.properties, I have to copy 
-bookmarks.opml
-log4j.properties and
-hibernate.cfg.xml

Now I got the following errors
Question: why is it starting HSQLDB?

test-hibernate:
[startdb] Starting HSQLDB
[startdb] [Server@1b06041]: [Thread[Thread-0,5,main]]: checkRunning(false) 
ent
ered
[startdb] [Server@1b06041]: [Thread[Thread-0,5,main]]: checkRunning(false) 
exi
ted
[startdb] [Server@1b06041]: Startup sequence initiated from main() method
[startdb] [Server@1b06041]: Loaded properties from 
[C:\develop\roller\server.p
roperties]
[startdb] [Server@1b06041]: Initiating startup sequence...
[startdb] [Server@1b06041]: Server socket opened successfully in 32 ms.
[startdb] [Server@1b06041]: Database [index=0, id=0, 
db=file:./build/tests/tes
tdb, alias=] opened sucessfully in 469 ms.
[startdb] [Server@1b06041]: Startup sequence completed in 516 ms.
[startdb] [Server@1b06041]: 2005-08-17 23:59:41.562 HSQLDB server 1.7.2 is 
onl
ine
[startdb] [Server@1b06041]: To close normally, connect and execute SHUTDOWN 
SQ
L
[startdb] [Server@1b06041]: From command line, use [Ctrl]+[C] to abort 
abruptl
y
[sql] Executing file: C:\develop\roller\build\roller\WEB-INF\dbscripts\hsq
l\createdb.sql
[sql] Failed to execute: create table rolleruser ( id var
char(48) not null primary key, username varchar(255) not null, passphrase
varchar(255) not null, fullname varchar(255) not null, emailaddress
varchar(255) not null, datecreated timestamp not null )

BUILD FAILED
C:\develop\roller\build.xml:622: The following error occurred while 
executing th
is line:
C:\develop\roller\build.xml:715: java.sql.SQLException: Table already 
exists: RO
LLERUSER in statement [ create table rolleruser]

Total time: 12 seconds
C:\develop\roller>

On 8/17/05, Dave Johnson <da...@rollerweblogger.org> wrote:
> 
> Until I fix this, you can (probably) get going by copying
> roller.properties from web/WEB-INF/classes to that personal/testing
> dir.
> 
> - Dave
> 
> 
> On Aug 16, 2005, at 6:44 PM, Aswath Satrasala wrote:
> 
> > Hello,
> > I was experimenting on building the roller source.
> >
> > I performed 'build tests' and the following following BUILD FAILED. Any
> > suggestions. Thanks.
> >
> > build-test:
> > [mkdir] Created dir: C:\develop\roller\build\tests
> > [mkdir] Created dir: C:\develop\roller\build\tests\logs
> > [mkdir] Created dir: C:\develop\roller\build\tests\WEB-INF\classes
> > [mkdir] Created dir:
> > C:\develop\roller\build\tests\WEB-INF\classes\themes
> > [javac] Compiling 39 source files to
> > C:\develop\roller\build\tests\WEB-INF\c
> > lasses
> > [javac] Note:
> > C:\develop\roller\tests\org\roller\business\ConfigManagerTest.
> > java uses or overrides a deprecated API.
> > [javac] Note: Recompile with -deprecation for details.
> >
> > BUILD FAILED
> > C:\develop\roller\build.xml:656: Warning: Could not find file
> > C:\develop\roller\
> > personal\testing\roller.properties to copy.
> 
>

Re: build tests

Posted by Dave Johnson <da...@rollerweblogger.org>.
Until I fix this, you can (probably) get going by copying 
roller.properties from web/WEB-INF/classes to that personal/testing 
dir.

- Dave


On Aug 16, 2005, at 6:44 PM, Aswath Satrasala wrote:

> Hello,
> I was experimenting on building the roller source.
>
> I performed 'build tests' and the following following BUILD FAILED. Any
> suggestions. Thanks.
>
> build-test:
> [mkdir] Created dir: C:\develop\roller\build\tests
> [mkdir] Created dir: C:\develop\roller\build\tests\logs
> [mkdir] Created dir: C:\develop\roller\build\tests\WEB-INF\classes
> [mkdir] Created dir: 
> C:\develop\roller\build\tests\WEB-INF\classes\themes
> [javac] Compiling 39 source files to 
> C:\develop\roller\build\tests\WEB-INF\c
> lasses
> [javac] Note: 
> C:\develop\roller\tests\org\roller\business\ConfigManagerTest.
> java uses or overrides a deprecated API.
> [javac] Note: Recompile with -deprecation for details.
>
> BUILD FAILED
> C:\develop\roller\build.xml:656: Warning: Could not find file
> C:\develop\roller\
> personal\testing\roller.properties to copy.