Enterprise application setup

So, I am setting up my first Enterprise Application project, and I have some problems with it, and I think this is some kind of configuration that I do not know about.

I have the following structure in my project:

  • Application
  • Application-EJB
  • Application of war

The application contains two others. in my ejb I have some model classes and some persistence with some simple SQLite. In my warfare, I only have index.jsp and two classes of servlets. In these servlet classes, I'm trying to instantiate an object from EJB. When compiling, this is fine, but when I try to run, I get java.lang.ClassNotFoundException .

When I try to start the application, the Glassfish server reports the following:

 INFO: visiting unvisited references INFO: visiting unvisited references SEVERE: Class [ Lbr/edu/horario/persistence/DisciplinaManager; ] not found. Error while loading [ class br.edu.horario.servlets.disciplinaServlet ] INFO: visiting unvisited references INFO: Loading application [horarioApplication#horarioApplication-war.war] at [horarioApplication-war] INFO: horarioApplication foi implantado com sucesso em 322 milissegundos. WARNING: Context path from ServletContext: /horarioApplication-war differs from path from bundle: horarioApplication-war WARNING: StandardWrapperValve[disciplinaServlet]: Servlet.service() for servlet disciplinaServlet threw exception java.lang.NoClassDefFoundError: br/edu/horario/persistence/DisciplinaManager at br.edu.horario.servlets.disciplinaServlet.processRequest(disciplinaServlet.java:50) at br.edu.horario.servlets.disciplinaServlet.doGet(disciplinaServlet.java:74) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188) at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191) at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168) at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.ClassNotFoundException: br.edu.horario.persistence.DisciplinaManager at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1761) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1611) ... 31 more 

Thanks for the help!

0
java netbeans ejb war
source share

No one has answered this question yet.

See similar questions:

8
the meaning of this glassfish warning: the context path is different from the beam

or similar:

6
Why is EJB NULL?
2
Why am I getting an EJB exception java.rmi.MarshalException: CORBA MARSHAL exception?
one
JSP replay after message to servlet
0
Xml parsing DocumentBuilder
0
I get java.io.FileNotFoundException even though the file exists. Java
0
java.lang.ClassNotFoundException: org.springframework.beans.factory.generic.GenericBeanFactoryAccessor
0
Unable to open application module & # 8594; Error calling javac. Requires full JDK (not just JRE)
0
glass fish will not be deployed with a database

All Articles