Problem while starting JBOSS in linux - jboss

when i start the linux JBOSS server using run.sh, i am getting this error. Can anyone help in overcome this.
JBoss Bootstrap Environment
JBOSS_HOME: /opt/jboss-5.1.0.GA
JAVA: /usr/java/bin/java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms256m -Xmx2048m -XX:MaxPermSize=512m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true
CLASSPATH: /opt/jboss-5.1.0.GA/bin/run.jar:/usr/java/lib/tools.jar
=========================================================================
log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: /opt/jboss-5.1.0.GA/server/default/log/boot.log (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
at org.jboss.logging.log4j.Log4jLoggerPlugin.init(Log4jLoggerPlugin.java:70)
at org.jboss.logging.Logger.getDelegatePlugin(Logger.java:603)
at org.jboss.logging.Logger.<init>(Logger.java:119)
at org.jboss.logging.Logger.getLogger(Logger.java:567)
at org.jboss.bootstrap.AbstractServerImpl.doInit(AbstractServerImpl.java:204)
at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:173)
at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:143)
at org.jboss.Main.boot(Main.java:218)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
10:13:41,425 INFO [ServerImpl] Starting JBoss (Microcontainer)...
10:13:41,425 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)
10:13:41,426 INFO [ServerImpl] Bootstrap URL: null
10:13:41,426 INFO [ServerImpl] Home Dir: /opt/jboss-5.1.0.GA
10:13:41,426 INFO [ServerImpl] Home URL: file:/opt/jboss-5.1.0.GA/
10:13:41,426 INFO [ServerImpl] Library URL: file:/opt/jboss-5.1.0.GA/lib/
10:13:41,427 INFO [ServerImpl] Patch URL: null
10:13:41,427 INFO [ServerImpl] Common Base URL: file:/opt/jboss-5.1.0.GA/common/
10:13:41,427 INFO [ServerImpl] Common Library URL: file:/opt/jboss-5.1.0.GA/common/lib/
10:13:41,427 INFO [ServerImpl] Server Name: default
10:13:41,427 INFO [ServerImpl] Server Base Dir: /opt/jboss-5.1.0.GA/server
10:13:41,427 INFO [ServerImpl] Server Base URL: file:/opt/jboss-5.1.0.GA/server/
10:13:41,427 INFO [ServerImpl] Server Config URL: file:/opt/jboss-5.1.0.GA/server/default/conf/
10:13:41,428 INFO [ServerImpl] Server Home Dir: /opt/jboss-5.1.0.GA/server/default
10:13:41,428 INFO [ServerImpl] Server Home URL: file:/opt/jboss-5.1.0.GA/server/default/
10:13:41,428 INFO [ServerImpl] Server Data Dir: /opt/jboss-5.1.0.GA/server/default/data
10:13:41,428 INFO [ServerImpl] Server Library URL: file:/opt/jboss-5.1.0.GA/server/default/lib/
10:13:41,428 INFO [ServerImpl] Server Log Dir: /opt/jboss-5.1.0.GA/server/default/log
10:13:41,428 INFO [ServerImpl] Server Native Dir: /opt/jboss-5.1.0.GA/server/default/tmp/native
10:13:41,428 INFO [ServerImpl] Server Temp Dir: /opt/jboss-5.1.0.GA/server/default/tmp
10:13:41,428 INFO [ServerImpl] Server Temp Deploy Dir: /opt/jboss-5.1.0.GA/server/default/tmp/deploy
10:13:41,935 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/opt/jboss-5.1.0.GA/server/default/conf/bootstrap.xml
10:13:42,392 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
10:13:42,395 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
10:13:42,616 INFO [CopyMechanism] VFS temp dir: /opt/jboss-5.1.0.GA/server/default/tmp
10:13:42,616 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
10:13:43,673 INFO [ServerInfo] Java version: 1.6.0_21,Sun Microsystems Inc.
10:13:43,673 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
10:13:43,673 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 17.0-b16,Sun Microsystems Inc.
10:13:43,673 INFO [ServerInfo] OS-System: Linux 2.6.18-164.el5,amd64
10:13:43,674 INFO [ServerInfo] VM arguments: -Dprogram.name=run.sh -Xms256m -Xmx2048m -XX:MaxPermSize=512m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/opt/jboss-5.1.0.GA/lib/endorsed
10:13:43,703 INFO [JMXKernel] Legacy JMX core initialized
10:13:45,771 INFO [ProfileServiceBootstrap] Loading profile: ProfileKey#fe14de0[domain=default, server=default, name=default]
log4j error: setFile(null,true) call failed.
java.io.FileNotFoundException: /opt/jboss-5.1.0.GA/server/default/log/server.log (Permission denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:215)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163)
at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425)
at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:743)
at org.jboss.logging.Log4jService$URLWatchTimerTask.reconfigure(Log4jService.java:697)
at org.jboss.logging.Log4jService$URLWatchTimerTask.run(Log4jService.java:636)
at org.jboss.logging.Log4jService.setup(Log4jService.java:492)
at org.jboss.logging.Log4jService.createService(Log4jService.java:528)
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:344)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:320)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
at $Proxy38.create(Unknown Source)
at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:42)
at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.create(ServiceController.java:422)
at org.jboss.system.ServiceController.create(ServiceController.java:387)
at org.jboss.system.deployers.ServiceDeployer.create(ServiceDeployer.java:158)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:96)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
log4j:ERROR Either File or DatePattern options are not set for appender [FILE].
10:13:47,132 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/

You have a couple of options
Run JBoss as root.. I just made a bunch of IT people kick their cats with that.
Create a user/group specifically for jboss and give all the files in /opt/jboss-5.1.0.GA read/write permissions for that group. Then run jboss as that user
change all the read/write permissions for /opt/jboss-5.1.0.GA and sub directories/files world read/write permissions.
If you want to go with the give everyone permission to mess up, I mean use, my JBoss directory use this:
chmod -R a+rw /opt/jboss-5.1.0.GA

May be this way will helpful too
Create jboss group and add user jboss to that group:
# groupadd jboss
# useradd -s /bin/bash -g jboss jboss
Create a symbolic link of jboss directory to /opt/jboss and assign permission :
# ln -s /opt/jboss4.2-AES2.3Cert /opt/jboss
# chown -R jboss:jboss /opt/jboss /opt/jboss4.2-AES2.3Cert /path/to/other/file or folder

Related

sonarqube dies right after I start it

On CentOS-6 box, I am setting up sonarqube-6.4 with postgresql-9.3 Database server running on the same machine. I am using openJDK 8, version below:
$ java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
I only changed below properties which I think is sufficient to connect sonarqube web with postgre DB:
sonar.jdbc.username=sonar
sonar.jdbc.password=*****
sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube
sonar.web.host=0.0.0.0
sonar.web.port=9100
Now when I start sonar I see following in the sonar.log
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2017.06.07 01:53:47 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonar/temp
2017.06.07 01:53:47 INFO app[][o.s.a.p.JavaProcessLauncherImpl] Launch process[es]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-0.b11.el6_9.x86_64/jre/bin/java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djna.nosys=true -XX:+
UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/opt/sonar/temp -cp ./lib/common/*:./lib/search/* org.sonar.search.Search
Server /opt/sonar/temp/sq-process5474669563516031830properties
2017.06.07 01:53:53 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2017.06.07 01:53:53 INFO app[][o.s.a.p.JavaProcessLauncherImpl] Launch process[web]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-0.b11.el6_9.x86_64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xmx512m -Xms128m -XX:+H
eapDumpOnOutOfMemoryError -Djava.io.tmpdir=/opt/sonar/temp -cp ./lib/common/*:./lib/server/*:/opt/sonar/lib/jdbc/postgresql/postgresql-9.4.1209.jre7.jar org.sonar.server.app.WebServer /opt/sonar/temp/sq-process233758778210871240pro
perties
2017.06.07 01:53:57 INFO app[][o.s.a.SchedulerImpl] Process [web] is stopped
2017.06.07 01:53:57 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
2017.06.07 01:53:57 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
Not sure why it dies.
Below is in the web.log:
2017.06.07 04:39:04 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:postgresql://localhost/sonarqube
2017.06.07 04:39:04 ERROR web[][o.s.s.p.Platform] Web server startup failed
java.lang.IllegalStateException: Can not connect to database. Please check connectivity and settings (see the properties prefixed by 'sonar.jdbc.').
at org.sonar.db.DefaultDatabase.checkConnection(DefaultDatabase.java:108)
at org.sonar.db.DefaultDatabase.start(DefaultDatabase.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
at org.sonar.core.platform.ComponentContainer$1.start(ComponentContainer.java:320)
at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.start(AbstractInjectionFactory.java:84)
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:169)
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:132)
at org.picocontainer.behaviors.Stored.start(Stored.java:110)
at org.picocontainer.DefaultPicoContainer.potentiallyStartAdapter(DefaultPicoContainer.java:1016)
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:1009)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:767)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:143)
at org.sonar.server.platform.platformlevel.PlatformLevel.start(PlatformLevel.java:88)
at org.sonar.server.platform.Platform.start(Platform.java:231)
at org.sonar.server.platform.Platform.startLevel1Container(Platform.java:190)
at org.sonar.server.platform.Platform.init(Platform.java:86)
at org.sonar.server.platform.web.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:43)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (FATAL: no pg_hba.conf entry for host "127.0.0.1", user "sonar", database "sonarqube", SSL off)
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
at org.sonar.db.profiling.NullConnectionInterceptor.getConnection(NullConnectionInterceptor.java:31)
at org.sonar.db.profiling.ProfiledDataSource.getConnection(ProfiledDataSource.java:323)
at org.sonar.db.DefaultDatabase.checkConnection(DefaultDatabase.java:106)
... 30 common frames omitted
Caused by: org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "127.0.0.1", user "sonar", database "sonarqube", SSL off
at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:451)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:223)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:211)
at org.postgresql.Driver.makeConnection(Driver.java:407)
at org.postgresql.Driver.connect(Driver.java:275)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
... 35 common frames omitted
2017.06.07 04:39:06 INFO web[][o.a.c.u.SessionIdGeneratorBase] Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [1,561] milliseconds.
2017.06.07 04:39:06 WARN web[][o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [elasticsearch[Scrier][[timer]]] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Thread.sleep(Native Method)
org.elasticsearch.threadpool.ThreadPool$EstimatedTimeThread.run(ThreadPool.java:747)

Error When Starting Wildfly 10 on Linux FileNotFoundException

Hello I cant get the Wildfly 10 Server to start on Linux.
Below is the error message.
I did look into the directory but there is no folder called "log". Do I need to give Netbeans more permissions, so it can create it?
JAVA_OPTS already set in environment; overriding default settings with values: -Xms128m -Xmx512m -server
-Dhttp.nonProxyHosts=localhost,127.0.0.1,AnonPC
-Djava.net.preferIPv4Stack=true
-Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
-Djboss.management.http.port=9990 -Djboss.http.port=8080
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/wildfly
JAVA: /usr/lib/jvm/default/bin/java
JAVA_OPTS: -Xms128m -Xmx512m -server
-Dhttp.nonProxyHosts=localhost,127.0.0.1,AnonPC
-Djava.net.preferIPv4Stack=true
-Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
-Djboss.management.http.port=9990 -Djboss.http.port=8080
=========================================================================
java.lang.IllegalArgumentException: Failed to instantiate class "org.jboss.logmanager.handlers.PeriodicRotatingFileHandler" for handler "FILE"
at org.jboss.logmanager.config.AbstractPropertyConfiguration$ConstructAction.validate(AbstractPropertyConfiguration.java:116)
at org.jboss.logmanager.config.LogContextConfigurationImpl.doPrepare(LogContextConfigurationImpl.java:335)
at org.jboss.logmanager.config.LogContextConfigurationImpl.prepare(LogContextConfigurationImpl.java:288)
at org.jboss.logmanager.config.LogContextConfigurationImpl.commit(LogContextConfigurationImpl.java:297)
at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:546)
at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:97)
at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:514)
at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:476)
at java.util.logging.LogManager$3.run(LogManager.java:399)
at java.util.logging.LogManager$3.run(LogManager.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:396)
at java.util.logging.LogManager.access$800(LogManager.java:145)
at java.util.logging.LogManager$2.run(LogManager.java:345)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.ensureLogManagerInitialized(LogManager.java:338)
at java.util.logging.LogManager.getLogManager(LogManager.java:378)
at org.jboss.modules.Main.main(Main.java:482)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jboss.logmanager.config.AbstractPropertyConfiguration$ConstructAction.validate(AbstractPropertyConfiguration.java:114)
... 17 more
Caused by: java.io.FileNotFoundException: /opt/wildfly/standalone/log/server.log (Datei oder Verzeichnis nicht gefunden)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at org.jboss.logmanager.handlers.FileHandler.setFile(FileHandler.java:151)
at org.jboss.logmanager.handlers.PeriodicRotatingFileHandler.setFile(PeriodicRotatingFileHandler.java:102)
at org.jboss.logmanager.handlers.FileHandler.setFileName(FileHandler.java:189)
at org.jboss.logmanager.handlers.FileHandler.<init>(FileHandler.java:119)
at org.jboss.logmanager.handlers.PeriodicRotatingFileHandler.<init>(PeriodicRotatingFileHandler.java:70)
... 22 more
java.lang.IllegalStateException: WFLYSRV0124: Could not create server data directory: /opt/wildfly/standalone/data
at org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:473)
at org.jboss.as.server.Main.determineEnvironment(Main.java:297)
at org.jboss.as.server.Main.main(Main.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.modules.Module.run(Module.java:329)
at org.jboss.modules.Main.main(Main.java:507)
The user controlling the lifecycle of WildFly needs permissions to read and write files. You'd need to give your user permissions to /opt/wildfly directory.

NoClassDefFoundError on ProfilerRuntimeObjLiveliness error when profiling on WildFly in Netbeans

I am trying to profile a web application running on WildFly (8.2.0.Final "Tweek" version) in Netbeans 8.0.2. I keep getting a NoClassDefFoundError on ProfilerRuntimeObjLiveliness. I tried adding "org.netbeans.lib.profiler.server" to JAVA_OPTS in standalone.conf.bat, but that didn't change anything. The app deploys fine when I'm not trying to profile it.
I've tried jdk7 and 8 (both 64 bit)
Calling "D:\WildFlyTC-8585\bin\standalone.conf.bat"
"JAVA_OPTS already set in environment; overriding default settings with values: -Xms128m -Xmx512m -Djboss.modules.system.pkgs=org.netbeans.lib.profiler.server -server -Dhttp.nonProxyHosts=localhost,127.0.0.1,ComputerName -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentpath:D:\NetBeans8.0.2\profiler\lib\deployed\jdk16\windows-amd64\profilerinterface.dll=D:\NetBeans8.0.2\profiler\lib,5140 -Dnbprofiler.agentid=468771422"
Setting JAVA property to "C:\Program Files\Java\jdk1.8.0_40\bin\java"
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: "D:\WildFlyTC-8585"
JAVA: "C:\Program Files\Java\jdk1.8.0_40\bin\java"
JAVA_OPTS: "-Dprogram.name=standalone.bat -Xms128m -Xmx512m -Djboss.modules.system.pkgs=org.netbeans.lib.profiler.server -server -Dhttp.nonProxyHosts=localhost,127.0.0.1,ComputerName -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentpath:D:\NetBeans8.0.2\profiler\lib\deployed\jdk16\windows-amd64\profilerinterface.dll=D:\NetBeans8.0.2\profiler\lib,5140 -Dnbprofiler.agentid=468771422"
===============================================================================
Profiler Agent: Waiting for connection on port 5140 (Protocol version: 15)
Profiler Agent: Established connection with the tool
Profiler Agent: Local accelerated session
WARNING: Failed to load the specified log manager class org.jboss.logmanager.LogManager
java.lang.NoClassDefFoundError: org/netbeans/lib/profiler/server/ProfilerRuntimeObjLiveness
at org.wildfly.security.manager.WildFlySecurityManager.<clinit>(WildFlySecurityManager.java:75)
at org.jboss.as.server.Main.main(Main.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.jboss.modules.Module.run(Module.java:320)
at org.jboss.modules.Main.main(Main.java:464)
Caused by: java.lang.ClassNotFoundException: org.netbeans.lib.profiler.server.ProfilerRuntimeObjLiveness from [Module "org.wildfly.security.manager:main" from local module loader #6df2af02 (finder: local module finder #4c030fe1 (roots: D:\WildFlyTC-8585\modules,D:\WildFlyTC-8585\modules\system\layers\base))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)
... 8 more
Exception in thread "main" java.lang.NoClassDefFoundError: org/netbeans/lib/profiler/server/ProfilerRuntimeObjLiveness
at org.jboss.as.server.SystemExiter.getExiter(SystemExiter.java:45)
at org.jboss.as.server.SystemExiter.exit(SystemExiter.java:41)
at org.jboss.as.server.Main.abort(Main.java:113)
at org.jboss.as.server.Main.main(Main.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.jboss.modules.Module.run(Module.java:320)
at org.jboss.modules.Main.main(Main.java:464)
Caused by: java.lang.ClassNotFoundException: org.netbeans.lib.profiler.server.ProfilerRuntimeObjLiveness from [Module "org.jboss.as.server:main" from local module loader #6df2af02 (finder: local module finder #4c030fe1 (roots: D:\WildFlyTC-8585\modules,D:\WildFlyTC-8585\modules\system\layers\base))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)
... 10 more
Profiler Agent: Connection with agent closed
Profiler Agent: Connection with agent closed
Profiler Agent: Initializing...
Profiler Agent: Options: >D:\NetBeans8.0.2\profiler\lib,5140<
Profiler Agent: Initialized successfully
Profiler Agent: Redefining 100 classes at idx 0, out of total 500
Profiler Agent: Redefining 100 classes at idx 100, out of total 500
Profiler Agent: Redefining 100 classes at idx 200, out of total 500
Profiler Agent: Redefining 100 classes at idx 300, out of total 500
Profiler Agent: Redefining 100 classes at idx 400, out of total 500
Press any key to continue . . .
What can I do to fix that?

JBoss frees after I set the server configuration name to production (jboss-eap-5.2)

JBoss eap 5.2 frees when I set the server configuration to run as production. The last message I received is:
10:55:46,699 WARN [XMLAttributePersistenceManager] no protocol: data/xmbean-attrs... Reverting to home dir relative path '/opt/jboss-eap-5.2/jboss-as/server/production'
I am using run-sh script to start JBoss as following:
cd /opt/jboss-eap-5.2/bin
./run.sh -c production
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/jboss
JAVA: /opt/java/bin/java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.net.preferIPv4Stack=true
CLASSPATH: /opt/jboss/bin/run.jar:/opt/java/lib/tools.jar
=========================================================================
10:55:33,616 INFO [ServerImpl] Starting JBoss (Microcontainer)...
10:55:33,617 INFO [ServerImpl] Release ID: JBoss [EAP] 5.2.0 (build: SVNTag=JBPAPP_5_2_0 date=201211232041)
10:55:33,617 INFO [ServerImpl] Bootstrap URL: null
10:55:33,618 INFO [ServerImpl] Home Dir: /opt/jboss-eap-5.2/jboss-as
10:55:33,618 INFO [ServerImpl] Home URL: file:/opt/jboss-eap-5.2/jboss-as/
10:55:33,618 INFO [ServerImpl] Library URL: file:/opt/jboss-eap-5.2/jboss-as/lib/
10:55:33,619 INFO [ServerImpl] Patch URL: null
10:55:33,620 INFO [ServerImpl] Common Base URL: file:/opt/jboss-eap-5.2/jboss-as/common/
10:55:33,620 INFO [ServerImpl] Common Library URL: file:/opt/jboss-eap-5.2/jboss-as/common/lib/
10:55:33,620 INFO [ServerImpl] Server Name: production
10:55:33,620 INFO [ServerImpl] Server Base Dir: /opt/jboss-eap-5.2/jboss-as/server
10:55:33,620 INFO [ServerImpl] Server Base URL: file:/opt/jboss-eap-5.2/jboss-as/server/
10:55:33,620 INFO [ServerImpl] Server Config URL: file:/opt/jboss-eap-5.2/jboss-as/server/production/conf/
10:55:33,620 INFO [ServerImpl] Server Home Dir: /opt/jboss-eap-5.2/jboss-as/server/production
10:55:33,620 INFO [ServerImpl] Server Home URL: file:/opt/jboss-eap-5.2/jboss-as/server/production/
10:55:33,621 INFO [ServerImpl] Server Data Dir: /opt/jboss-eap-5.2/jboss-as/server/production/data
10:55:33,621 INFO [ServerImpl] Server Library URL: file:/opt/jboss-eap-5.2/jboss-as/server/production/lib/
10:55:33,621 INFO [ServerImpl] Server Log Dir: /opt/jboss-eap-5.2/jboss-as/server/production/log
10:55:33,621 INFO [ServerImpl] Server Native Dir: /opt/jboss-eap-5.2/jboss-as/server/production/tmp/native
10:55:33,621 INFO [ServerImpl] Server Temp Dir: /opt/jboss-eap-5.2/jboss-as/server/production/tmp
10:55:33,621 INFO [ServerImpl] Server Temp Deploy Dir: /opt/jboss-eap-5.2/jboss-as/server/production/tmp/deploy
10:55:35,103 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/opt/jboss-eap-5.2/jboss-as/server/production/conf/bootstrap.xml
10:55:35,717 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
10:55:35,720 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
10:55:36,072 INFO [CopyMechanism] VFS temp dir: /opt/jboss-eap-5.2/jboss-as/server/production/tmp
10:55:36,073 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
10:55:38,025 INFO [ServerInfo] Java version: 1.6.0_24,Sun Microsystems Inc.
10:55:38,026 INFO [ServerInfo] Java Runtime: OpenJDK Runtime Environment (build 1.6.0_24-b24)
10:55:38,026 INFO [ServerInfo] Java VM: OpenJDK 64-Bit Server VM 20.0-b12,Sun Microsystems Inc.
10:55:38,026 INFO [ServerInfo] OS-System: Linux 2.6.32-358.el6.x86_64,amd64
10:55:38,028 INFO [ServerInfo] VM arguments: -Dprogram.name=run.sh -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/opt/jboss/lib/endorsed
10:55:38,126 INFO [JMXKernel] Legacy JMX core initialized
10:55:42,145 INFO [PropertyEditorManagerService] Registered editor class org.jboss.util.propertyeditor.PropertiesEditor for class java.util.Properties
10:55:46,699 WARN [XMLAttributePersistenceManager] no protocol: data/xmbean-attrs... Reverting to home dir relative path '/opt/jboss-eap-5.2/jboss-as/server/production'
Please help

JBoss 5.1 GA: Deployment Error [IllegalArgumentException]

I deployed an .ear file and got this error. I'm new to JBoss, I don't know how to fix it.
18:36:15,903 INFO [ServerImpl] Starting JBoss (Microcontainer)...
18:36:15,904 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)
18:36:15,904 INFO [ServerImpl] Bootstrap URL: null
18:36:15,904 INFO [ServerImpl] Home Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA
18:36:15,904 INFO [ServerImpl] Home URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/
18:36:15,904 INFO [ServerImpl] Library URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/lib/
18:36:15,905 INFO [ServerImpl] Patch URL: null
18:36:15,905 INFO [ServerImpl] Common Base URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/common/
18:36:15,905 INFO [ServerImpl] Common Library URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/common/lib/
18:36:15,905 INFO [ServerImpl] Server Name: default
18:36:15,906 INFO [ServerImpl] Server Base Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server
18:36:15,906 INFO [ServerImpl] Server Base URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/
18:36:15,906 INFO [ServerImpl] Server Config URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/conf/
18:36:15,906 INFO [ServerImpl] Server Home Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default
18:36:15,906 INFO [ServerImpl] Server Home URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/
18:36:15,906 INFO [ServerImpl] Server Data Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/data
18:36:15,906 INFO [ServerImpl] Server Library URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/lib/
18:36:15,906 INFO [ServerImpl] Server Log Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/log
18:36:15,907 INFO [ServerImpl] Server Native Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/tmp/native
18:36:15,907 INFO [ServerImpl] Server Temp Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/tmp
18:36:15,907 INFO [ServerImpl] Server Temp Deploy Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/tmp/deploy
18:36:16,416 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/conf/bootstrap.xml
18:36:16,851 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
18:36:16,854 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
18:36:17,055 INFO [CopyMechanism] VFS temp dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/tmp
18:36:17,056 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
18:36:17,905 INFO [ServerInfo] Java version: 1.7.0_09,Oracle Corporation
18:36:17,905 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
18:36:17,905 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 23.5-b02,Oracle Corporation
18:36:17,906 INFO [ServerInfo] OS-System: Mac OS X 10.7.5,x86_64
18:36:17,907 INFO [ServerInfo] VM arguments: -Dprogram.name=run.sh -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/lib/endorsed
18:36:17,934 INFO [JMXKernel] Legacy JMX core initialized
18:36:19,183 ERROR [AbstractKernelController] Error installing to Instantiated: name=AttachmentStore state=Described
java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]
at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:153)
at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106)
at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)
at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:282)
at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:103)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:138)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:722)
Failed to boot JBoss:
java.lang.IllegalStateException: Incompletely deployed:
DEPLOYMENTS IN ERROR:
Deployment "AttachmentStore" is in error due to: java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "ProfileService" is missing the following dependencies:
Dependency "ProfileServiceDeployer" (should be in state "Installed", but is actually in state "Instantiated")
Dependency "jboss.kernel:service=KernelController" (should be in state "Installed", but is actually in state "**ERROR**")
Deployment "ProfileServiceDeployer" is missing the following dependencies:
Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")
Deployment "ProfileServiceBootstrap" is missing the following dependencies:
Dependency "ProfileService" (should be in state "Installed", but is actually in state "Instantiated")
Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")
Deployment "ProfileServicePersistenceDeployer" is missing the following dependencies:
Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:142)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:722)
18:36:19,633 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
18:36:19,638 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM
you can try this one.
Open the file profile.xml in jboss-5.1.0.GA\server\default\conf\bootstrap
find the "The attachment store" block :
add "class="java.io.File" in 《parameter》.
Or you can try this link:
Error when starting JBoss 5.1.0.GA / AttachmentStore
PATH to the Direct solution: Error starting jboss server
Open the file profile.xml
jboss-5.1.0.GA\server\default\conf\bootstrap\profile.xml and then
Replace-->
<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>
With -->
<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor>><parameter class="java.io.File"><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>
I changed the java_home from 1.7 to 1.6 and that solved the issue for me (in bin\run.conf or bin\run.conf.bat) without changing conf/bootstrap/profile.xml
My issue was resolved similarly to gribo. My path variables were correctly pointing to JDK6 (I'm running JBoss5.1 with JDK6). But in eclipse, my JBoss runtime JRE was pointing to JRE8. The problem went away once I pointed it to JRE6.
I also did not have to change conf/bootstrap/profile.xml. I tried that first and it didn't fix my problem.