[jboss-user] [JBoss Seam] - Seam 1.3 CVS Glassfish Example Broken
lowecg2004
do-not-reply at jboss.com
Sat Jun 2 17:38:30 EDT 2007
If I deploy as per readme file then I get the following exception:
[#|2007-06-02T22:20:47.554+0100|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=15;_ThreadName=Thread-25;_RequestID=143a574d-5863-4f62-af6f-279b00ea4db9;|log4j:ERROR Could not instantiate class [org.jboss.logging.util.OnlyOnceErrorHandler].|#]
|
| [#|2007-06-02T22:20:47.570+0100|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=15;_ThreadName=Thread-25;_RequestID=143a574d-5863-4f62-af6f-279b00ea4db9;|
| java.lang.ClassNotFoundException: org.jboss.logging.util.OnlyOnceErrorHandler
| at com.sun.enterprise.loader.EJBClassLoader.findClassData(EJBClassLoader.java:724)
| at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:614)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:169)
| at org.apache.log4j.helpers.Loader.loadClass(Loader.java:160)
| at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:309)
| at org.apache.log4j.xml.DOMConfigurator.parseErrorHandler(DOMConfigurator.java:227)
| at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:193)
| at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
| at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
| at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
| at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
| at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
| at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
| at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
| at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
| at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
| at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
| at org.apache.log4j.Logger.getLogger(Logger.java:85)
| 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 org.apache.commons.logging.impl.Log4jProxy.<init>(Log4jProxy.java:114)
| at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:39)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
| at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
| at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
| at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
| at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:353)
| at org.hibernate.ejb.Ejb3Configuration.<clinit>(Ejb3Configuration.java:102)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:125)
| at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:195)
| at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:91)
| at com.sun.enterprise.server.AbstractLoader.loadPersistenceUnits(AbstractLoader.java:853)
| at com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:180)
| at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:113)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:322)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:196)
| at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:633)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:908)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
| at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
| at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:296)
| at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:203)
| at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
| at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
| at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
| at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
| at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:541)
| at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:585)
| at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:719)
| 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.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
| at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
| at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
| at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
| at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
| at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
| at $Proxy1.invoke(Unknown Source)
| at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
| at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:133)
| at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:517)
| at java.lang.Thread.run(Thread.java:619)
| |#]
|
I found instances of missing OnlyOnceErrorHandler class in several jars. I adapted the example to use jboss-ejb3-all.jar, but this lead to:
[#|2007-06-02T22:35:20.742+0100|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=80b84634-f6eb-4ebe-98eb-cf983f788e48;|java.lang.IllegalStateException: No application context active
| at org.jboss.seam.Component.forName(Component.java:1581)
| at org.jboss.seam.Component.getInstance(Component.java:1631)
| at org.jboss.seam.Component.getInstance(Component.java:1614)
| at org.jboss.seam.Component.getInstance(Component.java:1593)
| at org.jboss.seam.core.Messages.instance(Messages.java:108)
| at org.jboss.seam.jsf.SeamApplicationMessageBundle.handleGetObject(SeamApplicationMessageBundle.java:28)
| at java.util.ResourceBundle.getObject(ResourceBundle.java:380)
| at java.util.ResourceBundle.getString(ResourceBundle.java:346)
| at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:108)
| at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:80)
| at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:276)
| at com.sun.faces.util.Util.createInstance(Util.java:585)
| at com.sun.faces.util.Util.createInstance(Util.java:544)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:713)
| at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:596)
| at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:496)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
| at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1095)
| at org.apache.catalina.core.StandardHost.start(StandardHost.java:924)
| at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1095)
| at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:520)
| at org.apache.catalina.startup.Embedded.start(Embedded.java:920)
| at com.sun.enterprise.web.WebContainer.start(WebContainer.java:794)
| at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:722)
| at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:72)
| at com.sun.enterprise.server.ondemand.ServiceGroup.startLifecycleServices(ServiceGroup.java:266)
| at com.sun.enterprise.server.ondemand.WebServiceGroup.startLifecycleServices(WebServiceGroup.java:210)
| at com.sun.enterprise.server.ondemand.WebServiceGroup.start(WebServiceGroup.java:60)
| at com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:180)
| at java.security.AccessController.doPrivileged(Native Method)
| at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:177)
| at com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:45)
| at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:72)
| at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:62)
| at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generateAppLoaderEntryContext(ServerEntryHelper.java:47)
| at com.sun.enterprise.server.AbstractLoader.generateEntryContext(AbstractLoader.java:831)
| at com.sun.enterprise.server.AbstractLoader.notifyAppEvent(AbstractLoader.java:837)
| at com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:172)
| at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:113)
| at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:206)
| at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:204)
| at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326)
| at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
| at com.sun.enterprise.server.PEMain.run(PEMain.java:326)
| at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
| 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.enterprise.server.PELaunch.main(PELaunch.java:272)
| |#]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050702#4050702
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050702
More information about the jboss-user
mailing list