quality@glassfish.java.net

My first tests with FishCAT ...ouch

From: Jose Noheda <jose.noheda_at_gmail.com>
Date: Sat, 26 Sep 2009 15:16:25 +0200

So I installed the promoted b65 build and using Netbeans 6.7.1 tried to
deploy IWebMvc2 (http://code.google.com/p/internna/). It's quite a complex
application with Spring 2.5, Hibernate 3.3, DWR 3.0RC and many other
libraries (JAWR, BouncyCastle, Jasperreports and so on). It deploys fine to
Tomcat nonetheless. The results were not positive:
0) First boot of the server failed. Fortunately it worked the second time.
Sorry, I didn't record the error trace.

1) I'm getting sever errors like:

INFO: Started bundle org.glassfish.web.war-util [178]
*ADVERTENCIA: Exception while scanning WEB-INF/lib/icu4j-2.6.1.jar*
*java.lang.ArrayIndexOutOfBoundsException: 48188*
* at org.objectweb.asm.ClassReader.readClass(Unknown Source)*
* at org.objectweb.asm.ClassReader.accept(Unknown Source)*
* at org.objectweb.asm.ClassReader.accept(Unknown Source)*
* at
org.glassfish.deployment.common.AnnotationScanner.scanArchive(AnnotationScanner.java:100)
*
* at
com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:148)
*
* at
com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:384)
*
* at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:232)
*
* at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:172)
*
* at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270)
*
* at
com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:403)
*
* at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:418)
*
* at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:505)
*
* at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:138)
*
* at
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:355)*
* at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:195)*
* 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:217)
*
* at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)*
* at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)*
* at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)*
* at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
*
* 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.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:379)
*
* at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:360)
*
* at java.lang.Thread.run(Thread.java:619)*
INFO: security.secmgroff
INFO: Started bundle org.glassfish.security.webservices.security [49]
INFO: Security startup service called
INFO: policy.loading
INFO: Security service(s) started successfully....
INFO: Started bundle org.glassfish.web.glue [80]
INFO: Started bundle org.glassfish.web.cli [60]
INFO: Created HTTP listener http-listener-1 on port 8080
INFO: Created HTTP listener admin-listener on port 4848
INFO: Created virtual server server
INFO: Created virtual server __asadmin
INFO: Started bundle org.glassfish.deployment.dol [155]
INFO: Started bundle org.glassfish.ejb.ejb-container [185]
INFO: Started bundle org.glassfish.web.core [90]
INFO: Virtual server server loaded system default web module
INFO: Dual registration of jndi stream handler: factory already defined
INFO: Started bundle org.glassfish.web.jstl-connector [41]
INFO: Started bundle org.glassfish.web.jspcaching-connector [189]
INFO: Started bundle org.glassfish.web.jsf-connector [76]
INFO: Using
com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as
the delegate
INFO: Started bundle org.glassfish.deployment.javaee-core [58]
*GRAVE: Unknow type constant pool 60 at position41*
*GRAVE: Unknow type constant pool -26 at position42*
*GRAVE: Unknow type constant pool -70 at position43*
*GRAVE: Unknow type constant pool -99 at position44*
*GRAVE: Unknow type constant pool 60 at position45*
*GRAVE: Unknow type constant pool -23 at position46*
*GRAVE: Unknow type constant pool -119 at position47*
*GRAVE: Unknow type constant pool 60 at position41*
*GRAVE: Unknow type constant pool -26 at position42*
*GRAVE: Unknow type constant pool -70 at position43*
*GRAVE: Unknow type constant pool -99 at position44*
*GRAVE: Unknow type constant pool 60 at position45*
*GRAVE: Unknow type constant pool -23 at position46*
*GRAVE: Unknow type constant pool -119 at position47*
INFO: DOL Loading time7516
INFO: Started bundle org.glassfish.security.websecurity [188]
*GRAVE: log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not
assignable to a "org.apache.log4j.Appender" variable.*
*GRAVE: log4j:ERROR The class "org.apache.log4j.Appender" was loaded by *
*GRAVE: log4j:ERROR [WebappClassLoader (delegate=true;
repositories=WEB-INF/classes/)] whereas object of type *
*GRAVE: log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
[WebappClassLoader (delegate=true; repositories=WEB-INF/classes/)].*
*GRAVE: log4j:ERROR Could not instantiate appender named "stdout".*
*GRAVE: PWC3026: Parse error in default web.xml*
*java.lang.IllegalStateException: WebappClassLoader unable to load resource
[org.apache.xerces.util.EntityResolverWrapper], because it has not yet been
started, or was already stopped*
* at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1357)
*
* at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)*
* at
org.apache.xerces.parsers.AbstractSAXParser.setEntityResolver(Unknown
Source)*
* at
org.apache.tomcat.util.digester.Digester.getXMLReader(Digester.java:1040)*
* at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1698)*
* at
org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:819)
*
* at
org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:760)
*
* at
org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1014)*
* at
com.sun.enterprise.web.WebModuleContextConfig.lifecycleEvent(WebModuleContextConfig.java:180)
*
* at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
*
* at
org.apache.catalina.core.StandardContext.init(StandardContext.java:6428)*
* at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5084)*
* at com.sun.enterprise.web.WebModule.start(WebModule.java:483)*
* 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:1816)*
* at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1520)*
* at
com.sun.enterprise.web.WebApplication.start(WebApplication.java:93)*
* at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)*
* at
org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:229)*
* at
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:214)*
* at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:307)
*
* at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:172)
*
* at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270)
*
* at
com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:403)
*
* at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:418)
*
* at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:505)
*
* at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:138)
*
* at
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:355)*
* at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:195)*
* 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:217)
*
* at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)*
* at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)*
* at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)*
* at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
*
* 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.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:379)
*
* at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:360)
*
* at java.lang.Thread.run(Thread.java:619)*
*GRAVE: log4j:ERROR Could not read configuration file from URL
[file:/C:/Archivos de
programa/glassfishv3-b65/glassfish/domains/domain1/generated/jsp/org.internna.iwebmvc_iwebmvc-demo_war_2.0-SNAPSHOT/loader/log4j.properties].
*
*GRAVE: java.io.FileNotFoundException: C:\Archivos de
programa\glassfishv3-b65\glassfish\domains\domain1\generated\jsp\org.internna.iwebmvc_iwebmvc-demo_war_2.0-SNAPSHOT\loader\log4j.properties
(El sistema no puede hallar la ruta especificada)*
*GRAVE: at java.io.FileInputStream.open(Native Method)*
*GRAVE: at java.io.FileInputStream.<init>(FileInputStream.java:106)*
*GRAVE: at java.io.FileInputStream.<init>(FileInputStream.java:66)*
*GRAVE: at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
*
*GRAVE: at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
*
*GRAVE: at java.net.URL.openStream(URL.java:1009)*
*GRAVE: at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:433)
*
*GRAVE: at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470)
*
*GRAVE: at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
*
*GRAVE: at
org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)*
*GRAVE: at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:88)*
*GRAVE: at
org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155)
*
*GRAVE: at
org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:131)
*
*GRAVE: at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:272)*
*GRAVE: at
org.internna.iwebmvc.spring.jee.IWebMvcContextLoaderListener.<init>(IWebMvcContextLoaderListener.java:38)
*
*GRAVE: at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)*
*GRAVE: at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
*
*GRAVE: at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
*
*GRAVE: at
java.lang.reflect.Constructor.newInstance(Constructor.java:513)*
*GRAVE: at java.lang.Class.newInstance0(Class.java:355)*
*GRAVE: at java.lang.Class.newInstance(Class.java:308)*
*GRAVE: at
org.apache.catalina.core.StandardContext.createListener(StandardContext.java:2824)
*
*GRAVE: at
org.apache.catalina.core.StandardContext.loadListener(StandardContext.java:4750)
*
*GRAVE: at
com.sun.enterprise.web.WebModule.loadListener(WebModule.java:1523)*
*GRAVE: at
org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2709)
*
*GRAVE: at
org.apache.catalina.core.StandardContext.addApplicationListener(StandardContext.java:1943)
*
*GRAVE: at
com.sun.enterprise.web.TomcatDeploymentConfig.configureApplicationListener(TomcatDeploymentConfig.java:277)
*
*GRAVE: at
com.sun.enterprise.web.TomcatDeploymentConfig.configureWebModule(TomcatDeploymentConfig.java:136)
*
*GRAVE: at
com.sun.enterprise.web.WebModuleContextConfig.start(WebModuleContextConfig.java:277)
*
*GRAVE: at
com.sun.enterprise.web.WebModuleContextConfig.lifecycleEvent(WebModuleContextConfig.java:176)
*
*GRAVE: at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
*
*GRAVE: at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5263)*
*GRAVE: at
com.sun.enterprise.web.WebModule.start(WebModule.java:483)*
*GRAVE: at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
*
*GRAVE: at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)*
*GRAVE: at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)*
*GRAVE: at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1816)*
*GRAVE: at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1520)*
*GRAVE: at
com.sun.enterprise.web.WebApplication.start(WebApplication.java:93)*
*GRAVE: at
org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)*
*GRAVE: at
org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:229)*
*GRAVE: at
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:214)*
*GRAVE: at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:307)
*
*GRAVE: at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:172)
*
*GRAVE: at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270)
*
*GRAVE: at
com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:403)
*
*GRAVE: at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:418)
*
*GRAVE: at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:505)
*
*GRAVE: at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:138)
*
*GRAVE: at
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:355)*
*GRAVE: at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:195)*
*GRAVE: at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)*
*GRAVE: at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)*
*GRAVE: at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
*
*GRAVE: at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)*
*GRAVE: at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)*
*GRAVE: at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)*
*GRAVE: at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
*
*GRAVE: at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
*
*GRAVE: at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)*
*GRAVE: at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)*
*GRAVE: at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)*
*GRAVE: at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
*
*GRAVE: at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
*
*GRAVE: at com.sun.grizzly.ContextTask.run(ContextTask.java:69)*
*GRAVE: at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:379)
*
*GRAVE: at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:360)
*
*GRAVE: at java.lang.Thread.run(Thread.java:619)*
*GRAVE: log4j:ERROR Ignoring configuration file [file:/C:/Archivos de
programa/glassfishv3-b65/glassfish/domains/domain1/generated/jsp/org.internna.iwebmvc_iwebmvc-demo_war_2.0-SNAPSHOT/loader/log4j.properties].
*

Then the application cannot start because Spring cannot access the
transation:

*INFO: 2009-09-26 15:12:46,249 ERROR
[org.springframework.web.context.ContextLoader] - <Context initialization
failed>*
*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.IllegalStateException: Transaction is not active in the current
thread.*
* at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:311)
*
* at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)
*
* at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
*
* at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
*
* at java.security.AccessController.doPrivileged(Native Method)*
* at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
*
* at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
*
* at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
*
* at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
*
* at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
*
* at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
*
* at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
*
* at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
*
* at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
*
* at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
*
* at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
*
* at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
*
* at
org.internna.iwebmvc.spring.jee.IWebMvcContextLoaderListener.contextInitialized(IWebMvcContextLoaderListener.java:54)
*
* at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4680)
*
* at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5305)*
* at com.sun.enterprise.web.WebModule.start(WebModule.java:483)*
* 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:1816)*
* at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1520)*
* at
com.sun.enterprise.web.WebApplication.start(WebApplication.java:93)*
* at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)*
* at
org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:229)*
* at
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:214)*
* at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:307)
*
* at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:172)
*
* at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270)
*
* at
com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:403)
*
* at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:418)
*
* at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:505)
*
* at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:138)
*
* at
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:355)*
* at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:195)*
* 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:217)
*
* at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:753)*
* at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:661)*
* at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:914)*
* at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:166)
*
* 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.FixedThreadPool$BasicWorker.dowork(FixedThreadPool.java:379)
*
* at
com.sun.grizzly.util.FixedThreadPool$BasicWorker.run(FixedThreadPool.java:360)
*
* 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.IllegalStateException: Transaction is not active in the current
thread.*
* at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
*
* at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
*
* at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
*
* at java.security.AccessController.doPrivileged(Native Method)*
* at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
*
* at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
*
* at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
*
* at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
*
* at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
*
* at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
*
* at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:507)
*
* at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:473)
*
* at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:599)
*
* at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:570)
*
* at
org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:180)
*
*INFO: at
org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
*
* at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:308)
*
* ... 55 more*
*Caused by: java.lang.IllegalStateException: Transaction is not active in
the current thread.*
* at
com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate.validateTransactionManager(JavaEETransactionManagerJTSDelegate.java:401)
*
* at
com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate.suspendInternal(JavaEETransactionManagerJTSDelegate.java:395)
*
* at
com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate.suspend(JavaEETransactionManagerJTSDelegate.java:319)
*
* at
com.sun.enterprise.transaction.JavaEETransactionManagerSimplified.suspend(JavaEETransactionManagerSimplified.java:959)
*
* at
com.sun.enterprise.transaction.TransactionManagerHelper.suspend(TransactionManagerHelper.java:106)
*
* at
org.hibernate.cache.jbc2.BasicRegionAdapter.suspend(BasicRegionAdapter.java:334)
*
* at
org.hibernate.cache.jbc2.BasicRegionAdapter.activateLocalClusterNode(BasicRegionAdapter.java:92)
*
* at
org.hibernate.cache.jbc2.BasicRegionAdapter.<init>(BasicRegionAdapter.java:80)
*
* at
org.hibernate.cache.jbc2.TransactionalDataRegionAdapter.<init>(TransactionalDataRegionAdapter.java:41)
*
* at
org.hibernate.cache.jbc2.entity.EntityRegionImpl.<init>(EntityRegionImpl.java:49)
*
* at
org.hibernate.cache.jbc2.JBossCacheRegionFactory.buildEntityRegion(JBossCacheRegionFactory.java:125)
*
* at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:255)*
* at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
*
* at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
*
* at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
*
* at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
*
* at
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224)
*
* at
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:291)
*
* at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
*
* at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
*
* ... 71 more*
GRAVE: PWC1306: Startup of context /demo failed due to previous errors

I see many kind of different errors in there (ASM, LOG4J, JTA/JPA)... Let me
know if you need further info.

Regards