eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
384 stars 143 forks source link

Jboss-logging bundled with glassfish does not see the slf4j jar file in endorsed directory #21401

Closed glassfishrobot closed 7 years ago

glassfishrobot commented 9 years ago

Downloaded the glassfish 4.1 zip file, unzipped it. Added the following JMV prop to the domain.xml file -

-Dorg.jboss.logging.provider=slf4j

Added the slf4j-api-1.7.5.jar file to the following location - E:\glassfish-4.1\glassfish\lib\endorsed Started the server with the following command line - asadmin.bat start-domain -v And the start-up fails with the following error - [2015-08-03T15:00:30.593-0500] [] [INFO] [NCLS-GFLAUNCHER-00005] [javax.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1438632030593] [levelValue: 800] [[ JVM invocation command line: E:\Java\jdk1.8.0_25\bin\java.exe -cp E:/glassfish-4.1/glassfish4/glassfish/modules/glassfish.jar -XX:+UnlockDiagnosticVMOptions -XX:NewRatio=2 -XX:MaxPermSize=192m -Xmx512m -javaagent:E:/glassfish-4.1/glassfish4/glassfish/lib/monitor/flashlight-agent.jar -client -Djavax.xml.accessExternalSchema=all -Djavax.net.ssl.trustStore=E:\glassfish-4.1\glassfish4\glassfish\domains\domain1/config/cacerts.jks -Djdk.corba.allowOutputStreamSubclass=true -Dfelix.fileinstall.dir=E:\glassfish-4.1\glassfish4\glassfish/modules/autostart/ -Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall -Dcom.sun.aas.installRoot=E:\glassfish-4.1\glassfish4\glassfish -Dfelix.fileinstall.poll=5000 -Djava.endorsed.dirs=E:\glassfish-4.1\glassfish4\glassfish/modules/endorsed;E:\glassfish-4.1\glassfish4\glassfish/lib/endorsed -Djava.security.policy=E:\glassfish-4.1\glassfish4\glassfish\domains\domain1/config/server.policy -Dosgi.shell.telnet.maxconn=1 -Dfelix.fileinstall.bundles.startTransient=true -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Dfelix.fileinstall.log.level=2 -Dorg.jboss.logging.provider=slf4j -Djavax.net.ssl.keyStore=E:\glassfish-4.1\glassfish4\glassfish\domains\domain1/config/keystore.jks -Djava.security.auth.login.config=E:\glassfish-4.1\glassfish4\glassfish\domains\domain1/config/login.conf -Dfelix.fileinstall.disableConfigSave=false -Dfelix.fileinstall.bundles.new.start=true -Dcom.sun.aas.instanceRoot=E:\glassfish-4.1\glassfish4\glassfish\domains\domain1 -Dosgi.shell.telnet.port=6666 Dgosh.args=-nointeractive -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as -Dosgi.shell.telnet.ip=127.0.0.1 -DANTLR_USE_DIRECT_CLASS_LOADING=true -Djava.awt.headless=true -Dcom.ctc.wstx.returnNullForDefaultNamespace=true -Djava.ext.dirs=E:\Java\jdk1.8.0_25/lib/ext;E:\Java\jdk1.8.0_25/jre/lib/ext;E:\glassfish-4.1\glassfish4\glassfish\domains\domain1/lib/ext -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -Djava.library.path=E:/glassfish-4.1/glassfish4/glassfish/lib;E:/Java/jdk1.8.0_25/bin;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/ProgramData/Oracle/Java/javapath;C:/Program Files/Common Files/Microsoft Shared/Windows Live;C:/Program Files (x86)/Common Files/microsoft shared/Windows Live;C:/Program Files (x86)/Intel/iCLS Client;C:/Program Files/Intel/iCLS Client;C:/Program Files (x86)/AMD APP/bin/x86_64;C:/Program Files (x86)/AMD APP/bin/x86;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static;C:/Program Files/Intel/Intel(R) Management Engine Components/DAL;C:/Program Files/Intel/Intel(R) Management Engine Components/IPT;C:/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL;C:/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT;C:/Program Files/Dell/Dell Data Protection/Access/Advanced/Wave/Gemalto/Access Client/v5;C:/Program Files (x86)/Security Innovation/SI TSS/bin;C:/Program Files (x86)/Windows Live/Shared;C:/Program Files (x86)/Attachmate/EXTRA!;E:/_2ls/apache-maven-3.0.5/bin;E:/Program Files/IBM/SQLLIB/BIN;E:/Program Files/IBM/SQLLIB/FUNCTION;E:/Program Files/IBM/SQLLIB/samples/repl;C:/Program Files (x86)/IBM/RationalSDLC/ClearCase/bin;C:/Program Files (x86)/IBM/RationalSDLC/common;E:/Program Files/putty;E:/_ant_viz/graphviz-2.38/bin;E:/Program Files/TortoiseSVN/bin;E:/ANT_1.9.4/bin;E:/Program Files (x86)/Git/cmd;E:/Program Files/nodejs;E:/Program Files (x86)/Heroku/bin;C:/Program Files (x86)/git/cmd;E:/db-derby-10.11.1.1-bin/bin;E:/Python34;E:/Python34/Scripts;E:/Ruby22-x64/bin;C:/Users/bgurung/AppData/Roaming/npm;E:/gradle-2.2.1/bin;C:/Users/bgurung/AppData/Local/Apps/cURL/bin;E:/glassfish-4.1/glassfish4/glassfish/bin com.sun.enterprise.glassfish.bootstrap.ASMain -upgrade false -domaindir E:/glassfish-4.1/glassfish4/glassfish/domains/domain1 -read-stdin true -asadmin-args -host,,,localhost,,,port,,,4848,,,secure=false,,,terse=false,,,echo=false,,,interactive=true,,,start-domain,,,verbose=true,,,watchdog=false,,,debug=false,,,-domaindir,,,E:\glassfish-4.1\glassfish4\glassfish\domains,,,domain1 -domainname domain1 -instancename server -type DAS -verbose true -asadmin-classpath E:/glassfish-4.1/glassfish4/glassfish/lib/client/appserver-cli.jar -debug false -asadmin-classname com.sun.enterprise.admin.cli.AdminMain]]

[2015-08-03T15:00:37.312-0500] [glassfish 4.1] [INFO] [NCLS-LOGGING-00009] [javax.enterprise.logging] [tid: _ThreadID=19 _ThreadName=RunLevelControllerThread-1438632037242] [timeMillis: 1438632037312] [levelValue: 800] [[ Running GlassFish Version: GlassFish Server Open Source Edition 4.1 (build 13)]]

[2015-08-03T15:00:37.322-0500] [glassfish 4.1] [INFO] [NCLS-LOGGING-00010] [javax.enterprise.logging] [tid: _ThreadID=19 _ThreadName=RunLevelControllerThread-1438632037242] [timeMillis: 1438632037322] [levelValue: 800] [[ Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter]]

[2015-08-03T15:00:37.422-0500] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=20 _ThreadName=RunLevelControllerThread-1438632037242] [timeMillis: 1438632037422] [levelValue: 800] [[ Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]

[2015-08-03T15:00:37.432-0500] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=20 _ThreadName=RunLevelControllerThread-1438632037242] [timeMillis: 1438632037432] [levelValue: 800] [[ Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.]]

[2015-08-03T15:00:37.432-0500] [glassfish 4.1] [INFO] [NCLS-SECURITY-01115] [javax.enterprise.system.core.security] [tid: _ThreadID=20 _ThreadName=RunLevelControllerThread-1438632037242] [timeMillis: 1438632037432] [levelValue: 800] [[ Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.]]

[2015-08-03T15:00:37.572-0500] [glassfish 4.1] [INFO] [SEC-SVCS-00100] [javax.enterprise.security.services] [tid: _ThreadID=21 _ThreadName=RunLevelControllerThread-1438632037242] [timeMillis: 1438632037572] [levelValue: 800] [[ Authorization Service has successfully initialized.]]

[2015-08-03T15:00:37.582-0500] [glassfish 4.1] [INFO] [NCLS-CORE-00015] [javax.enterprise.system.core] [tid: _ThreadID=18 _ThreadName=RunLevelControllerThread-1438632037232] [timeMillis: 1438632037582] [levelValue: 800] [[ Shutdown requested MultiException stack 1 of 3 java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:33) at org.jboss.logging.LoggerProviders.find(LoggerProviders.java:37) at org.jboss.logging.LoggerProviders.(LoggerProviders.java:32) at org.jboss.logging.Logger.getLogger(Logger.java:2163) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2259) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214) at org.hibernate.validator.internal.util.logging.LoggerFactory.make(LoggerFactory.java:29) at org.hibernate.validator.internal.util.Version.(Version.java:27) at org.hibernate.validator.internal.engine.ConfigurationImpl.(ConfigurationImpl.java:65) at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:41) at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:276) at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:110) at org.jvnet.hk2.config.WriteableView.(WriteableView.java:97) at org.jvnet.hk2.config.ConfigSupport.getWriteableView(ConfigSupport.java:213) at org.jvnet.hk2.config.ConfigSupport.getWriteableView(ConfigSupport.java:236) at org.jvnet.hk2.config.ConfigSupport._apply(ConfigSupport.java:159) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:135) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:114) at com.sun.enterprise.config.modularity.parser.ModuleConfigurationLoader.createConfigBeanForType(ModuleConfigurationLoader.java:100) at com.sun.enterprise.config.modularity.ExtensionPatternInvocationImpl.handleExtension(ExtensionPatternInvocationImpl.java:96) at org.jvnet.hk2.config.Dom.invokeConfigExtensionMethod(Dom.java:1130) at org.jvnet.hk2.config.Dom.invoke(Dom.java:1071) at org.glassfish.config.support.TranslatedConfigView.invoke(TranslatedConfigView.java:131) at com.sun.proxy.$Proxy36.getExtensionByType(Unknown Source) at com.sun.enterprise.config.modularity.ConfigModularityJustInTimeInjectionResolver.justInTimeResolution(ConfigModularityJustInTimeInjectionResolver.java:100) at org.jvnet.hk2.internal.ServiceLocatorImpl.secondChanceResolve(ServiceLocatorImpl.java:466) at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetInjecteeDescriptor(ServiceLocatorImpl.java:534) at org.jvnet.hk2.internal.ServiceLocatorImpl.getInjecteeDescriptor(ServiceLocatorImpl.java:546) at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:69) at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:214) at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:237) at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:360) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory not found by org.glassfish.hk2.external.bean-validator [23] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955) at java.lang.ClassLoader.loadClass(Unknown Source) ... 43 more MultiException stack 2 of 3 java.lang.IllegalArgumentException: While attempting to resolve the dependencies of org.glassfish.batch.spi.impl.BatchRuntimeHelper errors were found at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:249) at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:360) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) MultiException stack 3 of 3 java.lang.IllegalStateException: Unable to perform operation: resolve on org.glassfish.batch.spi.impl.BatchRuntimeHelper at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:389) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) ]]

[2015-08-03T15:00:37.582-0500] [glassfish 4.1] [SEVERE] [NCLS-CORE-00016] [javax.enterprise.system.core] [tid: _ThreadID=18 _ThreadName=RunLevelControllerThread-1438632037232] [timeMillis: 1438632037582] [levelValue: 1000] [[ Startup service failed to start MultiException stack 1 of 3 java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:33) at org.jboss.logging.LoggerProviders.find(LoggerProviders.java:37) at org.jboss.logging.LoggerProviders.(LoggerProviders.java:32) at org.jboss.logging.Logger.getLogger(Logger.java:2163) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2259) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214) at org.hibernate.validator.internal.util.logging.LoggerFactory.make(LoggerFactory.java:29) at org.hibernate.validator.internal.util.Version.(Version.java:27) at org.hibernate.validator.internal.engine.ConfigurationImpl.(ConfigurationImpl.java:65) at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:41) at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:276) at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:110) at org.jvnet.hk2.config.WriteableView.(WriteableView.java:97) at org.jvnet.hk2.config.ConfigSupport.getWriteableView(ConfigSupport.java:213) at org.jvnet.hk2.config.ConfigSupport.getWriteableView(ConfigSupport.java:236) at org.jvnet.hk2.config.ConfigSupport._apply(ConfigSupport.java:159) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:135) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:114) at com.sun.enterprise.config.modularity.parser.ModuleConfigurationLoader.createConfigBeanForType(ModuleConfigurationLoader.java:100) at com.sun.enterprise.config.modularity.ExtensionPatternInvocationImpl.handleExtension(ExtensionPatternInvocationImpl.java:96) at org.jvnet.hk2.config.Dom.invokeConfigExtensionMethod(Dom.java:1130) at org.jvnet.hk2.config.Dom.invoke(Dom.java:1071) at org.glassfish.config.support.TranslatedConfigView.invoke(TranslatedConfigView.java:131) at com.sun.proxy.$Proxy36.getExtensionByType(Unknown Source) at com.sun.enterprise.config.modularity.ConfigModularityJustInTimeInjectionResolver.justInTimeResolution(ConfigModularityJustInTimeInjectionResolver.java:100) at org.jvnet.hk2.internal.ServiceLocatorImpl.secondChanceResolve(ServiceLocatorImpl.java:466) at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetInjecteeDescriptor(ServiceLocatorImpl.java:534) at org.jvnet.hk2.internal.ServiceLocatorImpl.getInjecteeDescriptor(ServiceLocatorImpl.java:546) at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:69) at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:214) at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:237) at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:360) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory not found by org.glassfish.hk2.external.bean-validator [23] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955) at java.lang.ClassLoader.loadClass(Unknown Source) ... 43 more MultiException stack 2 of 3 java.lang.IllegalArgumentException: While attempting to resolve the dependencies of org.glassfish.batch.spi.impl.BatchRuntimeHelper errors were found at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:249) at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:360) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) MultiException stack 3 of 3 java.lang.IllegalStateException: Unable to perform operation: resolve on org.glassfish.batch.spi.impl.BatchRuntimeHelper at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:389) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) ]]

[2015-08-03T15:00:37.692-0500] [glassfish 4.1] [INFO] [NCLS-CORE-00015] [javax.enterprise.system.core] [tid: _ThreadID=21 _ThreadName=RunLevelControllerThread-1438632037242] [timeMillis: 1438632037692] [levelValue: 800] [[ Shutdown requested MultiException stack 1 of 2 java.lang.NoClassDefFoundError: Could not initialize class org.jvnet.hk2.config.WriteableView at org.jvnet.hk2.config.ConfigSupport.getWriteableView(ConfigSupport.java:213) at org.jvnet.hk2.config.ConfigSupport.getWriteableView(ConfigSupport.java:236) at org.jvnet.hk2.config.ConfigSupport._apply(ConfigSupport.java:159) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:135) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:114) at com.sun.enterprise.config.modularity.parser.ModuleConfigurationLoader.createConfigBeanForType(ModuleConfigurationLoader.java:100) at com.sun.enterprise.config.modularity.ExtensionPatternInvocationImpl.handleExtension(ExtensionPatternInvocationImpl.java:96) at org.jvnet.hk2.config.Dom.invokeConfigExtensionMethod(Dom.java:1130) at org.jvnet.hk2.config.Dom.invoke(Dom.java:1071) at org.glassfish.config.support.TranslatedConfigView.invoke(TranslatedConfigView.java:131) at com.sun.proxy.$Proxy55.getExtensionByType(Unknown Source) at com.sun.enterprise.v3.admin.JobCleanUpService.postConstruct(JobCleanUpService.java:98) at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:329) at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:377) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) MultiException stack 2 of 2 java.lang.IllegalStateException: Unable to perform operation: post construct on com.sun.enterprise.v3.admin.JobCleanUpService at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:395) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) ]]

[2015-08-03T15:00:37.692-0500] [glassfish 4.1] [SEVERE] [NCLS-CORE-00016] [javax.enterprise.system.core] [tid: _ThreadID=21 _ThreadName=RunLevelControllerThread-1438632037242] [timeMillis: 1438632037692] [levelValue: 1000] [[ Startup service failed to start MultiException stack 1 of 2 java.lang.NoClassDefFoundError: Could not initialize class org.jvnet.hk2.config.WriteableView at org.jvnet.hk2.config.ConfigSupport.getWriteableView(ConfigSupport.java:213) at org.jvnet.hk2.config.ConfigSupport.getWriteableView(ConfigSupport.java:236) at org.jvnet.hk2.config.ConfigSupport._apply(ConfigSupport.java:159) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:135) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:114) at com.sun.enterprise.config.modularity.parser.ModuleConfigurationLoader.createConfigBeanForType(ModuleConfigurationLoader.java:100) at com.sun.enterprise.config.modularity.ExtensionPatternInvocationImpl.handleExtension(ExtensionPatternInvocationImpl.java:96) at org.jvnet.hk2.config.Dom.invokeConfigExtensionMethod(Dom.java:1130) at org.jvnet.hk2.config.Dom.invoke(Dom.java:1071) at org.glassfish.config.support.TranslatedConfigView.invoke(TranslatedConfigView.java:131) at com.sun.proxy.$Proxy55.getExtensionByType(Unknown Source) at com.sun.enterprise.v3.admin.JobCleanUpService.postConstruct(JobCleanUpService.java:98) at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:329) at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:377) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) MultiException stack 2 of 2 java.lang.IllegalStateException: Unable to perform operation: post construct on com.sun.enterprise.v3.admin.JobCleanUpService at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:395) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) ]]

[2015-08-03T15:00:38.026-0500] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=20 _ThreadName=RunLevelControllerThread-1438632037242] [timeMillis: 1438632038026] [levelValue: 800] [[ Grizzly Framework 2.3.15 started in: 70ms - bound to [/0.0.0.0:8181]]]

[2015-08-03T15:00:38.036-0500] [glassfish 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=20 _ThreadName=RunLevelControllerThread-1438632037242] [timeMillis: 1438632038036] [levelValue: 800] [[ Grizzly Framework 2.3.15 started in: 10ms - bound to [/0.0.0.0:4848]]]

[2015-08-03T15:00:38.086-0500] [glassfish 4.1] [SEVERE] [NCLS-CORE-00014] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1438632038086] [levelValue: 1000] [[ Shutdown required MultiException stack 1 of 2 MultiException stack 1 of 3 java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.jboss.logging.Slf4jLoggerProvider.getLogger(Slf4jLoggerProvider.java:33) at org.jboss.logging.LoggerProviders.find(LoggerProviders.java:37) at org.jboss.logging.LoggerProviders.(LoggerProviders.java:32) at org.jboss.logging.Logger.getLogger(Logger.java:2163) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2259) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214) at org.hibernate.validator.internal.util.logging.LoggerFactory.make(LoggerFactory.java:29) at org.hibernate.validator.internal.util.Version.(Version.java:27) at org.hibernate.validator.internal.engine.ConfigurationImpl.(ConfigurationImpl.java:65) at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:41) at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:276) at javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:110) at org.jvnet.hk2.config.WriteableView.(WriteableView.java:97) at org.jvnet.hk2.config.ConfigSupport.getWriteableView(ConfigSupport.java:213) at org.jvnet.hk2.config.ConfigSupport.getWriteableView(ConfigSupport.java:236) at org.jvnet.hk2.config.ConfigSupport._apply(ConfigSupport.java:159) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:135) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:114) at com.sun.enterprise.config.modularity.parser.ModuleConfigurationLoader.createConfigBeanForType(ModuleConfigurationLoader.java:100) at com.sun.enterprise.config.modularity.ExtensionPatternInvocationImpl.handleExtension(ExtensionPatternInvocationImpl.java:96) at org.jvnet.hk2.config.Dom.invokeConfigExtensionMethod(Dom.java:1130) at org.jvnet.hk2.config.Dom.invoke(Dom.java:1071) at org.glassfish.config.support.TranslatedConfigView.invoke(TranslatedConfigView.java:131) at com.sun.proxy.$Proxy36.getExtensionByType(Unknown Source) at com.sun.enterprise.config.modularity.ConfigModularityJustInTimeInjectionResolver.justInTimeResolution(ConfigModularityJustInTimeInjectionResolver.java:100) at org.jvnet.hk2.internal.ServiceLocatorImpl.secondChanceResolve(ServiceLocatorImpl.java:466) at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetInjecteeDescriptor(ServiceLocatorImpl.java:534) at org.jvnet.hk2.internal.ServiceLocatorImpl.getInjecteeDescriptor(ServiceLocatorImpl.java:546) at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:69) at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:214) at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:237) at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:360) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory not found by org.glassfish.hk2.external.bean-validator [23] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955) at java.lang.ClassLoader.loadClass(Unknown Source) ... 43 more MultiException stack 2 of 3 java.lang.IllegalArgumentException: While attempting to resolve the dependencies of org.glassfish.batch.spi.impl.BatchRuntimeHelper errors were found at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:249) at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:360) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) MultiException stack 3 of 3 java.lang.IllegalStateException: Unable to perform operation: resolve on org.glassfish.batch.spi.impl.BatchRuntimeHelper at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:389) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) MultiException stack 2 of 2 MultiException stack 1 of 2 java.lang.NoClassDefFoundError: Could not initialize class org.jvnet.hk2.config.WriteableView at org.jvnet.hk2.config.ConfigSupport.getWriteableView(ConfigSupport.java:213) at org.jvnet.hk2.config.ConfigSupport.getWriteableView(ConfigSupport.java:236) at org.jvnet.hk2.config.ConfigSupport._apply(ConfigSupport.java:159) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:135) at org.jvnet.hk2.config.ConfigSupport.apply(ConfigSupport.java:114) at com.sun.enterprise.config.modularity.parser.ModuleConfigurationLoader.createConfigBeanForType(ModuleConfigurationLoader.java:100) at com.sun.enterprise.config.modularity.ExtensionPatternInvocationImpl.handleExtension(ExtensionPatternInvocationImpl.java:96) at org.jvnet.hk2.config.Dom.invokeConfigExtensionMethod(Dom.java:1130) at org.jvnet.hk2.config.Dom.invoke(Dom.java:1071) at org.glassfish.config.support.TranslatedConfigView.invoke(TranslatedConfigView.java:131) at com.sun.proxy.$Proxy55.getExtensionByType(Unknown Source) at com.sun.enterprise.v3.admin.JobCleanUpService.postConstruct(JobCleanUpService.java:98) at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:329) at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:377) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) MultiException stack 2 of 2 java.lang.IllegalStateException: Unable to perform operation: post construct on com.sun.enterprise.v3.admin.JobCleanUpService at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:395) at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:461) at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:227) at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:84) at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:105) at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162) at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) ]]

[2015-08-03T15:00:38.086-0500] [glassfish 4.1] [SEVERE] [] [] [tid: _ThreadID=1 _ThreadName=Thread-9] [timeMillis: 1438632038086] [levelValue: 1000] [[ Exception in thread "main"]]

Environment

Windows 7, Java 8, Glassfish 4.1

Affected Versions

[4.1]

glassfishrobot commented 6 years ago
glassfishrobot commented 9 years ago

@glassfishrobot Commented Was assigned to ss141213

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-21401

glassfishrobot commented 9 years ago

@glassfishrobot Commented Reported by bgurung

glassfishrobot commented 7 years ago

@sivakumart Commented @bgurung: Could you please expand on why you are trying to use jboss-logging/slf4j? Was it to use in your own application, or are you looking at configuring the logging of Weld and Bean validator implementations in GlassFish? If it is the latter: Weld and bean-validation logging is controlled via GlassFish's own logging configuration (http://weld.cdi-spec.org/documentation/#7 org.jboss.weld.level=FINE for example). If it is the former, use of the endorsed standards mechanism to set the SLF4J configuration for the whole application server IMHO is a hack and not recommended. Please see https://docs.oracle.com/cd/E18930_01/html/821-2418/gchif.html#scrolltoc for guidance on when this mechanism must be used. However if you would still like to set the slf4j libraries in the classpath and the SLF4J api and binding jars are OSGi modules, place them under $GF_INSTALL/modules/endorsed. I was able to place the SLF4J API and binding jars under modules/endorsed and the server startup succeeded.

Closing this bug for now. Thanks.