RichFaces Showcase and TomEE
ccaspanello Aug 22, 2013 3:53 PMHas anyone sucessfully got RichFaces to work with TomEE?
I've downloaded the Showcase from https://github.com/richfaces4/showcase/tree/4.3.2.20130513-Final and used Maven to build the project using: mvn clean package. However, when I run the application I get the following stack trace in my log.
I've done some research and saw this link https://community.jboss.org/thread/221213. I attempted the suggested solution did not have any success.
We are trying TomEE 1.5.1 and RichFaces 4.3.2. I know there is a new version of RichFaces, however, we need to still support IE7.
The errors we are getting are the following:
INFO: Server startup in 1415 ms Aug 22, 2013 2:27:43 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6.war Aug 22, 2013 2:27:43 PM org.apache.tomee.catalina.TomcatWebAppBuilder init INFO: ------------------------- TomcatWebAppBuilder.init /richfaces-showcase-tomcat6 Aug 22, 2013 2:27:43 PM org.apache.openejb.util.JarExtractor extract INFO: Extracting jar: C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6.war Aug 22, 2013 2:27:49 PM org.apache.openejb.util.JarExtractor extract INFO: Extracted path: C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6 Aug 22, 2013 2:27:49 PM org.apache.tomee.catalina.TomEEClassLoaderEnricher validateJarFile WARNING: jar 'C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6\WEB-INF\lib\cdi-api-1.0-SP4.jar' contains offending class: javax.enterprise.context.ApplicationScoped. It will be ignored. Aug 22, 2013 2:27:49 PM org.apache.tomee.catalina.TomEEClassLoaderEnricher validateJarFile WARNING: jar 'C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6\WEB-INF\lib\hibernate-jpa-2.0-api-1.0.1.Final.jar' contains offending class: javax.persistence.Entity. It will be ignored. Aug 22, 2013 2:27:49 PM org.apache.tomee.catalina.TomEEClassLoaderEnricher validateJarFile WARNING: jar 'C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6\WEB-INF\lib\javax.inject-1.jar' contains offending class: javax.inject.Inject. It will be ignored. Aug 22, 2013 2:27:49 PM org.apache.tomee.catalina.TomEEClassLoaderEnricher validateJarFile WARNING: jar 'C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6\WEB-INF\lib\jboss-transaction-api_1.1_spec-1.0.0.Final.jar' contains offending class: javax.transaction.Transaction. It will be ignored. Aug 22, 2013 2:27:49 PM org.apache.tomee.catalina.TomEEClassLoaderEnricher validateJarFile WARNING: jar 'C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6\WEB-INF\lib\jms-api-1.1-rev-1.jar' contains offending class: javax.jms.Queue. It will be ignored. Aug 22, 2013 2:27:49 PM org.apache.tomee.catalina.TomEEClassLoaderEnricher validateJarFile WARNING: jar 'C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6\WEB-INF\lib\jsr250-api-1.0.jar' contains offending class: javax.annotation.PostConstruct. It will be ignored. Aug 22, 2013 2:27:49 PM org.apache.tomee.catalina.TomEEClassLoaderEnricher validateJarFile WARNING: jar 'C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6\WEB-INF\lib\validation-api-1.0.0.GA.jar' contains offending class: javax.validation.Validation. It will be ignored. Aug 22, 2013 2:27:49 PM org.apache.tomee.catalina.TomEEClassLoaderEnricher validateJarFile WARNING: jar 'C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6\WEB-INF\lib\weld-servlet-1.1.4.Final.jar' contains offending class: javax.enterprise.context.ApplicationScoped. It will be ignored. Aug 22, 2013 2:27:50 PM org.apache.openejb.config.DeploymentLoader mergeBeansXml SEVERE: Unable to read beans.xml from :file:/C:/apache-tomee-plus-1.5.1/webapps/richfaces-showcase-tomcat6/WEB-INF/beans.xml Aug 22, 2013 2:27:51 PM org.apache.openejb.config.ConfigurationFactory configureApplication INFO: Configuring enterprise application: C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6 Aug 22, 2013 2:27:53 PM org.apache.openejb.config.ConfigurationFactory configureService INFO: Configuring Service(id=BeanManager, type=Resource, provider-id=ProvidedByTomcat) Aug 22, 2013 2:27:53 PM org.apache.openejb.config.AutoConfig deploy INFO: Configuring PersistenceUnit(name=richfaces-showcase, provider=org.hibernate.ejb.HibernatePersistence) Aug 22, 2013 2:27:53 PM org.apache.openejb.config.AutoConfig setJtaDataSource INFO: Adjusting PersistenceUnit richfaces-showcase to Resource ID 'My DataSource' from 'null' Aug 22, 2013 2:27:53 PM org.apache.openejb.config.AutoConfig setNonJtaDataSource INFO: Adjusting PersistenceUnit richfaces-showcase to Resource ID 'My Unmanaged DataSource' from 'null' Aug 22, 2013 2:27:53 PM org.apache.openejb.config.AppInfoBuilder build INFO: Enterprise application "C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6" loaded. Aug 22, 2013 2:27:53 PM org.apache.openejb.assembler.classic.Assembler createApplication INFO: Assembling app: C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6 Aug 22, 2013 2:27:55 PM org.apache.openejb.assembler.classic.PersistenceBuilder createEntityManagerFactory INFO: PersistenceUnit(name=richfaces-showcase, provider=org.hibernate.ejb.HibernatePersistence) - provider time 1672ms Aug 22, 2013 2:27:55 PM org.apache.openejb.cdi.CdiBuilder initSingleton INFO: Existing thread singleton service in SystemInstance() org.apache.openejb.cdi.ThreadSingletonServiceImpl@65713428 Aug 22, 2013 2:27:55 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication INFO: OpenWebBeans Container is starting... Aug 22, 2013 2:27:55 PM org.apache.webbeans.plugins.PluginLoader startUp INFO: Adding OpenWebBeansPlugin : [CdiPlugin] Aug 22, 2013 2:27:55 PM org.apache.webbeans.plugins.PluginLoader startUp INFO: Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin] Aug 22, 2013 2:27:55 PM org.apache.openejb.cdi.BeansDeployer validateInjectionPoints INFO: All injection points are validated successfully. Aug 22, 2013 2:27:55 PM org.apache.openejb.cdi.OpenEJBLifecycle startApplication INFO: OpenWebBeans Container has started, it took 31 ms. Aug 22, 2013 2:27:55 PM org.apache.tomee.catalina.TomcatWebAppBuilder deployWebApps INFO: using context file C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6\META-INF\context.xml Aug 22, 2013 2:27:55 PM org.apache.openejb.assembler.classic.Assembler createApplication INFO: Deployed Application(path=C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6) Aug 22, 2013 2:27:56 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart Aug 22, 2013 2:27:56 PM org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/richfaces-showcase-tomcat6] startup failed due to previous errors Aug 22, 2013 2:27:56 PM org.apache.openejb.assembler.classic.Assembler destroyApplication INFO: Undeploying app: C:\apache-tomee-plus-1.5.1\webapps\richfaces-showcase-tomcat6 Aug 22, 2013 2:27:56 PM org.apache.openejb.assembler.classic.Assembler destroyApplication WARNING: cant unbind resource BeanManager Aug 22, 2013 2:27:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [/richfaces-showcase-tomcat6] registered the JDBC driver [org.hsqldb.jdbc.JDBCDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Aug 22, 2013 2:27:56 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/richfaces-showcase-tomcat6] appears to have started a thread named [HSQLDB Timer @1669e7e7] but has failed to stop it. This is very likely to create a memory leak.