On Wed, Aug 1, 2012 at 4:38 PM, bshibin <shibi...@nestgroup.net> wrote:
> Hi,
>   I am new to maven...
> I created java spring hibernate project.. and i kept all .java files in this
> path
> Myapplication\src\main\java\com\mycompany
> and create resources, webapp folders in Myapplication\src\main
>  and inside resources i created 3 folders hibernate, properties and spring.
> in hibernate i kept all .hbm.xml files, in properties all properties files,
> and in spring again i created 3 folders beans, config and database.
> in beans i kept dispatch-servlet.xml  and in database i kept
> hibernate.cfg.xml.
>     in webapp i created WebINF\pages inside WebINF i kept web.xml and inside
> the pages folder i kept all jsp pages...
>
> After this using the command mvn clean install -U -U and it shows BUILD
> SUCCESS.
> then using this command mvn war : war. for creating the war.
> then i deployed the war file in localhost 8080. then I got the index page of
> my application.. then after clicking any link on the index page it shows 500
> error..
> Im attaching my pom.xml and the error log from the tomcat also :)

Please post this to the Users list at us...@maven.apache.org
This list is for developing Maven rather than using it.

You might also benefit from reading the freely available books at
http://maven.apache.org/articles.html
Paying particular attention to the sections on Maven builds one
artifact per project and how war projects can be setup - you shouldn't
need to run "mvn war:war".
You should also try building your war by hand and make sure that works.
Then you can compare what maven is building with what you know is
working and determine how to fix that.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to