I thought I'm doing something very simple, but my deployment doesn't work.
I build a ROOT.war with a demo JAX-RS application.
I unpacked a fresh apache-tomee-1.7.1-plus.tar.gz and deleted all dirs and
files from webapps/.
When I drop by ROOT.war into webapps/ and start tomEE all things go fine.
The application gets deployed and everything is working.
But, what I really want to do is to have my application outside of the tomEE
installation.
What I did:
* Deleted all dirs and files from webapps/
* Put a ROOT.xml file into conf/Catalina/localhost
<Context
docBase="/opt/app/myapp/tomcat/webapps"
path=""
reloadable="true"
/>
* Copied by ROOT.war into /opt/app/myapp/tomcat/webapps
When I start tomEE I see the following errors in catalina.out:
Nov 12, 2014 10:31:58 AM
org.apache.openejb.observer.ObserverManager$MethodInvocation invoke
SCHWERWIEGEND: error invoking
org.apache.tomee.webservices.TomeeJaxRsService@6783e43b
org.apache.openejb.server.rest.OpenEJBRestRuntimeException: can't create
class .<myPackage>MyService
at
org.apache.openejb.server.rest.RESTService.afterApplicationCreated(RESTService.java:155)
at
org.apache.tomee.webservices.TomeeJaxRsService.afterApplicationCreated(TomeeJaxRsService.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
(...)
Caused by: java.lang.ClassNotFoundException: <myPackage>MyService
at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:166)
at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:79)
at
org.apache.openejb.server.rest.RESTService.afterApplicationCreated(RESTService.java:145)
What is wrong? Why the class loading does not work?
Thanks a lot!
SKR
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/tomEE-does-not-deploy-applications-outside-of-webapps-dir-ClassNotFoundException-tp4672849.html
Sent from the TomEE Users mailing list archive at Nabble.com.