tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Ruthenbeck <>
Subject Re: JAVA Class Import Problem, Tomcat 4.1.24
Date Fri, 11 Apr 2003 02:08:22 GMT


We'll need the relevant part/s of the jsp and generated java files to help 
without venturing guesses.  Paste those into a message and it should be 
pretty simple to fix.


At 06:39 PM 4/10/2003, you wrote:
>I am trying to pass a very simple java object through the session, so
>the *.jsp file needs to have access to it.  The function ONLY has two
>String values, as well as the getters and setters.  All of the servlets
>and classes compile perfectly, and run perfectly on a different web
>When I try to run the files on TOMCAT, however, I get the following
>Generated servlet error:
>     [javac] Since fork is true, ignoring compiler setting.
>     [javac] Compiling 1 source file
>     [javac] Since fork is true, ignoring compiler setting.
>     [javac] C:\Program Files\Apache Group\Tomcat
>4.1\work\Standalone\localhost\test\ '.' expected
>     [javac] import Message;
>     [javac]               ^
>     [javac] 1 error
>This leads me to believe that Tomcat is trying to treat Message like a
>PACKAGE, and not as a class.  I have tried renaming Message to something
>else, in case it was a keyword (can't understand why it would be, but I
>wanted to be safe.)  The *.jsp I am trying to call works well otherwise.
>If I change the attribute I'm passing to a String (instead of a
>Message), the ENTIRE program works 100%.  I seem to remember being told
>that there was something I have to do in order to make it work; I tried
>implementing in my Message class, and I tried it
>without, and neither one worked correctly.  Another problem is that if I
>write an import line to import this Class in another package in the same
>application, it gives the same error.  Am I forgetting to include or
>implement something?
>I would GREATLY appreciate any help you might have for a novice user
>with a huge time crunch! :-) :-) :-)

Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message