[nbj2ee] Question related to Deployment of An Enterprise Application

  • From: "feritoth" < >
  • To:
  • Subject: [nbj2ee] Question related to Deployment of An Enterprise Application
  • Date: Sat, 01 Dec 2012 16:37:54 -0500

Hi everyone!
I have created an Enterprise Application involving both an EJB and a war 
component according to the following tutorial posted in the Attachment File. 
When I try to build the application I get that it is built successfully, 
however, during deployment of the main application I get the following 
problem:
java.lang.RuntimeException: EJB Container initialization error at 
org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:242)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:305)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:108)
        at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186)
        at 
org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:264)
        at 
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:460)
        at 
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
        at 
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
        at 
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:348)
        at 
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
        at 
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
        at 
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:95)
        at 
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291)
        at 
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259)
        at 
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461)
        at 
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212)
        at 
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
        at 
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
        at 
com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354)
        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:722)
Caused by: java.lang.NoClassDefFoundError: jpa/entities/Dvd
        at jpa.session.DvdFacade.<init>(DvdFacade.java:27)
        at 
jpa.session.__EJB31_Generated__DvdFacade__Intf____Bean__.<init>(Unknown 
Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
        at java.lang.Class.newInstance0(Class.java:372)
        at java.lang.Class.newInstance(Class.java:325)
        at 
com.sun.ejb.containers.BaseContainer.instantiateOptionalEJBLocalBusinessObjectImpl(BaseContainer.java:3887)
        at 
com.sun.ejb.containers.StatelessSessionContainer.initializeHome(StatelessSessionContainer.java:253)
        at 
com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:167)
        at 
org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:230)
        ... 33 more
Caused by: java.lang.ClassNotFoundException: jpa.entities.Dvd
        at 
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
        at 
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
        ... 45 more

Can anyone tell me what could be a possible solution here so as to allow a 
correct deployment of the application? Thanks,
                    Feri




Attachments: 
http://forums.netbeans.org//files/tutorial_ejb_121.rar



[nbj2ee] Question related to Deployment of An Enterprise Application

feritoth 12/01/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 25 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150226.965aeb8). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close