挑战从jboss v7.1.0开始 - 雷声

时间:2012-02-27 19:23:19

标签: java jboss7.x

我的目标是将我在jboss v4上运行的应用程序迁移到jboss v7.1,我的应用程序完全基于EJB2.0,所以作为起点,我想安装jboss v7.1并启动它运行

我已经下载了tar.gz文件并且我使用7-zip工具解开了它,现在当我尝试运行standalone.bat脚本时,我得到以下提到的日志消息: 从错误中可以看出,C:\Users\ados\Softwares\jboss-as-7.1.0.Final\standalone\configuration\mgmt-users.properties and C:\Users\ados\Softwares\jboss-as-7.1.0.Final\standalone\configuration\application-users.properties文件丢失了。

我已经检查了独立文件夹,是的,我没有这些文件,我的问题是: 这些文件是否存在于发行版中,当我尝试下载zip文件时,我没有成功获取数据并最终收到错误消息,因为压缩文件不包含任何数据。

此外,如果我尝试通过cygwin解压缩文件,那么最终会出现以下错误:

gzip: stdin: unexpected end of file
jboss-as-7.1.0.Final/welcome-content/as7_style.css
jboss-as-7.1.0.Final/welcome-content/bkg.gif
jboss-as-7.1.0.Final/welcome-content/documentation.html
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

尝试运行standalone.bat文件时的日志消息

C:\Users\ados\Softwares\jboss-as-7.1.0.Final>ls
LICENSE.txt  README.txt  appclient  bin  bundles  copyright.txt  docs  domain  jboss-modules.jar  modules  standalone  welcome-content


C:\Users\ados\Softwares\jboss-as-7.1.0.Final>cd bin


C:\Users\ados\Softwares\jboss-as-7.1.0.Final\bin>ls
add-user.bat    appclient.conf.bat  domain.conf      jboss-cli.bat  standalone.bat       vault.bat
appclient.bat   client              domain.conf.bat  jconsole.bat   standalone.conf      wsconsume.bat
appclient.conf  domain.bat          init.d           jdr.bat        standalone.conf.bat  wsprovide.bat


C:\Users\ados\Softwares\jboss-as-7.1.0.Final\bin>standalone.bat
Calling "C:\Users\ados\Softwares\jboss-as-7.1.0.Final\bin\standalone.conf.bat"
===============================================================================


  JBoss Bootstrap Environment


  JBOSS_HOME: C:\Users\ados\Softwares\jboss-as-7.1.0.Final


  JAVA: C:\Java\jdk1.6.0_31\bin\java


  JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600
000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=or
g.jboss.byteman -Djboss.server.default.config=standalone.xml


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


13:44:54,475 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
13:44:54,569 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
13:44:54,600 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.0.Final "Thunder" starting
13:44:55,084 INFO  [org.xnio] XNIO Version 3.0.3.GA
13:44:55,084 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
13:44:55,084 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
13:44:55,099 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.2.GA
13:44:55,115 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
13:44:55,131 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
13:44:55,162 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
13:44:55,162 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
13:44:55,255 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant dr
iver class org.h2.Driver (version 1.3)
13:44:55,271 INFO  [org.jboss.as.naming] (MSC service thread 1-5) JBAS011802: Starting Naming Service
13:44:55,271 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]
13:44:55,224 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
13:44:55,209 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
13:44:55,209 INFO  [org.jboss.as.connector] (MSC service thread 1-8) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.7.Final)
13:44:55,209 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
13:44:55,396 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-2) JBoss Web Services - Stack CXF Server 4.0.


C:\Users\ados\Softwares\jboss-as-7.1.0.Final\bin>standalone.bat
Calling "C:\Users\ados\Softwares\jboss-as-7.1.0.Final\bin\standalone.conf.bat"
===============================================================================


  JBoss Bootstrap Environment


  JBOSS_HOME: C:\Users\ados\Softwares\jboss-as-7.1.0.Final


  JAVA: C:\Java\jdk1.6.0_31\bin\java


  JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.prefe
rIPv4Stack=true -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standalone.xml


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


13:46:29,408 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
13:46:29,518 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
13:46:29,549 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.0.Final "Thunder" starting
13:46:30,032 INFO  [org.xnio] XNIO Version 3.0.3.GA
13:46:30,032 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
13:46:30,048 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
13:46:30,064 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.2.GA
13:46:30,110 INFO  [org.jboss.as.webservices] JBAS015537: Activating WebServices Extension
13:46:30,110 INFO  [org.jboss.as.security] JBAS013101: Activating Security Subsystem
13:46:30,095 INFO  [org.jboss.as.connector] JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.7.Final)
13:46:30,142 INFO  [org.jboss.as.security] JBAS013100: Current PicketBox version=4.0.6.final
13:46:30,064 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
13:46:30,220 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
13:46:30,235 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
13:46:30,251 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
13:46:30,251 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - Stack CXF Server 4.0.1.GA
13:46:30,298 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
13:46:30,329 INFO  [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service
13:46:30,344 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-4) JBAS015400: Bound mail session [java:jboss/mail/Default]
13:46:30,563 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.server.controller.management.security_realm.ManagementRealm.properties_authentication:
org.jboss.msc.service.StartException in service jboss.server.controller.management.security_realm.ManagementRealm.properties_authentication: JBAS015228: Unable to load properties
        at org.jboss.as.domain.management.security.PropertiesFileLoader.start(PropertiesFileLoader.java:75)
        at org.jboss.as.domain.management.security.PropertiesCallbackHandler.start(PropertiesCallbackHandler.java:89)
        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]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
Caused by: java.io.FileNotFoundException: C:\Users\ados\Softwares\jboss-as-7.1.0.Final\standalone\configuration\mgmt-users.properties (The system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method) [rt.jar:1.6.0_31]
        at java.io.FileInputStream.<init>(FileInputStream.java:120) [rt.jar:1.6.0_31]
        at org.jboss.as.domain.management.security.PropertiesFileLoader.getProperties(PropertiesFileLoader.java:102)
        at org.jboss.as.domain.management.security.PropertiesFileLoader.start(PropertiesFileLoader.java:73)
        ... 6 more


13:46:30,563 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.server.controller.management.security_realm.ApplicationRealm.properties_authentication:
org.jboss.msc.service.StartException in service jboss.server.controller.management.security_realm.ApplicationRealm.properties_authentication: JBAS015228: Unable to load properties
        at org.jboss.as.domain.management.security.PropertiesFileLoader.start(PropertiesFileLoader.java:75)
        at org.jboss.as.domain.management.security.PropertiesCallbackHandler.start(PropertiesCallbackHandler.java:89)
        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]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
Caused by: java.io.FileNotFoundException: C:\Users\ados\Softwares\jboss-as-7.1.0.Final\standalone\configuration\application-users.properties (The system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method) [rt.jar:1.6.0_31]
        at java.io.FileInputStream.<init>(FileInputStream.java:120) [rt.jar:1.6.0_31]
        at org.jboss.as.domain.management.security.PropertiesFileLoader.getProperties(PropertiesFileLoader.java:102)
        at org.jboss.as.domain.management.security.PropertiesFileLoader.start(PropertiesFileLoader.java:73)
        ... 6 more


13:46:30,563 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\ados\Softwares\jboss-as-7.1.0.Final\
standalone\deployments
13:46:30,578 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
13:46:30,641 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
13:46:31,733 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.server.controller.management.security_realm.ManagementRealm.properties_authentication: org.jboss.msc.service.StartException in service
jboss.server.controller.management.security_realm.ManagementRealm.properties_authentication: JBAS015228: Unable to load properties
      service jboss.server.controller.management.security_realm.ApplicationRealm.properties_authentication: org.jboss.msc.service.StartException in service jboss.server.controller.management.security_
realm.ApplicationRealm.properties_authentication: JBAS015228: Unable to load properties


13:46:31,748 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.1.0.Final "Thunder" started (with errors) in 2480ms - Started 126 of 205 services (8 services failed or missing depend
encies, 70 services are passive or on-demand)

0 个答案:

没有答案