I have no idea
current requirement for build is JDK11

I can try to check the build using next LTS but later

On Tue, 6 Apr 2021 at 19:47, Filip Žák <[email protected]> wrote:
>
> Okay maybe there is a problem. And what about versions 12, 13, 14 and 15? 
> Could they work?
>
> ut 6. 4. 2021 o 14:44 Maxim Solodovnik <[email protected]> napísal(a):
>>
>> Can you build with JDK11 ?
>> I never tried to build with JDK16 :(
>> the build might need to be tweaked ...
>>
>> On Tue, 6 Apr 2021 at 19:42, Filip Žák <[email protected]> wrote:
>> >
>> > I have OracleJDK 16 and Apache Maven 3.6.3.
>> >
>> > ut 6. 4. 2021 o 14:20 Maxim Solodovnik <[email protected]> napísal(a):
>> >>
>> >> JDK version please :)
>> >>
>> >> On Tue, 6 Apr 2021 at 18:33, Filip Žák <[email protected]> wrote:
>> >> >
>> >> > Hello,
>> >> > I have a problem with building OM 6.0.0 again. This time on Debian. 
>> >> > First I'm building it on a really slow virtual server (just one core) 
>> >> > so maybe that is the problem. It fails on Openmeetings-Web:
>> >> >
>> >> > [INFO] Results:
>> >> > [INFO]
>> >> > [ERROR] Failures:
>> >> > [ERROR]   TestDateTime.test3:85 expected: <yy-MM-dd HH [h] mm> but was: 
>> >> > <y-MM-dd HH [h] mm>
>> >> > [ERROR] Errors:
>> >> > [ERROR]   TestLdap » IllegalAccess class 
>> >> > org.apache.directory.server.core.security.Certi...
>> >> > [ERROR]   
>> >> > TestMainAreas.testAdminLang:209->checkArea:85->checkArea:91->AbstractWicketTester.testArea:124->lambda$checkArea$1:93
>> >> >  » WicketRuntime
>> >> > [ERROR]   
>> >> > TestMainMenu.testAdminLabels:119->checkMenuItem:47->AbstractWicketTester.testArea:124->lambda$checkMenuItem$0:56
>> >> >  » WicketRuntime
>> >> > [INFO]
>> >> > [ERROR] Tests run: 206, Failures: 1, Errors: 3, Skipped: 0
>> >> > [INFO]
>> >> > [INFO] 
>> >> > ------------------------------------------------------------------------
>> >> > [INFO] Reactor Summary for Openmeetings 6.0.0:
>> >> > [INFO]
>> >> > [INFO] Openmeetings ....................................... SUCCESS [ 
>> >> > 39.207 s]
>> >> > [INFO] Openmeetings Util .................................. SUCCESS 
>> >> > [11:42 min]
>> >> > [INFO] Openmeetings DB .................................... SUCCESS [ 
>> >> > 54.698 s]
>> >> > [INFO] Openmeetings Core .................................. SUCCESS 
>> >> > [02:02 min]
>> >> > [INFO] Openmeetings Install ............................... SUCCESS [ 
>> >> > 40.152 s]
>> >> > [INFO] Openmeetings Service ............................... SUCCESS [ 
>> >> > 32.495 s]
>> >> > [INFO] Openmeetings Webservices ........................... SUCCESS 
>> >> > [02:12 min]
>> >> > [INFO] Openmeetings Web ................................... FAILURE [  
>> >> > 02:23 h]
>> >> > [INFO] Openmeetings Screen Sharing applet ................. SKIPPED
>> >> > [INFO] Openmeetings Server ................................ SKIPPED
>> >> > [INFO] 
>> >> > ------------------------------------------------------------------------
>> >> > [INFO] BUILD FAILURE
>> >> > [INFO] 
>> >> > ------------------------------------------------------------------------
>> >> > [INFO] Total time:  02:42 h
>> >> >
>> >> >
>> >> > I opened logs of these errors and failure. Here they are:
>> >> >
>> >> > -------------------------------------------------------------------------------
>> >> > Test set: org.apache.openmeetings.ldap.TestLdap
>> >> > -------------------------------------------------------------------------------
>> >> > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.518 
>> >> > s <<< FAILURE! - in 
>> >> > org.apache.openmeetings.ldap.TestLdaporg.apache.openmeetings.ldap.TestLdap
>> >> >   Time elapsed: 10.518 s  <<< ERROR!
>> >> > java.lang.IllegalAccessError: class 
>> >> > org.apache.directory.server.core.security.CertificateUtil (in unnamed 
>> >> > module @0x42e26948) cannot access class sun.security.x509.X500Name (in 
>> >> > module java.base) because module java.base does not export 
>> >> > sun.security.x509 to unnamed module @0x42e26948
>> >> >
>> >> >
>> >> > -------------------------------------------------------------------------------
>> >> > Test set: org.apache.openmeetings.web.TestMainAreas
>> >> > -------------------------------------------------------------------------------
>> >> > Tests run: 35, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
>> >> > 353.076 s <<< FAILURE! - in 
>> >> > org.apache.openmeetings.web.TestMainAreasorg.apache.openmeetings.web.TestMainAreas.testAdminLang
>> >> >   Time elapsed: 1.553 s  <<< ERROR!
>> >> > org.apache.wicket.WicketRuntimeException:
>> >> > An error occurred while getting the model object for Component: 
>> >> > [Component id = key, page = org.apache.openmeetings.web.pages.MainPage, 
>> >> > path = main-container:main:contents:child:listContainer:langList:1:key, 
>> >> > type = org.apache.wicket.markup.html.basic.Label, isVisible = true, 
>> >> > isVersioned = true, markup = [markup = 
>> >> > file:/home/debian/openmeetings/openmeetings-web/target/test-root/WEB-INF/classes/org/apache/openmeetings/web/admin/labels/LangPanel.html
>> >> > <span wicket:id="key"></span>, index = 0, current =  '<span 
>> >> > wicket:id="key">' (line 0, column 0)]]
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainAreas.lambda$checkArea$1(TestMainAreas.java:93)
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainAreas.checkArea(TestMainAreas.java:91)
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainAreas.checkArea(TestMainAreas.java:85)
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainAreas.testAdminLang(TestMainAreas.java:209)
>> >> > Caused by: java.lang.reflect.InaccessibleObjectException: Unable to 
>> >> > make field private final java.lang.Object 
>> >> > java.util.AbstractMap$SimpleEntry.key accessible: module java.base does 
>> >> > not "opens java.util" to unnamed module @42e26948
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainAreas.lambda$checkArea$1(TestMainAreas.java:93)
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainAreas.checkArea(TestMainAreas.java:91)
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainAreas.checkArea(TestMainAreas.java:85)
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainAreas.testAdminLang(TestMainAreas.java:209)
>> >> >
>> >> >
>> >> > -------------------------------------------------------------------------------
>> >> > Test set: org.apache.openmeetings.web.TestMainMenu
>> >> > -------------------------------------------------------------------------------
>> >> > Tests run: 16, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
>> >> > 294.785 s <<< FAILURE! - in 
>> >> > org.apache.openmeetings.web.TestMainMenuorg.apache.openmeetings.web.TestMainMenu.testAdminLabels
>> >> >   Time elapsed: 3.572 s  <<< ERROR!
>> >> > org.apache.wicket.WicketRuntimeException:
>> >> > An error occurred while getting the model object for Component: 
>> >> > [Component id = key, page = org.apache.openmeetings.web.pages.MainPage, 
>> >> > path = main-container:main:contents:child:listContainer:langList:1:key, 
>> >> > type = org.apache.wicket.markup.html.basic.Label, isVisible = true, 
>> >> > isVersioned = true, markup = [markup = 
>> >> > file:/home/debian/openmeetings/openmeetings-web/target/test-root/WEB-INF/classes/org/apache/openmeetings/web/admin/labels/LangPanel.html
>> >> > <span wicket:id="key"></span>, index = 0, current =  '<span 
>> >> > wicket:id="key">' (line 0, column 0)]]
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainMenu.lambda$checkMenuItem$0(TestMainMenu.java:56)
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainMenu.checkMenuItem(TestMainMenu.java:47)
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainMenu.testAdminLabels(TestMainMenu.java:119)
>> >> > Caused by: java.lang.reflect.InaccessibleObjectException: Unable to 
>> >> > make field private final java.lang.Object 
>> >> > java.util.AbstractMap$SimpleEntry.key accessible: module java.base does 
>> >> > not "opens java.util" to unnamed module @42e26948
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainMenu.lambda$checkMenuItem$0(TestMainMenu.java:56)
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainMenu.checkMenuItem(TestMainMenu.java:47)
>> >> >         at 
>> >> > org.apache.openmeetings.web.TestMainMenu.testAdminLabels(TestMainMenu.java:119)
>> >> >
>> >> >
>> >> >
>> >> > -------------------------------------------------------------------------------
>> >> > Test set: org.apache.openmeetings.util.TestDateTime
>> >> > -------------------------------------------------------------------------------
>> >> > Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.614 s 
>> >> > <<< FAILURE! - in 
>> >> > org.apache.openmeetings.util.TestDateTimeorg.apache.openmeetings.util.TestDateTime.test3
>> >> >   Time elapsed: 1.138 s  <<< FAILURE!
>> >> > org.opentest4j.AssertionFailedError: expected: <yy-MM-dd HH [h] mm> but 
>> >> > was: <y-MM-dd HH [h] mm>
>> >> >         at 
>> >> > org.apache.openmeetings.util.TestDateTime.test3(TestDateTime.java:85)
>> >> >
>> >> >
>> >> > Thanks for help.
>> >> >
>> >> >
>> >> > Best regards,
>> >> > Filip
>> >> >
>> >> > po 22. 3. 2021 o 12:11 Maxim Solodovnik <[email protected]> 
>> >> > napísal(a):
>> >> >>
>> >> >> There are tests that only works at machine with some 3rd party tools
>> >> >> In this case it is `ImageMagic`
>> >> >> tests expects it's binaries are in the PATH
>> >> >>
>> >> >> to bypass this you can use `Jenkins` profile (created for our CI 
>> >> >> server)
>> >> >> so the final command will be
>> >> >>
>> >> >> `mvn clean install -PallModules,Jenkins` (`allModules` profile need to
>> >> >> defined in this case)
>> >> >>
>> >> >> On Mon, 22 Mar 2021 at 17:20, Filip Žák <[email protected]> wrote:
>> >> >> >
>> >> >> > Thanks I removed all 'node_modules' folders but now I have this:
>> >> >> >
>> >> >> > INFO] Results:
>> >> >> > [INFO]
>> >> >> > [ERROR] Failures:
>> >> >> > [ERROR]   TestFileService.addFileTest:68 Width should be determined 
>> >> >> > ==> expected: <150> but was: <null>
>> >> >> > [INFO]
>> >> >> > [ERROR] Tests run: 210, Failures: 1, Errors: 0, Skipped: 0
>> >> >> > [INFO]
>> >> >> > [INFO] 
>> >> >> > ------------------------------------------------------------------------
>> >> >> > [INFO] Reactor Summary for Openmeetings 6.0.0:
>> >> >> > [INFO]
>> >> >> > [INFO] Openmeetings ....................................... SUCCESS 
>> >> >> > [ 15.097 s]
>> >> >> > [INFO] Openmeetings Util .................................. SUCCESS 
>> >> >> > [02:00 min]
>> >> >> > [INFO] Openmeetings DB .................................... SUCCESS 
>> >> >> > [ 21.527 s]
>> >> >> > [INFO] Openmeetings Core .................................. SUCCESS 
>> >> >> > [ 40.046 s]
>> >> >> > [INFO] Openmeetings Install ............................... SUCCESS 
>> >> >> > [ 16.994 s]
>> >> >> > [INFO] Openmeetings Service ............................... SUCCESS 
>> >> >> > [ 13.295 s]
>> >> >> > [INFO] Openmeetings Webservices ........................... SUCCESS 
>> >> >> > [ 48.888 s]
>> >> >> > [INFO] Openmeetings Web ................................... FAILURE 
>> >> >> > [13:45 min]
>> >> >> > [INFO] Openmeetings Screen Sharing applet ................. SKIPPED
>> >> >> > [INFO] Openmeetings Server ................................ SKIPPED
>> >> >> > [INFO] 
>> >> >> > ------------------------------------------------------------------------
>> >> >> > [INFO] BUILD FAILURE
>> >> >> > [INFO] 
>> >> >> > ------------------------------------------------------------------------
>> >> >> >
>> >> >> >
>> >> >> > I opened 
>> >> >> > /openmeetings/openmeetings-web/target/surefire-reports/org.apache.openmeetings.webservice.TestFileService.txt
>> >> >> > and there is:
>> >> >> >
>> >> >> > -------------------------------------------------------------------------------
>> >> >> > Test set: org.apache.openmeetings.webservice.TestFileService
>> >> >> > -------------------------------------------------------------------------------
>> >> >> > Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
>> >> >> > 16.587 s <<< FAILURE! - in 
>> >> >> > org.apache.openmeetings.webservice.TestFileService
>> >> >> > org.apache.openmeetings.webservice.TestFileService.addFileTest  Time 
>> >> >> > elapsed: 3.644 s  <<< FAILURE!
>> >> >> > org.opentest4j.AssertionFailedError: Width should be determined ==> 
>> >> >> > expected: <150> but was: <null>
>> >> >> > at 
>> >> >> > org.apache.openmeetings.webservice.TestFileService.addFileTest(TestFileService.java:68)
>> >> >> >
>> >> >> > Filip
>> >> >> >
>> >> >> >
>> >> >> > po 22. 3. 2021 o 2:35 Maxim Solodovnik <[email protected]> 
>> >> >> > napísal(a):
>> >> >> >>
>> >> >> >> https://issues.apache.org/jira/browse/OPENMEETINGS-2597
>> >> >> >>
>> >> >> >> On Mon, 22 Mar 2021 at 07:27, Maxim Solodovnik 
>> >> >> >> <[email protected]> wrote:
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> On Mon, 22 Mar 2021 at 02:45, Filip Žák <[email protected]> 
>> >> >> >>> wrote:
>> >> >> >>>>
>> >> >> >>>> Hello,
>> >> >> >>>> I would like to build a custom version of OM (a little bit 
>> >> >> >>>> changed code). But first I tried build original source code. So I 
>> >> >> >>>> downloaded the OM 6.0.0 src package from:
>> >> >> >>>>  https://openmeetings.apache.org/downloads.html
>> >> >> >>>>
>> >> >> >>>> I unpacked files into the openmeetings directory. I have 
>> >> >> >>>> installed OracleJDK 11 and Maven 3.6.3. I have set JAVA_HOME to 
>> >> >> >>>> OracleJDK 11. So I tried to compile from the terminal with 
>> >> >> >>>> command:
>> >> >> >>>>
>> >> >> >>>> mvn clean install -P allModules
>> >> >> >>>>
>> >> >> >>>> But it failed.
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> could you share the errors?
>> >> >> >>>
>> >> >> >>> in case it is "npm related" errors like
>> >> >> >>> ```
>> >> >> >>> [INFO] > [email protected] build-dev 
>> >> >> >>> /home/solomax/work/openmeetings/tmp/openmeetings-web/src/main/front/main
>> >> >> >>> [INFO] > browserify src/index.js --transform-key=staging -o 
>> >> >> >>> ${outDir}${npm_package_name}.js
>> >> >> >>> [INFO]
>> >> >> >>> [INFO] sh: 1: browserify: Permission denied
>> >> >> >>> [INFO] npm ERR! code ELIFECYCLE
>> >> >> >>> [INFO] npm ERR! errno 126
>> >> >> >>> ```
>> >> >> >>>
>> >> >> >>> please delete all `node_modules` folders from
>> >> >> >>> openmeetings-web/src/main/front
>> >> >> >>> and try again
>> >> >> >>>
>> >> >> >>> I'll correct build scripts and will perform 6.0.1 release ASAP
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>>
>> >> >> >>>> So my question is how can I achieve compilation without any 
>> >> >> >>>> errors in original source code. What else I need to do or have 
>> >> >> >>>> installed?
>> >> >> >>>>
>> >> >> >>>> Thanks
>> >> >> >>>>
>> >> >> >>>> Filip
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> --
>> >> >> >>> Best regards,
>> >> >> >>> Maxim
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> Best regards,
>> >> >> >> Maxim
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > S pozdravom
>> >> >> > Filip Žák
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Best regards,
>> >> >> Maxim
>> >>
>> >>
>> >>
>> >> --
>> >> Best regards,
>> >> Maxim
>> >
>> >
>> >
>> > --
>> > S pozdravom
>> > Filip Žák
>>
>>
>>
>> --
>> Best regards,
>> Maxim
>
>
>
> --
> S pozdravom
> Filip Žák



-- 
Best regards,
Maxim

Reply via email to