Wednesday, 11 September 2013

JBoss EAP 6.1 Deployment Issue with EAR and WAR

JBoss EAP 6.1 Deployment Issue with EAR and WAR

I am having a problem with JBoss deploying an EAR package and a WAR
package as well here are the specs
AMAZON Linux 64 bits on the AWS EC2 service
JBoss EAP 6.1
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.11.90)
(amazon-62.1.11.11.90.55.amzn1-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
Now im running a basic WAR package with one page and and a primefaces jar
my web.xml for this is as follows
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns /javaee/web-app_3_0.xsd">
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<context-param>
<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
<param-value>true</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>faces/index.xhtml</welcome-file>
</welcome-file-list>
</web-app>
And I have this in the Manifest of the WAR:
Manifest-Version: 1.0
Dependencies: javax.faces.api
Now when deploying I hit this error:
^[[0m^[[0m03:48:44,695 INFO [org.jboss.as.server.deployment] (MSC
service thread 1-1) JBAS015876: Starting deployment of
"Intelinerd-war.war" (runtime-name: "Inteline$
^[[0m^[[0m03:48:44,714 INFO [org.jboss.as.remoting] (MSC service thread
1-1) JBAS017100: Listening on 0.0.0.0:4447
^[[0m^[[0m03:48:45,401 INFO [org.jboss.web] (ServerService Thread Pool
-- 50) JBAS018210: Register web context: /Intelinerd-war
^[[0m^[[31m03:48:45,517 SEVERE [javax.faces] (ServerService Thread Pool
-- 50) Application was not properly initialized at startup, could not
find Factory: javax.faces$
^[[0m^[[31m03:48:45,539 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/Intelinerd-war]]
(ServerService Thread Pool -- 50) JBWEB000289: Serv$
at
javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1010)
[jboss-jsf-api_2.1_spec-
2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:342)
[jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:302)
[jboss-jsf-api_2.1_spec-2.1.19.1.Final-redhat-1.jar:2.1.19.1.Final-redhat-1]
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1194)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1100)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3591)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3798)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:156)
[jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at
org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:60)
[jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at
org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:93)
[jboss-as-web-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[rt.jar:1.6.0_24]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[rt.jar:1.6.0_24]
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
[rt.jar:1.6.0_24]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
[rt.jar:1.6.0_24]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.6.0_24]
at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Not sure what is causing this does anyone have a solution I have been at
this for some time now and have not reached a solution.

No comments:

Post a Comment