Reputation: 42672
I built my JavaEE project & got my-service.war file. I want to deploy it to TomEE server.
I have successfully installed TomEE (I can start & stop TomEE server successfully).
I copy my-service.war to
<TomEE_Home>/webapps/
Then, I start TomeEE server.
I open my browser, and put URL http://localhost:8080/my-service
But I get HTTP Status 404 page.
(Then, I checked under /webapps/ that, my-server.war has been unzipped by server, because I see my-server folder there.)
What do I miss for deploying my WAR to TomEE server?
=====server logs =====
I got checked /logs/catalina.2016-08-16.log , I see these errors:
webapps/my-service/WEB-INF/classes/ looking all classes to find CDI beans, maybe think to add a beans.xml if not there or add the jar to exclusions.list
...
org.apache.catalina.core.StandardContext.startInternal Context [/my-service] startup failed due to previous errors
16-Aug-2016 13:51:46.311 INFO [localhost-startStop-1] org.apache.openejb.assembler.classic.Assembler.destroyApplication Undeploying app: /Users/xichen/Dev-tools/apache-tomee-webprofile-7.0.1/webapps/my-service
Upvotes: 0
Views: 1835
Reputation: 3422
You should check logs/catalina.date.log and logs/localhost..log files.
If you are under unix execute:
grep SEVERE logs/*
to get the errors.
The real error associated with
Context [/my-service] startup failed due to previous errors
Is before in the logs
Upvotes: 1