启动JBoss服务器时出错 [英] Error while starting JBoss server

查看:422
本文介绍了启动JBoss服务器时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对JBoss非常陌生.当前,我有一个要求,我需要在JBoss上部署应用程序(该程序已经在Tomcat上运行).我下载了JBoss,但是版本7中的目录结构有所不同.

I am very new to JBoss. Currently I have a requirement wherein I need to deploy the application (which is already running on Tomcat) on JBoss. I downloaded the JBoss however the directory structure is different in version 7.

我正在运行bin\standalone.conf.bat文件以启动服务器,但是出现以下错误:

I am running the bin\standalone.conf.bat file to start the server however I am getting the below error:

Calling "C:\Program Files\jboss-as-7.1.1.Final\bin\standalone.conf.bat"
===============================================================================

JBoss Bootstrap Environment

JBOSS_HOME: C:\Program Files\jboss-as-7.1.1.Final

JAVA: C:\Program Files\Java\jdk1.6.0_30\bin\java

JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx51
2M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.se
rver.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.war
ning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.c
onfig=standalone.xml

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

Unable to set property fileName on class org.jboss.logmanager.handlers.FileHandl
er: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.logmanager.PropertyConfigurator.configureProperties(Propert
yConfigurator.java:187)
    at org.jboss.logmanager.PropertyConfigurator.configureHandler(PropertyCo
nfigurator.java:312)
    at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigura
tor.java:128)
    at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigura
tor.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:267)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.j
ava:265)
    at java.util.logging.LogManager.getLogManager(LogManager.java:248)
    at java.util.logging.Logger.<init>(Logger.java:225)
    at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1092)
    at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1089)
    at java.util.logging.LogManager$1.run(LogManager.java:180)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.util.logging.LogManager.<clinit>(LogManager.java:157)
    at org.jboss.modules.Main.main(Main.java:275)
Caused by: java.io.FileNotFoundException: C:\Program Files\jboss-as-7.1.1.Final\
standalone\log\boot.log (The system cannot find the path specified)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    at org.jboss.logmanager.handlers.FileHandler.setFile(FileHandler.java:15
2)
    at org.jboss.logmanager.handlers.FileHandler.setFileName(FileHandler.jav
a:183)
    ... 21 more
17:11:18,420 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
java.lang.IllegalStateException: JBAS018704: Could not create server data direct
ory: C:\Program Files\jboss-as-7.1.1.Final\standalone\data
    at org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:3
88)
    at org.jboss.as.server.Main.determineEnvironment(Main.java:242)
    at org.jboss.as.server.Main.main(Main.java:83)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.modules.Module.run(Module.java:260)
    at org.jboss.modules.Main.main(Main.java:291)
Press any key to continue . . .

如何解决该问题并使服务器正常运行?

How can I resolve the issue and get the server run properly?

推荐答案

尝试以管理员模式运行JBoss或为您的 JBoss 文件夹授予访问日志文件的适当权限错误中提到的.

Try running JBoss in Administrator mode or give your JBoss folder the proper permissions to access the log files mentioned in the error.

这篇关于启动JBoss服务器时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆