-
1. Re: Error loading jboss-deployment-structure.xml from path,Unexpected content of type 'element start', name is '{urn:jboss:deployment-structure:1.0}exclude-subsystems', text is: 'null'
sreenathac Jul 15, 2015 8:09 AM (in response to sreenathac)I tried by removing the commented block in the above xml, but it is throwing the same exception...
-
2. Re: Error loading jboss-deployment-structure.xml from path,Unexpected content of type 'element start', name is '{urn:jboss:deployment-structure:1.0}exclude-subsystems', text is: 'null'
ctomc Jul 15, 2015 9:30 AM (in response to sreenathac)Sreenath Reddy wrote:
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
you use xsd 1.2 which got support for excluding subsystems.
-
3. Re: Error loading jboss-deployment-structure.xml from path,Unexpected content of type 'element start', name is '{urn:jboss:deployment-structure:1.0}exclude-subsystems', text is: 'null'
sreenathac Jul 15, 2015 10:28 AM (in response to ctomc)Hi Tomaz,
Thank you for quick response, I deployed my application without excluding, the deployment was success and able to see the login page, but when I am clicking on the link <h:commandLink action="register">Register New User</h:commandLink>, it is throwing the below exception
2015-07-15 19:27:38,029 INFO [org.jboss.seam.Component] (MSC service thread 1-3) Component: org.jboss.seam.web.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.UserPrincipal
2015-07-15 19:27:38,033 INFO [org.jboss.seam.Component] (MSC service thread 1-3) Component: register, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: RegisterAction, JNDI: java:app/booking/register/local
2015-07-15 19:27:38,039 WARN [org.jboss.seam.security.permission.PersistentPermissionResolver] (MSC service thread 1-3) no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required.
2015-07-15 19:27:38,136 SEVERE [javax.faces] (MSC service thread 1-3) Unable to obtain InjectionProvider from init time FacesContext. Does this container implement the Mojarra Injection SPI?
2015-07-15 19:27:38,140 SEVERE [javax.faces] (MSC service thread 1-3) Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory. Attempting to find backup.
2015-07-15 19:27:38,146 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./booking: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./booking: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_11]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_11]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]
Caused by: java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory.
at javax.faces.FactoryFinderInstance.getFactory(FactoryFinderInstance.java:500)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:287)
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:350)
at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:79)
at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)
at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:220)
at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:125)
at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:508)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:88)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
... 3 more
2015-07-15 19:27:38,336 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "booking.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./booking" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./booking: Failed to start service
Caused by: java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory. "}}
2015-07-15 19:27:38,416 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "booking.ear" (runtime-name : "booking.ear")
2015-07-15 19:27:38,438 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.undertow.deployment.default-server.default-host./booking: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./booking: Failed to start service
2015-07-15 19:27:38,597 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:10190/management
2015-07-15 19:27:38,603 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:10190
2015-07-15 19:27:38,611 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.2.0.Final "Tweek" started (with errors) in 15503ms - Started 625 of 703 services (3 services failed or missing dependencies, 124 services are lazy, passive or on-demand)
2015-07-15 19:27:38,762 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 21) JBAS011410: Stopping Persistence Unit (phase 2 of 2) Service 'booking.ear/app.jar#booking-seam'
2015-07-15 19:27:38,776 INFO [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016009: Stopping weld service for deployment booking.ear
2015-07-15 19:27:38,829 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 21) JBAS011410: Stopping Persistence Unit (phase 1 of 2) Service 'booking.ear/app.jar#booking-seam'
2015-07-15 19:27:38,881 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015974: Stopped subdeployment (runtime-name: jboss-el.jar) in 181ms
2015-07-15 19:27:38,883 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015974: Stopped subdeployment (runtime-name: jboss-seam.jar) in 184ms
2015-07-15 19:27:38,886 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015974: Stopped subdeployment (runtime-name: app.jar) in 186ms
2015-07-15 19:27:38,922 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015974: Stopped subdeployment (runtime-name: app.war) in 222ms
2015-07-15 19:27:38,931 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment booking.ear (runtime-name: booking.ear) in 233ms
2015-07-15 19:27:39,225 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "booking.ear" (runtime-name: "booking.ear")
2015-07-15 19:27:39,228 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.deployment.subunit."booking.ear"."app.jar".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."booking.ear".deploymentCompleteService]
service jboss.deployment.subunit."booking.ear"."app.war".component."javax.faces.webapp.FacesServlet".START (missing) dependents: [service jboss.deployment.subunit."booking.ear"."app.war".deploymentCompleteService]
service jboss.deployment.subunit."booking.ear"."app.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.deployment.subunit."booking.ear"."app.war".deploymentCompleteService]
service jboss.deployment.subunit."booking.ear"."app.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.deployment.subunit."booking.ear"."app.war".deploymentCompleteService]
service jboss.deployment.subunit."booking.ear"."app.war".component."org.jboss.seam.servlet.ResourceServlet".START (missing) dependents: [service jboss.deployment.subunit."booking.ear"."app.war".deploymentCompleteService]
service jboss.deployment.subunit."booking.ear"."app.war".component."org.jboss.seam.servlet.SeamListener".START (missing) dependents: [service jboss.deployment.subunit."booking.ear"."app.war".deploymentCompleteService]
service jboss.deployment.subunit."booking.ear"."app.war".component."org.jboss.seam.web.SeamFilter".START (missing) dependents: [service jboss.deployment.subunit."booking.ear"."app.war".deploymentCompleteService]
service jboss.deployment.subunit."booking.ear"."app.war".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."booking.ear".deploymentCompleteService]
service jboss.deployment.subunit."booking.ear"."jboss-el.jar".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."booking.ear".deploymentCompleteService]
service jboss.deployment.subunit."booking.ear"."jboss-seam.jar".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."booking.ear".deploymentCompleteService]
service jboss.undertow.deployment.default-server.default-host./booking (missing) dependents: [service jboss.deployment.subunit."booking.ear"."app.war".deploymentCompleteService]
JBAS014777: Services which failed to start: service jboss.undertow.deployment.default-server.default-host./booking
2015-07-15 19:28:56,948 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010409: Unbound data source [java:jboss/datasources/ExampleDS]
Do you have any idea about this issue, or excluding JSF is mandatory?
Thanks,
Sreenath
-
4. Re: Error loading jboss-deployment-structure.xml from path,Unexpected content of type 'element start', name is '{urn:jboss:deployment-structure:1.0}exclude-subsystems', text is: 'null'
sreenathac Jul 15, 2015 10:52 AM (in response to ctomc)I am getting the same exception Even after changing the xsd to 1.2
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<dependencies>
<module name="org.hibernate" export="true" />
<module name="javax.faces.api" export="true" />
<module name="com.sun.jsf-impl" export="true" />
<module name="org.dom4j" export="true" />
<module name="org.hibernate.validator" export="true" />
</dependencies>
<exclude-subsystems>
<subsystem name="jsf"/>
</exclude-subsystems>
</deployment>
</jboss-deployment-structure>
-
5. Re: Error loading jboss-deployment-structure.xml from path,Unexpected content of type 'element start', name is '{urn:jboss:deployment-structure:1.0}exclude-subsystems', text is: 'null'
ctomc Jul 16, 2015 5:20 AM (in response to sreenathac)no you don't get same exception, you can get a similar one, and if so, please post what it is.