Cannot shows portlet in GateIn 3.6 (JBoss AS7)
anishantony Sep 30, 2013 3:01 AMHi all
I migrated my working portal application from GateIn 3.2 (JBoss 6) to GateIn 3.6 (JBoss AS7). But in JBoss AS7 the portlets are not displaying. When i am going to start server there is an exception looks like follows
12:14:22,361 ERROR [org.jboss.web] (MSC service thread 1-7) JBAS018211: Could not load JSF managed bean class: com.gportal.view.bean.AOBean
12:14:22,424 ERROR [org.jboss.web] (MSC service thread 1-7) JBAS018211: Could not load JSF managed bean class: com.gportal.view.bean.EveCorrGroupsBean
12:14:22,485 ERROR [org.jboss.web] (MSC service thread 1-7) JBAS018211: Could not load JSF managed bean class: com.gportal.view.bean.JMXBean
12:14:22,487 ERROR [org.jboss.web] (MSC service thread 1-7) JBAS018211: Could not load JSF managed bean class: com.gportal.reports.view.bean.ReportsBean
12:14:22,487 ERROR [org.jboss.web] (MSC service thread 1-7) JBAS018211: Could not load JSF managed bean class: com.gportal.view.bean.InfoBean
12:14:22,523 ERROR [org.jboss.web] (MSC service thread 1-7) JBAS018211: Could not load JSF managed bean class: com.gportal.view.bean.LIBean
12:14:23,033 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."gportal.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."gportal.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "gportal.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_37]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_37]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_37]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011232: Only one JAX-RS Application Class allowed. com.sun.jersey.api.core.ClasspathResourceConfig com.sun.jersey.api.core.WebAppResourceConfig com.sun.jersey.api.core.PackagesResourceConfig com.sun.jersey.api.core.ClassNamesResourceConfig com.sun.jersey.api.core.ResourceConfig com.sun.jersey.api.core.ApplicationAdapter com.sun.jersey.server.impl.application.DeferredResourceConfig com.sun.jersey.api.core.DefaultResourceConfig com.sun.jersey.api.core.ScanningResourceConfig
at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scan(JaxrsScanningProcessor.java:209)
at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:105)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Here follows what i do
- Put the ear file into gatein/extension directory
- Added the <security-domain> and <datasource> in standalone.xml file
- Deploy the war file into deployment directory (my war file name is gportal.war)
- Portlet.xml contains in gportal.war\WEB-INF
- Here portlets are created using jsf 1.2