You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Uma Munugala <u....@CellFusion.com> on 2002/04/05 01:14:57 UTC

Tom cat does not load class -- Urgent I need help

Hi 
Iam trying to convert a standalone application to web based application
using Tomcat.

Iam running a servlet called Login in Tomcat 4.0.3-b1 on NT 4.0. I tried
different versions of tomcat also like tomcat 4.0.3 and lower.
In the above servlet Iam trying  to load a class file called
com.CellFusion.Relational.RelConnection.  using Class.forName,  I get an
error 
java.lang.ClassFormatError: com/CellFusion/Relational/RelConnection (Illegal
Variable name "") 
I can load all other class files but i cant load this particular file.


Iam attaching the file any help in this regards would be very much
appreciated

. <<RelConnection.java>>   <<Login.java>> 

When I take some java files (including the said file) from my application
and seperately compile them and place them in D:\Apache Tomcat
4.0\webapps\CellFusion\WEB-INF\classes  i dont have any problem.

I am not sure what is  problem with the tom cat loader, Iam stuck can any
body please explain.


Thanks 
Uma





Re: Tom cat does not load class -- Urgent I need help

Posted by "David M. Karr" <dm...@earthlink.net>.
>>>>> "Uma" == Uma Munugala <u....@CellFusion.com> writes:

    Uma> Hi 
    Uma> Iam trying to convert a standalone application to web based application
    Uma> using Tomcat.

    Uma> Iam running a servlet called Login in Tomcat 4.0.3-b1 on NT 4.0. I tried
    Uma> different versions of tomcat also like tomcat 4.0.3 and lower.
    Uma> In the above servlet Iam trying  to load a class file called
    Uma> com.CellFusion.Relational.RelConnection.  using Class.forName,  I get an
    Uma> error 
    Uma> java.lang.ClassFormatError: com/CellFusion/Relational/RelConnection (Illegal
    Uma> Variable name "") 
    Uma> I can load all other class files but i cant load this particular file.

    Uma> Iam attaching the file any help in this regards would be very much
    Uma> appreciated

    Uma> . <<RelConnection.java>>   <<Login.java>> 

    Uma> When I take some java files (including the said file) from my application
    Uma> and seperately compile them and place them in D:\Apache Tomcat
    Uma> 4.0\webapps\CellFusion\WEB-INF\classes  i dont have any problem.

    Uma> I am not sure what is  problem with the tom cat loader, Iam stuck can any
    Uma> body please explain.

How are you compiling your source files?

What compiler are you using?

What JDK/JVM are you using?

Are you certain you're using the compiler that goes with the JVM you're running
Tomcat with?

This may be unimportant, but are you using any directory names which contain
spaces?

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>