Re: tomcat won't read classes unless in explicit packages
for what it is worth: i may not understand problem statement correctly, but if the problem is having all classes in one directly, why not place them all in same package; or possibly jar them alltogether and place in /commons directory.??? -paul lomack - Original Message - From: "Luke Vanderfluit" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Sunday, September 21, 2003 11:47 PM Subject: tomcat won't read classes unless in explicit packages > Hi, > > Does anyone have a solution or workaround for the following problem. > > I'm running an application under /tomcat/webapps. The application > consists of a number of JSPs, servlets and bean classes, > > The package structure looks like this > > /tomcat/tutorialbeans > | > --- > | | > WEB-INF JSPs(.jsp files) > | > >| | > web.xml(file) classes(dir) >| > tutorialbeans >| > tb(dir) >| > > || > classes(src and class files) tbbeans(dir) > | > - > | | > classes(files)tb2(dir) > | > classes(files) > > > > Initially with tomcat 4.0 it was possible to have all the class > files(servlets and beans) in one directory, namely WEB-INF/classes, > however trying to run the exact same application with tomcat 4.1.x > results in compilation errors. > It seems 4.1.x needs explicitly stipulated packages in order to work. > > I've had to devise the above package structure to get the application to > run under 4.1.x > > QUESTION: > Is there any workaround or other way to get tomcat 4.1.xx to run the > application with all classes in one directory, be it the default package > or explicitly specified? > > I've read about this problem, but not to the extent that a solution or > workaround or has been presented. > > Any input is appreciated, > kind regards, > Luke > > -- > > "when my computer smiles, I'm happy" > ===.~ ~, > Luke Vanderfluit |'/'] > Mobile: 0421 276 282\~/` > > > - > 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]
RE: tomcat won't read classes unless in explicit packages
http://tomcatfaq.sourceforge.net/classnotfound.html Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Luke Vanderfluit [mailto:[EMAIL PROTECTED] >Sent: Sunday, September 21, 2003 11:47 PM >To: Tomcat Users List >Subject: tomcat won't read classes unless in explicit packages > >Hi, > >Does anyone have a solution or workaround for the following problem. > >I'm running an application under /tomcat/webapps. The application >consists of a number of JSPs, servlets and bean classes, > >The package structure looks like this > >/tomcat/tutorialbeans > | > --- > | | > WEB-INF JSPs(.jsp files) > | > > | | >web.xml(file) classes(dir) > | > tutorialbeans > | > tb(dir) > | > >|| > classes(src and class files) tbbeans(dir) > | > - > | | > classes(files)tb2(dir) > | > classes(files) > > > >Initially with tomcat 4.0 it was possible to have all the class >files(servlets and beans) in one directory, namely WEB-INF/classes, >however trying to run the exact same application with tomcat 4.1.x >results in compilation errors. >It seems 4.1.x needs explicitly stipulated packages in order to work. > >I've had to devise the above package structure to get the application to >run under 4.1.x > >QUESTION: >Is there any workaround or other way to get tomcat 4.1.xx to run the >application with all classes in one directory, be it the default package >or explicitly specified? > >I've read about this problem, but not to the extent that a solution or >workaround or has been presented. > >Any input is appreciated, >kind regards, >Luke > >-- > >"when my computer smiles, I'm happy" >===.~ ~, >Luke Vanderfluit |'/'] >Mobile: 0421 276 282\~/` > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat won't read classes unless in explicit packages
Hi, Does anyone have a solution or workaround for the following problem. I'm running an application under /tomcat/webapps. The application consists of a number of JSPs, servlets and bean classes, The package structure looks like this /tomcat/tutorialbeans | --- | | WEB-INF JSPs(.jsp files) | | | web.xml(file) classes(dir) | tutorialbeans | tb(dir) | || classes(src and class files) tbbeans(dir) | - | | classes(files)tb2(dir) | classes(files) Initially with tomcat 4.0 it was possible to have all the class files(servlets and beans) in one directory, namely WEB-INF/classes, however trying to run the exact same application with tomcat 4.1.x results in compilation errors. It seems 4.1.x needs explicitly stipulated packages in order to work. I've had to devise the above package structure to get the application to run under 4.1.x QUESTION: Is there any workaround or other way to get tomcat 4.1.xx to run the application with all classes in one directory, be it the default package or explicitly specified? I've read about this problem, but not to the extent that a solution or workaround or has been presented. Any input is appreciated, kind regards, Luke -- "when my computer smiles, I'm happy" ===.~ ~, Luke Vanderfluit |'/'] Mobile: 0421 276 282\~/` - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]