Nov 3, 2008 9:51:28 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info INFO: JVM invocation command line: /space3/ming/jdk1.6.0_06/bin/java -cp /space3/ming/glassfish/modules/glassfish.jar -XX:+UnlockDiagnosticVMOptions -XX:NewRatio=2 -XX:+LogVMOutput -XX:LogFile=/space3/ming/glassfish/domains/domain1/logs/jvm.log -Xmx512m -client -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -Djavax.net.ssl.trustStore=/space3/ming/glassfish/domains/domain1/config/cacerts.jks -Djavax.net.ssl.keyStore=/space3/ming/glassfish/domains/domain1/config/keystore.jks -Djava.security.policy=/space3/ming/glassfish/domains/domain1/config/server.policy -Dcom.sun.aas.instanceRoot=/space3/ming/glassfish/domains/domain1 -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Djava.security.auth.login.config=/space3/ming/glassfish/domains/domain1/config/login.conf -Djava.endorsed.dirs=/space3/ming/glassfish/lib/endorsed -Dcom.sun.aas.installRoot=/space3/ming/glassfish -Djava.ext.dirs=/space3/ming/jdk1.6.0_06/lib/ext:/space3/ming/jdk1.6.0_06/jre/lib/ext:/space3/ming/glassfish/domains/domain1/lib/ext:/space3/ming/glassfish/javadb/lib com.sun.enterprise.glassfish.bootstrap.ASMain -domainname domain1 -instancename server -verbose false -debug false -domaindir /space3/ming/glassfish/domains/domain1 Nov 3, 2008 9:51:29 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info INFO: Successfully launched in 101 msec. [#|2008-11-03T09:51:33.475-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-4;org.glassfish.registration.glassfish-registration [75];|Started bundle org.glassfish.registration.glassfish-registration [75]|#] [#|2008-11-03T09:51:33.504-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-4;org.glassfish.deployment.deployment-autodeploy [18];|Started bundle org.glassfish.deployment.deployment-autodeploy [18]|#] [#|2008-11-03T09:51:33.610-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-4;org.glassfish.deployment.deployment-common [71];|Started bundle org.glassfish.deployment.deployment-common [71]|#] [#|2008-11-03T09:51:33.864-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-4;org.glassfish.flashlight.flashlight-framework [74];|Started bundle org.glassfish.flashlight.flashlight-framework [74]|#] [#|2008-11-03T09:51:34.259-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-4;org.glassfish.common.glassfish-api [86];|Started bundle org.glassfish.common.glassfish-api [86]|#] [#|2008-11-03T09:51:34.488-0800|INFO|glassfish|global|_ThreadID=12;_ThreadName=Thread-4;|Listening on port 8080|#] [#|2008-11-03T09:51:34.491-0800|INFO|glassfish|global|_ThreadID=12;_ThreadName=Thread-4;|Network listener http-listener-2 on port 8181 disabled per domain.xml|#] [#|2008-11-03T09:51:34.499-0800|INFO|glassfish|global|_ThreadID=12;_ThreadName=Thread-4;|Listening on port 4848|#] [#|2008-11-03T09:51:34.602-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-4;org.glassfish.common.container-common [85];|Started bundle org.glassfish.common.container-common [85]|#] [#|2008-11-03T09:51:35.096-0800|INFO|glassfish|global|_ThreadID=12;_ThreadName=Thread-4;|The Admin Console is already installed, but not yet loaded.|#] [#|2008-11-03T09:51:35.592-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=13;_ThreadName=Thread-4;org.glassfish.common.glassfish-naming [65];|Started bundle org.glassfish.common.glassfish-naming [65]|#] [#|2008-11-03T09:51:35.661-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=13;_ThreadName=Thread-4;org.glassfish.connectors.connectors-runtime [27];|Started bundle org.glassfish.connectors.connectors-runtime [27]|#] [#|2008-11-03T09:51:35.710-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-4;org.glassfish.persistence.jpa-connector [24];|Started bundle org.glassfish.persistence.jpa-connector [24]|#] [#|2008-11-03T09:51:35.948-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=12;_ThreadName=Thread-4;org.glassfish.scripting.gf-jruby-connector [11];|Started bundle org.glassfish.scripting.gf-jruby-connector [11]|#] [#|2008-11-03T09:51:35.981-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=13;_ThreadName=Thread-4;org.glassfish.transaction.jta [6];|Started bundle org.glassfish.transaction.jta [6]|#] [#|2008-11-03T09:51:35.987-0800|SEVERE|glassfish|javax.enterprise.system.core|_ThreadID=12;_ThreadName=Thread-4;|Exception while deploying the app java.lang.RuntimeException: JRuby installation not found at /space3/ming/glassfish/modules/jruby You may like to do one of the following: - Use updatetool to install JRuby and Rails installation. - Check if the jruby.home Java sysytem property is pointing to your JRuby installation. - If on Unix or Mac, create a symbolic link of your jruby installation to /space3/ming/glassfish/modules/jruby . - Install JRuby at /space3/ming/glassfish/modules/jruby - Set jruby.home inside /space3/ming/glassfish/domains/domain1/config/domain.xml to the location of your JRuby directory. Make an entry of -Djruby.home=... inside element at org.glassfish.scripting.rails.sniffer.RailsSniffer.setup(RailsSniffer.java:120) at com.sun.enterprise.v3.server.ContainerStarter.startContainer(ContainerStarter.java:101) at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainer(ApplicationLifecycle.java:676) at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:314) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:167) at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:260) at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:97) at com.sun.enterprise.v3.server.ApplicationLoaderInjector.postConstruct(ApplicationLoaderInjector.java:61) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150) at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90) at java.security.AccessController.doPrivileged(Native Method) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58) at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60) at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:203) at com.sun.enterprise.v3.server.AppServerStartup$1.run(AppServerStartup.java:116) |#] [#|2008-11-03T09:51:36.025-0800|SEVERE|glassfish|javax.enterprise.system.core|_ThreadID=12;_ThreadName=Thread-4;|Exception while deploying the app : java.lang.RuntimeException: JRuby installation not found at /space3/ming/glassfish/modules/jruby You may like to do one of the following: - Use updatetool to install JRuby and Rails installation. - Check if the jruby.home Java sysytem property is pointing to your JRuby installation. - If on Unix or Mac, create a symbolic link of your jruby installation to /space3/ming/glassfish/modules/jruby . - Install JRuby at /space3/ming/glassfish/modules/jruby - Set jruby.home inside /space3/ming/glassfish/domains/domain1/config/domain.xml to the location of your JRuby directory. Make an entry of -Djruby.home=... inside element|#] [#|2008-11-03T09:51:36.044-0800|INFO|glassfish|javax.enterprise.system.core|_ThreadID=12;_ThreadName=Thread-4;|GlassFish v3 startup time : Felix(3605ms) startup services(2998ms) total(6603ms)|#] [#|2008-11-03T09:51:36.120-0800|INFO|glassfish|javax.enterprise.system.tools.admin|_ThreadID=13;_ThreadName=Thread-4;|Started JMXConnector, JMXService URL = service:jmx:rmi:///jndi/rmi://jws-280r-1.red.iplanet.com:8686/jmxrmi|#] [#|2008-11-03T09:51:45.376-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.deployment.deployment-admin [41];|Started bundle org.glassfish.deployment.deployment-admin [41]|#] [#|2008-11-03T09:51:45.437-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.web.war-util [105];|Started bundle org.glassfish.web.war-util [105]|#] [#|2008-11-03T09:51:45.594-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.web.gf-web-connector [104];|Started bundle org.glassfish.web.gf-web-connector [104]|#] [#|2008-11-03T09:51:45.617-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.ejb.gf-ejb-connector [93];|Started bundle org.glassfish.ejb.gf-ejb-connector [93]|#] [#|2008-11-03T09:51:45.639-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.security.security [20];|Started bundle org.glassfish.security.security [20]|#] [#|2008-11-03T09:51:45.656-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.connectors.gf-connectors-connector [53];|Started bundle org.glassfish.connectors.gf-connectors-connector [53]|#] [#|2008-11-03T09:51:45.717-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.ejb.ejb-container [94];|Started bundle org.glassfish.ejb.ejb-container [94]|#] [#|2008-11-03T09:51:45.736-0800|INFO|glassfish|javax.enterprise.system.core.security|_ThreadID=14;_ThreadName=Thread-4;|SEC1002: Security Manager is OFF.|#] [#|2008-11-03T09:51:45.774-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.security.securitycommon [23];|Started bundle org.glassfish.security.securitycommon [23]|#] [#|2008-11-03T09:51:45.837-0800|INFO|glassfish|javax.enterprise.system.core.security|_ThreadID=14;_ThreadName=Thread-4;|Security startup service called|#] [#|2008-11-03T09:51:45.860-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.security.realms [39];|Started bundle org.glassfish.security.realms [39]|#] [#|2008-11-03T09:51:45.895-0800|INFO|glassfish|javax.enterprise.system.core.security|_ThreadID=14;_ThreadName=Thread-4;|Security service(s) started successfully....|#] [#|2008-11-03T09:51:46.113-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.transaction.jts [21];|Started bundle org.glassfish.transaction.jts [21]|#] [#|2008-11-03T09:51:46.149-0800|INFO|glassfish|javax.enterprise.resource.jta|_ThreadID=14;_ThreadName=Thread-4;|Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate|#] [#|2008-11-03T09:51:46.302-0800|INFO|glassfish|null|_ThreadID=14;_ThreadName=Thread-4;|>>Started EJB Container Service....: server|#] [#|2008-11-03T09:51:46.303-0800|INFO|glassfish|null|_ThreadID=14;_ThreadName=Thread-4;|>>EjbContianerUtil: com.sun.ejb.containers.EjbContainerUtilImpl@3ec561|#] [#|2008-11-03T09:51:46.354-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.deployment.dol [10];|Started bundle org.glassfish.deployment.dol [10]|#] [#|2008-11-03T09:51:46.628-0800|INFO|glassfish|null|_ThreadID=14;_ThreadName=Thread-4;|Created SingletonHandler......|#] [#|2008-11-03T09:51:46.771-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.web.DirContextURLStreamHandlerService@1ca5df9;org.osgi.service.url.URLStreamHandlerService;|registering service = org.glassfish.web.DirContextURLStreamHandlerService@1ca5df9, contract = org.osgi.service.url.URLStreamHandlerService, name = null|#] [#|2008-11-03T09:51:46.772-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.web.web-glue [96];|Started bundle org.glassfish.web.web-glue [96]|#] [#|2008-11-03T09:51:47.231-0800|INFO|glassfish|javax.enterprise.system.container.web|_ThreadID=14;_ThreadName=Thread-4;|Created HTTP listener http-listener-1 on port 8080|#] [#|2008-11-03T09:51:47.243-0800|INFO|glassfish|javax.enterprise.system.container.web|_ThreadID=14;_ThreadName=Thread-4;|Created HTTP listener admin-listener on port 4848|#] [#|2008-11-03T09:51:47.332-0800|INFO|glassfish|javax.enterprise.system.container.web|_ThreadID=14;_ThreadName=Thread-4;|Created virtual server server|#] [#|2008-11-03T09:51:47.349-0800|INFO|glassfish|javax.enterprise.system.container.web|_ThreadID=14;_ThreadName=Thread-4;|Created virtual server __asadmin|#] [#|2008-11-03T09:51:48.454-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.web.web-core [113];|Started bundle org.glassfish.web.web-core [113]|#] [#|2008-11-03T09:51:48.611-0800|INFO|glassfish|org.apache.catalina.loader.WebappLoader|_ThreadID=14;_ThreadName=Thread-4;|Dual registration of jndi stream handler: factory already defined|#] [#|2008-11-03T09:51:48.617-0800|INFO|glassfish|org.apache.catalina.loader.WebappLoader|_ThreadID=14;_ThreadName=Thread-4;|Unknown loader 96.0 class org.apache.felix.framework.searchpolicy.ContentClassLoader|#] [#|2008-11-03T09:51:48.695-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.web.jstl-connector [102];|Started bundle org.glassfish.web.jstl-connector [102]|#] [#|2008-11-03T09:51:48.741-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.web.jsf-connector [109];|Started bundle org.glassfish.web.jsf-connector [109]|#] [#|2008-11-03T09:51:48.996-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.connectors.work-management [45];|Started bundle org.glassfish.connectors.work-management [45]|#] [#|2008-11-03T09:51:49.067-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.common.glassfish-ee-api [72];|Started bundle org.glassfish.common.glassfish-ee-api [72]|#] [#|2008-11-03T09:51:49.069-0800|INFO|glassfish|org.jvnet.hk2.osgiadapter|_ThreadID=14;_ThreadName=Thread-4;org.glassfish.connectors.connectors-internal-api [91];|Started bundle org.glassfish.connectors.connectors-internal-api [91]|#] [#|2008-11-03T09:51:49.178-0800|INFO|glassfish|javax.enterprise.system.core.security|_ThreadID=14;_ThreadName=Thread-4;com.sun.enterprise.security.provider.PolicyWrapper;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#] [#|2008-11-03T09:51:49.889-0800|INFO|glassfish|null|_ThreadID=14;_ThreadName=Thread-4;|** CMC Singleton Container **|#] [#|2008-11-03T09:51:49.920-0800|INFO|glassfish|null|_ThreadID=14;_ThreadName=Thread-4;|Java:Global name [no interface view] : java:global/singleton/BeanMessage|#] [#|2008-11-03T09:51:49.921-0800|INFO|glassfish|null|_ThreadID=14;_ThreadName=Thread-4;|Java:Global name [no interface view] : java:global/singleton/BeanMessage#myapp.BeanMessage|#] [#|2008-11-03T09:51:49.949-0800|INFO|glassfish|null|_ThreadID=14;_ThreadName=Thread-4;|** CMC Singleton Container **|#] [#|2008-11-03T09:51:49.953-0800|INFO|glassfish|null|_ThreadID=14;_ThreadName=Thread-4;|Java:Global name [no interface view] : java:global/singleton/BeanLeaf|#] [#|2008-11-03T09:51:49.954-0800|INFO|glassfish|null|_ThreadID=14;_ThreadName=Thread-4;|Java:Global name [no interface view] : java:global/singleton/BeanLeaf#myapp.BeanLeaf|#] [#|2008-11-03T09:51:49.959-0800|INFO|glassfish|null|_ThreadID=14;_ThreadName=Thread-4;|** CMC Singleton Container **|#] [#|2008-11-03T09:51:49.964-0800|INFO|glassfish|null|_ThreadID=14;_ThreadName=Thread-4;|Java:Global name [no interface view] : java:global/singleton/BeanRoot|#] [#|2008-11-03T09:51:49.965-0800|INFO|glassfish|null|_ThreadID=14;_ThreadName=Thread-4;|Java:Global name [no interface view] : java:global/singleton/BeanRoot#myapp.BeanRoot|#] [#|2008-11-03T09:51:49.969-0800|INFO|glassfish|null|_ThreadID=14;_ThreadName=Thread-4;|[**]Singleton partial order: BeanMessage BeanLeaf BeanRoot* |#] [#|2008-11-03T09:51:50.015-0800|INFO|glassfish|javax.enterprise.system.container.ejb|_ThreadID=14;_ThreadName=Thread-4;BeanMessage;|EJB5018: An exception was thrown during an ejb invocation on [BeanMessage]|#] [#|2008-11-03T09:51:50.017-0800|INFO|glassfish|javax.enterprise.system.container.ejb|_ThreadID=14;_ThreadName=Thread-4;| javax.ejb.EJBException: nested exception is: java.lang.ClassCastException: com.sun.ejb.containers.SingletonContextImpl cannot be cast to com.sun.ejb.containers.SessionContextImpl java.lang.ClassCastException: com.sun.ejb.containers.SingletonContextImpl cannot be cast to com.sun.ejb.containers.SessionContextImpl at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:4038) at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3852) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1512) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1474) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy79.getMessage(Unknown Source) at myapp.__EJB31_Generated__BeanMessage__Intf____Bean__.getMessage(Unknown Source) at myapp.BeanRoot.afterConstruct(BeanRoot.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:685) at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:64) at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:209) at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:529) at com.sun.ejb.containers.AbstractSingletonContainer.access$000(AbstractSingletonContainer.java:83) at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:734) at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:451) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:68) at org.glassfish.ejb.startup.EjbApplication.loadAndStartContainers(EjbApplication.java:127) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:179) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:54) at com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:500) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:177) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:329) at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:302) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:259) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:176) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) javax.ejb.EJBException: nested exception is: java.lang.ClassCastException: com.sun.ejb.containers.SingletonContextImpl cannot be cast to com.sun.ejb.containers.SessionContextImpl at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1519) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1474) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy79.getMessage(Unknown Source) at myapp.__EJB31_Generated__BeanMessage__Intf____Bean__.getMessage(Unknown Source) at myapp.BeanRoot.afterConstruct(BeanRoot.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:685) at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:64) at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:209) at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:529) at com.sun.ejb.containers.AbstractSingletonContainer.access$000(AbstractSingletonContainer.java:83) at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:734) at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:451) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:68) at org.glassfish.ejb.startup.EjbApplication.loadAndStartContainers(EjbApplication.java:127) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:179) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:54) at com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:500) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:177) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:329) at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:302) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:259) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:176) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) |#] [#|2008-11-03T09:51:50.067-0800|INFO|glassfish|javax.enterprise.system.container.ejb|_ThreadID=14;_ThreadName=Thread-4;|EJB5070: Exception creating stateless session bean : [{0}] javax.ejb.EJBException: nested exception is: java.lang.ClassCastException: com.sun.ejb.containers.SingletonContextImpl cannot be cast to com.sun.ejb.containers.SessionContextImpl java.lang.ClassCastException: com.sun.ejb.containers.SingletonContextImpl cannot be cast to com.sun.ejb.containers.SessionContextImpl at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:4038) at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3852) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1512) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1474) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy79.getMessage(Unknown Source) at myapp.__EJB31_Generated__BeanMessage__Intf____Bean__.getMessage(Unknown Source) at myapp.BeanRoot.afterConstruct(BeanRoot.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:685) at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:64) at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:209) at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:529) at com.sun.ejb.containers.AbstractSingletonContainer.access$000(AbstractSingletonContainer.java:83) at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:734) at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:451) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:68) at org.glassfish.ejb.startup.EjbApplication.loadAndStartContainers(EjbApplication.java:127) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:179) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:54) at com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:500) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:177) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:329) at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:302) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:259) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:176) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) javax.ejb.EJBException: nested exception is: java.lang.ClassCastException: com.sun.ejb.containers.SingletonContextImpl cannot be cast to com.sun.ejb.containers.SessionContextImpl at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1519) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1474) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy79.getMessage(Unknown Source) at myapp.__EJB31_Generated__BeanMessage__Intf____Bean__.getMessage(Unknown Source) at myapp.BeanRoot.afterConstruct(BeanRoot.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:685) at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:64) at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:209) at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:529) at com.sun.ejb.containers.AbstractSingletonContainer.access$000(AbstractSingletonContainer.java:83) at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:734) at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:451) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:68) at org.glassfish.ejb.startup.EjbApplication.loadAndStartContainers(EjbApplication.java:127) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:179) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:54) at com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:500) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:177) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:329) at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:302) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:259) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:176) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) |#] [#|2008-11-03T09:51:50.074-0800|SEVERE|glassfish|javax.enterprise.system.core|_ThreadID=14;_ThreadName=Thread-4;|Exception while invoking class org.glassfish.ejb.startup.EjbDeployer prepare method javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB javax.ejb.CreateException: Could not create stateless EJB at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:537) at com.sun.ejb.containers.AbstractSingletonContainer.access$000(AbstractSingletonContainer.java:83) at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:734) at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:451) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:68) at org.glassfish.ejb.startup.EjbApplication.loadAndStartContainers(EjbApplication.java:127) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:179) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:54) at com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:500) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:177) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:329) at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:302) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:259) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:176) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) Caused by: javax.ejb.EJBException: nested exception is: java.lang.ClassCastException: com.sun.ejb.containers.SingletonContextImpl cannot be cast to com.sun.ejb.containers.SessionContextImpl at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1519) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1474) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy79.getMessage(Unknown Source) at myapp.__EJB31_Generated__BeanMessage__Intf____Bean__.getMessage(Unknown Source) at myapp.BeanRoot.afterConstruct(BeanRoot.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:685) at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:64) at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:209) at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:529) ... 30 more javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:736) at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:451) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:68) at org.glassfish.ejb.startup.EjbApplication.loadAndStartContainers(EjbApplication.java:127) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:179) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:54) at com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:500) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:177) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:329) at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:302) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:259) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:176) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) |#] [#|2008-11-03T09:51:50.083-0800|SEVERE|glassfish|javax.enterprise.system.core|_ThreadID=14;_ThreadName=Thread-4;|Exception while deploying the app javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB javax.ejb.CreateException: Could not create stateless EJB at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:537) at com.sun.ejb.containers.AbstractSingletonContainer.access$000(AbstractSingletonContainer.java:83) at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:734) at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:451) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:68) at org.glassfish.ejb.startup.EjbApplication.loadAndStartContainers(EjbApplication.java:127) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:179) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:54) at com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:500) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:177) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:329) at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:302) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:259) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:176) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) Caused by: javax.ejb.EJBException: nested exception is: java.lang.ClassCastException: com.sun.ejb.containers.SingletonContextImpl cannot be cast to com.sun.ejb.containers.SessionContextImpl at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1519) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1474) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:195) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy79.getMessage(Unknown Source) at myapp.__EJB31_Generated__BeanMessage__Intf____Bean__.getMessage(Unknown Source) at myapp.BeanRoot.afterConstruct(BeanRoot.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:685) at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:64) at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:209) at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:529) ... 30 more javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:736) at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:451) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:68) at org.glassfish.ejb.startup.EjbApplication.loadAndStartContainers(EjbApplication.java:127) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:179) at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:54) at com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:500) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:177) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:329) at com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:302) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:312) at com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:119) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:259) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:176) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:147) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) |#] [#|2008-11-03T09:51:58.455-0800|INFO|glassfish|javax.enterprise.system.tools.admin|_ThreadID=15;_ThreadName=Thread-4;|Server shutdown initiated|#]