← Back to team overview

dhis2-devs team mailing list archive

Re: [Dhis2-devs-core] dhis2 source-code giving file not found error while compiling through maven

 

Hi Abdul

I would recommend putting the source directly on your d drive,
e:\dhis2\2.21 or something, window can have issues with long filenames.

After you do that, please do:
1) cd dhis-2
2) mvn clean install
3) cd dhis-web
4) mvn clean install
5) cd dhis-web-portal
6) mvn jetty:run-war

This should start up dhis, as long as you have configured your
dhis.conf/hibernate.properties.

--
Morten

On Tue, Feb 2, 2016 at 1:16 PM, Abdul Qudoos <abdul.bsse1399@xxxxxxxxx>
wrote:

> Hello
> Does anyone know about this error? Still same error in every attempt.
> When I run mvn install command from dhis2 directory, This msg comes after
> some downloading
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.hisp.dhis.appmanager.AppTest
> Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.016 sec
> <<< FAILURE! - in org.hisp.dhis.appmanager.AppTest
> testOptionalProperties(org.hisp.dhis.appmanager.AppTest)  Time elapsed:
> 0.013 sec  <<< ERROR!
> java.io.FileNotFoundException: File
> 'E:\Abdul%20Qudoos\MM%20New\2.21\dhis-2\dhis-api\target\test-classes\manifest.webapp'
> does not exist
>         at
> org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
>         at
> org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1711)
>         at
> org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1748)
>         at org.hisp.dhis.appmanager.AppTest.setUp(AppTest.java:54)
>
> testIcons(org.hisp.dhis.appmanager.AppTest)  Time elapsed: 0 sec  <<<
> ERROR!
> java.io.FileNotFoundException: File
> 'E:\Abdul%20Qudoos\MM%20New\2.21\dhis-2\dhis-api\target\test-classes\manifest.webapp'
> does not exist
>         at
> org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
>         at
> org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1711)
>         at
> org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1748)
>         at org.hisp.dhis.appmanager.AppTest.setUp(AppTest.java:54)
>
> testRequiredProperties(org.hisp.dhis.appmanager.AppTest)  Time elapsed: 0
> sec  <<< ERROR!
> java.io.FileNotFoundException: File
> 'E:\Abdul%20Qudoos\MM%20New\2.21\dhis-2\dhis-api\target\test-classes\manifest.webapp'
> does not exist
>         at
> org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
>         at
> org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1711)
>         at
> org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1748)
>         at org.hisp.dhis.appmanager.AppTest.setUp(AppTest.java:54)
>
> testDeveloper(org.hisp.dhis.appmanager.AppTest)  Time elapsed: 0 sec  <<<
> ERROR!
> java.io.FileNotFoundException: File
> 'E:\Abdul%20Qudoos\MM%20New\2.21\dhis-2\dhis-api\target\test-classes\manifest.webapp'
> does not exist
>         at
> org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
>         at
> org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1711)
>         at
> org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1748)
>         at org.hisp.dhis.appmanager.AppTest.setUp(AppTest.java:54)
>
> testActivities(org.hisp.dhis.appmanager.AppTest)  Time elapsed: 0 sec  <<<
> ERROR!
> java.io.FileNotFoundException: File
> 'E:\Abdul%20Qudoos\MM%20New\2.21\dhis-2\dhis-api\target\test-classes\manifest.webapp'
> does not exist
>         at
> org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:299)
>         at
> org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1711)
>         at
> org.apache.commons.io.FileUtils.readFileToString(FileUtils.java:1748)
>         at org.hisp.dhis.appmanager.AppTest.setUp(AppTest.java:54)
>
> Thank you
> Abdul Qudoos Mehdi
>
> --
> Mailing list: https://launchpad.net/~dhis2-devs-core
> Post to     : dhis2-devs-core@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs-core
> More help   : https://help.launchpad.net/ListHelp
>
>