WAR Problems with JBoss 7
markusdöring Aug 11, 2011 8:48 AMI'm using
JBoss AS 7.0.0.Final "Lightning": Everything (NOT Java EE6 Certified) (will need stuff like JMS later).
Now i try to get a "simple as possible" WAR to running.
If i try the WAR standalong, the deployment seems to work:
17:04:47,940 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) Starting deployment of "TestServer-WEB.war"
17:04:47,981 INFO [org.jboss.web] (MSC service thread 1-5) registering web context: /TestServer-WEB
17:04:47,998 INFO [org.jboss.as.server.controller] (HttpManagementService-threads - 8) Deployed "TestServer-WEB.war"
but accessing http://localhost:8080/TestServer-WEB/faces/hello.xhtml gives me a 404 page not found.
Also i tryied to put it into an "simple as possible EAR.
Here the deployment failes:
17:07:03,159 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) Starting deployment of "TestServer.ear"
17:07:03,164 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) Starting deployment of "TestServer-WEB.war"
17:07:03,191 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/TestServer]] (MSC service thread 1-2) StandardWrapper.Throwable: java.lang.IllegalStateException: Die Anwendung wurde bei Systemstart nicht einwandfrei initialisiert, Factory konnte nicht gefunden werden: javax.faces.context.FacesContextFactory
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:166) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3631) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3844) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
17:07:03,195 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/TestServer]] (MSC service thread 1-2) Servlet /TestServer threw load() exception: java.lang.IllegalStateException: Die Anwendung wurde bei Systemstart nicht einwandfrei initialisiert, Factory konnte nicht gefunden werden: javax.faces.context.FacesContextFactory
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:166) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3631) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3844) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
17:07:03,197 INFO [org.jboss.web] (MSC service thread 1-2) registering web context: /TestServer
17:07:03,225 INFO [org.jboss.as.server.controller] (HttpManagementService-threads - 9) Deployed "TestServer.ear"
but accessing http://localhost:8080/TestServer/faces/hello.xhtml partly works, it don't give back a 404 but a 500 with the same error message as above in the stack tree.
I'be attached both: WAR and EAR file.
please help.
Regards
Markus
Added TestSimple.ear with packaged .war inside .ear
-
TestServer-WEB.war 1.5 KB
-
TestServer.ear 2.2 KB
-
TestSimple.ear 1.7 KB