Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?

JBOSS not running

Posted on 2017-08-12
4
Low Priority
?
29 Views
Last Modified: 2017-08-14
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.
0
Comment
Question by:George John KJ
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 13

Expert Comment

by:David Favor
ID: 42252110
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
 

Author Comment

by:George John KJ
ID: 42252119
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
 
LVL 1

Expert Comment

by:Ravi Kiran Reddy Katkuri
ID: 42253246
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
 

Author Comment

by:George John KJ
ID: 42253622
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

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Smart phones, smart watches, Bluetooth-connected devices—the IoT is all around us. In this article, we take a look at the security implications of our highly connected world.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question