glassfish
  1. glassfish
  2. GLASSFISH-11014

Not able to bind objects of types loaded by application class loader

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: V3
    • Fix Version/s: V3
    • Component/s: naming
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      11,014

      Description

      For test case of this bug, see issue 9894. Comments taken from issue 9894 :

      ------- Additional comments from ss141213 Tue Nov 10 12:54:23 +0000 2009 -------

      Jan,

      OSGiObjectInputOutputStreamFactoryImpl is used because server is running in OSGi
      environment. If non-OSGi factory were used, during desrialization, we won't find
      classes that come from OSGi bundles.

      I will try to come up with a fix. I know what's happening. When
      OSGiObjectInputStream encounters a class that's not loaded by any OSGi bundle,
      it calls super.resolveClass(), which falls back to using something called
      "latestUserDefinedClassLoader," which is defined here:
      http://java.sun.com/javase/6/docs/api/java/io/ObjectInputStream.html#resolveClass(java.io.ObjectStreamClass)

      We need to make sure that we fall back to TCL.

      ------- Additional comments from jluehe Mon Nov 9 16:37:27 +0000 2009 -------

      Sahoo, I'm reassigning this to you (please reassign as necessary).

      Not sure why NamingUtilsImpl ends up using
      OSGiObjectInputOutputStreamFactoryImpl instead of
      NonOSGiObjectInputOutputStreamFactoryImpl: Had it used the latter, it would have
      found org.hibernate.impl.SessionFactoryImpl, which is bundled with the app. See
      above for additional analysis.

      ------- Additional comments from jluehe Mon Nov 9 16:31:05 +0000 2009 -------

      Created an attachment (id=3820)
      Stacktrace with b71

      ------- Additional comments from jluehe Thu Nov 5 22:29:08 +0000 2009 -------

      Some more findings:

      The class that fails to be found during deserialization
      (org.hibernate.impl.SessionFactoryImpl) is present in the app's
      WEB-INF/lib/hibernate-core-3.3.1.GA.jar

      NamingUtilsImpl#makeCopyOfObject has this code:

      final ObjectInputStream ois = getFactory().createObjectInputStream(bis);
      obj = AccessController.doPrivileged(new PrivilegedExceptionAction() {
      public Object run() throws IOException, ClassNotFoundException

      { return ois.readObject(); }

      });

      getFactory() returns one of two types of factories:
      NonOSGiObjectInputOutputStreamFactoryImpl or OSGiObjectInputOutputStreamFactoryImpl.

      Note that the two types of factories differ in the way their
      createObjectInputStream is implemented: Only
      NonOSGiObjectInputOutputStreamFactoryImpl considers the Thread's context
      classloader and passes it to ObjectInputStreamWithLoader, where it is used by
      resolveClass.

      Here are the two impls of createObjectInputStream side by side:

      public class NonOSGiObjectInputOutputStreamFactoryImpl
      implements ObjectInputOutputStreamFactory
      {
      public ObjectInputStream createObjectInputStream(InputStream in)
      throws IOException

      { ClassLoader loader = Thread.currentThread().getContextClassLoader(); return new ObjectInputStreamWithLoader(in, loader); }

      public class OSGiObjectInputOutputStreamFactoryImpl
      implements ObjectInputOutputStreamFactory

      public ObjectInputStream createObjectInputStream(InputStream in)
      throws IOException

      { return new OSGiObjectInputStream(in); }

      From the stacktrace, you can see that NamingUtilsImpl ends up using
      OSGiObjectInputOutputStreamFactoryImpl, which is Thread context classloader
      agnostic and therefore fails to find org.hibernate.impl.SessionFactoryImpl,
      which is bundled with the app:

      at
      com.sun.enterprise.naming.util.OSGiObjectInputOutputStreamFactoryImpl$OSGiObjectInputStream.resolveClass(OSGiObjectInputOutputStreamFactoryImpl.java:99)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      at com.sun.enterprise.naming.util.NamingUtilsImpl$1.run(NamingUtilsImpl.java:97)

      If NamingUtilsImpl had used NonOSGiObjectInputOutputStreamFactoryImpl instead,
      it would have found org.hibernate.impl.SessionFactoryImpl.

      Need to investigate what determines the type of factory returned by getFactory() ...

        Issue Links

          Activity

          Hide
          Sanjeeb Sahoo added a comment -

          ss141213@Sahoo:/space/ss141213/WS/gf/v3$ svn commit -m "Issue 11014: Use
          ObjectInputStreamWithLoader for classes not loaded from any bundles" !$
          svn commit -m "Issue 11014: Use ObjectInputStreamWithLoader for classes not
          loaded from any bundles" common/glassfish-naming/
          Sending
          common/glassfish-naming/src/main/java/com/sun/enterprise/naming/util/OSGiObjectInputOutputStreamFactoryImpl.java
          Transmitting file data .
          Committed revision 34329.

          Show
          Sanjeeb Sahoo added a comment - ss141213@Sahoo:/space/ss141213/WS/gf/v3$ svn commit -m "Issue 11014: Use ObjectInputStreamWithLoader for classes not loaded from any bundles" !$ svn commit -m "Issue 11014: Use ObjectInputStreamWithLoader for classes not loaded from any bundles" common/glassfish-naming/ Sending common/glassfish-naming/src/main/java/com/sun/enterprise/naming/util/OSGiObjectInputOutputStreamFactoryImpl.java Transmitting file data . Committed revision 34329.
          Hide
          xmaniac added a comment -

          Latest available nightly (glassfish-v3-web-b73-11_12_2009.zip) throws this
          trace:

          INFO: Launching GlassFish on Felix platform
          Welcome to Felix
          ================

          #]
          #]
          #]
          #]
          java.security.PrivilegedActionException: java.lang.ClassNotFoundException:
          org.hibernate.impl.SessionFactoryImpl
          at java.security.AccessController.doPrivileged(Native Method)
          at
          com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl.
          java:95)
          at
          com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.rebind(LocalSerial
          ContextProviderImpl.java:95)
          at
          com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:619)
          at javax.naming.InitialContext.rebind(InitialContext.java:408)
          at javax.naming.InitialContext.rebind(InitialContext.java:408)
          at org.hibernate.util.NamingHelper.bind(NamingHelper.java:72)
          at
          org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectF
          actory.java:113)
          at
          org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:338)
          at
          org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
          at
          org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfigur
          ation.java:867)
          at
          org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.
          java:669)
          at
          org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(Hiber
          natePersistence.java:132)
          at
          org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeE
          ntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224)
          at
          org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(
          AbstractEntityManagerFactoryBean.java:291)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.inv
          okeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini
          tializeBean(AbstractAutowireCapableBeanFactory.java:1335)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC
          reateBean(AbstractAutowireCapableBeanFactory.java:473)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r
          un(AbstractAutowireCapableBeanFactory.java:409)
          at java.security.AccessController.doPrivileged(Native Method)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
          ateBean(AbstractAutowireCapableBeanFactory.java:380)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
          ctBeanFactory.java:264)
          at
          org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
          ton(DefaultSingletonBeanRegistry.java:222)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract
          BeanFactory.java:261)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:185)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:164)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findD
          efaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:507)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findE
          ntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:473)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi
          stenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:5
          99)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi
          stenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:57
          0)
          at
          org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.i
          nject(InjectionMetadata.java:180)
          at
          org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(Inje
          ctionMetadata.java:105)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postP
          rocessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:308)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop
          ulateBean(AbstractAutowireCapableBeanFactory.java:959)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC
          reateBean(AbstractAutowireCapableBeanFactory.java:472)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r
          un(AbstractAutowireCapableBeanFactory.java:409)
          at java.security.AccessController.doPrivileged(Native Method)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
          ateBean(AbstractAutowireCapableBeanFactory.java:380)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
          ctBeanFactory.java:264)
          at
          org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
          ton(DefaultSingletonBeanRegistry.java:222)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract
          BeanFactory.java:261)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:185)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:164)
          at
          org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti
          ateSingletons(DefaultListableBeanFactory.java:429)
          at
          org.springframework.context.support.AbstractApplicationContext.finishBeanFactory
          Initialization(AbstractApplicationContext.java:728)
          at
          org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA
          pplicationContext.java:380)
          at
          org.springframework.web.context.ContextLoader.createWebApplicationContext(Contex
          tLoader.java:255)
          at
          org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextL
          oader.java:199)
          at
          org.springframework.web.context.ContextLoaderListener.contextInitialized(Context
          LoaderListener.java:45)
          at
          org.internna.iwebmvc.spring.jee.IWebMvcContextLoaderListener.contextInitialized(
          IWebMvcContextLoaderListener.java:54)
          at
          org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.ja
          va:4591)
          at
          com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:539)
          at
          org.apache.catalina.core.StandardContext.start(StandardContext.java:5193)
          at com.sun.enterprise.web.WebModule.start(WebModule.java:503)
          at
          org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
          at
          org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
          at
          com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)
          at
          com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1604)
          at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
          at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
          at
          org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:337)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:183)
          at
          org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3
          05)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3
          20)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1
          176)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:
          83)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1235)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1224)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201)
          at
          com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
          at
          com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
          at
          com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java
          :245)
          at
          com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789)
          at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697)
          at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952)
          at
          com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16
          6)
          at
          com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.
          java:135)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
          at
          com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
          at
          com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53
          )
          at
          com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
          at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33
          0)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
          at java.lang.Thread.run(Thread.java:619)
          Caused by: java.lang.ClassNotFoundException:
          org.hibernate.impl.SessionFactoryImpl
          at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at
          org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1484)
          at
          org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl
          .java:695)
          at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
          at
          org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.jav
          a:1656)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:247)
          at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
          at
          com.sun.enterprise.naming.util.OSGiObjectInputOutputStreamFactoryImpl$OSGiObject
          InputStream.resolveClass(OSGiObjectInputOutputStreamFactoryImpl.java:99)
          at
          java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
          at
          java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
          at
          com.sun.enterprise.naming.util.NamingUtilsImpl$1.run(NamingUtilsImpl.java:97)
          ... 91 more
          #]
          java.security.PrivilegedActionException: java.lang.ClassNotFoundException:
          org.hibernate.impl.SessionFactoryImpl
          at java.security.AccessController.doPrivileged(Native Method)
          at
          com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl.
          java:95)
          at
          com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.rebind(LocalSerial
          ContextProviderImpl.java:95)
          at
          com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:619)
          at
          com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:635)
          at javax.naming.InitialContext.rebind(InitialContext.java:412)
          at javax.naming.InitialContext.rebind(InitialContext.java:412)
          at org.hibernate.util.NamingHelper.bind(NamingHelper.java:97)
          at
          org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectF
          actory.java:113)
          at
          org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:338)
          at
          org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
          at
          org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfigur
          ation.java:867)
          at
          org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.
          java:669)
          at
          org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(Hiber
          natePersistence.java:132)
          at
          org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeE
          ntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224)
          at
          org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(
          AbstractEntityManagerFactoryBean.java:291)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.inv
          okeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini
          tializeBean(AbstractAutowireCapableBeanFactory.java:1335)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC
          reateBean(AbstractAutowireCapableBeanFactory.java:473)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r
          un(AbstractAutowireCapableBeanFactory.java:409)
          at java.security.AccessController.doPrivileged(Native Method)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
          ateBean(AbstractAutowireCapableBeanFactory.java:380)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
          ctBeanFactory.java:264)
          at
          org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
          ton(DefaultSingletonBeanRegistry.java:222)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract
          BeanFactory.java:261)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:185)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:164)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findD
          efaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:507)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findE
          ntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:473)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi
          stenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:5
          99)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi
          stenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:57
          0)
          at
          org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.i
          nject(InjectionMetadata.java:180)
          at
          org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(Inje
          ctionMetadata.java:105)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postP
          rocessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:308)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop
          ulateBean(AbstractAutowireCapableBeanFactory.java:959)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC
          reateBean(AbstractAutowireCapableBeanFactory.java:472)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r
          un(AbstractAutowireCapableBeanFactory.java:409)
          at java.security.AccessController.doPrivileged(Native Method)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
          ateBean(AbstractAutowireCapableBeanFactory.java:380)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
          ctBeanFactory.java:264)
          at
          org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
          ton(DefaultSingletonBeanRegistry.java:222)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract
          BeanFactory.java:261)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:185)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:164)
          at
          org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti
          ateSingletons(DefaultListableBeanFactory.java:429)
          at
          org.springframework.context.support.AbstractApplicationContext.finishBeanFactory
          Initialization(AbstractApplicationContext.java:728)
          at
          org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA
          pplicationContext.java:380)
          at
          org.springframework.web.context.ContextLoader.createWebApplicationContext(Contex
          tLoader.java:255)
          at
          org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextL
          oader.java:199)
          at
          org.springframework.web.context.ContextLoaderListener.contextInitialized(Context
          LoaderListener.java:45)
          at
          org.internna.iwebmvc.spring.jee.IWebMvcContextLoaderListener.contextInitialized(
          IWebMvcContextLoaderListener.java:54)
          at
          org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.ja
          va:4591)
          at
          com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:539)
          at
          org.apache.catalina.core.StandardContext.start(StandardContext.java:5193)
          at com.sun.enterprise.web.WebModule.start(WebModule.java:503)
          at
          org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
          at
          org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
          at
          com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)
          at
          com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1604)
          at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
          at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
          at
          org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:337)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:183)
          at
          org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3
          05)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3
          20)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1
          176)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:
          83)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1235)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1224)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201)
          at
          com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
          at
          com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
          at
          com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java
          :245)
          at
          com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789)
          at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697)
          at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952)
          at
          com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16
          6)
          at
          com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.
          java:135)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
          at
          com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
          at
          com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53
          )
          at
          com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
          at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33
          0)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
          at java.lang.Thread.run(Thread.java:619)
          Caused by: java.lang.ClassNotFoundException:
          org.hibernate.impl.SessionFactoryImpl
          at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at
          org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1484)
          at
          org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl
          .java:695)
          at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
          at
          org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.jav
          a:1656)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:247)
          at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
          at
          com.sun.enterprise.naming.util.OSGiObjectInputOutputStreamFactoryImpl$OSGiObject
          InputStream.resolveClass(OSGiObjectInputOutputStreamFactoryImpl.java:99)
          at
          java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
          at
          java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
          at
          com.sun.enterprise.naming.util.NamingUtilsImpl$1.run(NamingUtilsImpl.java:97)
          ... 92 more
          #]
          org.springframework.beans.factory.BeanCreationException: Error creating bean
          with name 'baseDAO': Injection of persistence fields failed; nested exception is
          org.springframework.beans.factory.BeanCreationException: Error creating bean
          with name 'entityManagerFactory' defined in URL
          [jar:file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc-
          model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed;
          nested exception is java.lang.RuntimeException: Cant copy Serializable object:
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postP
          rocessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:311)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop
          ulateBean(AbstractAutowireCapableBeanFactory.java:959)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC
          reateBean(AbstractAutowireCapableBeanFactory.java:472)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r
          un(AbstractAutowireCapableBeanFactory.java:409)
          at java.security.AccessController.doPrivileged(Native Method)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
          ateBean(AbstractAutowireCapableBeanFactory.java:380)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
          ctBeanFactory.java:264)
          at
          org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
          ton(DefaultSingletonBeanRegistry.java:222)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract
          BeanFactory.java:261)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:185)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:164)
          at
          org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti
          ateSingletons(DefaultListableBeanFactory.java:429)
          at
          org.springframework.context.support.AbstractApplicationContext.finishBeanFactory
          Initialization(AbstractApplicationContext.java:728)
          at
          org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA
          pplicationContext.java:380)
          at
          org.springframework.web.context.ContextLoader.createWebApplicationContext(Contex
          tLoader.java:255)
          at
          org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextL
          oader.java:199)
          at
          org.springframework.web.context.ContextLoaderListener.contextInitialized(Context
          LoaderListener.java:45)
          at
          org.internna.iwebmvc.spring.jee.IWebMvcContextLoaderListener.contextInitialized(
          IWebMvcContextLoaderListener.java:54)
          at
          org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.ja
          va:4591)
          at
          com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:539)
          at
          org.apache.catalina.core.StandardContext.start(StandardContext.java:5193)
          at com.sun.enterprise.web.WebModule.start(WebModule.java:503)
          at
          org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
          at
          org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
          at
          com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)
          at
          com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1604)
          at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
          at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
          at
          org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:337)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:183)
          at
          org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3
          05)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3
          20)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1
          176)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:
          83)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1235)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1224)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201)
          at
          com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
          at
          com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
          at
          com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java
          :245)
          at
          com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789)
          at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697)
          at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952)
          at
          com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16
          6)
          at
          com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.
          java:135)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
          at
          com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
          at
          com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53
          )
          at
          com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
          at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33
          0)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
          at java.lang.Thread.run(Thread.java:619)
          Caused by: org.springframework.beans.factory.BeanCreationException: Error
          creating bean with name 'entityManagerFactory' defined in URL
          [jar:file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc-
          model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed;
          nested exception is java.lang.RuntimeException: Cant copy Serializable object:
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini
          tializeBean(AbstractAutowireCapableBeanFactory.java:1338)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC
          reateBean(AbstractAutowireCapableBeanFactory.java:473)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r
          un(AbstractAutowireCapableBeanFactory.java:409)
          at java.security.AccessController.doPrivileged(Native Method)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
          ateBean(AbstractAutowireCapableBeanFactory.java:380)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
          ctBeanFactory.java:264)
          at
          org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
          ton(DefaultSingletonBeanRegistry.java:222)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract
          BeanFactory.java:261)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:185)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:164)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findD
          efaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:507)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findE
          ntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:473)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi
          stenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:5
          99)
          at org.springframework.orm.jpa.su
          #]
          at
          org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.i
          nject(InjectionMetadata.java:180)
          at
          org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(Inje
          ctionMetadata.java:105)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postP
          rocessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:308)
          ... 58 more
          Caused by: java.lang.RuntimeException: Cant copy Serializable object:
          at
          com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl.
          java:106)
          at
          com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.rebind(LocalSerial
          ContextProviderImpl.java:95)
          at
          com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:619)
          at
          com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:635)
          at javax.naming.InitialContext.rebind(InitialContext.java:412)
          at javax.naming.InitialContext.rebind(InitialContext.java:412)
          at org.hibernate.util.NamingHelper.bind(NamingHelper.java:97)
          at
          org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectF
          actory.java:113)
          at
          org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:338)
          at
          org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
          at
          org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfigur
          ation.java:867)
          at
          org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.
          java:669)
          at
          org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(Hiber
          natePersistence.java:132)
          at
          org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeE
          ntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224)
          at
          org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(
          AbstractEntityManagerFactoryBean.java:291)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.inv
          okeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini
          tializeBean(AbstractAutowireCapableBeanFactory.java:1335)
          ... 74 more
          Caused by: java.security.PrivilegedActionException:
          java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryImpl
          at java.security.AccessController.doPrivileged(Native Method)
          at
          com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl.
          java:95)
          ... 90 more
          Caused by: java.lang.ClassNotFoundException:
          org.hibernate.impl.SessionFactoryImpl
          at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at
          org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1484)
          at
          org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl
          .java:695)
          at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
          at
          org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.jav
          a:1656)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:247)
          at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
          at
          com.sun.enterprise.naming.util.OSGiObjectInputOutputStreamFactoryImpl$OSGiObject
          InputStream.resolveClass(OSGiObjectInputOutputStreamFactoryImpl.java:99)
          at
          java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
          at
          java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
          at
          com.sun.enterprise.naming.util.NamingUtilsImpl$1.run(NamingUtilsImpl.java:97)
          ... 92 more
          #]
          org.apache.catalina.LifecycleException: PWC2769: Manager has not yet been
          started
          at
          org.apache.catalina.session.StandardManager.stop(StandardManager.java:892)
          at
          org.apache.catalina.core.StandardContext.stop(StandardContext.java:5383)
          at com.sun.enterprise.web.WebModule.stop(WebModule.java:534)
          at
          org.apache.catalina.core.StandardContext.start(StandardContext.java:5211)
          at com.sun.enterprise.web.WebModule.start(WebModule.java:503)
          at
          org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
          at
          org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
          at
          com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)
          at
          com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1604)
          at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
          at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
          at
          org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:337)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:183)
          at
          org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3
          05)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3
          20)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1
          176)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:
          83)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1235)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1224)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201)
          at
          com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
          at
          com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
          at
          com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java
          :245)
          at
          com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789)
          at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697)
          at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952)
          at
          com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16
          6)
          at
          com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.
          java:135)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
          at
          com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
          at
          com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53
          )
          at
          com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
          at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33
          0)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
          at java.lang.Thread.run(Thread.java:619)
          #]
          org.apache.catalina.LifecycleException:
          org.springframework.beans.factory.BeanCreationException: Error creating bean
          with name 'baseDAO': Injection of persistence fields failed; nested exception is
          org.springframework.beans.factory.BeanCreationException: Error creating bean
          with name 'entityManagerFactory' defined in URL
          [jar:file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc-
          model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed;
          nested exception is java.lang.RuntimeException: Cant copy Serializable object:
          at
          org.apache.catalina.core.StandardContext.start(StandardContext.java:5216)
          at com.sun.enterprise.web.WebModule.start(WebModule.java:503)
          at
          org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
          at
          org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
          at
          com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)
          at
          com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1604)
          at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
          at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
          at
          org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:337)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:183)
          at
          org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3
          05)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3
          20)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1
          176)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:
          83)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1235)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1224)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201)
          at
          com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
          at
          com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
          at
          com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java
          :245)
          at
          com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789)
          at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697)
          at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952)
          at
          com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16
          6)
          at
          com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.
          java:135)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
          at
          com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
          at
          com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53
          )
          at
          com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
          at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33
          0)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
          at java.lang.Thread.run(Thread.java:619)
          Caused by: org.springframework.beans.factory.BeanCreationException: Error
          creating bean with name 'baseDAO': Injection of persistence fields failed;
          nested exception is org.springframework.beans.factory.BeanCreationException:
          Error creating bean with name 'entityManagerFactory' defined in URL
          [jar:file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc-
          model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed;
          nested exception is java.lang.RuntimeException: Cant copy Serializable object:
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postP
          rocessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:311)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop
          ulateBean(AbstractAutowireCapableBeanFactory.java:959)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC
          reateBean(AbstractAutowireCapableBeanFactory.java:472)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r
          un(AbstractAutowireCapableBeanFactory.java:409)
          at java.security.AccessController.doPrivileged(Native Method)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
          ateBean(AbstractAutowireCapableBeanFactory.java:380)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
          ctBeanFactory.java:264)
          at
          org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
          ton(DefaultSingletonBeanRegistry.java:222)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract
          BeanFactory.java:261)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:185)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:164)
          at
          org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti
          ateSingletons(DefaultListableBeanFactory.java:429)
          at
          org.springframework.context.support.AbstractApplicationContext.finishBeanFactory
          Initialization(AbstractApplicationContext.java:728)
          at
          org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA
          pplicationContext.java:380)
          at
          org.springframework.web.context.ContextLoader.createWebApplicationContext(Contex
          tLoader.java:255)
          at
          org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextL
          oader.java:199)
          at
          org.springframework.web.context.ContextLoaderListener.contextInitialized(Context
          LoaderListener.java:45)
          at
          org.internna.iwebmvc.spring.jee.IWebMvcContextLoaderListener.contextInitialized(
          IWebMvcContextLoaderListener.java:54)
          at
          org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.ja
          va:4591)
          at
          com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:539)
          at
          org.apache.catalina.core.StandardContext.start(StandardContext.java:5193)
          ... 38 more
          Caused by: org.springframework.beans.factory.BeanCreationException: Error
          creating bean with name 'entityManagerFactory' defined in URL
          [jar:file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc-
          model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed;
          nested exception is java.lang.RuntimeException: Cant copy Serializable object:
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini
          tializeBean(AbstractAutowireCapableBeanFactory.java:1338)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC
          reateBean(AbstractAutowireCapableBeanFactory.java:473)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r
          un(AbstractAutowireCapableBeanFactory.java:409)
          at java.security.AccessController.doPrivileged(Native Method)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre
          ateBean(AbstractAutowireCapableBeanFactory.java:380)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra
          ctBeanFactory.java:264)
          at
          org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle
          ton(DefaultSingletonBeanRegistry.java:222)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract
          BeanFactory.java:261)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:185)
          at
          org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe
          anFactory.java:164)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findD
          efaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:507)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findE
          ntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:473)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi
          stenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:5
          99)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi
          stenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:57
          0)
          at
          org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.i
          nject(InjectionMetadata.java:180)
          at
          org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(Inje
          ctionMetadata.java:105)
          at
          org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postP
          rocessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:308)
          ... 58 more
          Caused by: java.lang.RuntimeException: Cant copy Serializable object:
          at
          com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl.
          java:106)
          at
          com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.rebind(LocalSerial
          ContextProviderImpl.java:95)
          at
          com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:619)
          at
          com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:635)
          at javax.naming.InitialContext.rebind(InitialContext.java:412)
          at javax.naming.InitialContext.rebind(InitialContext.java:412)
          at org.hibernate.util.NamingHelper.bind(NamingHelper.java:97)
          at
          org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectF
          actory.java:113)
          at
          org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:338)
          at
          org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
          at
          org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfigur
          ation.java:867)
          at
          org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.
          java:669)
          at
          org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(Hiber
          natePersistence.java:132)
          at
          org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeE
          ntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224)
          at
          org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(
          AbstractEntityManagerFactoryBean.java:291)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.inv
          okeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
          at
          org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini
          tializeBean(AbstractAutowireCapableBeanFactory.java:1335)
          ... 74 more
          Caused by: java.security.PrivilegedActionException:
          java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryImpl
          at java.security.AccessController.doPrivileged(Native Method)
          at
          com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl.
          java:95)
          ... 90 more
          Caused by: java.lang.ClassNotFoundException:
          org.hibernate.impl.SessionFactoryImpl
          at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at
          org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1484)
          at
          org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl
          .java:695)
          at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
          at
          org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.jav
          a:1656)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:247)
          at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
          at
          com.sun.enterprise.naming.util.OSGiObjectInputOutputStreamFactoryImpl$OSGiObject
          InputStream.resolveClass(OSGiObjectInputOutputStreamFactoryImpl.java:99)
          at
          java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
          at
          java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
          at
          com.sun.enterprise.naming.util.NamingUtilsImpl$1.run(NamingUtilsImpl.java:97)
          ... 92 more
          #]
          java.lang.IllegalStateException: ContainerBase.addChild: start:
          org.apache.catalina.LifecycleException:
          org.springframework.beans.factory.BeanCreationException: Error creating bean
          with name 'baseDAO': Injection of persistence fields failed; nested exception is
          org.springframework.beans.factory.BeanCreationException: Error creating bean
          with name 'entityManagerFactory' defined in URL
          [jar:file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc-
          model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed;
          nested exception is java.lang.RuntimeException: Cant copy Serializable object:
          at
          org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:932)
          at
          org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
          at
          com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)
          at
          com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1604)
          at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
          at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
          at
          org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:337)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:183)
          at
          org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3
          05)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3
          20)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1
          176)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:
          83)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1235)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1224)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201)
          at
          com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
          at
          com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
          at
          com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java
          :245)
          at
          com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789)
          at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697)
          at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952)
          at
          com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16
          6)
          at
          com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.
          java:135)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
          at
          com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
          at
          com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53
          )
          at
          com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
          at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33
          0)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
          at java.lang.Thread.run(Thread.java:619)
          #]
          java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild:
          start: org.apache.catalina.LifecycleException:
          org.springframework.beans.factory.BeanCreationException: Error creating bean
          with name 'baseDAO': Injection of persistence fields failed; nested exception is
          org.springframework.beans.factory.BeanCreationException: Error creating bean
          with name 'entityManagerFactory' defined in URL
          [jar:file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc-
          model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed;
          nested exception is java.lang.RuntimeException: Cant copy Serializable object:
          at com.sun.enterprise.web.WebApplication.start(WebApplication.java:118)
          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
          at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
          at
          org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:337)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:183)
          at
          org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3
          05)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3
          20)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1
          176)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:
          83)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1235)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1224)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201)
          at
          com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
          at
          com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
          at
          com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java
          :245)
          at
          com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789)
          at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697)
          at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952)
          at
          com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16
          6)
          at
          com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.
          java:135)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
          at
          com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
          at
          com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53
          )
          at
          com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
          at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33
          0)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
          at java.lang.Thread.run(Thread.java:619)
          #]
          java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild:
          start: org.apache.catalina.LifecycleException:
          org.springframework.beans.factory.BeanCreationException: Error creating bean
          with name 'baseDAO': Injection of persistence fields failed; nested exception is
          org.springframework.beans.factory.BeanCreationException: Error creating bean
          with name 'entityManagerFactory' defined in URL
          [jar:file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc-
          model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed;
          nested exception is java.lang.RuntimeException: Cant copy Serializable object:
          at com.sun.enterprise.web.WebApplication.start(WebApplication.java:118)
          at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
          at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
          at
          org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:337)
          at
          com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja
          va:183)
          at
          org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3
          05)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3
          20)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1
          176)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:
          83)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1235)
          at
          com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu
          nnerImpl.java:1224)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362)
          at
          com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201)
          at
          com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
          at
          com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
          at
          com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java
          :245)
          at
          com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789)
          at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697)
          at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952)
          at
          com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16
          6)
          at
          com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.
          java:135)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
          at
          com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
          at
          com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
          at
          com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53
          )
          at
          com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
          at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33
          0)
          at
          com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
          at java.lang.Thread.run(Thread.java:619)
          #]

          I'm not sure if this release includes the fix so I'll leave the issue closed for
          now

          Show
          xmaniac added a comment - Latest available nightly (glassfish-v3-web-b73-11_12_2009.zip) throws this trace: INFO: Launching GlassFish on Felix platform Welcome to Felix ================ #] #] #] #] java.security.PrivilegedActionException: java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryImpl at java.security.AccessController.doPrivileged(Native Method) at com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl. java:95) at com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.rebind(LocalSerial ContextProviderImpl.java:95) at com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:619) at javax.naming.InitialContext.rebind(InitialContext.java:408) at javax.naming.InitialContext.rebind(InitialContext.java:408) at org.hibernate.util.NamingHelper.bind(NamingHelper.java:72) at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectF actory.java:113) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:338) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfigur ation.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration. java:669) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(Hiber natePersistence.java:132) at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeE ntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224) at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet( AbstractEntityManagerFactoryBean.java:291) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.inv okeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini tializeBean(AbstractAutowireCapableBeanFactory.java:1335) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC reateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r un(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre ateBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra ctBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle ton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract BeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:164) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findD efaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:507) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findE ntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:473) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi stenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:5 99) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi stenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:57 0) at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.i nject(InjectionMetadata.java:180) at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(Inje ctionMetadata.java:105) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postP rocessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:308) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop ulateBean(AbstractAutowireCapableBeanFactory.java:959) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC reateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r un(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre ateBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra ctBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle ton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract BeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti ateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactory Initialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA pplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext(Contex tLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextL oader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(Context LoaderListener.java:45) at org.internna.iwebmvc.spring.jee.IWebMvcContextLoaderListener.contextInitialized( IWebMvcContextLoaderListener.java:54) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.ja va:4591) at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:539) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5193) at com.sun.enterprise.web.WebModule.start(WebModule.java:503) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1604) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:337) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:183) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3 05) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3 20) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1 176) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java: 83) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1235) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1224) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java :245) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16 6) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain. java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53 ) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33 0) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1484) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl .java:695) at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.jav a:1656) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604) at com.sun.enterprise.naming.util.OSGiObjectInputOutputStreamFactoryImpl$OSGiObject InputStream.resolveClass(OSGiObjectInputOutputStreamFactoryImpl.java:99) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at com.sun.enterprise.naming.util.NamingUtilsImpl$1.run(NamingUtilsImpl.java:97) ... 91 more #] java.security.PrivilegedActionException: java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryImpl at java.security.AccessController.doPrivileged(Native Method) at com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl. java:95) at com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.rebind(LocalSerial ContextProviderImpl.java:95) at com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:619) at com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:635) at javax.naming.InitialContext.rebind(InitialContext.java:412) at javax.naming.InitialContext.rebind(InitialContext.java:412) at org.hibernate.util.NamingHelper.bind(NamingHelper.java:97) at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectF actory.java:113) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:338) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfigur ation.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration. java:669) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(Hiber natePersistence.java:132) at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeE ntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224) at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet( AbstractEntityManagerFactoryBean.java:291) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.inv okeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini tializeBean(AbstractAutowireCapableBeanFactory.java:1335) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC reateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r un(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre ateBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra ctBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle ton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract BeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:164) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findD efaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:507) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findE ntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:473) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi stenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:5 99) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi stenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:57 0) at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.i nject(InjectionMetadata.java:180) at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(Inje ctionMetadata.java:105) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postP rocessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:308) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop ulateBean(AbstractAutowireCapableBeanFactory.java:959) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC reateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r un(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre ateBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra ctBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle ton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract BeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti ateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactory Initialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA pplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext(Contex tLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextL oader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(Context LoaderListener.java:45) at org.internna.iwebmvc.spring.jee.IWebMvcContextLoaderListener.contextInitialized( IWebMvcContextLoaderListener.java:54) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.ja va:4591) at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:539) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5193) at com.sun.enterprise.web.WebModule.start(WebModule.java:503) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1604) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:337) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:183) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3 05) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3 20) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1 176) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java: 83) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1235) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1224) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java :245) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16 6) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain. java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53 ) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33 0) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1484) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl .java:695) at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.jav a:1656) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604) at com.sun.enterprise.naming.util.OSGiObjectInputOutputStreamFactoryImpl$OSGiObject InputStream.resolveClass(OSGiObjectInputOutputStreamFactoryImpl.java:99) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at com.sun.enterprise.naming.util.NamingUtilsImpl$1.run(NamingUtilsImpl.java:97) ... 92 more #] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseDAO': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [jar: file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc- model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Cant copy Serializable object: at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postP rocessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:311) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop ulateBean(AbstractAutowireCapableBeanFactory.java:959) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC reateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r un(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre ateBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra ctBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle ton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract BeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti ateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactory Initialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA pplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext(Contex tLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextL oader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(Context LoaderListener.java:45) at org.internna.iwebmvc.spring.jee.IWebMvcContextLoaderListener.contextInitialized( IWebMvcContextLoaderListener.java:54) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.ja va:4591) at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:539) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5193) at com.sun.enterprise.web.WebModule.start(WebModule.java:503) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1604) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:337) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:183) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3 05) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3 20) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1 176) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java: 83) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1235) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1224) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java :245) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16 6) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain. java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53 ) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33 0) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [jar: file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc- model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Cant copy Serializable object: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini tializeBean(AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC reateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r un(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre ateBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra ctBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle ton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract BeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:164) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findD efaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:507) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findE ntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:473) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi stenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:5 99) at org.springframework.orm.jpa.su #] at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.i nject(InjectionMetadata.java:180) at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(Inje ctionMetadata.java:105) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postP rocessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:308) ... 58 more Caused by: java.lang.RuntimeException: Cant copy Serializable object: at com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl. java:106) at com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.rebind(LocalSerial ContextProviderImpl.java:95) at com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:619) at com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:635) at javax.naming.InitialContext.rebind(InitialContext.java:412) at javax.naming.InitialContext.rebind(InitialContext.java:412) at org.hibernate.util.NamingHelper.bind(NamingHelper.java:97) at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectF actory.java:113) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:338) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfigur ation.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration. java:669) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(Hiber natePersistence.java:132) at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeE ntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224) at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet( AbstractEntityManagerFactoryBean.java:291) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.inv okeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini tializeBean(AbstractAutowireCapableBeanFactory.java:1335) ... 74 more Caused by: java.security.PrivilegedActionException: java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryImpl at java.security.AccessController.doPrivileged(Native Method) at com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl. java:95) ... 90 more Caused by: java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1484) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl .java:695) at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.jav a:1656) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604) at com.sun.enterprise.naming.util.OSGiObjectInputOutputStreamFactoryImpl$OSGiObject InputStream.resolveClass(OSGiObjectInputOutputStreamFactoryImpl.java:99) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at com.sun.enterprise.naming.util.NamingUtilsImpl$1.run(NamingUtilsImpl.java:97) ... 92 more #] org.apache.catalina.LifecycleException: PWC2769: Manager has not yet been started at org.apache.catalina.session.StandardManager.stop(StandardManager.java:892) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:5383) at com.sun.enterprise.web.WebModule.stop(WebModule.java:534) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5211) at com.sun.enterprise.web.WebModule.start(WebModule.java:503) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1604) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:337) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:183) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3 05) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3 20) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1 176) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java: 83) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1235) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1224) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java :245) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16 6) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain. java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53 ) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33 0) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619) #] org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseDAO': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [jar: file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc- model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Cant copy Serializable object: at org.apache.catalina.core.StandardContext.start(StandardContext.java:5216) at com.sun.enterprise.web.WebModule.start(WebModule.java:503) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1604) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:337) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:183) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3 05) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3 20) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1 176) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java: 83) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1235) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1224) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java :245) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16 6) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain. java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53 ) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33 0) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseDAO': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [jar: file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc- model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Cant copy Serializable object: at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postP rocessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:311) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.pop ulateBean(AbstractAutowireCapableBeanFactory.java:959) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC reateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r un(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre ateBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra ctBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle ton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract BeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstanti ateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactory Initialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA pplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext(Contex tLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextL oader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(Context LoaderListener.java:45) at org.internna.iwebmvc.spring.jee.IWebMvcContextLoaderListener.contextInitialized( IWebMvcContextLoaderListener.java:54) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.ja va:4591) at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:539) at org.apache.catalina.core.StandardContext.start(StandardContext.java:5193) ... 38 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [jar: file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc- model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Cant copy Serializable object: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini tializeBean(AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doC reateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.r un(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.cre ateBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Abstra ctBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingle ton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abstract BeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBe anFactory.java:164) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findD efaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:507) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findE ntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:473) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi stenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:5 99) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$Persi stenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:57 0) at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.i nject(InjectionMetadata.java:180) at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(Inje ctionMetadata.java:105) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postP rocessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:308) ... 58 more Caused by: java.lang.RuntimeException: Cant copy Serializable object: at com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl. java:106) at com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.rebind(LocalSerial ContextProviderImpl.java:95) at com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:619) at com.sun.enterprise.naming.impl.SerialContext.rebind(SerialContext.java:635) at javax.naming.InitialContext.rebind(InitialContext.java:412) at javax.naming.InitialContext.rebind(InitialContext.java:412) at org.hibernate.util.NamingHelper.bind(NamingHelper.java:97) at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectF actory.java:113) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:338) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327) at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfigur ation.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration. java:669) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(Hiber natePersistence.java:132) at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeE ntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224) at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet( AbstractEntityManagerFactoryBean.java:291) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.inv okeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.ini tializeBean(AbstractAutowireCapableBeanFactory.java:1335) ... 74 more Caused by: java.security.PrivilegedActionException: java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryImpl at java.security.AccessController.doPrivileged(Native Method) at com.sun.enterprise.naming.util.NamingUtilsImpl.makeCopyOfObject(NamingUtilsImpl. java:95) ... 90 more Caused by: java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.apache.felix.framework.ModuleImpl.searchDynamicImports(ModuleImpl.java:1484) at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl .java:695) at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.jav a:1656) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604) at com.sun.enterprise.naming.util.OSGiObjectInputOutputStreamFactoryImpl$OSGiObject InputStream.resolveClass(OSGiObjectInputOutputStreamFactoryImpl.java:99) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at com.sun.enterprise.naming.util.NamingUtilsImpl$1.run(NamingUtilsImpl.java:97) ... 92 more #] java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseDAO': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [jar: file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc- model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Cant copy Serializable object: at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:932) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933) at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1604) at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:337) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:183) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3 05) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3 20) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1 176) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java: 83) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1235) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1224) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java :245) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16 6) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain. java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53 ) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33 0) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619) #] java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseDAO': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [jar: file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc- model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Cant copy Serializable object: at com.sun.enterprise.web.WebApplication.start(WebApplication.java:118) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:337) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:183) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3 05) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3 20) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1 176) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java: 83) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1235) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1224) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java :245) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16 6) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain. java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53 ) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33 0) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619) #] java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseDAO': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in URL [jar: file:/C:/src/IWebMvc2/iwebmvc-demo/target/iwebmvc-demo/WEB-INF/lib/iwebmvc- model-2.0-SNAPSHOT.jar!/spring/glassfish.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Cant copy Serializable object: at com.sun.enterprise.web.WebApplication.start(WebApplication.java:118) at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126) at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241) at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:337) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.ja va:183) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272) at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:3 05) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:3 20) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1 176) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java: 83) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1235) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRu nnerImpl.java:1224) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:362) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:201) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java :245) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:789) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:697) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:952) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:16 6) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain. java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53 ) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:33 0) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619) #] I'm not sure if this release includes the fix so I'll leave the issue closed for now
          Hide
          Sanjeeb Sahoo added a comment -

          xmaniac:

          You are observing the right behavior. The fix is part of "13 Nov 2009" nightly
          build, which is yet to be published. You have tested "12 Nov 2009" nightly
          build. There should be a way of knowing svn revisions corresponding to nightly
          build so that such confusion can be easily avoided. I have told our RE to
          implement the same.

          Sahoo

          Show
          Sanjeeb Sahoo added a comment - xmaniac: You are observing the right behavior. The fix is part of "13 Nov 2009" nightly build, which is yet to be published. You have tested "12 Nov 2009" nightly build. There should be a way of knowing svn revisions corresponding to nightly build so that such confusion can be easily avoided. I have told our RE to implement the same. Sahoo

            People

            • Assignee:
              Sanjeeb Sahoo
              Reporter:
              Sanjeeb Sahoo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: