JBOSS not running

Hi,
I'm from Linux server background and very new to JBOSS. I'm trying to setup a IoT application server which requires JBOSS service to provide
a web interface for the application server.
But when i check the JBOSS server state it is showing 'starting', i need this to be 'running'.

# /opt/cgms/bin/jboss-cli.sh --connect controller=127.0.0.1 ":read-attribute(name=server-state)"
{
    "outcome" => "success",
    "result" => "starting"
}


I can see that the deployment is getting failed when i start JBOSS using the script standalone.sh. I've increased the deployment-timeout
up to 6000 seconds in standalone.xml, still the deployment is failing with the following message in /opt/cgms/standalone/deployments/cgms.ear.failed,

""JBAS015052: Did not receive a response to the deployment operation within the allowed timeout period [6000 seconds].
Check the server configuration file and the server logs to find more about the status of the deployment."

Here is my JBOSS setup details,

[root@app-server ~]# /opt/cgms/bin/jboss-cli.sh --connect
[standalone@localhost:9999 /] version
JBoss Admin Command-line Interface
JBOSS_HOME: /opt/cgms
JBoss AS release: 7.3.0.Final-redhat-14 "Janus"
JBoss AS product: EAP 6.2.0.GA
JAVA_HOME: null
java.version: 1.8.0_65
java.vm.vendor: Oracle Corporation
java.vm.version: 25.65-b01
os.name: Linux
os.version: 3.10.0-229.el7.x86_64


When i check the server.log, it is stuck at,

# tailf /opt/cgms/server/cgms/log/server.log

624: app-server: Aug 12 2017 05:45:01.506 +0000: %IOTFND-6-UNSPECIFIED: %[ch=StdSchedulerFactory][sev=INFO][tid=MSC service thread 1-1]: Quartz scheduler 'CgnmsQuartz' initialized from an externally provided properties instance.
625: app-server: Aug 12 2017 05:45:01.506 +0000: %IOTFND-6-UNSPECIFIED: %[ch=StdSchedulerFactory][sev=INFO][tid=MSC service thread 1-1]: Quartz scheduler version: 2.2.1

It will not go further from here.

I've tried with java 1.7, but the script standalone.sh failed with a java error,

java.lang.UnsupportedClassVersionError: com/cisco/cgms/loglayout/LogHandler : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:345)
        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:423)
        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)
            
Here are my server details,

OS - Red Hat Enterprise Linux Server release 7.1 (Maipo) - runs on Oracle VM VirtualBox
kernel - app-server 3.10.0-229.el7.x86_64 #1 SMP Thu Jan 29 18:37:38 EST 2015 x86_64 x86_64 x86_64 GNU/Linux

When i check netstat, port 80 and 443 are listening.

Please help to fix this problem.
George John KJAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
If you read other JBoss questions, you'll find JBoss is very particular about its run time environment.

Find the JBoss startup logs + if you're trying to have JBoss actually listen on port 80 + 443, likely the problem is Apache or some other process already has these ports.

This will tell you who holds the ports...

netstat -pluten 2>/dev/null | egrep -e :80 -e :443
tcp6       0      0 :::80                   :::*                    LISTEN      0          42098036   349/apache2         
tcp6       0      0 :::443                  :::*                    LISTEN      0          42098038   349/apache2

Open in new window

Try stopping whatever process shows up + restarting JBoss.

Once you get JBoss starting correctly, make sure you disable (systemd) or deinstall (apt-get/yum/etc...) whatever process was holding these ports, else the same problem will reoccur each reboot.
0
George John KJAuthor Commented:
I can see both ports are held by java. No other web servers running on this server.

# netstat -pluten 2>/dev/null | egrep -e :80 -e :443
tcp6       0      0 :::80                   :::*                    LISTEN      0          245261     9569/java
tcp6       0      0 :::443                  :::*                    LISTEN      0          245266     9569/java

# ps -ef |grep 9569
root      9569  9484 10 17:10 ?        00:00:27 java -D[Standalone] -XX:+UseCompressedOops -Xms128m -Xmx8g -XX:MaxPermSize=256m -Dcom.cisco.cgms.ciscolog.host=ztd-nms-db.local -server -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=bin/../server/cgms/log -XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput -XX:LogFile=bin/../server/cgms/log/cgms_stacktrace.log -XX:-OmitStackTraceInFastThrow -Dorg.terracotta.quartz.skipUpdateCheck=true -Dbase.dir=bin -Dorg.jboss.boot.log.file=/opt/cgms/server/cgms/log/server.log -Dlogging.configuration=file:/opt/cgms/standalone/configuration/logging.properties -jar /opt/cgms/jboss-modules.jar -mp /opt/cgms/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/opt/cgms -Djboss.server.base.dir=/opt/cgms/standalone -Djboss.server.log.dir=bin/../server/cgms/log --server-config=standalone.xml -b 0.0.0.0
0
Ravi Kiran Reddy KatkuriSenior Analyst ProgrammerCommented:
Hi There,
Try setting java_home in JBoss configurations as specified in article below
https://docs.jboss.org/jbossas/docs/Installation_Guide/4/html/Pre_Requisites-Configuring_Your_Java_Environment.html

Cheers,
Ravi
0
George John KJAuthor Commented:
Done with JAVA_HOME. No luck, issue still there.

[standalone@localhost:9999 /] version
JBoss Admin Command-line Interface
JBOSS_HOME: /opt/cgms
JBoss AS release: 7.3.0.Final-redhat-14 "Janus"
JBoss AS product: EAP 6.2.0.GA
JAVA_HOME: /opt/cgms-tools/jre
java.version: 1.8.0_65
java.vm.vendor: Oracle Corporation
java.vm.version: 25.65-b01
os.name: Linux
os.version: 3.10.0-229.el7.x86_64

# cat cgms.ear.failed
"JBAS015052: Did not receive a response to the deployment operation within the allowed timeout period [6000 seconds]. Check the ser ver configuration file and the server logs to find more about the status of the deployment."
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.