Yeah, maybe the turbine jar wasn't in your classpath when you tried to compile the file? I know when I compile screens without using Ant I needed the Turbine & Velocity JARs in my classpath for it to work. Plus you want to make sure your output directory is being specified correctly.
-----Original Message----- From: Nathan McCall [mailto:[EMAIL PROTECTED]] Sent: Friday, September 28, 2001 1:26 PM To: [EMAIL PROTECTED] Subject: RE: compiler complaining about DataSource interface Not using Ant was the problem. I should have noticed the "Build Classpath" section in web.xml Thanks for your help Jason. I'll RTFM a little more closely next time... -Nathan -----Original Message----- From: Jason van Zyl [mailto:[EMAIL PROTECTED]] Sent: Friday, September 28, 2001 4:15 PM To: [EMAIL PROTECTED] Subject: Re: compiler complaining about DataSource interface On 9/28/01 4:10 PM, "Nathan McCall" <[EMAIL PROTECTED]> wrote: > Okay, just to make sure I was not doing anything too dumb, > (entirely likely) I made a copy of the newapp folder in /webapps > and tried to compile the FluxLogin.java in the actions/ folder of > the src/ directory with the actions/ folder as the target in the class/ > directory. This is the compiler error: You mean you ran javac in the actions/ folder? Just so we're clear here, you know that there is a build system already present in the TDK. In the WEB-INF/build directory there is a build.xml file that sets up the classpath for you. If you are using the build system that�s provided than something else is wrong and we'll go from there. > ...FileItem.java:86: cannot resolve symbol > symbol : class DataSource > location : class.org.apache.turbine.util.upload.FileItem > public class FileItem implements DataSource > ^ > > The WEB-INF/lib directory is there and complete > and I am using the tdk 2.1 version of Catalina > I have not modified any of the files. > > > -----Original Message----- > From: Jason van Zyl [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 28, 2001 3:31 PM > To: [EMAIL PROTECTED] > Subject: Re: compiler complaining about DataSource interface > > > On 9/28/01 3:22 PM, "Nathan McCall" <[EMAIL PROTECTED]> > wrote: > >> The Sample app did run fine. I just started putting together my >> own thing with the Turbine servlet - basically just getting it to >> spit out a hello world - but it wont compile. > > No question is a silly question, but a vague question doesn't really > help > much. I can't even try to help you with the info you've given. > > Are you using the sample app as a base? Did you start from scratch? Did > you > copy the sample app directory and possibly miss some JARs in the > WEB-INF/lib > directory? The activation jar in particular? Do you have your own > version of > Tomcat installed? Are you altering the classpath in the tomcat scripts? > > Give me some details and I'll try to give you some help. > > >> -----Original Message----- >> From: Jason van Zyl [mailto:[EMAIL PROTECTED]] >> Sent: Friday, September 28, 2001 3:10 PM >> To: [EMAIL PROTECTED] >> Subject: Re: compiler complaining about DataSource interface >> >> >> On 9/28/01 2:27 PM, "Nathan McCall" <[EMAIL PROTECTED]> >> wrote: >> >>> Folks, >>> I just started horsing around with tdk - looks great, but I keep >>> getting an error when I try compiling individual files - >>> It complains about not being able to resolve DataSource in >>> FileItem.java. I do have the activation jar in my classpath >>> (I have tried several different versions/copies). >>> JDK 1.3.1, w2k-sp2 >>> Any thoughts? >> >> What else have you edited in your TDK setup? I have run the sample app >> probably a thousand times now and everything compiles right from the > get >> go. >> >>> Cheers, >>> Nathan >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl http://tambora.zenplex.org http://jakarta.apache.org/turbine http://jakarta.apache.org/velocity http://jakarta.apache.org/alexandria http://jakarta.apache.org/commons --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
