Jboss não inicia

1. Jboss não inicia

Alexandre
MatheusFedora

(usa Fedora)

Enviado em 12/07/2012 - 00:51h

Boa noite pessoal, instalei o jboss 7 as no fedora 17, configurei as variaveis de ambiente tanto de jboss quanto do java, mas mesmo assim quando executo o comando run.sh e stanalone.sh acontece os seguintes erros: (Valeu, espero as respostas)

-----com o comando run----
To start JBoss Application Server please see /opt/jboss-as-7.1.1/jboss-as-7.1.1.Final/bin/../README.txt


-----com o comando standalone-----

=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /opt/jboss-as-7.1.1/jboss-as-7.1.1.Final

JAVA: /usr/java/jdk1.7.0_05/bin/java

JAVA_OPTS: -server -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml

=========================================================================

Unable to set property fileName on class org.jboss.logmanager.handlers.FileHandler: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.logmanager.PropertyConfigurator.configureProperties(PropertyConfigurator.java:187)
at org.jboss.logmanager.PropertyConfigurator.configureHandler(PropertyConfigurator.java:312)
at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:128)
at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:86)
at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:246)
at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:231)
at java.util.logging.LogManager$2.run(LogManager.java:285)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:283)
at java.util.logging.LogManager.getLogManager(LogManager.java:266)
at java.util.logging.Logger.<init>(Logger.java:252)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1136)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1133)
at java.util.logging.LogManager$1.run(LogManager.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:175)
at org.jboss.modules.Main.main(Main.java:275)
Caused by: java.io.FileNotFoundException: /opt/jboss-as-7.1.1/jboss-as-7.1.1.Final/standalone/log/boot.log (Permissão negada)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
at org.jboss.logmanager.handlers.FileHandler.setFile(FileHandler.java:152)
at org.jboss.logmanager.handlers.FileHandler.setFileName(FileHandler.java:183)
... 21 more
00:44:53,448 Informações [org.jboss.modules] JBoss Modules version 1.1.1.GA
00:44:53,625 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
00:44:53,678 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
00:44:53,685 ERROR [org.jboss.msc.service.fail] MSC00001: Failed to start service jboss.as: org.jboss.msc.service.StartException in service jboss.as: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_05]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_05]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]
Caused by: java.lang.IllegalStateException: JBAS014922: Directory /opt/jboss-as-7.1.1/jboss-as-7.1.1.Final/standalone/data/content is not writable
at org.jboss.as.repository.ContentRepository$Factory$ContentRepositoryImpl.<init>(ContentRepository.java:123)
at org.jboss.as.repository.ContentRepository$Factory.addService(ContentRepository.java:97)
at org.jboss.as.server.ApplicationServerService.start(ApplicationServerService.java:134) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more

00:44:53,694 ERROR [stderr] java.util.concurrent.ExecutionException: Operation failed
00:44:53,695 ERROR [stderr] at org.jboss.threads.AsyncFutureTask.operationFailed(AsyncFutureTask.java:74)
00:44:53,695 ERROR [stderr] at org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:268)
00:44:53,695 ERROR [stderr] at org.jboss.as.server.Main.main(Main.java:98)
00:44:53,695 ERROR [stderr] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
00:44:53,696 ERROR [stderr] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
00:44:53,696 ERROR [stderr] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
00:44:53,696 ERROR [stderr] at java.lang.reflect.Method.invoke(Method.java:601)
00:44:53,696 ERROR [stderr] at org.jboss.modules.Module.run(Module.java:260)
00:44:53,696 ERROR [stderr] at org.jboss.modules.Main.main(Main.java:291)
00:44:53,697 ERROR [stderr] Caused by: org.jboss.msc.service.StartException in service jboss.as: Failed to start service
00:44:53,697 ERROR [stderr] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767)
00:44:53,697 ERROR [stderr] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
00:44:53,697 ERROR [stderr] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
00:44:53,697 ERROR [stderr] at java.lang.Thread.run(Thread.java:722)
00:44:53,697 ERROR [stderr] Caused by: java.lang.IllegalStateException: JBAS014922: Directory /opt/jboss-as-7.1.1/jboss-as-7.1.1.Final/standalone/data/content is not writable
00:44:53,698 ERROR [stderr] at org.jboss.as.repository.ContentRepository$Factory$ContentRepositoryImpl.<init>(ContentRepository.java:123)
00:44:53,698 ERROR [stderr] at org.jboss.as.repository.ContentRepository$Factory.addService(ContentRepository.java:97)
00:44:53,698 ERROR [stderr] at org.jboss.as.server.ApplicationServerService.start(ApplicationServerService.java:134)
00:44:53,698 ERROR [stderr] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
00:44:53,698 ERROR [stderr] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
00:44:53,699 ERROR [stderr] ... 3 more



  


2. Re: Jboss não inicia

Filippe
spolti

(usa Fedora)

Enviado em 12/07/2012 - 09:03h

Cara, erro de permissão

Caused by: java.io.FileNotFoundException: /opt/jboss-as-7.1.1/jboss-as-7.1.1.Final/standalone/log/boot.log (Permissão negada)


Ta rodando com qual usuário?

Execute isso:

#chown -R usuario. $JBOSS_HOME




3. Problema de permissão

Perfil removido
removido

(usa Nenhuma)

Enviado em 14/09/2014 - 04:06h

Caused by: java.io.FileNotFoundException: /opt/jboss-as-7.1.1/jboss-as-7.1.1.Final/standalone/log/boot.log (Permissão negada)

Solução

chmod 777 /opt/jboss-as-7.1.1/jboss-as-7.1.1.Final/standalone/log/boot.log

e rode novamente:

service jboss start

Todas aquelas mensagens são normais de aparecer, o único erro é esta linha. Quando voce dar permissão, ele vai esconder aquelas mensagens java e só mostrar [OK]






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts