> You might want to make sure that your servlet container will actually load > the JAR files if you do this. The spec only requires that JAR files > directly in WEB-INF/lib be loaded, not from subdirectories. You are right. But I would put the jars at directory WEB-INF directory, and set web.xml to fit for the matter.
> Just out of curiosity, why do you want to do this? Doing this seems > likely > make loading your classes a little bit slower. I just make the jars more clearly. Others can easily understand which lay/part of application some jar files are belong to. May I think too much? a cup of Java, cheers! Sha Jiang Craig McClanahan-3 wrote: > > On 11/5/06, jiangshachina <[EMAIL PROTECTED]> wrote: >> >> >> Generally, in Web application project, the Java class files would be put >> into >> WEB-INF/classes folder. > > > Just out of curiosity, why do you want to do this? Doing this seems > likely > make loading your classes a little bit slower. > > Now, I want the classes to be archived and putted into WEB-INF/lib folder. >> And the classes should be classified and putted into different >> sub-directories under WEB-INF/lib respectively. >> For example, WEB-INF/lib/data/(some jars related to Database operations), >> WEB-INF/lib/user/(some jars related to user management), etc. > > > You might want to make sure that your servlet container will actually load > the JAR files if you do this. The spec only requires that JAR files > directly in WEB-INF/lib be loaded, not from subdirectories. > > a cup of Java, cheers! >> Sha Jiang > > > Craig > > -- View this message in context: http://www.nabble.com/no-classes%2C-but-lib--tf2577029s177.html#a7193406 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
