在eclipse中无法启动jboss服务器

时间:2013-02-24 08:09:19

标签: eclipse jboss7.x

我正在开发一个JSF项目。我想使用JBoss作为服务器。 我在eclipse中定义了jboss服务器,但由于发生了错误,我无法启动JBoss服务器。

错误:

        10:01:45,390 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
        10:01:51,312 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
        10:01:51,703 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
        10:02:03,109 ERROR [org.jboss.as.server] JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
            at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.server.ServerService.boot(ServerService.java:266) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
            at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_21]
        Caused by: java.lang.IllegalArgumentException: No enum const class java.util.concurrent.TimeUnit.MİLLİSECONDS
            at java.lang.Enum.valueOf(Unknown Source) [rt.jar:1.6.0_21]
            at org.jboss.as.threads.ThreadsParser.parseTimeSpec(ThreadsParser.java:874)
            at org.jboss.as.threads.ThreadsParser.parseUnboundedQueueThreadPool(ThreadsParser.java:518)
            at org.jboss.as.ejb3.subsystem.EJB3Subsystem12Parser.parseThreadPools(EJB3Subsystem12Parser.java:1103)
            at org.jboss.as.ejb3.subsystem.EJB3Subsystem12Parser.readElement(EJB3Subsystem12Parser.java:297)
            at org.jboss.as.ejb3.subsystem.EJB3Subsystem12Parser.readElement(EJB3Subsystem12Parser.java:55)
            at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
            at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
            at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:894) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_1(StandaloneXml.java:330) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:127) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:100) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
            at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
            at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
            ... 3 more

        10:02:03,171 FATAL [org.jboss.as.server] JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
        10:02:03,218 INFO  [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final "Brontes" stopped in 0ms

2 个答案:

答案 0 :(得分:4)

是的,我已经下载了最新的Jboss As适配器。另一方面,我解决了这个问题。

错误:引起:java.lang.IllegalArgumentException:没有枚举const类java.util.concurrent.TimeUnit.MİLLİSECONDS

我在土耳其语的操作系统上工作。所以Jboss根据系统配置语言改变了这个Enum的字符。

   MILLISECONDS -> MİLLİSECONDS

我按照以下方式解决了问题:

打开Eclipse。单击服务器栏。双击Jboss 7.x.单击“打开启动配置”。 添加到“-Duser.language = en”VM参数行的末尾

如果您想成像,请转到http://blog.sahinyazilim.net/?p=123

答案 1 :(得分:0)

您是否从Eclipse Marketplace下载了最新的Jboss AS适配器?服务器上是否已经部署了任何应用程序,连接池等?