title: Deploying WAR in TomEE
body: <p>I have my WAR inside webapps of TomEE.
  After delpoying, when I try to run the application, it says it is not able to see the classes that are present under <strong>Project/WEB-INF/classes</strong>.</p>
  
  <p>I also tried packaging those classes into a separate jar and loaded that jar under <strong>WEB-INF/lib</strong>.</p>
  
  <p>I am not sure why it is not able to see the classes that are undeployed under WEB-INF/classes.</p>
  
  <p>Could someone please help me with this ? </p>
  
  <p>EDIT 1 :</p>
  
  <p>Error log :</p>
  
  <pre><code>java.lang.NoClassDefFoundError: Could not initialize class com.app.auth.AuthenticationService
      com.app.auth.AuthenticationInit.doInit(AuthenticationInit.java:14)
      org.zkoss.zk.ui.metainfo.InitiatorInfo.doInit(InitiatorInfo.java:148)
      org.zkoss.zk.ui.metainfo.InitiatorInfo.newInitiator(InitiatorInfo.java:143)
      org.zkoss.zk.ui.metainfo.PageDefinition.doInit(PageDefinition.java:396)
      org.zkoss.zk.ui.impl.Initiators.doInit(Initiators.java:58)
      org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:378)
      org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:312)
      org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:215)
      org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:136)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  </code></pre>
  
  <p>EDIT 2: How I created the WAR file :</p>
  
  <p>I created the WAR file from <strong>eclipse</strong> by right clicking the project and selecting <strong>Export</strong> as WAR file.</p>
  
  <p><img src="https://i.stack.imgur.com/5EYId.jpg" alt="In the attached image, I deselected Target runtime"></p>