[gridengine users] xml-qstat

Ron Chen ron_chen_123 at yahoo.com
Sun Jun 10 05:20:29 UTC 2012


It's the java.lang.UnsupportedClassVersionError exception, most likely you are using a higher version of JDK to build the source, but using a lower version of JRE to run the generated class files.

You can google java.lang.UnsupportedClassVersionError and find out more about this exception.

 -Ron




________________________________
From: Laurence Mayer <laurence at istraresearch.com>
To: users at gridengine.org 
Sent: Sunday, June 10, 2012 1:06 AM
Subject: [gridengine users] xml-qstat


Please can someone help I am totally stuck. 

I have been working for the last two days to get xml-qstat working, with no success.

I have SGE 6_2u3 working for the last 3 years and would like to start working with xml-qstat.

OS: Ubuntu Server/Workstation 10.04

I have followed the instructions on http://olesenm.github.com/xml-qstat/install.html.

Directory structure on /opt/grid/
drwxr-xr-x  7 root root  4096 2012-06-08 17:49 cocoon-2.1.11
drwxr-xr-x  5  202 staff 4096 2012-06-08 09:40 httpi-1.7
drwxrwxr-x 13 root root  4096 2012-06-08 18:20 xml-qstat

I have httpi working on port 8080
root      1542     1  1 21:44 pts/6    00:00:00 dhttpi: on ANY:8080, ready!
root      1543  1542  0 21:44 pts/6    00:00:00 dhttpi (child of 1542): waiting for connect

I start cocoon.sh:
./cocoon.sh: executing default action 'servlet', use -h to see other actions
./cocoon.sh: using ./build/webapp as the webapp directory
-------------------- Loading --------------------
Processing repository: ./tools/jetty/lib
Adding jar: ./tools/jetty/lib/servlet-2.3.jar
Adding jar: ./tools/jetty/lib/jetty-4.2.23.jar
Processing repository: ./lib/endorsed
Adding jar: ./lib/endorsed/jakarta-regexp-1.5.jar
Adding jar: ./lib/endorsed/xml-apis-1.3.04.jar
Adding jar: ./lib/endorsed/xalan-2.7.1.jar
Adding jar: ./lib/endorsed/jakarta-bcel-20040329.jar
Adding jar: ./lib/endorsed/xercesImpl-2.9.1.jar
-------------------- Executing -----------------
Main Class: org.mortbay.jetty.Server
21:32:55.603 EVENT  Checking Resource aliases
21:32:55.796 EVENT  Starting Jetty/4.2.23
21:32:56.205 EVENT  Started WebApplicationContext[/,./build/webapp]
 INFO [main] (FacesConfigurator.java:139) - Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
 INFO [main] (FacesConfigurator.java:295) - faces-config.xml found in jar /WEB-INF/lib/cocoon-faces-block.jar
 INFO [main] (FacesConfigurator.java:347) - Reading config /WEB-INF/faces-config.xml
 INFO [main] (StartupServletContextListener.java:80) - ServletContext '/opt/grid/cocoon-2.1.11/build/webapp' initialized.
21:32:59.423 WARN!! Delete existing temp dir /tmp/Jetty__8888__ for WebApplicationContext[/,./build/webapp]
trying to register database
trying to register database
 INFO [main] (QuartzScheduler.java:195) - Quartz Scheduler v.1.5.2 created.
 INFO [main] (RAMJobStore.java:138) - RAMJobStore initialized.
 INFO [main] (DirectSchedulerFactory.java:331) - Quartz scheduler 'Cocoon
 INFO [main] (DirectSchedulerFactory.java:333) - Quartz scheduler version: 1.5.2
 INFO [main] (QuartzScheduler.java:400) - Scheduler Cocoon_$_Sat_Jun_09_21:33:00_IDT_2012 started.
WARN! *** JMS block is installed but jms client library not found. ***
- For the jms block to work you must install and start a JMS server and place the client jar in WEB-INF/lib.
- The default server, OpenJMS is configured in cocoon.xconf but is not bundled with Cocoon.
 INFO [main] (XindiceServlet.java:246) - Loading configuration from context path WEB-INF/xindice.xml
 WARN [main] (XindiceServlet.java:150) - The database 'db' root directory has been set to /opt/grid/cocoon-2.1.11/build/webapp/WEB-INF/db. Keep in mind that if a war upgrade will take place the database will be lost.
 INFO [main] (Database.java:347) - Database points to /opt/grid/cocoon-2.1.11/build/webapp/WEB-INF/db
 INFO [main] (XindiceServlet.java:171) - Database 'db' successfully opened
 INFO [main] (XindiceServlet.java:208) - Xindice server successfully started
21:33:03.250 EVENT  Started SocketListener on 0.0.0.0:8888
21:33:03.250 EVENT  Started org.mortbay.jetty.Server at 3f662dc8

Output from: make-xmlqstat-jar.sh


[STATUS] Changing to xmlqstat generator directory and trying this command:
--------
         javac -classpath /opt/grid/cocoon-2.1.11/build/cocoon/cocoon.jar:/opt/grid/cocoon-2.1.11/build/webapp/WEB-INF/lib/commons-lang-2.3.jar:/opt/grid/cocoon-2.1.11/build/webapp/WEB-INF/lib/avalon-framework-api-4.3.jar:/opt/grid/cocoon-2.1.11/build/webapp/WEB-INF/lib/excalibur-pool-api-2.1.jar:/opt/grid/cocoon-2.1.11/build/webapp/WEB-INF/lib/excalibur-sourceresolve-2.2.3.jar:/opt/grid/cocoon-2.1.11/build/webapp/WEB-INF/lib/excalibur-xmlutil-2.1.jar CommandGenerator.java
--------
[STATUS] Compiled java -> class files
[STATUS] Moved existing build-jar/ folder to build-jar.old/
[STATUS] Creating clean build-jar/ directory with the org/xmlqstat/generator
         directory structure and moving the compiled .class files into it
`java/CommandGenerator.class' -> `build-jar/org/xmlqstat/generator/CommandGenerator.class'
`java/CommandGenerator$ExpireValidity.class' -> `build-jar/org/xmlqstat/generator/CommandGenerator$ExpireValidity.class'

[STATUS] Creating the build-jar/xml-qstat.jar file
added manifest
adding: org/(in = 0) (out= 0)(stored 0%)
adding: org/xmlqstat/(in = 0) (out= 0)(stored 0%)
adding: org/xmlqstat/generator/(in = 0) (out= 0)(stored 0%)
adding: org/xmlqstat/generator/CommandGenerator.class(in = 4242) (out= 1960)(deflated 53%)
adding: org/xmlqstat/generator/CommandGenerator$ExpireValidity.class(in = 814) (out= 506)(deflated 37%)

[STATUS] Done

You should copy (or symlink) the 'xml-qstat.jar' file to the
WEB-INF/lib/ directory.
eg,
    cp build-jar/xml-qstat.jar /opt/grid/cocoon-2.1.11/build/webapp/WEB-INF/lib/


PROBLEM:

As soon as I open a browser to http://hostname:8888/grid/ I get an error on the browser and the below error on the cocoon console
HTTP ERROR: 500 org%2Fxmlqstat%2Fgenerator%2FCommandGenerator+%3A+Unsupported+major%2Eminor+version+51%2E0

21:33:58.637 WARN!! Error for /grid/
java.lang.UnsupportedClassVersionError: org/xmlqstat/generator/CommandGenerator : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:197)
at org.mortbay.http.ContextLoader.loadClass(ContextLoader.java:170)
at org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:228)
at org.apache.cocoon.components.treeprocessor.sitemap.ComponentsSelector.configure(ComponentsSelector.java:158)
at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:201)
at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:289)
at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108)
at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:524)
at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:583)
at org.apache.cocoon.components.treeprocessor.sitemap.SitemapLanguage.createComponentManager(SitemapLanguage.java:91)
at org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultTreeBuilder.java:390)
at org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultTreeBuilder.java:370)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.buildConcreteProcessor(TreeProcessor.java:341)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.setupConcreteProcessor(TreeProcessor.java:306)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:252)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
_______________________________________________
users mailing list
users at gridengine.org
https://gridengine.org/mailman/listinfo/users




More information about the users mailing list