This topic has 8 replies, 4 voices, and was last updated 5 years, 5 months ago by full2.

  • Author
    Posts
  • #12948
     citystory
    Participant

    Hi,

    It fails to build enterprise 13.0 source as well as Master trunk source.
    Does anyone have any ideas? Thanks a lot.

    1. 13.0 and master trunk source build with TestSuite executed
    ——————————————————-
    T E S T S
    ——————————————————-
    Running TestSuite
    Tests run: 1643, Failures: 8, Errors: 0, Skipped: 0, Time elapsed: 305.533 sec <<< FAILURE! – in TestSuite
    whenInConfiguredStateItShouldNotPerformUpgrade(org.forgerock.openam.setup.EmbeddedOpenDJManagerTest) Time elapsed: 0.016 sec <<< FAILURE!
    java.nio.file.FileSystemNotFoundException: C:\software\workspace\openam\openam-core\target\test-classes\setup%5cinstalled-opendj-base-directory.zip
    at com.sun.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:120)
    at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:139)
    at java.nio.file.FileSystems.newFileSystem(FileSystems.java:386)
    at org.forgerock.openam.setup.TestSetupHelper.extractZip(TestSetupHelper.java:48)
    at org.forgerock.openam.setup.EmbeddedOpenDJManagerTest.createBaseDirectory(EmbeddedOpenDJManagerTest.java:140)
    at org.forgerock.openam.setup.EmbeddedOpenDJManagerTest.setupInstallOpenDJRequiringUpgrade(EmbeddedOpenDJManagerTest.java:131)
    at org.forgerock.openam.setup.EmbeddedOpenDJManagerTest.setupInstallOpenDJNotRequiringUpgrade(EmbeddedOpenDJManagerTest.java:123)
    at org.forgerock.openam.setup.EmbeddedOpenDJManagerTest.whenInConfiguredStateItShouldNotPerformUpgrade(EmbeddedOpenDJManagerTest.java:105)
    whenInNoEmbeddedInstanceStateItShouldNotPerformUpgrade(org.forgerock.openam.setup.EmbeddedOpenDJManagerTest) Time elapsed: 0 sec <<< FAILURE!
    java.nio.file.FileSystemNotFoundException: C:\software\workspace\openam\openam-core\target\test-classes\setup%5cempty-base-directory.zip
    at com.sun.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:120)
    at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:139)
    at java.nio.file.FileSystems.newFileSystem(FileSystems.java:386)
    at org.forgerock.openam.setup.TestSetupHelper.extractZip(TestSetupHelper.java:48)
    at org.forgerock.openam.setup.EmbeddedOpenDJManagerTest.createBaseDirectory(EmbeddedOpenDJManagerTest.java:140)
    at org.forgerock.openam.setup.EmbeddedOpenDJManagerTest.whenInNoEmbeddedInstanceStateItShouldNotPerformUpgrade(EmbeddedOpenDJManagerTest.java:92)
    whenInUpgradeRequiredStateItShouldPerformUpgrade(org.forgerock.openam.setup.EmbeddedOpenDJManagerTest) Time elapsed: 0 sec <<< FAILURE!
    java.nio.file.FileSystemNotFoundException: C:\software\workspace\openam\openam-core\target\test-classes\setup%5cinstalled-opendj-base-directory.zip
    at com.sun.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:120)
    at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:139)
    at java.nio.file.FileSystems.newFileSystem(FileSystems.java:386)
    at org.forgerock.openam.setup.TestSetupHelper.extractZip(TestSetupHelper.java:48)
    at org.forgerock.openam.setup.EmbeddedOpenDJManagerTest.createBaseDirectory(EmbeddedOpenDJManagerTest.java:140)
    at org.forgerock.openam.setup.EmbeddedOpenDJManagerTest.setupInstallOpenDJRequiringUpgrade(EmbeddedOpenDJManagerTest.java:131)
    at org.forgerock.openam.setup.EmbeddedOpenDJManagerTest.setupInstallOpenDJRequiringUpgrade(EmbeddedOpenDJManagerTest.java:127)
    at org.forgerock.openam.setup.EmbeddedOpenDJManagerTest.whenInUpgradeRequiredStateItShouldPerformUpgrade(EmbeddedOpenDJManagerTest.java:117)

    2. japearson suggested to add “-DskipTests”. Master trunk with -DskipTets

    [INFO] OpenAM Server Auth UI ………………………… SUCCESS [ 0.864 s]
    [INFO] OpenAM UI Parent …………………………….. SUCCESS [ 0.106 s]
    [INFO] OpenAM RIA Web UI ……………………………. FAILURE [01:02 min]
    [INFO] OpenAM API UI ……………………………….. SKIPPED
    [INFO] OpenAM RADIUS Server …………………………. SKIPPED
    [INFO] OpenAM Audit REST ……………………………. SKIPPED
    [INFO] OpenAM Self Service ………………………….. SKIPPED
    [INFO] OpenAM OAuth2 SAML2 Grant Flow ………………… SKIPPED
    [INFO] OpenAM STS ………………………………….. SKIPPED
    [INFO] OpenAM STS Client Classes …………………….. SKIPPED
    [INFO] OpenAM STS Common ……………………………. SKIPPED
    [INFO] OpenAM REST STS ……………………………… SKIPPED
    [INFO] OpenAM STS Publish Service ……………………. SKIPPED
    [INFO] OpenAM STS Token Service ……………………… SKIPPED
    [INFO] OpenAM Build Tools …………………………… SKIPPED
    [INFO] OpenAM Upgrade ………………………………. SKIPPED
    [INFO] OpenAM Server Only …………………………… SKIPPED
    [INFO] OpenAM Server ……………………………….. SKIPPED
    [INFO] OpenAM Installer Utils ……………………….. SKIPPED
    [INFO] OpenAM Configurator Tool ……………………… SKIPPED
    [INFO] OpenAM Install Tools Launcher …………………. SKIPPED
    [INFO] OpenAM Install Tools …………………………. SKIPPED
    [INFO] OpenAM Diagnostics …………………………… SKIPPED
    [INFO] OpenAM Diagnostics Base ………………………. SKIPPED
    [INFO] OpenAM Diagnostics Plugins ……………………. SKIPPED
    [INFO] OpenAM Upgrade Tool ………………………….. SKIPPED
    [INFO] OpenAM Client SDK ……………………………. SKIPPED
    [INFO] OpenAM Documentation …………………………. SKIPPED
    [INFO] OpenAM Log Message Reference ………………….. SKIPPED
    [INFO] OpenAM ssoadm Reference ………………………. SKIPPED
    [INFO] OpenAM Distribution Packaging …………………. SKIPPED
    [INFO] OpenAM Distribution Fedlet UnConfigured ………… SKIPPED
    [INFO] OpenAM Distribution ssoAdminTools ……………… SKIPPED
    [INFO] OpenAM Distribution ssoConfiguratorTools ……….. SKIPPED
    [INFO] OpenAM Example Projects ………………………. SKIPPED
    [INFO] OpenAM Example ClientSDK CLI ………………….. SKIPPED
    [INFO] OpenAM Example ClientSDK WAR ………………….. SKIPPED
    [INFO] OpenAM Soap STS ……………………………… SKIPPED
    [INFO] OpenAM SOAP STS Server ……………………….. SKIPPED
    [INFO] OpenAM Distribution Kit ………………………. SKIPPED
    [INFO] OpenAM Distribution Diagnostics ……………….. SKIPPED
    [INFO] openam-example-api-descriptor …………………. SKIPPED
    [INFO] OpenAM SOAP STS Client ……………………….. SKIPPED
    [INFO] openam-time-travel …………………………… SKIPPED
    [INFO] ————————————————————————
    [INFO] BUILD FAILURE
    [INFO] ————————————————————————
    [INFO] Total time: 06:17 min
    [INFO] Finished at: 2016-09-09T12:33:14+08:00
    [INFO] Final Memory: 306M/824M
    [INFO] ————————————————————————
    [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.28:npm (npm-install) on project openam-ui-ria: Failed to run task: ‘npm install’ failed. (error code 1) -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.28:npm (npm-install) on project openam-ui-ria: Failed to run task
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    Caused by: org.apache.maven.plugin.MojoFailureException: Failed to run task
    at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute(AbstractFrontendMojo.java:77)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    … 20 more
    Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: ‘npm install’ failed. (error code 1)
    at com.github.eirslett.maven.plugins.frontend.lib.NodeTaskExecutor.execute(NodeTaskExecutor.java:60)
    at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute(NpmMojo.java:58)
    at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute(AbstractFrontendMojo.java:75)
    … 22 more
    [ERROR]
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn <goals> -rf :openam-ui-ria

    3. 13.0 with -DskipTests

    [INFO] OpenAM Auth SAML2 ……………………………. SUCCESS [ 1.952 s]
    [INFO] OpenAM Auth SecurID ………………………….. FAILURE [ 11.991 s]
    [INFO] OpenAM JAXRPC Schema …………………………. SKIPPED
    [INFO] OpenAM Diagnostics Schema …………………….. SKIPPED
    [INFO] OpenAM DTD Schema ……………………………. SKIPPED
    [INFO] OpenAM Plugins ………………………………. SKIPPED
    [INFO] OpenAM PostAuthN plugins ……………………… SKIPPED
    [INFO] OpenFM ……………………………………… SKIPPED
    [INFO] OpenAM OAuth2 ……………………………….. SKIPPED
    [INFO] OpenAM Admin Console …………………………. SKIPPED
    [INFO] OpenAM CLI Implementation …………………….. SKIPPED
    [INFO] OpenAM Fedlet un-configured web application …….. SKIPPED
    [INFO] OpenAM IdP Discovery WAR ……………………… SKIPPED
    [INFO] OpenAM UMA ………………………………….. SKIPPED
    [INFO] OpenAM Common Auth UI ………………………… SKIPPED
    [INFO] OpenAM Server Auth UI ………………………… SKIPPED
    [INFO] OpenAM UI Parent …………………………….. SKIPPED
    [INFO] OpenAM RIA Web UI ……………………………. SKIPPED
    [INFO] OpenAM API UI ……………………………….. SKIPPED
    [INFO] OpenAM RADIUS Server …………………………. SKIPPED
    [INFO] OpenAM Audit REST ……………………………. SKIPPED
    [INFO] OpenAM Self Service ………………………….. SKIPPED
    [INFO] OpenAM OAuth2 SAML2 Grant Flow ………………… SKIPPED
    [INFO] OpenAM STS ………………………………….. SKIPPED
    [INFO] OpenAM STS Client Classes …………………….. SKIPPED
    [INFO] OpenAM STS Common ……………………………. SKIPPED
    [INFO] OpenAM REST STS ……………………………… SKIPPED
    [INFO] OpenAM STS Publish Service ……………………. SKIPPED
    [INFO] OpenAM STS Token Service ……………………… SKIPPED
    [INFO] OpenAM Build Tools …………………………… SKIPPED
    [INFO] OpenAM Upgrade ………………………………. SKIPPED
    [INFO] OpenAM Server Only …………………………… SKIPPED
    [INFO] OpenAM Server ……………………………….. SKIPPED
    [INFO] OpenAM Installer Utils ……………………….. SKIPPED
    [INFO] OpenAM Configurator Tool ……………………… SKIPPED
    [INFO] OpenAM Install Tools Launcher …………………. SKIPPED
    [INFO] OpenAM Install Tools …………………………. SKIPPED
    [INFO] OpenAM Diagnostics …………………………… SKIPPED
    [INFO] OpenAM Diagnostics Base ………………………. SKIPPED
    [INFO] OpenAM Diagnostics Plugins ……………………. SKIPPED
    [INFO] OpenAM Upgrade Tool ………………………….. SKIPPED
    [INFO] OpenAM Client SDK ……………………………. SKIPPED
    [INFO] OpenAM Documentation …………………………. SKIPPED
    [INFO] OpenAM Log Message Reference ………………….. SKIPPED
    [INFO] OpenAM ssoadm Reference ………………………. SKIPPED
    [INFO] OpenAM Distribution Packaging …………………. SKIPPED
    [INFO] OpenAM Distribution Fedlet UnConfigured ………… SKIPPED
    [INFO] OpenAM Distribution ssoAdminTools ……………… SKIPPED
    [INFO] OpenAM Distribution ssoConfiguratorTools ……….. SKIPPED
    [INFO] OpenAM Example Projects ………………………. SKIPPED
    [INFO] OpenAM Example ClientSDK CLI ………………….. SKIPPED
    [INFO] OpenAM Example ClientSDK WAR ………………….. SKIPPED
    [INFO] OpenAM Soap STS ……………………………… SKIPPED
    [INFO] OpenAM SOAP STS Server ……………………….. SKIPPED
    [INFO] OpenAM Distribution Kit ………………………. SKIPPED
    [INFO] OpenAM Distribution Diagnostics ……………….. SKIPPED
    [INFO] openam-example-api-descriptor …………………. SKIPPED
    [INFO] OpenAM SOAP STS Client ……………………….. SKIPPED
    [INFO] openam-time-travel …………………………… SKIPPED
    [INFO] ————————————————————————
    [INFO] BUILD FAILURE
    [INFO] ————————————————————————
    [INFO] Total time: 03:35 min
    [INFO] Finished at: 2016-09-09T12:41:13+08:00
    [INFO] Final Memory: 271M/863M
    [INFO] ————————————————————————
    [ERROR] Failed to execute goal on project openam-auth-securid: Could not resolve dependencies for project org.forgerock.openam:openam-auth-securid:jar:14.0.0-SNAPSHOT: Could not find artifact external:authapi:jar:2005-08-12 in forgerock-internal (http://maven.forgerock.org/repo/internal) -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project openam-auth-securid: Could not resolve dependencies for project org.forgerock.openam:openam-auth-securid:jar:14.0.0-SNAPSHOT: Could not find artifact external:authapi:jar:2005-08-12 in forgerock-internal (http://maven.forgerock.org/repo/internal)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:245)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.forgerock.openam:openam-auth-securid:jar:14.0.0-SNAPSHOT: Could not find artifact external:authapi:jar:2005-08-12 in forgerock-internal (http://maven.forgerock.org/repo/internal)
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:211)
    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
    … 23 more
    Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact external:authapi:jar:2005-08-12 in forgerock-internal (http://maven.forgerock.org/repo/internal)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:205)
    … 24 more
    Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact external:authapi:jar:2005-08-12 in forgerock-internal (http://maven.forgerock.org/repo/internal)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
    … 25 more
    Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact external:authapi:jar:2005-08-12 in forgerock-internal (http://maven.forgerock.org/repo/internal)
    at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:39)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
    at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
    … 27 more
    [ERROR]
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn <goals> -rf :openam-auth-securid

    • This topic was modified 5 years, 11 months ago by citystory.
    #12950
     citystory
    Participant

    Thanks Japearson advice. It is still no good luck but I have moved this topics to forum.

    #12955
     citystory
    Participant

    3. 13.0 with -DskipTests

    [INFO] OpenAM Auth SAML2 ……………………………. SUCCESS [ 1.952 s]
    [INFO] OpenAM Auth SecurID ………………………….. FAILURE [ 11.991 s]
    [INFO] OpenAM JAXRPC Schema …………………………. SKIPPED
    [INFO] OpenAM Diagnostics Schema …………………….. SKIPPED
    [INFO] OpenAM DTD Schema ……………………………. SKIPPED

    This is resolved by copying authapi-2005-08-12.jar to C:\Users\xxx\.m2\repository\external\authapi\2005-08-12 as reported on some thread for 11.0 release. Then it is the same as problem 2.

    OpenAM RIA Web UI can’t be built.
    Could someone help? Thanks a lot.

    #12972
     japearson
    Participant

    I don’t think you’re going to be able to build “OpenAM RIA Web UI” on Windows. Pretty sure I had no success recently, it needs npm and there was some issue with the auto-installer on windows. My problem may have been related to cygwin, but in the end, I just commented out that module, because I didn’t really need a full build at the time.

    My recommendation is to install Linux (maybe Ubuntu?) in Virtualbox and build from there. It should be possible to build on Windows, but I think it’s more likely to work out of the box on Linux.

    #12982
     citystory
    Participant

    Hi Japearson,
    Thanks for your opinion. I tried manually install nodejs/npm and python in local Window.
    It is better but still can’t get through module openam-ui-ria.

    I give up in short term and comment out openam-ui-ria module.
    Then it failed on Client SDK. Do you meet this issue?
    I will try to run on Ubuntu or Debian Jessie in the future.
    But I think Window is important as dev platform. Thanks.

    [INFO] OpenAM Diagnostics Base ………………………. SUCCESS [ 0.532 s]
    [INFO] OpenAM Diagnostics Plugins ……………………. SUCCESS [ 0.547 s]
    [INFO] OpenAM Upgrade Tool ………………………….. SUCCESS [ 0.516 s]
    [INFO] OpenAM Client SDK ……………………………. FAILURE [ 0.484 s]
    [INFO] OpenAM Documentation …………………………. SKIPPED
    [INFO] OpenAM Log Message Reference ………………….. SKIPPED
    [INFO] OpenAM ssoadm Reference ………………………. SKIPPED
    [INFO] OpenAM Distribution Packaging …………………. SKIPPED
    [INFO] OpenAM Distribution Fedlet UnConfigured ………… SKIPPED
    [INFO] OpenAM Distribution ssoAdminTools ……………… SKIPPED
    [INFO] OpenAM Distribution ssoConfiguratorTools ……….. SKIPPED
    [INFO] OpenAM Example Projects ………………………. SKIPPED
    [INFO] OpenAM Example ClientSDK CLI ………………….. SKIPPED
    [INFO] OpenAM Example ClientSDK WAR ………………….. SKIPPED
    [INFO] OpenAM Soap STS ……………………………… SKIPPED
    [INFO] OpenAM SOAP STS Server ……………………….. SKIPPED
    [INFO] OpenAM Distribution Kit ………………………. SKIPPED
    [INFO] OpenAM Distribution Diagnostics ……………….. SKIPPED
    [INFO] openam-example-api-descriptor …………………. SKIPPED
    [INFO] OpenAM SOAP STS Client ……………………….. SKIPPED
    [INFO] openam-time-travel …………………………… SKIPPED
    [INFO] ————————————————————————
    [INFO] BUILD FAILURE
    [INFO] ————————————————————————
    [INFO] Total time: 40:46 min
    [INFO] Finished at: 2016-09-12T22:23:24+08:00
    [INFO] Final Memory: 247M/873M
    [INFO] ————————————————————————
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.1:shade (default) on project openam-clientsdk: Error creating shaded jar: java.util.jar.Attributes cannot be cast to java.lang.String -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.1:shade (default) on project openam-clientsdk: Error creating shaded jar: java.util.jar.Attributes cannot be cast to java.lang.String
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: java.util.jar.Attributes cannot be cast to java.lang.String
    at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:528)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    … 20 more
    Caused by: java.lang.ClassCastException: java.util.jar.Attributes cannot be cast to java.lang.String
    at java.util.jar.Attributes.put(Attributes.java:148)
    at org.apache.maven.plugins.shade.resource.ManifestResourceTransformer.modifyOutputStream(ManifestResourceTransformer.java:106)
    at org.apache.maven.plugins.shade.DefaultShader.shade(DefaultShader.java:115)
    at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:458)
    … 22 more

    #12984
     japearson
    Participant

    Which version of Java and maven are you using?

    Also can you paste the actual exception which should before it prints out the summary of which modules were built.

    #13035
     Peter Major
    Moderator

    For the failing test in EmbeddedOpenDJManagerTest:
    you could probably just modify the createBaseDirectory method to use “/” instead of File.separator to get past that error. If that helps, feel free to raise a JIRA issue to get it resolved.

    For the UI RIA issue:
    not sure what’s going on, but maybe having npm installed on the build machine could help you get past that problem. Once you have npm on the PATH, you could try to run npm install within the openam-ui-ria folder (but probably you should remove the node and node_modules folders beforehand) and see if that helps.

    For the ClientSDK issue:
    You’ll need to upgrade the maven-shade-plugin version to get past that error, essentially the build fails in the ClientSDK because you just unzipped the src downloadable, rather than checking out the source via git. See https://bugster.forgerock.org/jira/browse/OPENAM-9526

    #16092
     full2
    Participant

    I cant build the openam 13 neither.
    I am on a virtualbox in linux (jdk installed, mvn also).
    it gives me this error

    mvn clean install -Prelease,forgerock-release -DskipTests
    (…)
    [INFO] 02 03 2017 11:37:27.405:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
    [INFO] 02 03 2017 11:37:27.412:INFO [launcher]: Starting browser PhantomJS
    [INFO] 02 03 2017 11:37:27.425:ERROR [phantomjs.launcher]: /home/luis/srcOAM13/openam-public/openam-ui/openam-ui-ria/node_modules/phantomjs/lib/phantom/bin/phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory
    [INFO]
    [INFO] 02 03 2017 11:37:27.429:ERROR [launcher]: Cannot start PhantomJS
    [INFO]
    [INFO] 02 03 2017 11:37:27.433:INFO [launcher]: Trying to start PhantomJS again (1/2).
    [INFO] 02 03 2017 11:37:27.445:ERROR [phantomjs.launcher]: /home/luis/srcOAM13/openam-public/openam-ui/openam-ui-ria/node_modules/phantomjs/lib/phantom/bin/phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory
    [INFO]
    [INFO] 02 03 2017 11:37:27.448:ERROR [launcher]: Cannot start PhantomJS
    [INFO]
    [INFO] 02 03 2017 11:37:27.450:INFO [launcher]: Trying to start PhantomJS again (2/2).
    [INFO] 02 03 2017 11:37:27.458:ERROR [phantomjs.launcher]: /home/luis/srcOAM13/openam-public/openam-ui/openam-ui-ria/node_modules/phantomjs/lib/phantom/bin/phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory
    [INFO]
    [INFO] 02 03 2017 11:37:27.459:ERROR [launcher]: Cannot start PhantomJS
    [INFO]
    [INFO] 02 03 2017 11:37:27.460:ERROR [launcher]: PhantomJS failed 2 times (cannot start). Giving up.
    [INFO] Warning: Task “karma:build” failed. Use –force to continue.
    [INFO]
    [INFO] Aborted due to warnings.
    [INFO] ————————————————————————
    [INFO] Reactor Summary:
    [INFO]
    [INFO] OpenAM Project ………………………………. SUCCESS [ 1.825 s]
    [INFO] OpenAM Audit ………………………………… SUCCESS [ 0.072 s]
    [INFO] OpenAM Audit Context …………………………. SUCCESS [ 2.863 s]
    [INFO] OpenAM Shared ……………………………….. SUCCESS [ 5.004 s]
    [INFO] OpenAM Tools ………………………………… SUCCESS [ 0.051 s]
    [INFO] OpenAM License Core ………………………….. SUCCESS [ 0.465 s]
    [INFO] OpenAM ServletContext License Locator ………….. SUCCESS [ 0.257 s]
    [INFO] OpenAM Audit Core ……………………………. SUCCESS [ 0.795 s]
    [INFO] OpenAM Core Token ……………………………. SUCCESS [ 0.134 s]
    [INFO] OpenAM Schemata ……………………………… SUCCESS [ 0.057 s]
    [INFO] OpenAM Identity Services Schema ……………….. SUCCESS [ 5.148 s]
    [INFO] OpenAM MIB Schema ……………………………. SUCCESS [ 6.329 s]
    [INFO] OpenAM XACML3 Schema …………………………. SUCCESS [ 0.405 s]
    [INFO] OpenAM LDAP Utilities ………………………… SUCCESS [ 0.528 s]
    [INFO] OpenAM Annotations …………………………… SUCCESS [ 0.126 s]
    [INFO] OpenAM CLI License Manager ……………………. SUCCESS [ 0.905 s]
    [INFO] openam-tokens ……………………………….. SUCCESS [ 0.230 s]
    [INFO] OpenAM OAuth2 Common …………………………. SUCCESS [ 0.051 s]
    [INFO] OAuth2 Core …………………………………. SUCCESS [ 1.083 s]
    [INFO] OpenAM Core …………………………………. SUCCESS [ 23.048 s]
    [INFO] OpenAM HTTP …………………………………. SUCCESS [ 0.745 s]
    [INFO] OpenAM User Data Store ……………………….. SUCCESS [ 1.127 s]
    [INFO] OpenAM HTTP client …………………………… SUCCESS [ 0.285 s]
    [INFO] OpenAM slf4j binding …………………………. SUCCESS [ 0.173 s]
    [INFO] OpenAM Restlet ………………………………. SUCCESS [ 1.042 s]
    [INFO] OpenAM Audit Configuration ……………………. SUCCESS [ 0.645 s]
    [INFO] OpenAM Rest …………………………………. SUCCESS [ 2.398 s]
    [INFO] OpenAM CLI Base ……………………………… SUCCESS [ 0.036 s]
    [INFO] OpenAM CLI Definitions ……………………….. SUCCESS [ 0.225 s]
    [INFO] OpenAM Build Helper Maven Plugin ………………. SUCCESS [ 2.525 s]
    [INFO] OpenAM Scripting …………………………….. SUCCESS [ 3.603 s]
    [INFO] OpenAM Entitlements ………………………….. SUCCESS [ 3.532 s]
    [INFO] OpenAM Authentication ………………………… SUCCESS [ 0.089 s]
    [INFO] OpenAM Auth Common …………………………… SUCCESS [ 0.463 s]
    [INFO] OpenAM Auth LDAP …………………………….. SUCCESS [ 0.787 s]
    [INFO] OpenAM Auth AD ………………………………. SUCCESS [ 0.616 s]
    [INFO] OpenAM Auth Anonymous ………………………… SUCCESS [ 1.304 s]
    [INFO] OpenAM Auth Adaptive …………………………. SUCCESS [ 0.735 s]
    [INFO] OpenAM Auth Application ………………………. SUCCESS [ 0.705 s]
    [INFO] openam-certs ………………………………… SUCCESS [ 0.255 s]
    [INFO] OpenAM Auth Cert …………………………….. SUCCESS [ 0.613 s]
    [INFO] OpenAM Auth Datastore ………………………… SUCCESS [ 0.765 s]
    [INFO] OpenAM Auth HOTP …………………………….. SUCCESS [ 0.628 s]
    [INFO] OpenAM Auth HttpBasic ………………………… SUCCESS [ 0.856 s]
    [INFO] OpenAM Auth JDBC …………………………….. SUCCESS [ 0.515 s]
    [INFO] OpenAM Auth Membership ……………………….. SUCCESS [ 0.840 s]
    [INFO] OpenAM Auth MSISDN …………………………… SUCCESS [ 0.597 s]
    [INFO] OpenAM Auth NT ………………………………. SUCCESS [ 0.788 s]
    [INFO] OpenAM Auth OATH …………………………….. SUCCESS [ 0.981 s]
    [INFO] OpenAM Dashboard …………………………….. SUCCESS [ 0.502 s]
    [INFO] OpenAM Core REST …………………………….. SUCCESS [ 3.221 s]
    [INFO] OpenAM Auth OATH …………………………….. SUCCESS [ 1.165 s]
    [INFO] OpenAM AuthN OpenId Connect …………………… SUCCESS [ 0.796 s]
    [INFO] OpenAM Auth OAUTH2 …………………………… SUCCESS [ 0.998 s]
    [INFO] OpenAM RADIUS ……………………………….. SUCCESS [ 0.059 s]
    [INFO] OpenAM RADIUS common library. …………………. SUCCESS [ 0.468 s]
    [INFO] OpenAM Auth Radius …………………………… SUCCESS [ 0.809 s]
    [INFO] OpenAM Auth WindowsDesktopSSO …………………. SUCCESS [ 0.453 s]
    [INFO] OpenAM Auth Persistent Cookie …………………. SUCCESS [ 0.913 s]
    [INFO] OpenAM Auth Device Print ……………………… SUCCESS [ 0.052 s]
    [INFO] OpenAM Auth Device Print Module ……………….. SUCCESS [ 0.546 s]
    [INFO] OpenAM Auth Device Print Module Scripts ………… SUCCESS [ 8.851 s]
    [INFO] OpenAM Auth Scripted …………………………. SUCCESS [ 0.834 s]
    [INFO] OpenAM Auth Device Id ………………………… SUCCESS [ 1.188 s]
    [INFO] OpenAM SAML2 Schema ………………………….. SUCCESS [ 5.040 s]
    [INFO] OpenAM WS Federation Schema …………………… SUCCESS [ 4.316 s]
    [INFO] OpenAM Liberty Schema ………………………… SUCCESS [ 10.544 s]
    [INFO] OpenAM Federation ……………………………. SUCCESS [ 0.042 s]
    [INFO] OpenAM IdP Discovery …………………………. SUCCESS [ 0.230 s]
    [INFO] OpenAM Federation Library …………………….. SUCCESS [ 8.113 s]
    [INFO] OpenAM Auth SAML2 ……………………………. SUCCESS [ 1.080 s]
    [INFO] OpenAM JAXRPC Schema …………………………. SUCCESS [ 15.632 s]
    [INFO] OpenAM Diagnostics Schema …………………….. SUCCESS [ 0.597 s]
    [INFO] OpenAM DTD Schema ……………………………. SUCCESS [ 0.106 s]
    [INFO] OpenAM Plugins ………………………………. SUCCESS [ 0.035 s]
    [INFO] OpenAM PostAuthN plugins ……………………… SUCCESS [ 0.786 s]
    [INFO] OpenFM ……………………………………… SUCCESS [ 3.782 s]
    [INFO] OpenID Connect Core ………………………….. SUCCESS [ 0.317 s]
    [INFO] OpenAM Admin Console …………………………. SUCCESS [ 10.820 s]
    [INFO] OpenAM CLI Implementation …………………….. SUCCESS [ 1.968 s]
    [INFO] OpenAM IdP Discovery WAR ……………………… SUCCESS [ 0.784 s]
    [INFO] OpenAM OAuth ………………………………… SUCCESS [ 0.759 s]
    [INFO] OAuth2 Restlet Integration ……………………. SUCCESS [ 0.877 s]
    [INFO] OpenId Connect Restlet Integration …………….. SUCCESS [ 0.515 s]
    [INFO] OpenAM OAuth2 SAML2 Grant Flow ………………… SUCCESS [ 0.317 s]
    [INFO] OpenAM OAuth2 ……………………………….. SUCCESS [ 1.549 s]
    [INFO] OpenAM UMA ………………………………….. SUCCESS [ 1.645 s]
    [INFO] OpenAM Common Auth UI ………………………… SUCCESS [ 0.282 s]
    [INFO] OpenAM Server Auth UI ………………………… SUCCESS [ 0.364 s]
    [INFO] OpenAM UI Parent …………………………….. SUCCESS [ 0.038 s]
    [INFO] OpenAM RIA Web UI ……………………………. FAILURE [01:42 min]
    [INFO] OpenAM RADIUS Server …………………………. SKIPPED

    (…)
    [INFO] BUILD FAILURE
    [INFO] ————————————————————————
    [INFO] Total time: 04:38 min
    [INFO] Finished at: 2017-03-02T11:37:27+01:00
    [INFO] Final Memory: 296M/706M
    [INFO] ————————————————————————
    [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.26:grunt (grunt) on project openam-ui-ria: Failed to run task: ‘grunt prod –target-version=13.0.0 –no-color’ failed. (error code 3) -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn <goals> -rf :openam-ui-ria

    ++
    I have cloned git repository, I have checkout the 13 branch just as you explain in your wiki(have I created a branch for that?? besides switching to that tag? I dont understand why you recommend create a new branch, instead of just checkout the 13 tag).
    I have installed nodejs, and grunt (globally?) (you dont mention in your wiki, I believe it would be usefull to explain this)
    And it gives me this error. I see it launches a Karma server (?) (to do the tests? why?, I specified to skiptest), but then an error.
    I also tried deleting the node and the node_modules inside “openam-ui/openam-ui-ria” folder. Nothing.

    Any ideas?

    Someone mentions to comment the “OpenAM RIA Web UI” module. How? Which exact lines I must comment in the (main?) pom.xml, please? I mess with the dependencies and modules.

    mvn clean install -pl openam-server -am -DskipTests=true -Prelease,forgerock-release
    give the same result.

    Thanks

    #16106
     full2
    Participant

    Update to my previous question (sorry to mess this thread):
    The : libfontconfig.so.1: “not found error” can be solved just installing a package in Linux. My apologies for writing question here so easy to solve doing a simple google search:
    sudo apt-get install libfontconfig.

    Then other errors appeared with secureid ¿propietary?, but it seems that the -Prelease,forgerock-release must not be used.
    Still trying, but not enough free space disk in my testing machine.
    I will update :-) Sorry for messing this forum/thread. Thanks.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?