Hiya William, Unlike Justin, I'll guess ;-) Depending on the JDK being used, you can't import classes from the default package. This changed in JDK 1.4 So, move the Message into a package. That should fix the issue below. Cheers, -- jon Justin Ruthenbeck wrote: > > William, > > 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. > > justin > > > At 06:39 PM 4/10/2003, you wrote: > >> Group- >> >> 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 >> server. >> >> When I try to run the files on TOMCAT, however, I get the following >> error: >> >> 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\chat_jsp.java:8: '.' 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 java.io.Serializable 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! :-) :-) :-) >> >> Sincerely, >> WJR > > > > ____________________________________ > Justin Ruthenbeck > Software Engineer, NextEngine Inc. > justinr - AT - nextengine DOT com > Confidential > See http://www.nextengine.com/confidentiality.php > ____________________________________ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > -- Jon Eaves http://www.eaves.org/jon --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org