2010-10-14 74 views
0

我試圖將部署從4.0.3sp1遷移到5.1。我只是將/opt/jboss/server下的文件複製到jboss 5.1目錄下。 首先,它提示無法訪問服務器/ conf目錄/ bootstrap.xml,等等,我複製他們/opt/jboss/server/default/conf/*.xml,然後得出錯誤:部署後jboss 5.1無法啓動從4.0.3sp1遷移

14:27:19,785 ERROR [ScopedProfileServiceController] Error installing to Create: [email protected][domain=default, server=default, name=bindings] state=Configured mode=On Demand requiredState=Installed 
java.lang.reflect.InvocationTargetException 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
     at java.lang.reflect.Method.invoke(Method.java:585) 

Caused by: java.io.IOException: Child not found bindingservice.beans/ for [email protected][path= context=file:/opt/jboss-5.1.0.GA/server/... 

Failed to boot JBoss: 
java.lang.IllegalStateException: Incompletely deployed: 

*** PROFILES IN ERROR: Name -> Error 
Profile: [email protected][domain=default, server=default, name=bindings] in error due to java.lang.reflect.InvocationTargetException 

是那裏4.0.3sp1之間的配置文件有什麼區別和5.1?我需要在jboss 5.1服務器中添加任何內容// conf?

回答

1

我不知道我是否正確地提供了你,但你不能在JBoss版本之間複製配置文件。在版本4.0.3和5.1之間有很多變化,我真的懷疑這樣的東西是否可以工作(例如,這些東西有很多不同的服務,配置更改,完全不同的內核等等)。

由於JBoss 5有新的設置端口綁定的方法,我相信JBoss找不到這些配置文件。

如果你想遷移到已知的JBoss版本,你應該使用一些JBoss 5.1配置文件:defaultall,並在該配置文件中安裝你的應用程序,數據源和其他東西。

+0

感謝您的回覆。我沒有從4.0.3sp1複製配置文件,我的意思是我將bootstrap.xml,profile.xml從5.1 default/conf複製到myserver/conf,因爲我遇到了錯誤,說jboss找不到這些配置文件,因爲你知道,在jboss 4.0.3sp1中,甚至沒有這些配置文件,所以我在4.0.3sp1部署中沒有這些配置文件。 – 2010-10-20 01:32:48

+0

你的配置文件是「用於設置端口綁定的新方法」嗎?並且可以幫助給我一個jboss 5.1的例子嗎? 非常感謝! – 2010-10-20 02:18:34

1

這個問題是因爲缺少myserver/conf/bindingservice.beans,我從jboss 5.1 server/default/conf/bindingservice.beans複製了這個文件夾,現在這個問題已經沒有了。