2 Replies Latest reply: Dec 28, 2012 3:04 AM by 861947 RSS

    Problems with my Enterprise Application

    861947
      Hi,
      i just tried to make a simple application to try J2EE.

      I created the following "objects":

      -> 1 Servlet (code: http://nopaste.info/42c8d821ef.html)
      -> 1 pagina html
      -> 1 session bean (code: http://nopaste.info/87b315c4ea.html)
      -> 1 entity bean (code: http://nopaste.info/bd6cbd3055.html)

      My application should try to login using entity bean.

      I created entity bean using wizard on netbeans.
      When I try my application, it works fine until to try to connect with entity bean.

      The issue is the following:

      [#|2012-12-27T18:04:35.059+0100|WARNING|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=23;_ThreadName=Thread-3;|StandardWrapperValve[NewServletProva]: PWC1406: Servlet.service() for servlet NewServletProva threw exception
      java.lang.NoClassDefFoundError: session/LoginFacadeLocal
           at NewServletProva.doGet(NewServletProva.java:85)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
           at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
           at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
           at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
           at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
           at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
           at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
           at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
           at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
           at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
           at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
           at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
           at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
           at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
           at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
           at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
           at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
           at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
           at java.lang.Thread.run(Thread.java:680)
      Caused by: java.lang.ClassNotFoundException: session.LoginFacadeLocal
           at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
           at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
           ... 27 more
      |#]

      How can I check to solve it?
      Thanks alot!

      Edited by: 858944 on 27-dic-2012 11.26