Shymon, I'm not sure what the solution to your problem is going to be. The reason why things worked in the original setup is that when you specify archiveClasses to false, when the app is deployed in Glassfish, it's deployed as an exploded war; thus, when you update the class files, T5 is able to automatically reload them.
Now, when you add your library in a module, it doesn't make much sense to have it not be in a jar (hence, there is no "archiveClasses" option for that). T5 doesn't does not do live reloading of the contents of the jar file, and because java caches the index of the jar file, when you redeploy, you get the exception. Do you really have to restart tomcat or can you get away w/ just redeploying the app to Tomcat ? Maybe one of the more experienced folks on the list can chime in on how best to handle the development workflow with a module that's still under development. Cheers, Alex Kotchnev On Sun, Oct 26, 2008 at 5:32 PM, shymon <[EMAIL PROTECTED]> wrote: > > > > akochnev wrote: > > > > Shymon, > > I think your issue with the missing jar entry might have to do with > how > > Maven deploys the war.... > > In the meantime, try switching the archiveClasses option to false (by > > default it's true). > > > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-war-plugin</artifactId> > > <configuration> > > <archiveClasses>*false*</archiveClasses> > > </configuration> > > </plugin> > > > > Ok, setting archiveClasses to false helped, but now I have very similiar > problem. > I created tapestry components library (jar file as maven project). Main app > depends > on this library which is still under developement. When I change something > in library, > rebuild it, and try to run main app I get exception: > > java.lang.RuntimeException: Exception loading module(s) from manifest > > jar:file:/P:/myapp/src/myapp/target/myapp/WEB-INF/lib/t5-nrs-components-1.0-SNAPSHOT.jar!/META-INF/MANIFEST.MF: > JAR entry META-INF/MANIFEST.MF not found in > > P:\myapp\src\myapp\target\myapp\WEB-INF\lib\t5-nrs-components-1.0-SNAPSHOT.jar > > then I have to restart tomcat to run app. > > maven-jar-plugin doesn't have <archiveClasses> option right? > How can I resolve this problem? > > shymon > -- > View this message in context: > http://www.nabble.com/Tapestry-5.0.15%2C-NetBeans-6.1-and-Hibernate-ClassNotFound-exception-tp19757952p20178222.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >