Jboss 5.1
未能啓動jdk1.7.0_25
,但它開始罰款jdk1.6
Jbosss未能啓動jdk1.7
隨着jdk1.7.0_25
時,JBoss啓動失敗,出現以下錯誤。
JBoss Bootstrap Environment
JBOSS_HOME: /home/zaman/jboss/jboss-eap-5.1/jboss-as
JAVA: /usr/java/jdk1.7.0_25//bin/java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.net.preferIPv4Stack=true
CLASSPATH: /home/zaman/jboss/jboss-eap-5.1/jboss-as/bin/run.jar:/usr/java/jdk1.7.0_25//lib/tools.jar
=========================================================================
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/bootstrap/BaseServerConfig
at org.jboss.bootstrap.AbstractServerImpl.doInit(AbstractServerImpl.java:190)
at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:173)
at org.jboss.bootstrap.AbstractServerImpl.init(AbstractServerImpl.java:143)
at org.jboss.Main.boot(Main.java:218)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.ClassNotFoundException: org.jboss.bootstrap.BaseServerConfig
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 6 more
java.io.File
條目已經存在於profile.xml配置文件中構造函數的參數爲http://www-01.ibm.com/support/docview.wss?uid=swg21652494
grep "java.io" ../server/default/conf/bootstrap/profile.xml <constructor><parameter class="java.io.File"><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>
如何解決這個問題建議。我們只需要使用JDK1.7。
也許這將解決您的問題http://www-01.ibm.com/support/docview.wss?uid=swg21652494 – SubOptimal 2014-10-28 11:58:42