3 Replies Latest reply on Feb 7, 2010 6:26 PM by Wolfgang Bergbauer

    Deploying non-ejb3 seam app in websphere v6.1.0.17

    Chuanbao Lu Newbie

      I have a application build with Seam 2.2.0.GA.  I am try to deploy it to WebSphere v6.1.0.17.


      The application works fine on the local JBoss application server. I have done some required setting as below:


      1. Change the web.xml like this

      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xmlns="http://java.sun.com/xml/ns/j2ee" 
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
      http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" 
      id="WebApp_ID" version="2.4">


      2. Change the transaction manager in persistance.xml like this
      <property name="hibernate.transaction.manager_lookup_class"
      value="org.hibernate.transaction.WebSphereExtendedJTATransactionLookup"/>


      3. Change the class loader setting in websphere as
      Class loader order 
      = Classes loaded with application class loader first

      and
      WAR class loader policy 
      = Single class loader for application

      and
      Enterprise Applications > intellitax_war > Manage Modules > intellitax.war, 
      class loader order = Classes loaded with application class loader first



      I used to use this setting to deploy another application to WebSphere 6.1.0.17 successfully last year. But I got this error this time.


      [04/11/09 11:40:02:405 EST] 00000026 ApplicationMg A   WSVR0200I: Starting application: intellitax_war
      [04/11/09 11:40:02:415 EST] 00000026 ApplicationMg A   WSVR0204I: Application: intellitax_war  Application build level: Unknown
      [04/11/09 11:40:02:656 EST] 00000026 ExtensionRegi E   CWXRS0004E: Failed to resolve plug-in
      [04/11/09 11:40:02:746 EST] 00000026 WebGroup      A   SRVE0169I: Loading Web Module: intellitax.war.
      [04/11/09 11:40:11:709 EST] 00000026 WebApp        E   Exception caught while initializing context 
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: entityManagerFactory
           at org.jboss.seam.Component.newInstance(Component.java:2144)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
           at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
           at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:116)
           at org.jboss.seam.init.Initialization.init(Initialization.java:740)
           at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
           at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:645)
           at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:319)
           at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:290)
           at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
           at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
           at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
           at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
           at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
           at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1303)
           at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
           at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
           at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:949)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1486)
           at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4042)
           at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4139)
           at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1491)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:615)
           at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62)
           at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:615)
           at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265)
           at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1089)
           at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971)
           at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
           at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
           at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
           at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
           at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1081)
           at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
           at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:974)
           at com.ibm.ws.management.commands.AdminServiceCommands$InvokeCmd.execute(AdminServiceCommands.java:251)
           at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:239)
           at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.execute(ApplicationDeploymentCollectionAction.java:537)
           at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
           at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
           at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
           at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:528)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
           at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1075)
           at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1016)
           at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
           at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
           at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:771)
           at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
           at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:546)
           at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
           at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:321)
           at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1070)
           at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:273)
           at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
           at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:319)
           at com.ibm.isclite.container.controller.InformationController.processForwardConfig(InformationController.java:206)
           at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
           at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
           at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:528)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
           at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1075)
           at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1016)
           at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
           at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistence(WSCUrlFilter.java:792)
           at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:363)
           at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:229)
           at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
           at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
           at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
           at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:771)
           at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
           at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:546)
           at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
           at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
           at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
           at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
           at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
           at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
           at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
           at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
           at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)
           at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
           at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
           at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
           at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
           at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
           at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
           at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
           at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
      Caused by: javax.persistence.PersistenceException: [PersistenceUnit: SmarTax] Unable to configure EntityManagerFactory
           at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:265)
           at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:125)
           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
           at org.jboss.seam.persistence.EntityManagerFactory.createEntityManagerFactory(EntityManagerFactory.java:85)
           at org.jboss.seam.persistence.EntityManagerFactory.startup(EntityManagerFactory.java:50)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:615)
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2257)
           at org.jboss.seam.Component.callCreateMethod(Component.java:2172)
           at org.jboss.seam.Component.newInstance(Component.java:2132)
           ... 99 more
      Caused by: java.lang.ArrayStoreException
           at com.ibm.oti.reflect.AnnotationHelper.getReturnValueFromEntry(Native Method)
           at com.ibm.oti.reflect.AnnotationHelper.access$000(AnnotationHelper.java:14)
           at com.ibm.oti.reflect.AnnotationHelper$AnnotationInvocationHandler.invoke(AnnotationHelper.java:104)
           at $Proxy260.value(Unknown Source)
           at org.hibernate.cfg.AbstractPropertyHolder.buildColumnOverride(AbstractPropertyHolder.java:139)
           at org.hibernate.cfg.AbstractPropertyHolder.setCurrentProperty(AbstractPropertyHolder.java:56)
           at org.hibernate.cfg.ComponentPropertyHolder.<init>(ComponentPropertyHolder.java:62)
           at org.hibernate.cfg.PropertyHolderBuilder.buildPropertyHolder(PropertyHolderBuilder.java:45)
           at org.hibernate.cfg.AnnotationBinder.fillComponent(AnnotationBinder.java:1809)
           at org.hibernate.cfg.AnnotationBinder.bindComponent(AnnotationBinder.java:1768)
           at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1630)
           at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:754)
           at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:546)
           at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:291)
           at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1148)
           at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1226)
           at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:173)
           at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:854)
           at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:191)
           at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:253)
           ... 112 more
      
      [04/11/09 11:40:12:650 EST] 00000026 config        I   Initializing Sun's JavaServer Faces implementation (1.2_04-b16-p02) for context 'intellitax.war'
      [04/11/09 11:40:13:842 EST] 00000026 application   I   JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
      [04/11/09 11:40:15:835 EST] 00000026 ServletWrappe I   SRVE0242I: [intellitax_war] [/Intellitax] [Faces Servlet]: Initialization successful.
      [04/11/09 11:40:15:855 EST] 00000026 VirtualHost   I   SRVE0250I: Web Module <null> has been bound to default_host[*:9080,*:80,*:9443,*:5060,*:5061,*:443].
      [04/11/09 11:40:15:875 EST] 00000026 ApplicationMg A   WSVR0221I: Application started: intellitax_war

      Any help will be appriciated.