JBoss 7 以独立模式启动
JBoss 7 startup in standalone mode
我正在尝试 运行 Jboss 在下载 zip 文件并解压缩后以独立模式运行。我 运行 standalone.bat
脚本并得到以下错误。
Calling "D:\Software\JBoss\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\standalone.conf.bat"
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: D:\Software\JBoss\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final
JAVA: C:\Program Files\Java\jdk-11.0.13\bin\java
JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx512M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standalone.xml
===============================================================================
Exception in thread "main" javax.xml.transform.TransformerFactoryConfigurationError: Provider com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl could not be instantiated: java.lang.reflect.InvocationTargetException
at java.xml/javax.xml.transform.FactoryFinder.newInstance(FactoryFinder.java:181)
at java.xml/javax.xml.transform.FactoryFinder.find(FactoryFinder.java:257)
at java.xml/javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:126)
at __redirected.__TransformerFactory.<clinit>(__TransformerFactory.java:66)
at __redirected.__JAXPRedirected.initAll(__JAXPRedirected.java:82)
at org.jboss.modules.Module.run(Module.java:85)
at org.jboss.modules.Module.run(Module.java:72)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.jboss.modules.Module.<clinit>(Module.java:72)
at org.jboss.modules.Main.main(Main.java:255)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
l.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.xml/javax.xml.transform.FactoryFinder.newInstance(FactoryFinder.java:169)
... 9 more
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__SAXParserFactory could not be instantiated: java.lang.reflect.InvocationTargetException
at java.xml/javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:198)
at java.xml/javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:147)
at java.xml/javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:226)
at java.xml/javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:147)
at java.xml/jdk.xml.internal.JdkXmlUtils.getSAXFactory(JdkXmlUtils.java:379)
at java.xml/jdk.xml.internal.JdkXmlUtils.<clinit>(JdkXmlUtils.java:118)
at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.<init>(TransformerFactoryImpl.java:251)
... 14 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.xml/javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:187)
... 20 more
Caused by: java.lang.NullPointerException
at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:94)
at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:87)
at __redirected.__SAXParserFactory.<init>(__SAXParserFactory.java:102)
... 25 more
Press any key to continue . . .
我查看了 here 并从 standalone.conf.bat
文件中删除了 MaxPermSize
选项,但它没有解决我的问题,我正在使用 Java 11。删除之前 MaxPermSize
选项我收到错误 Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0 support was removed in 8.0
。请指教
JBoss AS 7.1.1 已有 10 年历史,从那时起 JDK 在模块方面有了很大的发展。您需要为类加载指定正确的选项或切换回旧的 JDK(如 1.7)。
我正在尝试 运行 Jboss 在下载 zip 文件并解压缩后以独立模式运行。我 运行 standalone.bat
脚本并得到以下错误。
Calling "D:\Software\JBoss\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\bin\standalone.conf.bat"
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: D:\Software\JBoss\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final
JAVA: C:\Program Files\Java\jdk-11.0.13\bin\java
JAVA_OPTS: -XX:+TieredCompilation -Dprogram.name=standalone.bat -Xms64M -Xmx512M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djboss.server.default.config=standalone.xml
===============================================================================
Exception in thread "main" javax.xml.transform.TransformerFactoryConfigurationError: Provider com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl could not be instantiated: java.lang.reflect.InvocationTargetException
at java.xml/javax.xml.transform.FactoryFinder.newInstance(FactoryFinder.java:181)
at java.xml/javax.xml.transform.FactoryFinder.find(FactoryFinder.java:257)
at java.xml/javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:126)
at __redirected.__TransformerFactory.<clinit>(__TransformerFactory.java:66)
at __redirected.__JAXPRedirected.initAll(__JAXPRedirected.java:82)
at org.jboss.modules.Module.run(Module.java:85)
at org.jboss.modules.Module.run(Module.java:72)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.jboss.modules.Module.<clinit>(Module.java:72)
at org.jboss.modules.Main.main(Main.java:255)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
l.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.xml/javax.xml.transform.FactoryFinder.newInstance(FactoryFinder.java:169)
... 9 more
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__SAXParserFactory could not be instantiated: java.lang.reflect.InvocationTargetException
at java.xml/javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:198)
at java.xml/javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:147)
at java.xml/javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:226)
at java.xml/javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:147)
at java.xml/jdk.xml.internal.JdkXmlUtils.getSAXFactory(JdkXmlUtils.java:379)
at java.xml/jdk.xml.internal.JdkXmlUtils.<clinit>(JdkXmlUtils.java:118)
at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.<init>(TransformerFactoryImpl.java:251)
... 14 more
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.xml/javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:187)
... 20 more
Caused by: java.lang.NullPointerException
at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:94)
at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:87)
at __redirected.__SAXParserFactory.<init>(__SAXParserFactory.java:102)
... 25 more
Press any key to continue . . .
我查看了 here 并从 standalone.conf.bat
文件中删除了 MaxPermSize
选项,但它没有解决我的问题,我正在使用 Java 11。删除之前 MaxPermSize
选项我收到错误 Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0 support was removed in 8.0
。请指教
JBoss AS 7.1.1 已有 10 年历史,从那时起 JDK 在模块方面有了很大的发展。您需要为类加载指定正确的选项或切换回旧的 JDK(如 1.7)。