2

我正在开发一个 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
4

2 回答 2

4

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

错误:原因:java.lang.IllegalArgumentException:没有枚举常量类 java.util.concurrent.TimeUnit.MİLLİSECONDS

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

   MILLISECONDS -> MİLLİSECONDS

我通过以下方式解决了这个问题:

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

如果你想图像,去 http://blog.sahinyazilim.net/?p=123

于 2013-02-24T19:34:32.873 回答
0

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

于 2013-02-24T10:53:46.260 回答