2012-11-15 46 views
0

我有JBoss-4.2.3.GA, 即使我增加開始時間和停止時間到500秒,它是無法在給定的時間啓動。Jboss 4.2不開始贏得7 64位

我後來嘗試過其他版本的JBOSS 4.2,但它並沒有啓動。

Long back(在某些其他系統中)我在Windows 7 64位中遇到了類似的問題,爲此我更改了XX:MaxPermSize來解決問題。但在這裏沒有幫助。

我正在使用eclipse indigo 版本:Indigo Service Release 2 Build ID:20120216-1857 啓動服務器。

啓動服務器後,控制檯說:

13:05:08,325 INFO [Server] Starting JBoss (MX MicroKernel)... 
13:05:08,325 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439) 
13:05:08,327 INFO [Server] Home Dir: C:\jboss-4.2.3.GA 
13:05:08,327 INFO [Server] Home URL: file:/C:/jboss-4.2.3.GA/ 
13:05:08,327 INFO [Server] Patch URL: null 
13:05:08,327 INFO [Server] Server Name: default 
13:05:08,328 INFO [Server] Server Home Dir: C:\jboss-4.2.3.GA\server\default 
13:05:08,328 INFO [Server] Server Home URL: file:/C:/jboss-4.2.3.GA/server/default/ 
13:05:08,328 INFO [Server] Server Log Dir: C:\jboss-4.2.3.GA\server\default\log 
13:05:08,328 INFO [Server] Server Temp Dir: C:\jboss-4.2.3.GA\server\default\tmp 
13:05:08,328 INFO [Server] Root Deployment Filename: jboss-service.xml 
13:05:08,492 INFO [ServerInfo] Java version: 1.6.0_35,Sun Microsystems Inc. 
13:05:08,492 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 20.10-b01,Sun Microsystems Inc. 
13:05:08,493 INFO [ServerInfo] OS-System: Windows 7 6.1,amd64 
13:05:08,728 INFO [Server] Core system initialized 
13:05:09,745 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/ 
13:05:09,746 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml 
13:05:09,969 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc. 
13:05:09,969 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer 
13:05:10,077 INFO [TransactionManagerService] Starting recovery manager 
13:05:10,117 INFO [TransactionManagerService] Recovery manager started 
13:05:10,117 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference 
13:05:11,387 INFO [EJB3Deployer] Starting java:comp multiplexer 
13:05:12,542 INFO [NativeServerConfig] JBoss Web Services - Native 
13:05:12,542 INFO [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044) 
13:05:13,070 INFO [Embedded] Catalina naming disabled 
13:05:13,149 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Live\Shared.;C:\Program Files\Java\jdk1.6.0_35\bin;C:\Program Files\TortoiseSVN\bin;. 
13:05:13,182 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080 
13:05:13,183 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009 
13:05:13,183 INFO [Catalina] Initialization processed in 113 ms 
13:05:13,183 INFO [StandardService] Starting service jboss.web 
13:05:13,185 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA 
13:05:13,215 INFO [Catalina] Server startup in 31 ms 
13:05:13,280 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/ 
13:05:13,602 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/ 
13:05:13,714 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/ 
13:05:13,819 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/ 
13:05:14,231 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/ 
13:05:14,510 INFO [MailService] Mail Service bound to java:/Mail 
13:05:14,589 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar 
13:05:14,607 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar 
13:05:14,625 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar 
13:05:14,642 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar 
13:05:14,673 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar 
13:05:14,692 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar 
13:05:14,722 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar 
13:05:14,730 INFO [QuartzResourceAdapter] start quartz!!! 
13:05:14,768 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main 
13:05:14,784 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created. 
13:05:14,785 INFO [RAMJobStore] RAMJobStore initialized. 
13:05:14,785 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' 
13:05:14,785 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2 
13:05:14,785 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. 
13:05:15,309 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' 
13:05:15,444 INFO [A] Bound to JNDI name: queue/A 
13:05:15,445 INFO [B] Bound to JNDI name: queue/B 
13:05:15,446 INFO [C] Bound to JNDI name: queue/C 
13:05:15,447 INFO [D] Bound to JNDI name: queue/D 
13:05:15,448 INFO [ex] Bound to JNDI name: queue/ex 
13:05:15,457 INFO [testTopic] Bound to JNDI name: topic/testTopic 
13:05:15,458 INFO [securedTopic] Bound to JNDI name: topic/securedTopic 
13:05:15,459 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic 
13:05:15,461 INFO [testQueue] Bound to JNDI name: queue/testQueue 
13:05:15,479 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093 
13:05:15,494 INFO [DLQ] Bound to JNDI name: queue/DLQ 
13:05:15,549 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA' 
13:05:15,567 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/ 
13:05:15,688 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080 
13:05:15,706 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 
13:05:15,717 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 7s:388ms 

它說開始,但它並沒有完全啓動。

我的服務器概述如下:

Server Configurations

我收到同樣的錯誤,如下500秒,但我附上快照,持續10秒。

Eclipse Message

我附上的run.bat的內容,run.conf文件中的JBoss bin文件夾:

的run.bat

@echo off 
rem ------------------------------------------------------------------------- 
rem JBoss Bootstrap Script for Win32 
rem ------------------------------------------------------------------------- 

rem $Id: run.bat 73584 2008-05-22 12:09:26Z [email protected] $ 

@if not "%ECHO%" == "" echo %ECHO% 
@if "%OS%" == "Windows_NT" setlocal 

set DIRNAME=.\ 
if "%OS%" == "Windows_NT" set DIRNAME=%~dp0% 
set PROGNAME=run.bat 
if "%OS%" == "Windows_NT" set PROGNAME=%~nx0% 

pushd %DIRNAME%.. 
set JBOSS_HOME=%CD% 
popd 

REM Add bin/native to the PATH if present 
if exist "%JBOSS_HOME%\bin\native" set PATH=%JBOSS_HOME%\bin\native;%PATH% 
if exist "%JBOSS_HOME%\bin\native" set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path="%PATH%" 

rem Find run.jar, or we can't continue 

set RUNJAR=%JBOSS_HOME%\bin\run.jar 
if exist "%RUNJAR%" goto FOUND_RUN_JAR 
echo Could not locate %RUNJAR%. Please check that you are in the 
echo bin directory when running this script. 
goto END 

:FOUND_RUN_JAR 

if not "%JAVA_HOME%" == "" goto ADD_TOOLS 

set JAVA=java 

echo JAVA_HOME is not set. Unexpected results may occur. 
echo Set JAVA_HOME to the directory of your local JDK to avoid this message. 
goto SKIP_TOOLS 

:ADD_TOOLS 

set JAVA=%JAVA_HOME%\bin\java 

rem A full JDK with toos.jar is not required anymore since jboss web packages 
rem the eclipse jdt compiler and javassist has its own internal compiler. 
if not exist "%JAVA_HOME%\lib\tools.jar" goto SKIP_TOOLS 

rem If exists, point to the JDK javac compiler in case the user wants to 
rem later override the eclipse jdt compiler for compiling JSP pages. 
set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar 

:SKIP_TOOLS 

rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include it, as this will 
rem result in including the local directory in the classpath, which makes 
rem error tracking harder. 
if not "%JAVAC_JAR%" == "" set RUNJAR=%JAVAC_JAR%;%RUNJAR% 
if "%JBOSS_CLASSPATH%" == "" set RUN_CLASSPATH=%RUNJAR% 
if "%RUN_CLASSPATH%" == "" set RUN_CLASSPATH=%JBOSS_CLASSPATH%;%RUNJAR% 

set JBOSS_CLASSPATH=%RUN_CLASSPATH% 

rem Setup JBoss specific properties 
set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% 

rem Add -server to the JVM options, if supported 
"%JAVA%" -server -version 2>&1 | findstr /I hotspot > nul 
if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server) 

rem JVM memory allocation pool parameters. Modify as appropriate. 
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m 

rem With Sun JVMs reduce the RMI GCs to once per hour 
set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 

rem JPDA options. Uncomment and modify as appropriate to enable remote debugging. 
rem set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS% 

rem Setup the java endorsed dirs 
set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed 

echo =============================================================================== 
echo. 
echo JBoss Bootstrap Environment 
echo. 
echo JBOSS_HOME: %JBOSS_HOME% 
echo. 
echo JAVA: %JAVA% 
echo. 
echo JAVA_OPTS: %JAVA_OPTS% 
echo. 
echo CLASSPATH: %JBOSS_CLASSPATH% 
echo. 
echo =============================================================================== 
echo. 

:RESTART 
"%JAVA%" %JAVA_OPTS%^
    -Djava.endorsed.dirs="%JBOSS_ENDORSED_DIRS%"^
    -classpath "%JBOSS_CLASSPATH%"^
    org.jboss.Main %* 

if ERRORLEVEL 10 goto RESTART 

:END 
if "%NOPAUSE%" == "" pause 

:END_NO_PAUSE 

run.conf

## -*- shell-script -*- ###################################################### 
##                   ## 
## JBoss Bootstrap Script Configuration         ## 
##                   ## 
############################################################################## 

### $Id: run.conf 62747 2007-05-02 17:43:36Z [email protected] $ 

# 
# This file is optional; it may be removed if not needed. 
# 

# 
# Specify the maximum file descriptor limit, use "max" or "maximum" to use 
# the default, as queried by the system. 
# 
# Defaults to "maximum" 
# 
#MAX_FD="maximum" 

# 
# Specify the profiler configuration file to load. 
# 
# Default is to not load profiler configuration file. 
# 
#PROFILER="" 

# 
# Specify the location of the Java home directory. If set then $JAVA will 
# be defined to $JAVA_HOME/bin/java, else $JAVA will be "java". 
# 
#JAVA_HOME="/opt/java/jdk" 

# 
# Specify the exact Java VM executable to use. 
# 
#JAVA="" 

# 
# Specify options to pass to the Java VM. 
# 
if [ "x$JAVA_OPTS" = "x" ]; then 
    JAVA_OPTS="-Xms128m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000" 
fi 

# Sample JPDA settings for remote socket debuging 
#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n" 

# Sample JPDA settings for shared memory debugging 
#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss" 

請幫我解決這個問題,以便我可以開始在我的服務器上工作。

+1

你能解釋得更好嗎?控制檯輸出似乎沒問題,因此無法理解問題。 – remigio

+0

你爲什麼認爲這不是完全開始? – user1516873

+0

@remigio是的,即使我覺得一樣... 但它沒有啓動,我打了url http:// localhost:8090(我配置的端口號)和jboss控制檯沒有出現, 而且我得到eclipse中的一條消息 - '在本地主機啓動JBoss V4.2'遇到了問題 - JBoss v4.2在localhost上 – bali208

回答

2

看日誌中的線:

13:05:13182 INFO [Http11Protocol]初始化狼在http-127.0.0.1-8080 HTTP/1.1。

它聲明http監聽端口8080(不是端口8090),所以你應該通過地址localhost:8080進行訪問。

你在哪裏配置了http端口?您不應直接更改服務的端口,而應使用JBoss服務綁定設置。請記住,JBoss會打開多個端口,因此爲避免端口衝突,您應該將其全部更改。

檢查:https://community.jboss.org/wiki/ConfiguringMultipleJBossInstancesOnOneMachine

更新:您發佈不會改變的JBoss端口Eclipse的屏幕,它的使用Elcipse知道在哪裏的Jboss HTTP是聽,所以你沒有真正改變的在JBoss中的端口。另一方面,如果您從Eclipse啓動JBoss服務器,則需要增加Eclipse等待JBoss入門的時間(如果JBoss需要的時間超過「Server timeout delay」屬性的時間在Eclipse中的服務器,它會返回一個錯誤)。

+0

正如你所說,它正在端口8080上工作。 但服務器啓動超時後(本例中爲500秒),我收到一條消息,無法啓動服務器,如快照中所述。 – bali208

+0

@toni .. 更新回覆:如何更改我的jboss中的端口。 請指導我。 我不知道該怎麼做。 – bali208

+1

您可以在我發佈的鏈接中找到真正改變JBoss端口的方法,查找「爲每個JBoss AS實例提供備用端口」部分,您將找到有關JBoss 4.x的說明。如果您發現任何問題,請告訴我。基本上,綁定服務集允許您爲JBoss監聽的所有端口添加一個偏移量(而不是僅僅修改一個特定端口),這樣您甚至可以在同一臺機器上啓動多個JBoss實例。如果你想HTTP聽8090,你必須使用10的偏移量(即8080 + 10 = 8090)。 – Toni