I'm trying to create a working development environment using a TomEE 8.0.4 docker image. I'm packaging my project into a war with all the dependencies (those which not provided with TomEE). Then I'm copying that war to the webapps directory in the docker container with
docker cp app.war tomee-instance:/usr/local/tomee/webapps
That's giving me these logs:
tomee-instance | 14-Nov-2020 00:31:43.724 INFO [Catalina-utility-1] jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke Undeploying context [/app]
tomee-instance | 14-Nov-2020 00:31:43.743 WARNING [Catalina-utility-1] com.sun.faces.config.ConfigureListener.contextDestroyed Unexpected state during contextDestroyed: no ConfigManager instance in current ServletContext but one is expected to exist.
tomee-instance | 14-Nov-2020 00:31:43.765 INFO [Catalina-utility-1] org.apache.openejb.assembler.classic.Assembler.destroyApplication Undeploying app: /usr/local/tomee/webapps/app
tomee-instance | 14-Nov-2020 00:31:43.773 INFO [Catalina-utility-1] org.apache.openejb.assembler.classic.Assembler.doResourceDestruction Closing DataSource: app/appDS
tomee-instance | 14-Nov-2020 00:31:43.900 WARNING [Catalina-utility-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [app] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
tomee-instance | 14-Nov-2020 00:31:43.911 INFO [Catalina-utility-1] jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke Deploying web application archive [/usr/local/tomee/webapps/app.war]
tomee-instance | 14-Nov-2020 00:31:43.911 INFO [Catalina-utility-1] org.apache.tomee.catalina.TomcatWebAppBuilder.init ------------------------- localhost -> /app
tomee-instance | 14-Nov-2020 00:31:43.913 INFO [Catalina-utility-1] org.apache.openejb.util.JarExtractor.extract Extracting jar: /usr/local/tomee/webapps/app.war
tomee-instance | 14-Nov-2020 00:31:43.938 INFO [Catalina-utility-1] org.apache.openejb.util.JarExtractor.extract Extracted path: /usr/local/tomee/webapps/app
tomee-instance | 14-Nov-2020 00:31:43.941 WARNING [Catalina-utility-1] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Context] failed to set property [cachingAllowed] to [false]
tomee-instance | 14-Nov-2020 00:31:44.119 INFO [Catalina-utility-1] org.apache.openejb.config.ConfigurationFactory.configureApplication Configuring enterprise application: /usr/local/tomee/webapps/app
tomee-instance | 14-Nov-2020 00:31:44.237 INFO [Catalina-utility-1] org.apache.openejb.config.ConfigurationFactory.configureService Configuring Service(id=app/appDS, type=Resource, provider-id=Default JDBC Database)
tomee-instance | 14-Nov-2020 00:31:44.237 INFO [Catalina-utility-1] org.apache.openejb.assembler.classic.Assembler.createRecipe Creating Resource(id=app/appDS)
tomee-instance | 14-Nov-2020 00:31:44.382 INFO [Catalina-utility-1] org.apache.openejb.config.AutoConfig.processResourceRef Auto-linking resource-ref 'openejb/Resource/app/appDS' in bean app.Comp1660470862 to Resource(id=app/appDS)
tomee-instance | 14-Nov-2020 00:31:44.382 INFO [Catalina-utility-1] org.apache.openejb.config.AutoConfig.processResourceRef Auto-linking resource-ref 'openejb/Resource/appDS' in bean app.Comp1660470862 to Resource(id=app/appDS)
tomee-instance | 14-Nov-2020 00:31:44.383 INFO [Catalina-utility-1] org.apache.openejb.config.AutoConfig.deploy Configuring PersistenceUnit(name=app-pu, provider=org.eclipse.persistence.jpa.PersistenceProvider)
tomee-instance | 14-Nov-2020 00:31:44.384 INFO [Catalina-utility-1] org.apache.openejb.config.AutoConfig.setJtaDataSource Adjusting PersistenceUnit app-pu <jta-data-source> to Resource ID 'app/appDS' from 'null'
tomee-instance | 14-Nov-2020 00:31:44.384 INFO [Catalina-utility-1] org.apache.openejb.config.AutoConfig.setNonJtaDataSource Adjusting PersistenceUnit app-pu <non-jta-data-source> to Resource ID 'app/appDSNonJta' from 'null'
tomee-instance | 14-Nov-2020 00:31:44.387 INFO [Catalina-utility-1] org.apache.openejb.config.AppInfoBuilder.build Enterprise application "/usr/local/tomee/webapps/app" loaded.
tomee-instance | 14-Nov-2020 00:31:44.387 INFO [Catalina-utility-1] org.apache.openejb.assembler.classic.Assembler.createApplication Assembling app: /usr/local/tomee/webapps/app
And then one exception for each class of my model, something identical to this:
tomee-instance | 14-Nov-2020 00:31:44.394 INFO [Catalina-utility-1] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [com.example.base.core.model.IdEntity_]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
tomee-instance | java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com.example.base.core.model.IdEntity_]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
tomee-instance | at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1385)
tomee-instance | at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1373)
tomee-instance | at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1226)
tomee-instance | at org.apache.tomee.catalina.TomEEWebappClassLoader.loadClass(TomEEWebappClassLoader.java:209)
tomee-instance | at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1188)
tomee-instance | at java.base/java.lang.Class.forName0(Native Method)
tomee-instance | at java.base/java.lang.Class.forName(Unknown Source)
tomee-instance | at org.eclipse.persistence.internal.helper.ConversionManager.convertObjectToClass(ConversionManager.java:461)
tomee-instance | at org.eclipse.persistence.internal.helper.ConversionManager.convertObject(ConversionManager.java:159)
tomee-instance | at org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.convertObject(DatasourcePlatform.java:225)
tomee-instance | at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.preInitializeCanonicalMetamodel(EntityManagerSetupImpl.java:3966)
tomee-instance | at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactoryImpl(PersistenceProvider.java:384)
tomee-instance | at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:316)
tomee-instance | at org.apache.openejb.assembler.classic.EntityManagerFactoryCallable.call(EntityManagerFactoryCallable.java:112)
tomee-instance | at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createDelegate(ReloadableEntityManagerFactory.java:134)
tomee-instance | at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.<init>(ReloadableEntityManagerFactory.java:105)
tomee-instance | at org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:157)
tomee-instance | at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:924)
tomee-instance | at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:759)
tomee-instance | at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1309)
tomee-instance | at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1131)
tomee-instance | at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:134)
tomee-instance | at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
tomee-instance | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5044)
tomee-instance | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
tomee-instance | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
tomee-instance | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
tomee-instance | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
tomee-instance | at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
tomee-instance | at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1848)
tomee-instance | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
tomee-instance | at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
tomee-instance | at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
tomee-instance | at java.base/java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
tomee-instance | at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)
tomee-instance | at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
tomee-instance | at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1620)
tomee-instance | at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:305)
tomee-instance | at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
tomee-instance | at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1151)
tomee-instance | at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1353)
tomee-instance | at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1357)
tomee-instance | at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1335)
tomee-instance | at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
tomee-instance | at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
tomee-instance | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
tomee-instance | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
tomee-instance | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
tomee-instance | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
tomee-instance | at java.base/java.lang.Thread.run(Unknown Source)
Then, if I try to access the app with the browser I have this:
java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [java.lang.ref.PhantomReference]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
It's just an example, because sometimes I get this exception but when it tries to load PostgreSQL related classes.
If I restart the container (which I'm trying to avoid due to time considerations), there are no errors and the app works as expected.
The app context.xml is the following:
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/app" antiResourceLocking="false" cachingAllowed="false" reloadable="true" override="true" privileged="true" />
The project is a simple JAX-RS service, with neither EJBs nor frameworks like Spring.
I'm sorry if I'm feeling desperate, but the TomEE docs didn't help, and I don't know how to continue.
Edit:
I've put the complete catalina.log after the container has started and the app redeployed at pastebin, here. And the same file, after some request have been done until an error page is delivered here.
Related
I am trying to develop android apk file by using wsl Ubuntu 20.04 LTS with maven plugins. I followed all requirements from https://docs.gluonhq.com/ and I have managed to perform some tasks correctly. The problem arise when running command
mvn -Pandroid gluonfx:build , compiling task failed and throws outputs as:
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< com.gluonmaven.linux:gluonmavenlinux >----------------
[INFO] Building GluonMavenLinux 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- gluonfx-maven-plugin:1.0.16:build (default-cli) # gluonmavenlinux ---
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< com.gluonmaven.linux:gluonmavenlinux >----------------
[INFO] Building GluonMavenLinux 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> gluonfx-maven-plugin:1.0.16:compile (default-cli) > process-classes # gluonmavenlinux >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # gluonmavenlinux ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) # gluonmavenlinux ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to /mnt/d/Epicstats/GluonMavenLinux/target/classes
[INFO]
[INFO] <<< gluonfx-maven-plugin:1.0.16:compile (default-cli) < process-classes # gluonmavenlinux <<<
[INFO]
[INFO]
[INFO] --- gluonfx-maven-plugin:1.0.16:compile (default-cli) # gluonmavenlinux ---
[Tue Dec 06 15:05:28 EAT 2022][INFO] ==================== COMPILE TASK ====================
_______ ___ __ __ _______ __ _
| || | | | | || || | | |
| ___|| | | | | || _ || |_| |
| | __ | | | |_| || | | || |
| || || |___ | || |_| || _ |
| |_| || || || || | | |
|_______||_______||_______||_______||_| |__|
Access to the latest docs, tips and tricks and more info on
[Tue Dec 06 15:05:30 EAT 2022][INFO] We will now compile your code for aarch64-linux-android. This may take some time.
how to get support? Register your usage of Gluon Substrate now at
https://gluonhq.com/activate
[Tue Dec 06 15:05:30 EAT 2022][SEVERE] Process compile-additional-sources failed with result: 2
Check the log files under /mnt/d/Epicstats/GluonMavenLinux/target/gluonfx/aarch64-android/gvm/log
And please check https://docs.gluonhq.com/ for more information.
[Tue Dec 06 15:05:30 EAT 2022][INFO] Logging process [compile-additional-sources] to file: /mnt/d/Epicstats/GluonMavenLinux/target/gluonfx/log/process-compile-additional-sources-1670328330610.log
[Tue Dec 06 15:05:30 EAT 2022][SEVERE] Compiling failed.
Check the log files under /mnt/d/Epicstats/GluonMavenLinux/target/gluonfx/aarch64-android/gvm/log
And please check https://docs.gluonhq.com/ for more information.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.542 s
[INFO] Finished at: 2022-12-06T15:05:30+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:gluonfx-maven-plugin:1.0.16:compile (default-cli) on project gluonmavenlinux: Compiling failed -> [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/MojoExecutionException
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.094 s
[INFO] Finished at: 2022-12-06T15:05:30+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gluonhq:gluonfx-maven-plugin:1.0.16:build (default-cli) on project gluonmavenlinux: Error, gluonfx:build failed -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.gluonhq:gluonfx-maven-plugin:1.0.16:build (default-cli) on project gluonmavenlinux: Error, gluonfx:build failed
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:375)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error, gluonfx:build failed
at com.gluonhq.NativeBuildMojo.execute (NativeBuildMojo.java:82)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[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/MojoExecutionException
I have tried to resolve the problem by not running mvn -Pandroid gluonfx:build
and running mvn -Pandroid gluonfx:compile but the problem still exit. Later on I discovered that gluonfx:build is a combination of gluonfx:compile and gluonfx:link
Where might I be making mistakes, anyone who has an Idea.
I am using:
JDK 11
apache-maven-3.8.1
android-ndk-r25b
graalvm-svm-java11-linux-gluon-22.1.0.1-Final
We're unable to deploy a zip file to the AWS S3 bucket. It was working and stopped suddenly, and no environment changed. We're getting the below build error.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project aem-coe-project: Execution default-cli of goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file failed: A required class was missing while executing org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file: javax/xml/bind/JAXBException
16:58:27 Info | [ERROR] -----------------------------------------------------
16:58:27 Info | [ERROR] realm =
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
16:58:27 Info | [ERROR] urls[0] = file:/root/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin/2.7/maven-deploy-plugin-2.7.jar
16:58:27 Info | [ERROR] urls[1] = file:/root/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
16:58:27 Info | [ERROR] urls[2] = file:/root/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
16:58:27 Info | [ERROR] Number of foreign imports: 1
16:58:27 Info | [ERROR] import: Entry[import from realm ClassRealm[project>com.coe:aem-coe-project:0.0.1-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]]
16:58:27 Info | [ERROR]
16:58:27 Info | [ERROR] -----------------------------------------------------
16:58:27 Info | [ERROR] : javax.xml.bind.JAXBException
Below is the build section of pom.xml.
<extensions>
<extension>
<groupId>s3-wagon-private</groupId>
<artifactId>s3-wagon-private</artifactId>
<version>1.3.1</version>
</extension>
</extensions>
Could you please suggest me here?
Assuming that A required class was missing and javax/xml/bind/JAXBException pointing to the same place. There might be a SOAP-Service that changed. Check the APIs you consume and the ones you offer.
When i try to run Mule application I get[1],
Im not using gauva library as dependency in my pom.pacakging is defined as
<packaging>mule-application</packaging>
Why I get this error? How can I overcome?
Im using anypoint studio version =7.4.1 which uses mule runtime 4.2.2
[1]
Initializing app 'admin-api-v1' +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ERROR 2020-02-04 09:47:08,034 [WrapperListener_start_runner] [event: ] org.mule.runtime.module.deployment.impl.internal.application.DefaultMuleApplication: java.lang.NoClassDefFoundError: com/google/common/cache/CacheLoader
java.lang.ClassNotFoundException: com.google.common.cache.CacheLoader
at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[?:1.8.0_242]
at org.mule.runtime.module.artifact.api.classloader.FineGrainedControlClassLoader.findLocalClass(FineGrainedControlClassLoader.java:173) ~[mule-module-artifact-4.2.2.jar:4.2.2]
at org.mule.runtime.module.artifact.api.classloader.FineGrainedControlClassLoader.loadClass(FineGrainedControlClassLoader.java:90) ~[mule-module-artifact-4.2.2.jar:4.2.2]
at org.mule.runtime.module.artifact.api.classloader.MuleArtifactClassLoader.loadClass(MuleArtifactClassLoader.java:255) ~[mule-module-artifact-4.2.2.jar:4.2.2]
at java.lang.ClassLoader.loadClass(ClassLoader.java:352) ~[?:1.8.0_242]
at java.lang.Class.getDeclaredFields0(Native Method) ~[?:1.8.0_242]
at java.lang.Class.privateGetDeclaredFields(Class.java:2583) ~[?:1.8.0_242]
at java.lang.Class.getDeclaredFields(Class.java:1916) ~[?:1.8.0_242]
at org.mule.runtime.module.extension.internal.util.IntrospectionUtils.lambda$getFieldsStream$25(IntrospectionUtils.java:995) ~[mule-module-extensions-support-4.2.2.jar:4.2.2]
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:269) ~[?:1.8.0_242]
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:1.8.0_242]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_242]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_242]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_242]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_242]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) ~[?:1.8.0_242]
at org.mule.runtime.module.extension.internal.util.IntrospectionUtils.getFields(IntrospectionUtils.java:968) ~[mule-module-extensions-support-4.2.2.jar:4.2.2]
at org.mule.runtime.module.extension.internal.loader.java.type.runtime.TypeWrapper.getFields(TypeWrapper.java:120) ~[mule-module-extensions-support-4.2.2.jar:4.2.2]
at org.mule.runtime.module.extension.internal.loader.java.type.runtime.TypeWrapper.getAnnotatedFields(TypeWrapper.java:149) ~[mule-module-extensions-support-4.2.2.jar:4.2.2]
at org.mule.runtime.module.extension.internal.loader.java.type.runtime.ConfigurationWrapper.<init>(ConfigurationWrapper.java:32) ~[mule-module-extensions-support-4.2.2.jar:4.2.2]
at org.mule.runtime.module.extension.internal.loader.java.type.runtime.ExtensionTypeWrapper.lambda$getConfigurations$1(ExtensionTypeWrapper.java:50) ~[mule-module-extensions-support-4.2.2.jar:4.2.2]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_242]
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:1.8.0_242]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_242]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_242]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_242]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_242]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) ~[?:1.8.0_242]
at org.mule.runtime.module.extension.internal.loader.java.type.runtime.ExtensionTypeWrapper.getConfigurations(ExtensionTypeWrapper.java:51) ~[mule-module-extensions-support-4.2.2.jar:4.2.2]
at org.mule.runtime.module.extension.internal.loader.java.ConfigModelLoaderDelegate.declareConfigurations(ConfigModelLoaderDelegate.java:47) ~[mule-module-extensions-support-4.2.2.jar:4.2.2]
at org.mule.runtime.module.extension.internal.loader.java.DefaultJavaModelLoaderDelegate.declare(DefaultJavaModelLoaderDelegate.java:119) ~[mule-module-extensions-support-4.2.2.jar:4.2.2]
at org.mule.runtime.module.extension.api.loader.AbstractJavaExtensionModelLoader.declareExtension(AbstractJavaExtensionModelLoader.java:186) ~[mule-module-extensions-support-4.2.2.jar:4.2.2]
at org.mule.runtime.extension.api.loader.ExtensionModelLoader.loadExtensionModel(ExtensionModelLoader.java:71) ~[mule-extensions-api-1.2.2.jar:?]
at org.mule.runtime.module.deployment.impl.internal.artifact.ExtensionModelDiscoverer.discoverExtensionThroughJsonDescriber(ExtensionModelDiscoverer.java:125) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.impl.internal.artifact.ExtensionModelDiscoverer.lambda$null$0(ExtensionModelDiscoverer.java:76) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]
at java.util.Optional.map(Optional.java:215) ~[?:1.8.0_242]
at org.mule.runtime.module.deployment.impl.internal.artifact.ExtensionModelDiscoverer.lambda$discoverPluginsExtensionModels$1(ExtensionModelDiscoverer.java:76) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]
at java.util.ArrayList.forEach(ArrayList.java:1257) ~[?:1.8.0_242]
at org.mule.runtime.module.deployment.impl.internal.artifact.ExtensionModelDiscoverer.discoverPluginsExtensionModels(ExtensionModelDiscoverer.java:68) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.impl.internal.policy.ArtifactExtensionManagerFactory.create(ArtifactExtensionManagerFactory.java:70) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.impl.internal.policy.ArtifactExtensionManagerFactory.create(ArtifactExtensionManagerFactory.java:61) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.impl.internal.artifact.ArtifactExtensionManagerConfigurationBuilder.doConfigure(ArtifactExtensionManagerConfigurationBuilder.java:48) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]
at org.mule.runtime.core.api.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:53) ~[mule-core-4.2.2.jar:4.2.2]
at org.mule.runtime.core.api.context.DefaultMuleContextFactory$1.configure(DefaultMuleContextFactory.java:65) ~[mule-core-4.2.2.jar:4.2.2]
at org.mule.runtime.core.api.context.DefaultMuleContextFactory.doCreateMuleContext(DefaultMuleContextFactory.java:187) ~[mule-core-4.2.2.jar:4.2.2]
at org.mule.runtime.core.api.context.DefaultMuleContextFactory.createMuleContext(DefaultMuleContextFactory.java:59) ~[mule-core-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.impl.internal.artifact.ArtifactContextBuilder.lambda$build$2(ArtifactContextBuilder.java:499) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]
at org.mule.runtime.core.api.util.ExceptionUtils.tryExpecting(ExceptionUtils.java:227) ~[mule-core-4.2.2.jar:4.2.2]
at org.mule.runtime.core.api.util.ClassUtils.withContextClassLoader(ClassUtils.java:915) ~[mule-core-4.2.2.jar:4.2.2]
at org.mule.runtime.core.api.util.ClassUtils.withContextClassLoader(ClassUtils.java:879) ~[mule-core-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.impl.internal.artifact.ArtifactContextBuilder.build(ArtifactContextBuilder.java:409) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.impl.internal.application.DefaultMuleApplication.doInit(DefaultMuleApplication.java:239) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.impl.internal.application.DefaultMuleApplication.init(DefaultMuleApplication.java:207) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]
at org.mule.runtime.core.api.util.ClassUtils.lambda$withContextClassLoader$9(ClassUtils.java:860) ~[mule-core-4.2.2.jar:4.2.2]
at org.mule.runtime.core.api.util.ExceptionUtils.tryExpecting(ExceptionUtils.java:227) [mule-core-4.2.2.jar:4.2.2]
at org.mule.runtime.core.api.util.ClassUtils.withContextClassLoader(ClassUtils.java:915) [mule-core-4.2.2.jar:4.2.2]
at org.mule.runtime.core.api.util.ClassUtils.withContextClassLoader(ClassUtils.java:879) [mule-core-4.2.2.jar:4.2.2]
at org.mule.runtime.core.api.util.ClassUtils.withContextClassLoader(ClassUtils.java:859) [mule-core-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.impl.internal.artifact.DeployableArtifactWrapper.executeWithinArtifactClassLoader(DeployableArtifactWrapper.java:140) [mule-module-deployment-model-impl-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.impl.internal.artifact.DeployableArtifactWrapper.init(DeployableArtifactWrapper.java:83) [mule-module-deployment-model-impl-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.internal.DefaultArtifactDeployer.doInit(DefaultArtifactDeployer.java:63) [mule-module-deployment-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.internal.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:28) [mule-module-deployment-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.internal.DefaultArchiveDeployer.deployArtifact(DefaultArchiveDeployer.java:448) [mule-module-deployment-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.internal.DefaultArchiveDeployer.internalDeployPackagedArtifact(DefaultArchiveDeployer.java:530) [mule-module-deployment-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.internal.DefaultArchiveDeployer.deployOrRedeployPackagedArtifact(DefaultArchiveDeployer.java:495) [mule-module-deployment-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.internal.DefaultArchiveDeployer.deployPackagedArtifact(DefaultArchiveDeployer.java:377) [mule-module-deployment-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.internal.DefaultArchiveDeployer.deployPackagedArtifact(DefaultArchiveDeployer.java:53) [mule-module-deployment-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.internal.DeploymentDirectoryWatcher.deployPackedApps(DeploymentDirectoryWatcher.java:241) [mule-module-deployment-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.internal.DeploymentDirectoryWatcher.run(DeploymentDirectoryWatcher.java:312) [mule-module-deployment-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.internal.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:153) [mule-module-deployment-4.2.2.jar:4.2.2]
at org.mule.runtime.module.deployment.internal.MuleDeploymentService.start(MuleDeploymentService.java:143) [mule-module-deployment-4.2.2.jar:4.2.2]
at org.mule.runtime.module.launcher.MuleContainer.start(MuleContainer.java:252) [mule-module-launcher-4.2.2.jar:4.2.2]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_242]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_242]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_242]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_242]
at org.mule.runtime.module.reboot.internal.MuleContainerWrapper.start(MuleContainerWrapper.java:49) [mule-module-boot-ee-4.2.2.jar:4.2.2]
at org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:4429) [wrapper-3.5.37.jar:3.5.37]
INFO 2020-02-04 09:47:08,041 [WrapperListener_start_runner] [event: ] org.mule.runtime.module.deployment.impl.internal.artifact.AbstractDeployableArtifact: Application 'delwp-api-mule-hr-admin-api-v1' never started, nothing to dispose of
INFO 2020-02-04 09:47:08,041 [WrapperListener_start_runner] org.mule.runtime.core.internal.logging.LogUtil:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Disposing application 'admin-api-v1' +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO 2020-02-04 09:47:08,363 [WrapperListener_start_runner] org.mule.runtime.core.internal.logging.LogUtil:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Failed to deploy artifact 'admin-api-v1', +
+ org.mule.runtime.deployment.model.api.DeploymentInitException: +
+ ClassNotFoundException: com.google.common.cache.CacheLoader +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ERROR 2020-02-04 09:47:08,363 [WrapperListener_start_runner] org.mule.runtime.module.deployment.internal.DefaultArchiveDeployer: Failed to deploy artifact [delwp-api-mule-hr-admin-api-v1]
org.mule.runtime.deployment.model.api.DeploymentException: Failed to deploy artifact [delwp-api-mule-hr-admin-api-v1]
Caused by: org.mule.runtime.api.exception.MuleRuntimeException: org.mule.runtime.deployment.model.api.DeploymentInitException: ClassNotFoundException: com.google.common.cache.CacheLoader
Caused by: org.mule.runtime.deployment.model.api.DeploymentInitException: ClassNotFoundException: com.google.common.cache.CacheLoader
Caused by: org.mule.runtime.core.api.config.ConfigurationException: java.lang.NoClassDefFoundError: com/google/common/cache/CacheLoader
Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/google/common/cache/CacheLoader
EDIT
When i do #mvn dependency:tree -Dverbose I could not find any dependency for google.common.cache library. But there are several guava libaray dependencies, which are omitted for conflict
Line 86: [INFO] | | +- com.google.code.gson:gson:jar:2.6.2:compile
Line 88: [INFO] | | +- (com.google.guava:guava:jar:23.5-jre:compile - omitted for duplicate)
Line 98: [INFO] | | +- (com.google.guava:guava:jar:23.5-jre:compile - omitted for duplicate)
Line 115: [INFO] | | +- (com.google.code.gson:gson:jar:2.5:compile - omitted for conflict with 2.6.2)
Line 118: [INFO] | | | +- (com.google.guava:guava:jar:19.0:compile - omitted for conflict with 23.5-jre)
Line 137: [INFO] | +- com.google.guava:guava:jar:23.5-jre:compile
Line 138: [INFO] | | +- (com.google.code.findbugs:jsr305:jar:1.3.9:compile - omitted for conflict with 3.0.0)
Line 140: [INFO] | | +- com.google.errorprone:error_prone_annotations:jar:2.0.18:compile
Line 141: [INFO] | | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile
Line 144: [INFO] | | \- (com.google.guava:guava:jar:15.0:compile - omitted for conflict with 23.5-jre)
Line 159: [INFO] | | \- (com.google.guava:guava:jar:23.5-jre:compile - omitted for duplicate)
Line 165: [INFO] | \- (com.google.guava:guava:jar:25.1-jre:compile - omitted for conflict with 23.5-jre)
Line 184: [INFO] | | | +- com.googlecode.libphonenumber:libphonenumber:jar:8.0.0:compile
Line 193: [INFO] | | \- com.googlecode.juniversalchardet:juniversalchardet:jar:1.0.3:compile
Line 194: [INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.0:compile
Line 195: [INFO] | +- (com.google.guava:guava:jar:25.0-jre:compile - omitted for conflict with 23.5-jre)
Line 201: [INFO] | | | +- com.google.code.findbugs:annotations:jar:3.0.0:compile
Line 205: [INFO] | | +- (com.googlecode.juniversalchardet:juniversalchardet:jar:1.0.3:compile - omitted for duplicate)
Line 211: [INFO] | | +- (com.google.code.findbugs:jsr305:jar:3.0.0:compile - omitted for duplicate)
Line 212: [INFO] | | +- (com.google.guava:guava:jar:25.0-jre:compile - omitted for conflict with 23.5-jre)
Line 220: [INFO] | | +- (com.google.code.findbugs:jsr305:jar:3.0.0:compile - omitted for duplicate)
Line 221: [INFO] | | +- (com.google.guava:guava:jar:25.0-jre:compile - omitted for conflict with 23.5-jre)
Line 227: [INFO] | | \- (com.google.guava:guava:jar:25.0-jre:compile - omitted for conflict with 23.5-jre)
Line 237: [INFO] | +- (com.google.guava:guava:jar:23.5-jre:compile - omitted for duplicate)
Line 246: [INFO] | +- (com.google.guava:guava:jar:23.5-jre:compile - omitted for duplicate)
Line 256: [INFO] | | +- (com.google.guava:guava:jar:19.0:test - omitted for conflict with 23.5-jre)
Line 264: [INFO] | +- (com.google.code.gson:gson:jar:2.6.2:compile - scope updated from test; omitted for duplicate)
Line 283: [INFO] | | \- (com.google.guava:guava:jar:23.5-jre:compile - omitted for duplicate)
Line 286: [INFO] | \- (com.google.guava:guava:jar:25.1-jre:compile - omitted for conflict with 23.5-jre)
The error seems to be caused by the json-logger module. It depends on Guava. Guava seems to depend on Google Cache, however it seems to not declare it as a library. Maybe it loads the cache library dynamically, or it is related to some shading. In any case it is a problem with that component and Guava.
I am trying to install and configure sonarqube to use it in small poroyect in my machine (Ubuntu 18.04.2 LTS) y have already download the zip Sonarqube 7.7 community edition from the oficial web and unzipped in /opt/. I tryed to do as is say in the guide from sonar and execute ./sonar.sh console in the path /opt/sonarqube/bin/linux-x86-64 and I get problems with the log permisions .
Running SonarQube...
wrapper | ERROR: Could not write pid file /opt/sonarqube/bin/linux-x86-64/./SonarQube.pid: Permission denied
Unable to open logfile ../../logs/sonar.log: Permission denied
So I try the same as superuser and I get
Running SonarQube...
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2019.04.05 19:55:48 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
jvm 1 | 2019.04.05 19:55:48 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1 | 2019.04.05 19:55:48 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
jvm 1 | 2019.04.05 19:55:48 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | 2019.04.05 19:55:48 INFO app[][o.e.p.PluginsService] no modules loaded
jvm 1 | 2019.04.05 19:55:48 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1 | OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
jvm 1 | 2019.04.05 19:55:51 WARN app[][o.s.a.p.AbstractProcessMonitor] Process exited with exit value [es]: 1
jvm 1 | 2019.04.05 19:55:51 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
jvm 1 | 2019.04.05 19:55:51 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
jvm 1 | 2019.04.05 19:55:51 INFO app[][o.e.c.t.TransportClientNodesService] failed to get node info for {#transport#-1}{pr4ED0vsRgCYZjgn1jbLlQ}{127.0.0.1}{127.0.0.1:9001}, disconnecting...
jvm 1 | java.lang.IllegalStateException: Future got interrupted
jvm 1 | at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:60)
jvm 1 | at org.elasticsearch.action.support.AdapterActionFuture.actionGet(AdapterActionFuture.java:34)
jvm 1 | at org.elasticsearch.transport.ConnectionManager.internalOpenConnection(ConnectionManager.java:226)
jvm 1 | at org.elasticsearch.transport.ConnectionManager.openConnection(ConnectionManager.java:85)
jvm 1 | at org.elasticsearch.transport.TransportService.openConnection(TransportService.java:367)
jvm 1 | at org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler.doSample(TransportClientNodesService.java:410)
jvm 1 | at org.elasticsearch.client.transport.TransportClientNodesService$NodeSampler.sample(TransportClientNodesService.java:361)
jvm 1 | at org.elasticsearch.client.transport.TransportClientNodesService.addTransportAddresses(TransportClientNodesService.java:202)
jvm 1 | at org.elasticsearch.client.transport.TransportClient.addTransportAddress(TransportClient.java:342)
jvm 1 | at org.sonar.application.es.EsConnectorImpl$MinimalTransportClient.<init>(EsConnectorImpl.java:108)
jvm 1 | at org.sonar.application.es.EsConnectorImpl.buildTransportClient(EsConnectorImpl.java:89)
jvm 1 | at org.sonar.application.es.EsConnectorImpl.getTransportClient(EsConnectorImpl.java:74)
jvm 1 | at org.sonar.application.es.EsConnectorImpl.getClusterHealthStatus(EsConnectorImpl.java:61)
jvm 1 | at org.sonar.application.process.EsProcessMonitor.checkStatus(EsProcessMonitor.java:90)
jvm 1 | at org.sonar.application.process.EsProcessMonitor.checkOperational(EsProcessMonitor.java:75)
jvm 1 | at org.sonar.application.process.EsProcessMonitor.isOperational(EsProcessMonitor.java:60)
jvm 1 | at org.sonar.application.process.SQProcess.refreshState(SQProcess.java:161)
jvm 1 | at org.sonar.application.process.SQProcess$EventWatcher.run(SQProcess.java:220)
jvm 1 | Caused by: java.lang.InterruptedException: null
jvm 1 | at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1038)
jvm 1 | at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1343)
jvm 1 | at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:251)
jvm 1 | at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:94)
jvm 1 | at org.elasticsearch.common.util.concurrent.FutureUtils.get(FutureUtils.java:57)
jvm 1 | ... 17 common frames omitted
wrapper | <-- Wrapper Stopped
I do not understand the error I get and why it does not start the sonarqube.
Don't try to use superuser. Just change the access rights on the complete SonarQube folder for the user you use.
I get an error trying to start activemq 5.11.
Perhaps it's related to this issue:
https://issues.apache.org/jira/browse/AMQ-4299
dave#vishnu.local:~/Downloads/apache-activemq-5.11.0/data$ cat wrapper.log
STATUS | wrapper | 2015/02/09 11:29:01 | --> Wrapper Started as Daemon
STATUS | wrapper | 2015/02/09 11:29:01 | Launching a JVM...
INFO | jvm 1 | 2015/02/09 11:29:02 | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
ERROR | wrapper | 2015/02/09 11:29:02 | JVM exited while loading the application.
STATUS | wrapper | 2015/02/09 11:29:06 | Launching a JVM...
INFO | jvm 2 | 2015/02/09 11:29:06 | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
ERROR | wrapper | 2015/02/09 11:29:07 | JVM exited while loading the application.
STATUS | wrapper | 2015/02/09 11:29:11 | Launching a JVM...
INFO | jvm 3 | 2015/02/09 11:29:11 | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
ERROR | wrapper | 2015/02/09 11:29:12 | JVM exited while loading the application.
STATUS | wrapper | 2015/02/09 11:29:16 | Launching a JVM...
INFO | jvm 4 | 2015/02/09 11:29:16 | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
ERROR | wrapper | 2015/02/09 11:29:17 | JVM exited while loading the application.
STATUS | wrapper | 2015/02/09 11:29:21 | Launching a JVM...
INFO | jvm 5 | 2015/02/09 11:29:21 | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
ERROR | wrapper | 2015/02/09 11:29:21 | JVM exited while loading the application.
FATAL | wrapper | 2015/02/09 11:29:21 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2015/02/09 11:29:21 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2015/02/09 11:29:21 | <-- Wrapper Stopped
STATUS | wrapper | 2015/02/09 11:32:28 | --> Wrapper Started as Daemon
STATUS | wrapper | 2015/02/09 11:32:28 | Launching a JVM...
INFO | jvm 1 | 2015/02/09 11:32:29 | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
ERROR | wrapper | 2015/02/09 11:32:29 | JVM exited while loading the application.
STATUS | wrapper | 2015/02/09 11:32:34 | Launching a JVM...
INFO | jvm 2 | 2015/02/09 11:32:34 | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
ERROR | wrapper | 2015/02/09 11:32:34 | JVM exited while loading the application.
STATUS | wrapper | 2015/02/09 11:32:38 | Launching a JVM...
INFO | jvm 3 | 2015/02/09 11:32:39 | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
ERROR | wrapper | 2015/02/09 11:32:39 | JVM exited while loading the application.
STATUS | wrapper | 2015/02/09 11:32:43 | Launching a JVM...
INFO | jvm 4 | 2015/02/09 11:32:43 | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
ERROR | wrapper | 2015/02/09 11:32:44 | JVM exited while loading the application.
STATUS | wrapper | 2015/02/09 11:32:48 | Launching a JVM...
INFO | jvm 5 | 2015/02/09 11:32:48 | Error: Could not find or load main class org.tanukisoftware.wrapper.WrapperSimpleApp
ERROR | wrapper | 2015/02/09 11:32:49 | JVM exited while loading the application.
FATAL | wrapper | 2015/02/09 11:32:49 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
FATAL | wrapper | 2015/02/09 11:32:49 | There may be a configuration problem: please check the logs.
STATUS | wrapper | 2015/02/09 11:32:49 | <-- Wrapper Stopped
as suggested, your issue is not related to AMQ per your log:
Error: Could not find or load main class
org.tanukisoftware.wrapper.WrapperSimpleApp
I solved this problem by adding activeMQ bin directory to the PATH environment variable.
C:\Tools\apache-activemq-5.14.2\bin