1.6 -> 1.7 Upgrade listServices produces 404 error

311 views
Skip to first unread message

Rebe

unread,
Jan 14, 2014, 12:44:34 PM1/14/14
to i2b2-ins...@googlegroups.com
CentOS 6 64
Oracle 11g

1) Upgrade Data
a) ant -f data_build.xml upgrade_table_release_1-7
b) ant -f data_build.xml upgrade_procedures_release_1-7
c) ant -f data_build.xml upgrade_hive_tables_release_1-7  (Document correction: had to change “hivedata” to “hive”) 

2) IM Data Install
a) ant -f data_build.xml create_imdata_tables_release_1-7
b) ant -f data_build.xml db_imdata_load_data

3) PM
a) install axis under i2b2.war
b) create i2b2.war.dodeploy
c) server-common
1) ant clean dist deploy jboss_pre_deployment_setup
d) ant -f master_build.xml clean build-all deploy
e) contents of deployments directory after jboss startup:

[root@i2b2 deployments]# ls
i2b2.war           ojdbc6.jar.deployed  postgresql-9.2-1002.jdbc4.jar             sqljdbc4.jar
i2b2.war.deployed  pm-ds.xml            postgresql-9.2-1002.jdbc4.jar.skipdeploy  sqljdbc4.jar.skipdeploy
ojdbc6.jar         pm-ds.xml.deployed   README.txt
f) console log

[root@i2b2 deployments]# /usr/local/jboss/bin/standalone.sh -b 0.0.0.0 
=========================================================================

 JBoss Bootstrap Environment

 JBOSS_HOME: /usr/local/jboss

 JAVA: /usr/local/java/bin/java

 JAVA_OPTS:  -server -XX:+UseCompressedOops -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
=========================================================================

12:12:50,982 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
12:12:51,410 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
12:12:51,490 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
12:12:53,210 INFO  [org.xnio] XNIO Version 3.0.3.GA
12:12:53,227 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
12:12:53,255 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
12:12:53,272 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
12:12:53,327 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
12:12:53,341 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
12:12:53,371 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
12:12:53,457 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
12:12:53,486 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
12:12:53,488 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
12:12:53,506 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
12:12:53,533 INFO  [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
12:12:53,574 INFO  [org.jboss.as.security] (MSC service thread 1-1) JBAS013100: Current PicketBox version=4.0.7.Final
12:12:53,646 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
12:12:53,820 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service
12:12:54,124 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]
12:12:54,347 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - Stack CXF Server 4.0.2.GA
12:12:54,474 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--0.0.0.0-8080
12:12:55,384 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /127.0.0.1:9999
12:12:55,417 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory /usr/local/jboss/standalone/deployments
12:12:55,479 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /0.0.0.0:4447
12:12:55,520 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
12:12:55,564 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "ojdbc6.jar"
12:12:55,579 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "i2b2.war"
12:12:56,131 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "pm-ds.xml"
12:12:56,482 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 11.2)
12:12:56,515 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [PMBootStrapDS]
12:12:57,105 INFO  [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /i2b2
12:12:57,121 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015951: Admin console listening on http://127.0.0.1:9990
12:12:57,126 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 6715ms - Started 234 of 315 services (80 services are passive or on-demand)
12:12:57,212 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "pm-ds.xml"
12:12:57,212 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "i2b2.war"
12:12:57,213 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "ojdbc6.jar"

d) Web Output:

HTTP Status 404 - /i2b2/services/listServices

type Status report

message /i2b2/services/listServices

description The requested resource (/i2b2/services/listServices) is not available.

JBoss Web/7.0.13.Final


Fabrice Laborde

unread,
Jan 23, 2014, 5:29:48 AM1/23/14
to i2b2-ins...@googlegroups.com
Hi, 


Here on CentOS 6.6 64b, Postgresql 9.3, JBoss 7.1.1-Final, we have similar issue.

John Reber

unread,
Jan 23, 2014, 5:37:24 AM1/23/14
to i2b2-ins...@googlegroups.com
I'm still having same issue on CentOS. I spent the past two days creating a new CentOS VM with a new oracle database and trying  a new install, eliminating any upgrade issues. I still get a 404 error when trying to listServices. JBoss web console shows i2b2.war as being deployed. 

John Reber


Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "i2b2 Install Help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to i2b2-install-h...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Mendis, Michael E.

unread,
Jan 23, 2014, 12:13:28 PM1/23/14
to <i2b2-install-help@googlegroups.com>
What does the i2b2.war folder look like?

i did notice that apache has changed the way they package the war zip.  

if it should looks like:
ls i2b2.war
META-INF WEB-INF axis2-web org

If it has a axis2.war file in it, than do the following:
1) shut down jboss
2) move the axis2.war to the deployment directory 
3) delete the i2b2.war folder (rm -rf i2b2.war)
4) create a i2b2.war folder (mkdir i2b2.war)
5 go into the i2b2.war folder  ( cd i2b2.war)
6) unzip the axis2.war file   (unzip ../axis2.war .)

-mike

On Jan 23, 2014, at 5:37 AM, John Reber <jpr...@gmail.com>
 wrote:

The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

John Reber

unread,
Jan 23, 2014, 1:47:12 PM1/23/14
to i2b2-ins...@googlegroups.com
Mike,

The following seems to fix my issue.  I can now "listServices" and am seeing the PM service.  I will continue with the fresh deployment and if all goes well will move onto upgrading/

As an FYI, my first attempt at the following failed with an internal server error.  I then marked the moved axis2.war to skipdeploy.

John Reber

-----
.//^ ^\\   "If there are no dogs in Heaven, then when I die, I want to go where THEY went."
(/(_•_)\)  ~Will Rogers~
._/''*''\_ 
(,,,)^(,,,) 


From: "Mendis, Michael E." <MME...@PARTNERS.ORG>
Reply-To: <i2b2-ins...@googlegroups.com>
Date: Thursday, January 23, 2014 at 12:13 PM
To: "<i2b2-ins...@googlegroups.com>" <i2b2-ins...@googlegroups.com>
Subject: Re: 1.6 -> 1.7 Upgrade listServices produces 404 error

What does the i2b2.war folder look like?

i did notice that apache has changed the way they package the war zip.  

if it should looks like:
ls i2b2.war
META-INF WEB-INFaxis2-web org

The information contained in this transmission contains privileged and confidential information. It is intended only for the use of the person named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.

CAUTION: Intended recipients should NOT use email communication for emergent or urgent health care matters.

kpr...@uic.edu

unread,
Jul 13, 2015, 1:25:53 PM7/13/15
to i2b2-ins...@googlegroups.com
Hi All,

I seem to face the same issue that listServices is displaying: Http status 404.
This is so far I have checked:
I have the same directory structure as pointed by Mike:
 In the directory: /opt/jboss-as-7.1.1.Final/standalone/deployments/i2b2.war
i have following files and directories:
drwxr-xr-x 3 root root 4096 Apr 17  2012 org
-rw-rw-rw- 1 root root    0 Jul  8 11:45 i2b2.war.dodeploy
drwxr-xr-x 2 root root 4096 Jul 10 16:23 META-INF
drwxr-xr-x 6 root root 4096 Jul 10 16:23 axis2-web
drwxr-xr-x 7 root root 4096 Jul 10 16:23 WEB-INF

i also checked the pm-ds.xml file for proper configuration:
<?xml version="1.0" encoding="UTF-8"?>
        <datasource jta="false" jndi-name="java:/PMBootStrapDS"
                pool-name="PMBootStrapDS" enabled="true" use-ccm="false">
                <connection-url>jdbc:oracle:thin:@localhost:1521:xe</connection-url>
                <driver-class>oracle.jdbc.OracleDriver</driver-class>
                <driver>ojdbc6.jar</driver>
                <security>
                        <user-name>i2b2pm</user-name>
                        <password>demouser</password>
                </security>
                <validation>
                        <validate-on-match>false</validate-on-match>
                        <background-validation>false</background-validation>
                </validation>
                <statement>
                        <share-prepared-statements>false</share-prepared-statements>
                </statement>
        </datasource>

I also checked if php, curl and php-curl were installed and enabled on my Vm:
PHP:
php -v
PHP 5.3.3 (cli) (built: Jul  3 2015 03:10:33)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

cURL:
curl -V
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

php-curl:
Configure Command =>  './configure'  '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--enable-force-cgi-redirect' '--enable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-gd=shared' '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/lib64/mysql/mysql_config' '--enable-dom=shared' '--with-pgsql=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/usr' '--enable-fastcgi' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,/usr/lib64/mysql/mysql_config' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-sqlite3=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--without-readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with-tidy=shared,/usr' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-fileinfo=shared' '--enable-intl=shared' '--with-icu-dir=/usr' '--with-enchant=shared,/usr' '--with-recode=shared,/usr'
Additional .ini files parsed => /etc/php.d/curl.ini,
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules

ls -ltr /usr/lib64/php/modules
total 2244
-rwxr-xr-x 1 root root   83088 Jul  3 02:13 zip.so
-rwxr-xr-x 1 root root  261392 Jul  3 02:13 phar.so
-rwxr-xr-x 1 root root   36200 Jul  3 02:13 json.so
-rwxr-xr-x 1 root root 1843120 Jul  3 02:13 fileinfo.so
-rwxr-xr-x 1 root root   66096 Jul  3 02:13 curl.so

curl

cURL support => enabled
cURL Information => 7.19.7

Kindly advise what should i check next so that i can resolve this problem. 

Regards
Kartikey

kpr...@uic.edu

unread,
Jul 14, 2015, 2:01:16 PM7/14/15
to i2b2-ins...@googlegroups.com
Hi All,

Now I can open the page: listServices. The problem that I faced is, the documentation mentions to start jboss as a service from init.d directory. But if you see the jboss-as.config file residing in the /etc/jboss-as, you will see that there is a console.log at /var/log/jboss-as/console.log which will show all the error messages like these:
"12:43:57,637 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014608: Failed to store configuration to standalone.xml: java.io.FileNotFoundException: /usr/share/jboss-as/standalone/configuration/standalone.xml (No such file or directory)"

for almost everything. I tried to make the same directory structure at /usr/share directory but that also didn't help. So i tried starting the service from /opt/jboss-as-7.1.1.Final/bin. ./standalone.sh & to make jboss run in background and verified if jboss was running: /etc/init.d/jboss-as-standalone.sh status and jboss is running will be the status. after doing so, I was able to login to http://localhost:9090/i2b2/services/listServices

Thanks and Regards
Kartikey
Reply all
Reply to author
Forward
0 new messages