users@glassfish.java.net

java.lang.UnsupportedClassVersionError: WEB9032: Class

From: <forums_at_java.net>
Date: Sun, 27 Nov 2011 16:42:39 -0600 (CST)

======== * BUILD:*
==========================================================

init: deps-module-jar: deps-ear-jar: deps-jar: Created dir: C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\build\web\WEB-INF\classes
Created dir: C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\build\web\META-INF
Copying 1 file to C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\build\web\META-INF
Created dir: C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\build\web\WEB-INF\classes\META-INF
Copying 1 file to C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\build\web\WEB-INF\classes\META-INF
Copying 476 files to C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\build\web
library-inclusion-in-archive: library-inclusion-in-manifest: Created dir:
C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\build\empty Created
dir: C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\build\generated-sources\ap-source-output
Compiling 1 source file to C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\build\web\WEB-INF\classes
*warning: Supported source version 'RELEASE_6' from annotation processor
'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' less
than -source '1.7'* *1 warnin**g* Copied 1 empty directory to 1 empty
directory under C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\build\web\WEB-INF\classes
compile: compile-jsps: Created dir: C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\dist Building jar:
C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\dist\ProjectRideshare3.5.war
do-dist: dist: verify: running C:\glassfish3.1.1\glassfish\bin\verifier.bat
-ra -d C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\dist C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\dist\ProjectRideshare3.5.war 
Nov 27, 2011 5:30:34 PM com.sun.enterprise.tools.verifier.Initializer
parseArgs SEVERE: verifier: missing argument for -r or unknown reporting
level [ a -d C:\Users\Yeshi ]. Nov 27, 2011 5:30:34 PM
com.sun.enterprise.tools.verifier.Initializer usage INF O:  usage: verifier
[optional_params] <jarFile>   where :    [optional_params]   : Must be:
     -d|--destdir <destination directory> : Verifier results are put in
the specified existing directory    -D|--domain      : Absolute path of
the domain directory. D omain directory will be ignored if verifier is run
with -p option. The default domain directory is
<AS_INSTALL_DIR>/domains/domain1    -p|--portability : Verifier will be run
in portability mode with this option. Verifier runs in appserver mode by
default.  In the default mode verifier additionally checks correct usage of
Sun application server features.    -h|--help|-?     : Display verifier
help    -t|--timestamp   : verifier results are generated with timestamp
appended to it      -u|--gui         : Use Ve rifier GUI    
 -v|--verbose     : Display more execution information    -V|--version
    : Display verifier tool version          (Note: Overrides default
behavior,                  required jarFile not needed)    
 -r|--reportlevel <level> : Result reporti ng level    level= a|all    
 : Set output report level to display all results           f|failures
: Set output report level to display only failure             results
          w|warnings : Set output report level to display only warning
and              failure results    -a|--app         : Run only
the Application tests    -A|--appclient   : Run only the Application
Client tests    -c|--connector   : Run only the Connector tests  
 -e|--ejb         : Run only the EJB tests    -w|--web         :
Run only  the Web tests    -s|--webservices : Run only the WebServices
tests    -l|--webservicesclient : Run only the WebServicesClient tests  
 -P|--persistence : Run only the EJB 3.0 persistence tests     Note: The
default mode is non-verbose mode and the default r eportlevel is to display
only warning and failure results.        <jarFile>: EAR/WAR/JAR/RAR file
to perform static verification on   An example that runs verifier in verbose
mode and writes all the results of static verification of file sample.ear to
the de stination directory /verifierresults:    verifier -v -ra -d
/verifierresults sample.ear   Results are generated in both text and XML
format. Two result files, sample.ear.txt and sample.ear.xml, will be created.
    BUILD SUCCESSFUL (total time: 11 seconds)  
======== RUN:
================================================================

  init: deps-module-jar: deps-ear-jar: deps-jar:
library-inclusion-in-archive: library-inclusion-in-manifest: compile:
compile-jsps: In-place deployment at C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\build\web
Initializing... deploy?DEFAULT=C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\build\web&name=ProjectRideshare3.5&force=true
failed on GlassFish Server 3.1.1   *Error occurred during deployment:
Exception while loading the app : java.lang.IllegalStateException:
ContainerBase.addChild: start: org.apache.catalina.LifecycleException:
java.lang.RuntimeException: com.sun.faces.config.ConfigurationException:
CONFIGURATION FAILED! java.util.concurrent.ExecutionException:
java.lang.UnsupportedClassVersionError: WEB9032: Class
authentication.LoginBean has unsupported major or minor version numbers,
which are greater than those found in the Java Runtime Environment version
1.6.0_25. Please see server.log for more details.* C:\Users\Yeshi
Dondhen\Documents\NetBeansProjects\ProjectRideshare3.5\nbproject\build-impl.xml:781: 
The module has not been deployed. at
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at
sun.reflect.GeneratedMethodAccessor253.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348) at
org.apache.tools.ant.Target.execute(Target.java:390) at
org.apache.tools.ant.Target.performTasks(Target.java:411) at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at
org.apache.tools.ant.Project.executeTarget(Project.java:1368) at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 9 seconds)    
======== CODE:
===============================================================

  /*  * To change this template, choose Tools | Templates  * and open the
template in the editor.  */ package authentication;   /**  *  * @author
Yeshi Dondhen  */ import java.sql.*; import javax.faces.bean.*;  
@ManagedBean(name="LoginBean") @RequestScoped public class LoginBean {    
private String username;     private String password;     private String
user_type;     private String dbusername;     private String dbpassword;
   // private String UserRole;     Connection con;     Statement ps;  
  ResultSet rs;     String SQL_Str1;       public String
getDbpassword() {         return dbpassword;     }     public String
getDbusername() {         return dbusername;     }          public
String getDbType(){         return user_type;     }            
   /* private String roleAdmin = "Administrator";     private String
adminPwd = "admin";     private String roleEC = "Event Coordinator";    
private String ecPwd = "event";     private String roleRider = "Rider";  
  private String riderPwd = "rider";     private String roleDriver =
"Driver";     private String driverPwd = "driver";    */       public
void dbData(String UName)     {         try         {        
    Class.forName("com.mysql.jdbc.Driver");             con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/carpoolmain","root","password");
            ps = con.createStatement();            
SQL_Str1="Select * from user where user_name like ('" + username +"')";    
        rs=ps.executeQuery(SQL_Str1);             rs.next();    
        user_type=rs.getString(11).toString();            
dbusername=rs.getString(12).toString();            
dbpassword=rs.getString(13).toString();                       
           }         catch(ClassNotFoundException | SQLException
ex)         {             System.out.println("Exception Occur :" +
ex);         }     }     public String getPassword(){          
return password;     }       public void setPassword(String password) {
                       this.password = password;           
                    }       public String getUsername() {    
    return username;     }       public void setUsername(String
username) {         this.username = username;     }     public String
checkValidUser()     {         dbData(username);              
    if(username.equalsIgnoreCase(dbusername))         {          
  if(password.equals(dbpassword))             {               
    switch (user_type) {                     case
"Administrator":                         return "validAdmin";  
                  case "Event_Coordinator":                
        return "validEC";                     case "Rider":  
                      return "validRider";                
    default:                         return "validDriver";  
              }                            }        
    else             {                 return "invalid";  
          }         }         else         {          
  return "invalid";         }     }   *I have had this type of error
appear often. In several projects since I upgraded to the new JDK 1.7 and
Glassfish 3.1.1.* *If anyone is aware of fix for this or has any suggestions
I would really appreciate it thanks ahead of time. : )* *
* *Chris *

--
[Message sent by forum member 'ctcruikshank']
View Post: http://forums.java.net/node/868479