Hi Iam getting problem java.lang.ClassFormatError: since 4 days Iam working on but not finding a solution. I tried with tomcat 4.0.3 and 4.0.4 beta version both gives same problem. Installation is successful, and examples work properly. I deployed my application in web-inf/classes Iam getting an error when I run servlet.
When my servlet is invoked, when code is trying to access the RelConnection.gDefaultConnectionIsOracle, a static member Iam getting the error. java.lang.ClassFormatError: com/CellFusion/Relational/RelConnection (Illegal Variable name "") Relconnection is a public class with all static members and static methods. In the same package it is able to get other methods. when it is trying to access static variable iam getting this error. Here is the description --------------------------- I have written a servlet which SingleThreadModel public class Login extends HttpServlet implements SingleThreadModel In this one Iam trying to access oracle database using custom developed classes /** * defineCFDatabase creates the Data Dictionary for 'cf' **/ public static synchronized boolean defineCFDatabase() { try{ if (!gDBInitialized) { gDBInitialized = dbCFDefinition.defineCFDatabase( false ); if (gDBInitialized) { gDB = dbCFDefinition.getDatabase(); dboCF = gDB; } } if (gDBInitialized && !gVariablesInitialized) { gVariablesInitialized = initializeVariables(); } } catch(Exception e) { Util.log("********* Exception :" + e.toString()); } return gDBInitialized && gVariablesInitialized; } In dbCFDefinition class public static synchronized boolean defineCFDatabase( boolean forceAllTables ){ Access a class called DscDomain trying to get defaultId; return boolean } DscDomain class calls a method as follows public String getGenericType(String dataType , int length) { if(!RelConnection.gDefaultConnectionIsOracle && mSQLServer){ //now only for SQLServer if (dataType.toLowerCase().equals("varchar2")){ dataType = "varchar"; } else if (dataType.toLowerCase().equals("number")){ dataType = "numeric"; } else if (dataType.toLowerCase().equals("date")){ dataType = "datetime"; } else{ dataType = "varchar"; length = 0; } } if ( length == 0) { Util.log("------- 2 if dataType" + dataType + " length: " + length); return dataType; } else { Util.log("------- else dataType" + dataType + " length: " + length); return dataType + "(" + length + ")" ; } } when RelConnection.gDefaultConnectionIsOracle is accessed Iam getting problem java.lang.ClassFormatError: com/CellFusion/Relational/RelConnection (Illegal Variable name "") RelConnection is a public class with static members and static methods In the same package it is able to get other methods. when it is trying to access static variable iam getting this error. gDefaultConnectionIsOracle is defined as static public boolean gDefaultConnectionIsOracle = false; Thanks a lot Uma ---------------------------------------------------------------------------- ------------------------------- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 9:32 AM To: Tomcat Users List Subject: RE: Problem in running servlet please help--- urgent Post your code/log output. Maybe someone will have a look at it. Or you could check the archives. I think I saw someone who had a similar problem. RS Uma Munugala <[EMAIL PROTECTED]> on 03/18/2002 11:27:42 AM Please respond to "Tomcat Users List" <[EMAIL PROTECTED]> To: 'Tomcat Users List' <[EMAIL PROTECTED]> cc: Subject: RE: Problem in running servlet please help--- urgent Thanks for replying I have synchronized methods and they are returning boolean. Can u please let me know how that is getting affected and what I need to do to solve that problem. The class has static members and static methods, when iam trying to access static members the error is coming. java.lang.ClassFormatError: com/CellFusion/Relational/RelConnection (Illegal Variable name "") Thanks a lot Uma -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 8:41 AM To: Tomcat Users List Subject: Re: Problem in running servlet please help--- urgent Do you have any synchronized method? Are there any return statements within the synchronized methods? RS Uma Munugala <[EMAIL PROTECTED]> on 03/18/2002 10:00:13 AM Please respond to "Tomcat Users List" <[EMAIL PROTECTED]> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: Subject: Problem in running servlet please help--- urgent Hi Iam Running tomcat 4.0.3. on windows NT. Installation is successful, and examples work properly. I deployed my application in web-inf/classes Iam getting an error when I run servlet. When my servlet is invoked, when code is trying to access the RelConnection.gDefaultConnectionIsOracle, a static member Iam getting the error. java.lang.ClassFormatError: com/CellFusion/Relational/RelConnection (Illegal Variable name "") Relconnection is a public class with all static members and static methods. In the same package it is able to get other methods. when it is trying to access static variable iam getting this error. Any help would be appreciated Thanks Uma -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>