[opencms-dev] Error creating .war Eclipse

Tobias Herrmann t.herrmann at alkacon.com
Thu Nov 2 07:51:32 CET 2017


Hi Yamit,

have you done any changes to the OpenCms source code? Especially the 
class CmsJspNavBuilder? If you have changed that class, please revert 
those changes and try again.


Kind regards,

Tobias

-------------------

Tobias Herrmann

Alkacon Software GmbH & Co. KG  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
Am 31.10.2017 um 15:21 schrieb Yamit David Moreno Socha:
> Hello, i´m trying to Run As Gradle my opencms source on Eclipse but i 
> have next error
> [sts] -----------------------------------------------------
> [sts] Starting Gradle build for the following tasks:
> [sts]      :war
> [sts] -----------------------------------------------------
> Using internal version properties file
> :dist_org.opencms.ade.config UP-TO-DATE
> :dist_org.opencms.editors UP-TO-DATE
> :dist_org.opencms.editors.codemirror UP-TO-DATE
> :dist_org.opencms.editors.tinymce UP-TO-DATE
> :dist_org.opencms.gwt UP-TO-DATE
> :dist_org.opencms.jquery UP-TO-DATE
> :dist_org.opencms.jsp.search UP-TO-DATE
> :dist_org.opencms.locale.cs UP-TO-DATE
> :dist_org.opencms.locale.da UP-TO-DATE
> :dist_org.opencms.locale.de <http://dist_org.opencms.locale.de> UP-TO-DATE
> :dist_org.opencms.locale.es <http://dist_org.opencms.locale.es> UP-TO-DATE
> :dist_org.opencms.locale.it <http://dist_org.opencms.locale.it> UP-TO-DATE
> :dist_org.opencms.locale.ja UP-TO-DATE
> :dist_org.opencms.locale.ru <http://dist_org.opencms.locale.ru> UP-TO-DATE
> :dist_org.opencms.locale.zh UP-TO-DATE
> :dist_org.opencms.ugc UP-TO-DATE
> :dist_org.opencms.workplace UP-TO-DATE
> :dist_org.opencms.workplace.administration UP-TO-DATE
> :dist_org.opencms.workplace.explorer UP-TO-DATE
> :dist_org.opencms.workplace.handler UP-TO-DATE
> :dist_org.opencms.workplace.spellcheck UP-TO-DATE
> :dist_org.opencms.workplace.tools.accounts UP-TO-DATE
> :dist_org.opencms.workplace.tools.cache UP-TO-DATE
> :dist_org.opencms.workplace.tools.content UP-TO-DATE
> :dist_org.opencms.workplace.tools.database UP-TO-DATE
> :dist_org.opencms.workplace.tools.galleryoverview UP-TO-DATE
> :dist_org.opencms.workplace.tools.git UP-TO-DATE
> :dist_org.opencms.workplace.tools.history UP-TO-DATE
> :dist_org.opencms.workplace.tools.link UP-TO-DATE
> :dist_org.opencms.workplace.tools.modules UP-TO-DATE
> :dist_org.opencms.workplace.tools.projects UP-TO-DATE
> :dist_org.opencms.workplace.tools.publishqueue UP-TO-DATE
> :dist_org.opencms.workplace.tools.scheduler UP-TO-DATE
> :dist_org.opencms.workplace.tools.searchindex UP-TO-DATE
> :dist_org.opencms.workplace.tools.sites UP-TO-DATE
> :dist_org.opencms.workplace.tools.workplace UP-TO-DATE
> :dist_org.opencms.workplace.traditional UP-TO-DATE
> :compileJavawarning: [options] bootstrap class path not set in 
> conjunction with -source 1.7
> D:\eclipse\opencms1053\src\org\opencms\jsp\CmsJspNavBuilder.java:48: 
> warning: Log is internal proprietary API and may be removed in a future 
> release
> import sun.rmi.runtime.Log;
>                        ^
> warning: Supported source version 'RELEASE_6' from annotation processor 
> 'org.apache.openjpa.persistence.meta.AnnotationProcessor6' less than 
> -source '1.7'
> D:\eclipse\opencms1053\src\org\opencms\jsp\CmsJspNavBuilder.java:48: 
> warning: Log is internal proprietary API and may be removed in a future 
> release
> import sun.rmi.runtime.Log;
>                        ^
> D:\eclipse\opencms1053\src\org\opencms\jsp\CmsJspNavBuilder.java:48: 
> warning: Log is internal proprietary API and may be removed in a future 
> release
> import sun.rmi.runtime.Log;
>                        ^
> D:\eclipse\opencms1053\src\org\opencms\jsp\CmsJspNavBuilder.java:82: 
> warning: Log is internal proprietary API and may be removed in a future 
> release
>      private static final Log LOG = CmsLog.getLog(CmsJspNavBuilder.class);
>                           ^
> D:\eclipse\opencms1053\src\org\opencms\jsp\CmsJspNavBuilder.java:82: 
> error: incompatible types: org.apache.commons.logging.Log cannot be 
> converted to sun.rmi.runtime.Log
>      private static final Log LOG = CmsLog.getLog(CmsJspNavBuilder.class);
>                                                  ^
> D:\eclipse\opencms1053\src\org\opencms\jsp\CmsJspNavBuilder.java:108: 
> error: cannot find symbol
>                  LOG.debug(e.getLocalizedMessage(), e);
>                     ^
>    symbol:   method debug(String,CmsException)
>    location: variable LOG of type Log
> D:\eclipse\opencms1053\src\org\opencms\jsp\CmsJspNavBuilder.java:240: 
> error: cannot find symbol
>                      LOG.debug(e.getMessage(), e);
>                         ^
>    symbol:   method debug(String,CmsException)
>    location: variable LOG of type Log
> D:\eclipse\opencms1053\src\org\opencms\jsp\CmsJspNavBuilder.java:448: 
> error: cannot find symbol
>              LOG.error(e.getLocalizedMessage(), e);
>                 ^
>    symbol:   method error(String,Exception)
>    location: variable LOG of type Log
> D:\eclipse\opencms1053\src\org\opencms\jsp\CmsJspNavBuilder.java:514: 
> error: cannot find symbol
>              LOG.error(e.getLocalizedMessage(), e);
>                 ^
>    symbol:   method error(String,Exception)
>    location: variable LOG of type Log
> D:\eclipse\opencms1053\src\org\opencms\jsp\CmsJspNavBuilder.java:627: 
> error: cannot find symbol
>              LOG.warn(e.getLocalizedMessage(), e);
>                 ^
>    symbol:   method warn(String,Exception)
>    location: variable LOG of type Log
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 6 errors
> 5 warnings
>   FAILED
> 
> FAILURE: Build failed with an exception.
> 
> * What went wrong:
> Execution failed for task ':compileJava'.
>  > Compilation failed; see the compiler error output for details.
> 
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> 
> BUILD FAILED
> 
> Total time: 27.065 secs
> [sts] Build failed
> org.gradle.tooling.BuildException: Could not execute build using Gradle 
> distribution 
> 'https://services.gradle.org/distributions/gradle-2.2.1-bin.zip'.
> at 
> org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:57)
> at 
> org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)
> at 
> org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> at 
> org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)
> at 
> org.gradle.tooling.internal.consumer.DefaultBuildLauncher.run(DefaultBuildLauncher.java:71)
> at 
> org.springsource.ide.eclipse.gradle.core.TaskUtil.execute(TaskUtil.java:117)
> at 
> org.springsource.ide.eclipse.gradle.core.launch.GradleProcess$1.doit(GradleProcess.java:92)
> at 
> org.springsource.ide.eclipse.gradle.core.util.GradleRunnable$1.run(GradleRunnable.java:53)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
> Caused by: org.gradle.internal.exceptions.LocationAwareException: 
> Execution failed for task ':compileJava'.
> at 
> org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:77)
> at 
> org.gradle.initialization.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:47)
> at 
> org.gradle.initialization.StackTraceSanitizingExceptionAnalyser.transform(StackTraceSanitizingExceptionAnalyser.java:30)
> at 
> org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:108)
> at 
> org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
> at 
> org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)
> at 
> org.gradle.tooling.internal.provider.BuildModelAction.run(BuildModelAction.java:43)
> at 
> org.gradle.tooling.internal.provider.BuildModelAction.run(BuildModelAction.java:30)
> at 
> org.gradle.tooling.internal.provider.ConfiguringBuildAction.run(ConfiguringBuildAction.java:119)
> at 
> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
> at 
> org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
> at 
> org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:47)
> at 
> org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
> at 
> org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
> at 
> org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:35)
> at 
> org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
> at 
> org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:24)
> at 
> org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
> at 
> org.gradle.launcher.daemon.server.exec.StartStopIfBuildAndStop.execute(StartStopIfBuildAndStop.java:33)
> at 
> org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
> at 
> org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:71)
> at 
> org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:69)
> at org.gradle.util.Swapper.swap(Swapper.java:38)
> at 
> org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:69)
> at 
> org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
> at 
> org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
> at 
> org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
> at 
> org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
> at 
> org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:70)
> at 
> org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
> at 
> org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
> at 
> org.gradle.launcher.daemon.server.exec.DaemonHygieneAction.execute(DaemonHygieneAction.java:39)
> at 
> org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
> at 
> org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:46)
> at 
> org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246)
> at 
> org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
> Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed 
> for task ':compileJava'.
> at 
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
> at 
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
> at 
> org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
> at 
> org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
> at 
> org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
> at 
> org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
> at 
> org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
> at 
> org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
> at 
> org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
> at 
> org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305)
> at 
> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
> at 
> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
> at 
> org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
> at 
> org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
> at 
> org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)
> at 
> org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
> at 
> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
> at 
> org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
> at 
> org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)
> at 
> org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
> at 
> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)
> at 
> org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)
> at 
> org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
> at 
> org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
> ... 32 more
> Caused by: 
> org.gradle.api.internal.tasks.compile.CompilationFailedException: 
> Compilation failed; see the compiler error output for details.
> at 
> org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:44)
> at 
> org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:35)
> at 
> org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:97)
> at 
> org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:50)
> at 
> org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:36)
> at 
> org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:34)
> at 
> org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:25)
> at 
> org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:158)
> at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:138)
> at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:92)
> at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
> at 
> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:235)
> at 
> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)
> at 
> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:222)
> at 
> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)
> at 
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
> at 
> org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
> ... 55 more
> [sts] Time taken: 0 min, 27 sec
> [sts] -----------------------------------------------------
> 
> please... help
> 
> Sincerely
> 
> Yamit Moreno
> 
> *AVISO DE CONFIDENCIALIDAD*: Este mensaje y sus adjuntos se dirigen 
> exclusivamente a su destinatario, puede contener información 
> privilegiada o confidencial y es para uso exclusivo de la persona o 
> entidad de destino. Si no es usted. el destinatario indicado, queda 
> notificado de que la lectura, utilización, divulgación y/o copia sin 
> autorización puede estar prohibida en virtud de la legislación vigente. 
> Si ha recibido este mensaje por error, le rogamos que nos lo comunique 
> inmediatamente por esta misma vía y proceda a su destrucción.
> 
> *CONFIDENTIALITY NOTICE*: The information contained in this transmission 
> is privileged and confidential information intended only for the use of 
> the individual or entity named above. If the reader of this message is 
> not the intended recipient, you are hereby notified that any 
> dissemination, distribution or copying of this communication is strictly 
> prohibited. If you have received this transmission in error, do not read 
> it. Please immediately reply to the sender that you have received this 
> communication in error and then delete it.
> 
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
> 
> 
> 



More information about the opencms-dev mailing list