Error DHIS2 building

Hi there,

I’m just getting started with DHIS2. I got following errors when building the source code:

  1. Building dhis-2 with tests:

Tests in error:
addGet(org.hisp.dhis.patientdatavalue.PatientDataValueStoreTest)

aggregate

(org.hisp.dhis.patientdatavalue.aggregation.PatientDataValueAggregationEngineTest)
addGet(org.hisp.dhis.patient.PatientStoreTest)
getAll(org.hisp.dhis.patient.PatientStoreTest)
delete(org.hisp.dhis.patient.PatientStoreTest)

Tests run: 6, Failures: 0, Errors: 5, Skipped: 0

  1. Then I got success when building it without tests, but building dhis-web I got this error:

[INFO] Building DHIS Web Portal
[INFO] task-segment: [clean, install]

[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory C:\cygwin\home\Quang\dhis2\dhis-2\dhis-web\dhis-web-portal

\target
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using encoding: ‘UTF-8’ to copy filtered resources.
Downloading: http://www.amplecode.org/maven2/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-report
ing-2.0.4-SNAPSHOT.war
[INFO] Unable to find resource 'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository amplecode_maven
2_repo (http://www.amplecode.org/maven2)

Downloading: http://jasperreports.sourceforge.net/maven2/org/hisp/dhis/dhis-web-

excel-reporting/2.0.4-SNAPSHOT/dhis-web-
excel-reporting-2.0.4-SNAPSHOT.war

[INFO] Unable to find resource 'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository jasperreports (
http://jasperreports.sourceforge.net/maven2)

Downloading: http://repository.codehaus.org/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-reporti
ng-2.0.4-SNAPSHOT.war

[INFO] Unable to find resource 'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository org.codehaus.wo
odstox (http://repository.codehaus.org)

Downloading: http://dhis.uio.no/maven/external/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-repo
rting-2.0.4-SNAPSHOT.war

[INFO] Unable to find resource 'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository dhis.uio.no (ht
tp://dhis.uio.no/maven/external)

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:

···
  1. org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.hisp.dhis -DartifactId=dhis-web-excel-

reporting -Dversion=2.0.4-SNAPSHOT -D
packaging=war -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.hisp.dhis -DartifactId=dhis-web-excel-

reporting -Dversion=2.0.4-SNAPSHOT -Dpa
ckaging=war -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.hisp.dhis:dhis-web-portal:war:2.0.4-SNAPSHOT
2) org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-SNAPSHOT


1 required artifact is missing.

for artifact:
org.hisp.dhis:dhis-web-portal:war:2.0.4-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2),

amplecode_maven2_repo (http://www.amplecode.org/maven2),
org.codehaus.woodstox (http://repository.codehaus.org),
jasperreports (http://jasperreports.sourceforge.net/maven2),

dhis.uio.no (http://dhis.uio.no/maven/external)

[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 minutes 32 seconds
[INFO] Finished at: Mon Mar 01 11:43:11 ICT 2010

[INFO] Final Memory: 25M/63M
[INFO] ------------------------------------------------------------------------

  1. Remove dhis-web-excel-reporting from the POM file of dhis-web-portal, it’s okay to run the project. However I got out of memory exception as soon as I logged-in to the system (still error when JAVA_OPTS environment variable was set).

Hope anybody can help me out.
Thank you very much!

Best regards,
Quang

Hei Quang,
It’s okay here… with my computer (just built successfully a few minutes ago).
Sometimes before I also got errors like that… check out your Internet connection… try AGAIN… just downloading libraries.

Btw, I often use: mvn install -Dmaven.test.skip=true to SKIP the test cases due to time-consuming.

Goodluck then!

···

On Tue, Mar 2, 2010 at 12:37 PM, Quang Nguyen quangnguyen111@gmail.com wrote:

Hi there,

I’m just getting started with DHIS2. I got following errors when building the source code:

  1. Building dhis-2 with tests:

Tests in error:
addGet(org.hisp.dhis.patientdatavalue.PatientDataValueStoreTest)

aggregate

(org.hisp.dhis.patientdatavalue.aggregation.PatientDataValueAggregationEngineTest)
addGet(org.hisp.dhis.patient.PatientStoreTest)
getAll(org.hisp.dhis.patient.PatientStoreTest)
delete(org.hisp.dhis.patient.PatientStoreTest)

Tests run: 6, Failures: 0, Errors: 5, Skipped: 0

  1. Then I got success when building it without tests, but building dhis-web I got this error:

[INFO] Building DHIS Web Portal
[INFO] task-segment: [clean, install]

[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory C:\cygwin\home\Quang\dhis2\dhis-2\dhis-web\dhis-web-portal

\target
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using encoding: ‘UTF-8’ to copy filtered resources.
Downloading: http://www.amplecode.org/maven2/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-report
ing-2.0.4-SNAPSHOT.war
[INFO] Unable to find resource 'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository amplecode_maven

2_repo (http://www.amplecode.org/maven2)

Downloading: http://jasperreports.sourceforge.net/maven2/org/hisp/dhis/dhis-web-

excel-reporting/2.0.4-SNAPSHOT/dhis-web-

excel-reporting-2.0.4-SNAPSHOT.war

[INFO] Unable to find resource 'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository jasperreports (
http://jasperreports.sourceforge.net/maven2)

Downloading: http://repository.codehaus.org/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-reporti

ng-2.0.4-SNAPSHOT.war

[INFO] Unable to find resource 'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository org.codehaus.wo
odstox (http://repository.codehaus.org)

Downloading: http://dhis.uio.no/maven/external/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-repo

rting-2.0.4-SNAPSHOT.war

[INFO] Unable to find resource 'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository dhis.uio.no (ht
tp://dhis.uio.no/maven/external)

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:

  1. org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.hisp.dhis -DartifactId=dhis-web-excel-

reporting -Dversion=2.0.4-SNAPSHOT -D
packaging=war -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.hisp.dhis -DartifactId=dhis-web-excel-

reporting -Dversion=2.0.4-SNAPSHOT -Dpa
ckaging=war -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.hisp.dhis:dhis-web-portal:war:2.0.4-SNAPSHOT
2) org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-SNAPSHOT


1 required artifact is missing.

for artifact:
org.hisp.dhis:dhis-web-portal:war:2.0.4-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2),

amplecode_maven2_repo (http://www.amplecode.org/maven2),
org.codehaus.woodstox (http://repository.codehaus.org),

jasperreports (http://jasperreports.sourceforge.net/maven2),

dhis.uio.no (http://dhis.uio.no/maven/external)

[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 minutes 32 seconds
[INFO] Finished at: Mon Mar 01 11:43:11 ICT 2010

[INFO] Final Memory: 25M/63M
[INFO] ------------------------------------------------------------------------

  1. Remove dhis-web-excel-reporting from the POM file of dhis-web-portal, it’s okay to run the project. However I got out of memory exception as soon as I logged-in to the system (still error when JAVA_OPTS environment variable was set).

Hope anybody can help me out.
Thank you very much!

Best regards,
Quang


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Best regards,
Kim-Anh Vo

+84.906612246
kavo@ifi.uio.no
Coordinator of HISP(hisp.info) in Vietnam

Master of Information Systems
at the University of Oslo

join facebook at www.facebook.com join LinkedIn at www.linkedin.com

Hi there. I am getting other errors, and have been getting these for
some time now. I cannot pin down exactly which revision this started
happening on. The stacktrace is long, and I have posted it here

This was from rev 1524.

I am using Debian Etch, Apache Tomcat 6.0.18 and Java JDK1.6.0_10

Any help would be appreciated.

Best regards,
Jason

···

On Tue, Mar 2, 2010 at 8:21 AM, Kim-Anh Vo <catakim@gmail.com> wrote:

Hei Quang,
It's okay here... with my computer (just built successfully a few minutes
ago).
Sometimes before I also got errors like that... check out your Internet
connection... try AGAIN... just downloading libraries.
Btw, I often use: mvn install -Dmaven.test.skip=true to SKIP the test cases
due to time-consuming.

Goodluck then!

On Tue, Mar 2, 2010 at 12:37 PM, Quang Nguyen <quangnguyen111@gmail.com> > wrote:

Hi there,

I'm just getting started with DHIS2. I got following errors when building
the source code:

1. Building dhis-2 with tests:

Tests in error:
addGet(org.hisp.dhis.patientdatavalue.PatientDataValueStoreTest)
aggregate

(org.hisp.dhis.patientdatavalue.aggregation.PatientDataValueAggregationEngineTest)
addGet(org.hisp.dhis.patient.PatientStoreTest)
getAll(org.hisp.dhis.patient.PatientStoreTest)
delete(org.hisp.dhis.patient.PatientStoreTest)

Tests run: 6, Failures: 0, Errors: 5, Skipped: 0

2. Then I got success when building it without tests, but building
dhis-web I got this error:

[INFO] Building DHIS Web Portal
[INFO] task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory
C:\cygwin\home\Quang\dhis2\dhis-2\dhis-web\dhis-web-portal

\target
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
Downloading: http://www.amplecode.org/maven2/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-report
ing-2.0.4-SNAPSHOT.war
[INFO] Unable to find resource
'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT' in repository amplecode_maven
2_repo (http://www.amplecode.org/maven2\)
Downloading:
http://jasperreports.sourceforge.net/maven2/org/hisp/dhis/dhis-web-

excel-reporting/2.0.4-SNAPSHOT/dhis-web-
excel-reporting-2.0.4-SNAPSHOT.war
[INFO] Unable to find resource
'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT' in repository jasperreports (
http://jasperreports.sourceforge.net/maven2\)
Downloading: http://repository.codehaus.org/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-reporti
ng-2.0.4-SNAPSHOT.war
[INFO] Unable to find resource
'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT' in repository org.codehaus.wo
odstox (http://repository.codehaus.org)
Downloading:
http://dhis.uio.no/maven/external/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-repo
rting-2.0.4-SNAPSHOT.war
[INFO] Unable to find resource
'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT' in repository dhis.uio.no (ht
tp://dhis.uio.no/maven/external)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.hisp.dhis
-DartifactId=dhis-web-excel-

reporting -Dversion=2.0.4-SNAPSHOT -D
packaging=war -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.hisp.dhis
-DartifactId=dhis-web-excel-

reporting -Dversion=2.0.4-SNAPSHOT -Dpa
ckaging=war -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.hisp.dhis:dhis-web-portal:war:2.0.4-SNAPSHOT
2) org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
org.hisp.dhis:dhis-web-portal:war:2.0.4-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2\),
amplecode_maven2_repo (http://www.amplecode.org/maven2\),
org.codehaus.woodstox (http://repository.codehaus.org),
jasperreports (http://jasperreports.sourceforge.net/maven2\),
dhis.uio.no (http://dhis.uio.no/maven/external\)

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9 minutes 32 seconds
[INFO] Finished at: Mon Mar 01 11:43:11 ICT 2010
[INFO] Final Memory: 25M/63M
[INFO]
------------------------------------------------------------------------

3. Remove dhis-web-excel-reporting from the POM file of dhis-web-portal,
it's okay to run the project. However I got out of memory exception as soon
as I logged-in to the system (still error when JAVA_OPTS environment
variable was set).

Hope anybody can help me out.
Thank you very much!

Best regards,
Quang

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp

--
--
Best regards,
Kim-Anh Vo

+84.906612246
kavo@ifi.uio.no
Coordinator of HISP(hisp.info) in Vietnam
Master of Information Systems
at the University of Oslo
------------------------------------
join facebook at www.facebook.com join LinkedIn at www.linkedin.com

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp

--
--
Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+260968395190

Hi there,

I’m just getting started with DHIS2. I got following errors when building the source code:

  1. Building dhis-2 with tests:

Tests in error:
addGet(org.hisp.dhis.patientdatavalue.PatientDataValueStoreTest)

aggregate

(org.hisp.dhis.patientdatavalue.aggregation.PatientDataValueAggregatiocd nEngineTest)
addGet(org.hisp.dhis.patient.PatientStoreTest)
getAll(org.hisp.dhis.patient.PatientStoreTest)
delete(org.hisp.dhis.patient.PatientStoreTest)

Tests run: 6, Failures: 0, Errors: 5, Skipped: 0

Not sure about this… Could you send the surefire report files in the target folder?

  1. Then I got success when building it without tests, but building dhis-web I got this error:

[INFO] Building DHIS Web Portal
[INFO] task-segment: [clean, install]

[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory C:\cygwin\home\Quang\dhis2\dhis-2\dhis-web\dhis-web-portal

\target
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using encoding: ‘UTF-8’ to copy filtered resources.
Downloading: http://www.amplecode.org/maven2/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-report
ing-2.0.4-SNAPSHOT.war
[INFO] Unable to find resource 'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

This happens because the packaging type for the excel-reporting module was set to JAR and not WAR.

VN uses this setting for debugging and sometimes forgets to put it back…

···

On Tue, Mar 2, 2010 at 6:37 AM, Quang Nguyen quangnguyen111@gmail.com wrote:

SNAPSHOT’ in repository amplecode_maven

2_repo (http://www.amplecode.org/maven2)

Downloading: http://jasperreports.sourceforge.net/maven2/org/hisp/dhis/dhis-web-

excel-reporting/2.0.4-SNAPSHOT/dhis-web-

excel-reporting-2.0.4-SNAPSHOT.war

[INFO] Unable to find resource 'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository jasperreports (
http://jasperreports.sourceforge.net/maven2)

Downloading: http://repository.codehaus.org/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-reporti

ng-2.0.4-SNAPSHOT.war

[INFO] Unable to find resource 'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository org.codehaus.wo
odstox (http://repository.codehaus.org)

Downloading: http://dhis.uio.no/maven/external/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-repo

rting-2.0.4-SNAPSHOT.war

[INFO] Unable to find resource 'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository dhis.uio.no (ht
tp://dhis.uio.no/maven/external)

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:

  1. org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.hisp.dhis -DartifactId=dhis-web-excel-

reporting -Dversion=2.0.4-SNAPSHOT -D
packaging=war -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.hisp.dhis -DartifactId=dhis-web-excel-

reporting -Dversion=2.0.4-SNAPSHOT -Dpa
ckaging=war -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.hisp.dhis:dhis-web-portal:war:2.0.4-SNAPSHOT
2) org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-SNAPSHOT


1 required artifact is missing.

for artifact:
org.hisp.dhis:dhis-web-portal:war:2.0.4-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2),

amplecode_maven2_repo (http://www.amplecode.org/maven2),
org.codehaus.woodstox (http://repository.codehaus.org),

jasperreports (http://jasperreports.sourceforge.net/maven2),

dhis.uio.no (http://dhis.uio.no/maven/external)

[INFO] ------------------------------------------------------------------------

[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 minutes 32 seconds
[INFO] Finished at: Mon Mar 01 11:43:11 ICT 2010

[INFO] Final Memory: 25M/63M
[INFO] ------------------------------------------------------------------------

  1. Remove dhis-web-excel-reporting from the POM file of dhis-web-portal, it’s okay to run the project. However I got out of memory exception as soon as I logged-in to the system (still error when JAVA_OPTS environment variable was set).

Hope anybody can help me out.
Thank you very much!

Best regards,
Quang


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi there. I am getting other errors, and have been getting these for

some time now. I cannot pin down exactly which revision this started

happening on. The stacktrace is long, and I have posted it here

http://www.pastebin.org/99803

This was from rev 1524.

See:

Caused by: org.hibernate.DuplicateMappingException: duplicate import: DataEntryForm refers to both org.hisp.dhis.dataset.DataEntryForm and org.hisp.dhis.dataentryform.DataEntryForm (try using auto-import=“false”)

We changed the hibernate mapping for DataEntryForm some time back. It seems you have both versions of that mapping for a reason. Try cleaning out the org.hisp.dhis part of your maven repo (~/.m2/repository) and do a clean install with mvn.

···

On Tue, Mar 2, 2010 at 7:41 AM, Jason Pickering jason.p.pickering@gmail.com wrote:

I am using Debian Etch, Apache Tomcat 6.0.18 and Java JDK1.6.0_10

Any help would be appreciated.

Best regards,

Jason

On Tue, Mar 2, 2010 at 8:21 AM, Kim-Anh Vo catakim@gmail.com wrote:

Hei Quang,

It’s okay here… with my computer (just built successfully a few minutes

ago).

Sometimes before I also got errors like that… check out your Internet

connection… try AGAIN… just downloading libraries.

Btw, I often use: mvn install -Dmaven.test.skip=true to SKIP the test cases

due to time-consuming.

Goodluck then!

On Tue, Mar 2, 2010 at 12:37 PM, Quang Nguyen quangnguyen111@gmail.com > > > wrote:

Hi there,

I’m just getting started with DHIS2. I got following errors when building

the source code:

  1. Building dhis-2 with tests:

Tests in error:

addGet(org.hisp.dhis.patientdatavalue.PatientDataValueStoreTest)

aggregate

(org.hisp.dhis.patientdatavalue.aggregation.PatientDataValueAggregationEngineTest)

addGet(org.hisp.dhis.patient.PatientStoreTest)

getAll(org.hisp.dhis.patient.PatientStoreTest)

delete(org.hisp.dhis.patient.PatientStoreTest)

Tests run: 6, Failures: 0, Errors: 5, Skipped: 0

  1. Then I got success when building it without tests, but building

dhis-web I got this error:

[INFO] Building DHIS Web Portal

[INFO] task-segment: [clean, install]

[INFO]


[INFO] [clean:clean {execution: default-clean}]

[INFO] Deleting directory

C:\cygwin\home\Quang\dhis2\dhis-2\dhis-web\dhis-web-portal

\target

[INFO] [resources:resources {execution: default-resources}]

[INFO] Using encoding: ‘UTF-8’ to copy filtered resources.

Downloading: http://www.amplecode.org/maven2/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-report

ing-2.0.4-SNAPSHOT.war

[INFO] Unable to find resource

'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository amplecode_maven

2_repo (http://www.amplecode.org/maven2)

Downloading:

http://jasperreports.sourceforge.net/maven2/org/hisp/dhis/dhis-web-

excel-reporting/2.0.4-SNAPSHOT/dhis-web-

excel-reporting-2.0.4-SNAPSHOT.war

[INFO] Unable to find resource

'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository jasperreports (

http://jasperreports.sourceforge.net/maven2)

Downloading: http://repository.codehaus.org/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-reporti

ng-2.0.4-SNAPSHOT.war

[INFO] Unable to find resource

'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository org.codehaus.wo

odstox (http://repository.codehaus.org)

Downloading:

http://dhis.uio.no/maven/external/org/hisp/dhis/dhis-web-excel-

reporting/2.0.4-SNAPSHOT/dhis-web-excel-repo

rting-2.0.4-SNAPSHOT.war

[INFO] Unable to find resource

'org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-

SNAPSHOT’ in repository dhis.uio.no (ht

tp://dhis.uio.no/maven/external)

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Failed to resolve artifact.

Missing:


  1. org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:

  mvn install:install-file -DgroupId=org.hisp.dhis

-DartifactId=dhis-web-excel-

reporting -Dversion=2.0.4-SNAPSHOT -D

packaging=war -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file

there:

  mvn deploy:deploy-file -DgroupId=org.hisp.dhis

-DartifactId=dhis-web-excel-

reporting -Dversion=2.0.4-SNAPSHOT -Dpa

ckaging=war -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:

    1) org.hisp.dhis:dhis-web-portal:war:2.0.4-SNAPSHOT
    2) org.hisp.dhis:dhis-web-excel-reporting:war:2.0.4-SNAPSHOT

1 required artifact is missing.

for artifact:

org.hisp.dhis:dhis-web-portal:war:2.0.4-SNAPSHOT

from the specified remote repositories:

central (http://repo1.maven.org/maven2),

amplecode_maven2_repo (http://www.amplecode.org/maven2),

org.codehaus.woodstox (http://repository.codehaus.org),

jasperreports (http://jasperreports.sourceforge.net/maven2),

dhis.uio.no (http://dhis.uio.no/maven/external)

[INFO]


[INFO] For more information, run Maven with the -e switch

[INFO]


[INFO] Total time: 9 minutes 32 seconds

[INFO] Finished at: Mon Mar 01 11:43:11 ICT 2010

[INFO] Final Memory: 25M/63M

[INFO]


  1. Remove dhis-web-excel-reporting from the POM file of dhis-web-portal,

it’s okay to run the project. However I got out of memory exception as soon

as I logged-in to the system (still error when JAVA_OPTS environment

variable was set).

Hope anybody can help me out.

Thank you very much!

Best regards,

Quang


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Best regards,

Kim-Anh Vo

+84.906612246

kavo@ifi.uio.no

Coordinator of HISP(hisp.info) in Vietnam

Master of Information Systems

at the University of Oslo


join facebook at www.facebook.com join LinkedIn at www.linkedin.com


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Jason P. Pickering

email: jason.p.pickering@gmail.com

tel:+260968395190


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi all,

Not sure about this… Could you send the surefire report files in the target folder?

Enclosed is the surefine reports.

This happens because the packaging type for the excel-reporting module was set to JAR and not WAR.

VN uses this setting for debugging and sometimes forgets to put it back…

We should set it back to WAR, shouldn’t we?

  1. Remove dhis-web-excel-reporting from the POM file of dhis-web-portal, it’s okay to run the project. However I got out of memory exception as soon as I logged-in to the system (still error when JAVA_OPTS environment variable was set).

I still got the out of memory exception. My computer has 3GBs of memory, running Windows 7, jdk1.6.0_16, maven 2.2.1 with JAVA_OPTS=-Xms256m -Xmx768m -XX:PermSize=256m -XX:MaxPermSize=768m environment variable. Any ideas?

Thank you.
Best regards,
Quang

···

2010/3/2 Lars Helge Øverland larshelge@gmail.com

Sorry, I forgot to attach the file :slight_smile:

surefire-reports.rar (16 KB)

···

2010/3/2 Quang Nguyen quangnguyen111@gmail.com

Hi all,

2010/3/2 Lars Helge Øverland larshelge@gmail.com

Not sure about this… Could you send the surefire report files in the target folder?

Enclosed is the surefine reports.

This happens because the packaging type for the excel-reporting module was set to JAR and not WAR.

VN uses this setting for debugging and sometimes forgets to put it back…

We should set it back to WAR, shouldn’t we?

  1. Remove dhis-web-excel-reporting from the POM file of dhis-web-portal, it’s okay to run the project. However I got out of memory exception as soon as I logged-in to the system (still error when JAVA_OPTS environment variable was set).

I still got the out of memory exception. My computer has 3GBs of memory, running Windows 7, jdk1.6.0_16, maven 2.2.1 with JAVA_OPTS=-Xms256m -Xmx768m -XX:PermSize=256m -XX:MaxPermSize=768m environment variable. Any ideas?

Thank you.
Best regards,
Quang

Hi,

First, I think you should upgrade to jdk1.6.0_17

Second , did you add this variable MAVEN_OPTS = -Xms256m -Xmx512m ?

regards,

···

2010/3/2 Quang Nguyen quangnguyen111@gmail.com

Sorry, I forgot to attach the file :slight_smile:

2010/3/2 Quang Nguyen quangnguyen111@gmail.com

Hi all,

2010/3/2 Lars Helge Øverland larshelge@gmail.com

Not sure about this… Could you send the surefire report files in the target folder?

Enclosed is the surefine reports.

This happens because the packaging type for the excel-reporting module was set to JAR and not WAR.

VN uses this setting for debugging and sometimes forgets to put it back…

We should set it back to WAR, shouldn’t we?

  1. Remove dhis-web-excel-reporting from the POM file of dhis-web-portal, it’s okay to run the project. However I got out of memory exception as soon as I logged-in to the system (still error when JAVA_OPTS environment variable was set).

I still got the out of memory exception. My computer has 3GBs of memory, running Windows 7, jdk1.6.0_16, maven 2.2.1 with JAVA_OPTS=-Xms256m -Xmx768m -XX:PermSize=256m -XX:MaxPermSize=768m environment variable. Any ideas?

Thank you.
Best regards,
Quang


Viet Nguyen

Sorry, I forgot to attach the file :slight_smile:

Hi all,

Not sure about this… Could you send the surefire report files in the target folder?

Enclosed is the surefine reports.

This happens because the packaging type for the excel-reporting module was set to JAR and not WAR.

VN uses this setting for debugging and sometimes forgets to put it back…

We should set it back to WAR, shouldn’t we?

  1. Remove dhis-web-excel-reporting from the POM file of dhis-web-portal, it’s okay to run the project. However I got out of memory exception as soon as I logged-in to the system (still error when JAVA_OPTS environment variable was set).

I still got the out of memory exception. My computer has 3GBs of memory, running Windows 7, jdk1.6.0_16, maven 2.2.1 with JAVA_OPTS=-Xms256m -Xmx768m -XX:PermSize=256m -XX:MaxPermSize=768m environment variable. Any ideas?

Thank you.
Best regards,
Quang

Hi,

First, I think you should upgrade to jdk1.6.0_17

Second , did you add this variable MAVEN_OPTS = -Xms256m -Xmx512m ?

Hey, it works with MAVEN_OPTS set. Should we put this point on http://dhis2.com/development? It should be useful for newbies like me :slight_smile:

Thank you.
Cheers,
Quang

···

On Tue, Mar 2, 2010 at 6:35 PM, Viet Nguyen phamquocviet@gmail.com wrote:

2010/3/2 Quang Nguyen quangnguyen111@gmail.com

2010/3/2 Quang Nguyen quangnguyen111@gmail.com

2010/3/2 Lars Helge Øverland larshelge@gmail.com

regards,


Viet Nguyen

Sorry, I forgot to attach the file :slight_smile:

Hi all,

Not sure about this… Could you send the surefire report files in the target folder?

Enclosed is the surefine reports.

This happens because the packaging type for the excel-reporting module was set to JAR and not WAR.

VN uses this setting for debugging and sometimes forgets to put it back…

We should set it back to WAR, shouldn’t we?

  1. Remove dhis-web-excel-reporting from the POM file of dhis-web-portal, it’s okay to run the project. However I got out of memory exception as soon as I logged-in to the system (still error when JAVA_OPTS environment variable was set).

I still got the out of memory exception. My computer has 3GBs of memory, running Windows 7, jdk1.6.0_16, maven 2.2.1 with JAVA_OPTS=-Xms256m -Xmx768m -XX:PermSize=256m -XX:MaxPermSize=768m environment variable. Any ideas?

Thank you.
Best regards,
Quang

Hi,

First, I think you should upgrade to jdk1.6.0_17

Second , did you add this variable MAVEN_OPTS = -Xms256m -Xmx512m ?

Hey, it works with MAVEN_OPTS set. Should we put this point on http://dhis2.com/development? It should be useful for newbies like me :slight_smile:

Done.

···

On Tue, Mar 2, 2010 at 12:48 PM, Quang Nguyen quangnguyen111@gmail.com wrote:

On Tue, Mar 2, 2010 at 6:35 PM, Viet Nguyen phamquocviet@gmail.com wrote:

2010/3/2 Quang Nguyen quangnguyen111@gmail.com

2010/3/2 Quang Nguyen quangnguyen111@gmail.com

2010/3/2 Lars Helge Øverland larshelge@gmail.com

Thank you.
Cheers,
Quang

regards,


Viet Nguyen

Thanks. I got it installed and working after updating the JDK to u18,
nuking my .m2 directory, and downloading a fresh version of the
source,and changing the maven opts variables. We should probably
update the docs. I will update the uber-build script in the
dhis2-live-installer as well to take this into account.

···

2010/3/2 Lars Helge Øverland <larshelge@gmail.com>:

On Tue, Mar 2, 2010 at 12:48 PM, Quang Nguyen <quangnguyen111@gmail.com> > wrote:

On Tue, Mar 2, 2010 at 6:35 PM, Viet Nguyen <phamquocviet@gmail.com> >> wrote:

2010/3/2 Quang Nguyen <quangnguyen111@gmail.com>

Sorry, I forgot to attach the file :slight_smile:

2010/3/2 Quang Nguyen <quangnguyen111@gmail.com>

Hi all,

2010/3/2 Lars Helge Øverland <larshelge@gmail.com>

Not sure about this... Could you send the surefire report files in the
target folder?

Enclosed is the surefine reports.

This happens because the packaging type for the excel-reporting module
was set to JAR and not WAR.
VN uses this setting for debugging and sometimes forgets to put it
back...

We should set it back to WAR, shouldn't we?

3. Remove dhis-web-excel-reporting from the POM file of
dhis-web-portal, it's okay to run the project. However I got out of memory
exception as soon as I logged-in to the system (still error when JAVA_OPTS
environment variable was set).

I still got the out of memory exception. My computer has 3GBs of
memory, running Windows 7, jdk1.6.0_16, maven 2.2.1 with JAVA_OPTS=-Xms256m
-Xmx768m -XX:PermSize=256m -XX:MaxPermSize=768m environment variable. Any
ideas?

Thank you.
Best regards,
Quang

Hi,

First, I think you should upgrade to jdk1.6.0_17

Second , did you add this variable MAVEN_OPTS = -Xms256m -Xmx512m ?

Hey, it works with MAVEN_OPTS set. Should we put this point on
http://dhis2.com/development? It should be useful for newbies like me :slight_smile:

Done.

Thank you.
Cheers,
Quang

regards,
--
Viet Nguyen

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp

--
--
Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+260968395190