Author Topic: What is the supported version of GlassFish for SpecVIRT?  (Read 21962 times)

bcarson

  • Newbie
  • *
  • Posts: 32
  • Karma: +1/-0
Re: What is the supported version of GlassFish for SpecVIRT?
« Reply #15 on: September 29, 2015, 12:51:22 PM »
I was missing the java-1.7.0-openjdk-devel package! Thanks for that. However 2 of the 3 curl tests are still failing:

curl http://specdelivery:8000/SPECjAppServer/app?action=atomicityTests FAILED
curl http://specemulator:8080/Emulator/EmulatorServlet?cmd=switchlog 200 OK
curl http://specdelivery:8000/Supplier/DeliveryServlet?cmd=switchlog FAILED

These are the services that I have started on the AppServer according to nmap:
Starting Nmap 6.40 ( http://nmap.org ) at 2015-09-29 09:44 MST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000054s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 992 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
4848/tcp open  appserv-http
7676/tcp open  imqbrokerd
8000/tcp open  http-alt
8009/tcp open  ajp13
8080/tcp open  http-proxy
8181/tcp open  unknown
Device type: general purpose
Running: Linux 3.X
OS CPE: cpe:/o:linux:linux_kernel:3
OS details: Linux 3.7 - 3.9
Network Distance: 0 hops

Are there any other required services I should be seeing here?

abond

  • Moderator
  • Newbie
  • *****
  • Posts: 35
  • Karma: +6/-0
Re: What is the supported version of GlassFish for SpecVIRT?
« Reply #16 on: September 29, 2015, 03:17:43 PM »
To get an idea about what those various tests are telling you take a look at the SPECvirt_sc2013 Technical Support Document on the SPEC website.  The descriptions are in the Appserver/Dbserver section.

https://www.spec.org/virt_sc2013/docs/SPECvirt_TechnicalSupport.html#Appserver

It appears that your emulator is working which you just fixed, but your appserver is not working or available and neither is your database.  Did you start your glassfish domain?  Check whether your database is up and accepting connections and then whether the jdbc .jar file on the appserver is correctly referenced.

Andy

bcarson

  • Newbie
  • *
  • Posts: 32
  • Karma: +1/-0
Re: What is the supported version of GlassFish for SpecVIRT?
« Reply #17 on: November 02, 2015, 06:28:54 PM »
The database is accepting connections when I execute:
psql -h specdb -U spec -d postgres

However I still get failures when executing:
curl http://specdelivery:8000/SPECjAppServer/app?action=atomicityTests
curl http://specdelivery:8000/Supplier/DeliveryServlet?cmd=switchlog


But when I hit http://specdelivery:8000/ it returns
GlassFish Server 3.1.2
Your server is now running

Where do I verify my JDBC.jar configuration? And how else should I isolate my specdelivery failures?


lroderic

  • Moderator
  • Full Member
  • *****
  • Posts: 167
  • Karma: +6/-0
Re: What is the supported version of GlassFish for SpecVIRT?
« Reply #18 on: November 03, 2015, 12:36:56 AM »
On appserver, check that domain.xml contains the correct location of the JDBC jar file. The JDBC jar file can reside anywhere but is probably at /opt or /opt/glassfish3/glassfish/lib.

   grep postgresql- /opt/glassfish3/glassfish/domains/spec2004-1/config/domain.xml

Make sure these locations match. If they don't, copy the JDBC file to where the domain.xml expects to find it, restart jApp and tomcat, then retry the curl commands.

« Last Edit: November 03, 2015, 12:39:32 AM by lroderic »

bcarson

  • Newbie
  • *
  • Posts: 32
  • Karma: +1/-0
Re: What is the supported version of GlassFish for SpecVIRT?
« Reply #19 on: November 03, 2015, 01:05:45 PM »
The file postgresql-9.2-1004.jdbc4.jar is at the path you specified /opt/glassfish3/glassfish/lib however, I don't see any reference to it at /opt/glassfish3/glassfish/domains/spec2004-1/config/domain.xml
(see attached domain.xml)

lroderic

  • Moderator
  • Full Member
  • *****
  • Posts: 167
  • Karma: +6/-0
Re: What is the supported version of GlassFish for SpecVIRT?
« Reply #20 on: November 03, 2015, 01:12:21 PM »
Please go onto the appserver:

  cp /opt/appvm_scripts/files/domain.xml /opt/glassfish3/glassfish/domains/spec2004-1/config

Then restart jApp and tomcat and retry the curl commands.

bcarson

  • Newbie
  • *
  • Posts: 32
  • Karma: +1/-0
Re: What is the supported version of GlassFish for SpecVIRT?
« Reply #21 on: November 03, 2015, 01:35:36 PM »
OK, I copied the file and edit to reflect my JDBC file:
<java-config classpath-prefix="/opt/postgresql-9.2-1004.jdbc4.jar" debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9009" system-classpath="" classpath-suffix="">

Then I executed:
./appsrv-ctrl.sh stop
./tomcat-ctrl.sh stop
./appsrv-ctrl.sh start
./tomcat-ctrl.sh start

[root@specvirt-db ~]# curl http://specdelivery:8000/Supplier/DeliveryServlet?cmd=switchlog
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>GlassFish v3 - Error report</title><style type="text/css"><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}  B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - </h1><hr/><p><b>type</b> Status report</p><p><b>message</b></p><p><b>description</b>The requested resource () is not available.</p><hr/><h3>GlassFish Server Open Source Edition 3.1.2.2</h3></body></html>

lroderic

  • Moderator
  • Full Member
  • *****
  • Posts: 167
  • Karma: +6/-0
Re: What is the supported version of GlassFish for SpecVIRT?
« Reply #22 on: November 03, 2015, 01:50:27 PM »
Do you see any errors in the GlassFish log?

  tail -200 /opt/glassfish3/glassfish/domains/spec2004-1/logs/server.log|more


bcarson

  • Newbie
  • *
  • Posts: 32
  • Karma: +1/-0
Re: What is the supported version of GlassFish for SpecVIRT?
« Reply #23 on: November 03, 2015, 01:57:41 PM »
Attached appserver log.

AnoopGupta

  • Jr. Member
  • **
  • Posts: 60
  • Karma: +0/-0
Re: What is the supported version of GlassFish for SpecVIRT?
« Reply #24 on: November 03, 2015, 02:29:15 PM »
[1] The following working means the Glassfish server is running:
http://specdelivery:8000/

[2] The following returning 200 OK means the SPECjAppServer.ear deployed on the GlassFish:
curl http://specdelivery:8000/Supplier/DeliveryServlet?cmd=switchlog
Otherwise the application is not deployed. Check for any errors in the GlassFish server log. If you don't see any error, likely application was not deployed. Try deploying the ear again or reconfigure your glassfish domain using the example scripts.

[3] Once deployment works, then verify DB connectivity:
curl http://specdelivery:8000/SPECjAppServer/app?action=atomicityTests
If you get page not found, again it means deployment was not completely successful.
If deployment really went fine, then you will see 3 DB tests results as PASS/FAIL, where FAIL can mean:
  • DB connectivity issue
  • DB was not loaded. After loading, remember to restart GlassFish server on App VM(s)


In your appserver log I do not see any attempt to deploy the SPECjApPServer.ear. So, you are at [2] above.