2 Replies Latest reply on Nov 10, 2010 8:20 AM by Alexandre Baldo

    Maven2 + Seam2 + WebSphere7: Deploy is not working

    Alexandre Baldo Newbie
      Hello, all!
      I'm having a problem deploying a Maven + Seam app in WebSphere (v.7.0.0.7).
      I followed the doc 'Chapter 40. Seam on IBM's WebSphere AS v7' (http://docs.jboss.org/seam/snapshot/en-US/html/websphere.html).
      And I used 'Strategy 1: Specify which JNDI name Seam must use for each Session Bean'.

      Here is my 'application.xml':

      <application>
        <display-name>portalplanoa-ear</display-name>
        <module>
          <ejb>lib/jboss-seam-2.2.0.GA.jar</ejb>
        </module>
        <module>
          <ejb>lib/portalplanoa-core-1.0.jar</ejb>
        </module>
        <module>
          <ejb>lib/vendas-core-1.0.jar</ejb>
        </module>
        <module>
          <web>
            <web-uri>portalplanoa-web-1.0.war</web-uri>
            <context-root>/portalplanoa</context-root>
          </web>
        </module>
      </application>

      Here is my 'persistence.xml' :

      <persistence-unit name="vendas" transaction-type="JTA">           <provider>org.hibernate.ejb.HibernatePersistence</provider>
      <jta-data-source>java:/portalplanoa</jta-data-source>                   
      <class>br.com.brasilcap.foundation.security.entity.Permissao</class>
      <class>br.com.brasilcap.foundation.security.entity.Perfil</class>
                      
      <class>br.com.brasilcap.foundation.security.entity.Usuario</class>
      <properties>
        <property name="hibernate.dialect"  
             value="org.hibernate.dialect.OracleDialect" />
        <property name="hibernate.hbm2ddl.auto" value="" />
        <property name="hibernate.show_sql" value="true" />
        <property name="hibernate.format_sql" value="true" />
        <property name="hibernate.transaction.manager_lookup_class"  
      value="org.hibernate.transaction.WebSphereTransactionManagerLookup"/>
      </properties>
      </persistence-unit>

      And the final EAR has the following structure:

      portalplanoa.ear
        |- lib
        |- META-INF
        |  |- MANIFEST.MF
        |  |- application.xml
        |-portalplanoa-web-1.0.war
           |- META-INF
           |- view
           |- WEB-INF
              |
              |-classes
              |  |-seam-jndi.properties
              |-components.xml
              |-web.xml


      And here is the stacktrace:

      [09/11/10 11:44:22:354 BRST] 00000081 webapp        I com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0169I: Carregando Módulo da Web: portalplanoa-web-1.0.
      [09/11/10 11:44:22:511 BRST] 00000081 WASSessionCor I SessionContextRegistry getSessionContext SESN0176I: Será criado um novo contexto de sessão para a chave de aplicativo default_host/portalplanoa
      [09/11/10 11:44:26:745 BRST] 00000081 webapp        E com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E: Exceção capturada ao inicializar o contexto: {0}
                                       java.lang.IllegalAccessError
              at org.jboss.seam.util.ProxyFactory.makeConstructor(ProxyFactory.java:803)
              at org.jboss.seam.util.ProxyFactory.makeConstructors(ProxyFactory.java:685)
              at org.jboss.seam.util.ProxyFactory.make(ProxyFactory.java:565)
              at org.jboss.seam.util.ProxyFactory.createClass3(ProxyFactory.java:346)
              at org.jboss.seam.util.ProxyFactory.createClass2(ProxyFactory.java:325)
              at org.jboss.seam.util.ProxyFactory.createClass(ProxyFactory.java:284)
              at org.jboss.seam.Component.createProxyFactory(Component.java:2426)
              at org.jboss.seam.Component.getProxyFactory(Component.java:1513)
              at org.jboss.seam.Component.wrap(Component.java:1504)
              at org.jboss.seam.Component.instantiateJavaBean(Component.java:1442)
              at org.jboss.seam.Component.instantiate(Component.java:1359)
              at org.jboss.seam.Component.newInstance(Component.java:2122)
              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.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1667)
              at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:368)
              at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:294)
              at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
              at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
              at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)
              at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)
              at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
              at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
              at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)
              at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1313)
              at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:619)
              at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:938)
              at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)
              at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1266)
              at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4574)
              at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4662)
              at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
              at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1271)
              at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2043)
              at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)
              at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
              at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)
              at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:653)
              at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:615)
              at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1177)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
              at java.lang.reflect.Method.invoke(Method.java:600)
              at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
              at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
              at java.lang.reflect.Method.invoke(Method.java:600)
              at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243)
              at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1086)
              at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:967)
              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
              at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
              at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1320)
              at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
              at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1213)
              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:564)
              at org.apache.struts.action.RequestProcessor.processActionPerform(Unknown Source)
              at org.apache.struts.action.RequestProcessor.process(Unknown Source)
              at org.apache.struts.action.ActionServlet.process(Unknown Source)
              at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1589)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1523)
              at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
              at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
              at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:885)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:865)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
              at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
              at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:341)
              at org.apache.struts.action.RequestProcessor.doForward(Unknown Source)
              at org.apache.struts.tiles.TilesRequestProcessor.doForward(Unknown Source)
              at org.apache.struts.action.RequestProcessor.processForwardConfig(Unknown Source)
              at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Unknown Source)
              at com.ibm.isclite.container.controller.InformationController.processForwardConfig(InformationController.java:217)
              at org.apache.struts.action.RequestProcessor.process(Unknown Source)
              at org.apache.struts.action.ActionServlet.process(Unknown Source)
              at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1589)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1523)
              at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
              at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistence(WSCUrlFilter.java:927)
              at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:494)
              at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:315)
              at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
              at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
              at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
              at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:885)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:865)
              at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
              at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
              at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
              at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:863)
              at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
              at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:182)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
              at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
              at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
              at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1772)
              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:138)
              at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
              at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
              at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
              at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)


      Any help?

      Thank you!

      Baldo