0

Maven Generated war file not working in tomcat

asked 2015-09-21 12:03:16 +0800

aliabbas gravatar image aliabbas
1 1

Hi, I have generated war file using eclipse maven using "clean install" I am deployed this file in tomcat but it says 404 Error,

I dont know what's behind this , can you tell me proper solution to generate war

Thanks

delete flag offensive retag edit

Comments

please post the server log file or application log file where we can see the startup error. Jetty isn't a real server so problems can occur on tomcat while it work on jetty.

chillworld ( 2015-09-21 13:17:17 +0800 )edit

as chillworld pointed out, you need to look at your tomcat logs (catalina.out and localhost log) You probably have your project configured wrong. If it helps look at my web project (war) config stuff here https://github.com/rickcr/mybatis-spring-zk-multimodule (look at the web module)

rickcr ( 2015-09-21 15:09:18 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-09-21 13:11:08 +0800

Darksu gravatar image Darksu
1991 1 4

Hello aliabbas,

For starters please find an interesting article regarding deployment of maven based war file to tomcat:

http://www.mkyong.com/maven/how-to-deploy-maven-based-war-file-to-tomcat/

Furthermore please find below a similar post:

http://stackoverflow.com/questions/29204380/request-resource-is-not-found-404-error-while-running-maven-project-on-tomcat-in

Finally if the problem still exists, please upload the error stack trace, and the configuration files.

Best Regards,

Darksu

link publish delete flag offensive edit

Comments

That article is concerning using the Tomcat plugin to deploy from maven. The OP just mentioned that he "deployed" to maven. I'm guessing he means a manual deploy. Difficult to tell.

rickcr ( 2015-09-21 15:05:22 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-09-21 12:03:16 +0800

Seen: 39 times

Last updated: Sep 21 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More