*
The moose likes Other Application Frameworks and the fly likes maven2 building a spring web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "maven2 building a spring web application" Watch "maven2 building a spring web application" New topic
Author

maven2 building a spring web application

Ricardo Estafan
Ranch Hand

Joined: Mar 29, 2004
Posts: 84
Hello all,

I have a web application in spring which initially was built using ant.
I now changed it to be built using maven.

However the problem is I extracted all the classes to be a separate module to be built as a jar file. Originally these class- and configuration files could be found under WEB-INF/classes. These classes are preliminary Spring classes and the application context file is also in there. When I build the webapp which has this jar file as a dependency, the application context file is not to be found under the WEB-INF folder anymore but is part of the jar file.

How can I reference the application context file if it resides in a jar file within the WEB-INF/lib folder? Or do you guys advise not to extract all logic as a separate jar? (NOTE: I do intend to use the same logic in more than 1 application)

Thanks for the help!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: maven2 building a spring web application
 
Similar Threads
Unable to upload file using apache commons file upload 1.2
Where to place?
Deployment error NoClassDefFoundError: org.hibernate.cfg.Configuration on Oracle 11g App Server
META-INF directory
Where to put the spring config for my ejb jar?