Die naweek het ek rondgespeel met JBoss Application Server op CentOS 7. Ek het 7.1.1 geïnstalleer, en toe ek probeer begin, was dit hang met die begin.

[[Email protected] bin] # ./standalone.sh
================================================== =======================
JBoss Bootstrap omgewing
JBOSS_HOME: /home/chandan/Downloads/jboss-as-7.1.1.Final
JAVA: java
JAVA_OPTS: -server -XX: + UseCompressionOops -XX: + TieredCompilation -Xms64m -Xmx512m -XX: MaxPermSize = 256m -Djava.net.preferIPv4Stack = true -Dorg.jboss.resolver.warning = true -Dsun.rmi.dgc.client .gcInterval = 3600000 -Dsun.rmi.dgc.server.gcInterval = 3600000 -Djboss.modules.system.pkgs = org.jboss.byteman -Djava.awt.headless = true -Djboss.server.default.config = standalone.xml
================================================== =======================
OpenJDK 64-Bit Server VM-waarskuwing: ignoreer die opsie MaxPermSize = 256m; ondersteuning is verwyder in 8.0
13: 39: 15,689 INFO [org.jboss.modules] JBoss Modules weergawe 1.1.1.GA
13: 39: 16,236 INFO [org.jboss.msc] JBoss MSC weergawe 1.0.2.GA
13: 39: 16,346 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" begin

Ek het ‘n paar minute gewag, maar geen geluk nie.

Is u in dieselfde situasie? Moenie paniekerig raak nie!

Dit lyk asof daar ‘n bekende probleem is met JBoss 7 met Java 8 en die oplossing is om te gebruik Java 7. Die eerste ding wat u wil verifieer of u Java 8 gebruik.

[[Email protected] bin] # java-weergawe
openjdk weergawe "1.8.0_111"
OpenJDK Runtime Environment (bou 1.8.0_111-b15)
OpenJDK 64-bit Server VM (bou 25.111-b15, gemengde modus)
[[Email protected] bin] #

Soos u hierbo sien, het ek Java 8 en moet ek Java 7 gebruik.

As u op CentOS is, kan u die onderste weergawe van Java met die volgende opdrag gebruik.

opdatering-alternatiewe – Config Java

Dit gee u die opsie om die Java-weergawe te kies

[[Email protected] bin] # update-alternatiewe – Config Java
Daar is 2 programme wat ‘java’ bied.
Keuse-opdrag
———————————————–
1 java-1.7.0-openjdk.x86_64 (/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.121-2.6.8.0.el7_3.x86_64/jre/bin/java)
* + 2 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-2.b15.el7_3.x86_64/jre/bin/java)

Tik in om die huidige keuse [+] te behou, of tik seleksienommer in:

Tik 1 in, en jy is gereed.

As u RHEL gebruik of nie Java 7 het nie, moet u eers die PATH installeer en instel.

Nadat ek Java 7 opgestel het, kon JBoss 7 suksesvol begin.

[[Email protected] bin] # ./standalone.sh
================================================== =======================
JBoss Bootstrap omgewing
JBOSS_HOME: /home/chandan/Downloads/jboss-as-7.1.1.Final
JAVA: java
JAVA_OPTS: -server -XX: + UseCompressionOops -XX: + TieredCompilation -Xms64m -Xmx512m -XX: MaxPermSize = 256m -Djava.net.preferIPv4Stack = true -Dorg.jboss.resolver.warning = true -Dsun.rmi.dgc.client .gcInterval = 3600000 -Dsun.rmi.dgc.server.gcInterval = 3600000 -Djboss.modules.system.pkgs = org.jboss.byteman -Djava.awt.headless = true -Djboss.server.default.config = standalone.xml
================================================== ======================
13: 46: 04,337 INFO [org.jboss.modules] JBoss Modules weergawe 1.1.1.GA
13: 46: 04,622 INFO [org.jboss.msc] JBoss MSC weergawe 1.0.2.GA
13: 46: 04,661 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" begin
13: 46: 05,552 INFO [org.xnio] XNIO Weergawe 3.0.3.GA
13: 46: 05,568 INFO [org.jboss.as.server] JBAS015888: Skep http-bestuursdiens met behulp van socket-binding (management-http)
13: 46: 05,584 INFO [org.xnio.nio] XNIO NIO Implementation Weergawe 3.0.3.GA
13: 46: 05,621 INFO [org.jboss.as.logging] JBAS011502: Hantering van laaibaklêers verwyder
13: 46: 05,643 INFO [org.jboss.remoting] (MSC-diensdraad 1-3) JBoss Remoting weergawe 3.2.3.GA
13: 46: 05,651 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool – 31) JBAS010280: Aktiveer die Infinispan-substelsel.
13: 46: 05,722 INFO [org.jboss.as.configadmin] (ServerService-draadpoel – 26) JBAS016200: Activeer ConfigAdmin Substelsel
13: 46: 05,734 INFO [org.jboss.as.naming] (ServerService-draadpoel – 38) JBAS011800: Aktivering van naam-substelsel
13: 46: 05,778 INFO [org.jboss.as.osgi] (ServerService-draadpoel – 39) JBAS011940: Aktivering van OSGi-substelsel
13: 46: 05,871 INFO [org.jboss.as.security] (ServerService-draadpoel – 44) JBAS013101: Aktivering van sekuriteitsubstelsel
13: 46: 05,884 INFO [org.jboss.as.naming] (MSC-diensdraad 1-1) JBAS011802: Begin Naming Service
13: 46: 05,901 INFO [org.jboss.as.webservices] (ServerService-draadpoel – 48) JBAS015537: Activeer WebServices-uitbreiding
13: 46: 05,983 INFO [org.jboss.as.mail.extension] (MSC-service thread 1-1) JBAS015400: Bound mail session [java: jboss / mail / Default]
13: 46: 06,001 INFO [org.jboss.as.connector] (MSC-diensdraad 1-2) JBAS010408: Begin JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
13: 46: 06,002 INFO [org.jboss.as.security] (MSC-diensdraad 1-2) JBAS013100: Huidige PicketBox-weergawe = 4.0.7.Final
13: 46: 06,104 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool – 27) JBAS010403: Implementeer JDBC-voldoen bestuurderklas org.h2.Driver (weergawe 1.3)
13: 46: 06,440 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC-diensdraad 1-3) JBoss Web Services – Stack CXF Server 4.0.2.GA
13: 46: 06,522 INFO [org.apache.coyote.http11.Http11Protocol] (MSC-diensdraad 1-4) Begin Coyote HTTP / 1.1 op http – 127.0.0.1-8080
13: 46: 06,746 INFO [org.jboss.as.server.deployment.scanner] (MSC-diensdraad 1-4) JBAS015012: Started FileSystemDeploymentService for directory /home/chandan/Downloads/jboss-as-7.1.1.Final/ selfstandige / ontplooi
13: 46: 06,747 INFO [org.jboss.as.remoting] (MSC-diensdraad 1-1) JBAS017100: Luister op /127.0.0.1:9999
13: 46: 06,796 INFO [org.jboss.as.remoting] (MSC-diensdraad 1-3) JBAS017100: Luister op /127.0.0.1:4447
13: 46: 06,883 INFO [org.jboss.as.connector.subsystems.datasources] (MSC-diensdraad 1-3) JBAS010400: Gebind databron [java: jboss / databronne / VoorbeeldDS]
13: 46: 07,003 INFO [org.jboss.as] (Boot Thread Controller) JBAS015951: Admin konsole luister op http://127.0.0.1:9990
13: 46: 07,004 INFO [org.jboss.as] (Boot Thread Controller) JBAS015874: JBoss AS 7.1.1.Final "Brontes" begin in 3468ms – 133 van 208 dienste begin (74 dienste is passief of op aanvraag)

Ek hoop hierdie help. Leer meer oor JBoss EAP-administrasie en -konfigurasie hier.

Tags:

  • JBoss

Jeffrey Wilson Administrator
Sorry! The Author has not filled his profile.
follow me