Jboss 5.1
fails to start with jdk1.7.0_25
, but it starts fine with jdk1.6
With jdk1.7.0_25
, jboss start fails with the following error.
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
entry is already there in constructor parameter in profile.xml file as suggested in 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>
How to fix this issue . We need to use JDK1.7 only.
jboss eap 5.1 doesn't work with jdk 7. You can either upgrade to 5.2, or update to 5.1.2 and apply a patch.
Sources
这意味着您的Jboss不支持jdk 1.7,有两种方法可以解决此问题,请阅读已经具有用于解决此问题的补丁的帽子,请参阅此链接“ https://access.redhat.com/support/ ”,否则进行配置bash配置文件中的jdk 1.6或Jboss中的run.conf的JAVA_HOME可以解决此问题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.