Override REST libraries
4integration May 5, 2014 10:50 AMHi,
I am trying to deploy SCM Manager (http://www.scm-manager.org/) on Wildfly 8.1 but it fails due to conflicting jax-rs libraries.
Is it possible to allow override with the libs packaged in WAR file?
Any other solution?
11:51:09,147 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "scm-webapp-1.36.war" (runtime-name: "scm-webapp-1.36.war") 11:51:14,609 WARN [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015960: Class Path entry jaxb-api.jar in /C:/Users/joacim/Downloads/wildfly-8.0.0.Final/wildfly-8.0.0.Final/bin/content/scm-webapp-1.36.war/WEB-INF/lib/jaxb-impl-2.2.3.jar does not point to a valid jar for a Class-Path reference. 11:51:14,610 WARN [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015960: Class Path entry activation.jar in /C:/Users/joacim/Downloads/wildfly-8.0.0.Final/wildfly-8.0.0.Final/bin/content/scm-webapp-1.36.war/WEB-INF/lib/jaxb-impl-2.2.3.jar does not point to a valid jar for a Class-Path reference. 11:51:14,610 WARN [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015960: Class Path entry jsr173_1.0_api.jar in /C:/Users/joacim/Downloads/wildfly-8.0.0.Final/wildfly-8.0.0.Final/bin/content/scm-webapp-1.36.war/WEB-INF/lib/jaxb-impl-2.2.3.jar does not point to a valid jar for a Class-Path reference. 11:51:14,611 WARN [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015960: Class Path entry jaxb1-impl.jar in /C:/Users/joacim/Downloads/wildfly-8.0.0.Final/wildfly-8.0.0.Final/bin/content/scm-webapp-1.36.war/WEB-INF/lib/jaxb-impl-2.2.3.jar does not point to a valid jar for a Class-Path reference. 11:51:14,674 INFO [org.jboss.as.pojo] (MSC service thread 1-7) JBAS017000: Found legacy bean/pojo namespace: urn:jboss:bean-deployer:2.0 - might be missing some xml features (potential exceptions). 11:51:16,855 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016002: Processing weld deployment scm-webapp-1.36.war 11:51:16,891 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-1) HV000001: Hibernate Validator 5.0.3.Final 11:51:17,008 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016005: Starting Services for CDI deployment: scm-webapp-1.36.war 11:51:17,026 INFO [org.jboss.weld.Version] (MSC service thread 1-1) WELD-000900: 2.1.2 (Final) 11:51:17,048 INFO [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016008: Starting weld service for deployment scm-webapp-1.36.war 11:51:17,157 WARN [org.jboss.weld.Event] (MSC service thread 1-4) WELD-000411: Observer method [BackedAnnotatedMethod] com.sun.jersey.server.impl.cdi.CDIExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds. 11:51:18,007 INFO [sonia.scm.boot.BootstrapListener] (MSC service thread 1-8) start scm-manager 1.36 in stage: PRODUCTION 11:51:18,007 WARN [sonia.scm.boot.BootstrapListener] (MSC service thread 1-8) fallback to default classloader 11:51:18,025 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host."/scm-webapp-1.36": org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host."/scm-webapp-1.36": Failed to start service at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.0.Final.jar:1.2.0.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40] at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40] Caused by: java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: -10 at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:216) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.Final.jar:1.2.0.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.Final.jar:1.2.0.Final] ... 3 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -10 at java.lang.String.substring(String.java:1911) [rt.jar:1.7.0_40] at sonia.scm.plugin.DefaultPluginLoader.extractResourcePath(DefaultPluginLoader.java:302) at sonia.scm.plugin.DefaultPluginLoader.loadPlugin(DefaultPluginLoader.java:337) at sonia.scm.plugin.DefaultPluginLoader.loadPlugins(DefaultPluginLoader.java:404) at sonia.scm.plugin.DefaultPluginLoader.<init>(DefaultPluginLoader.java:131) at sonia.scm.ScmContextListener.getDefaultInjector(ScmContextListener.java:184) at sonia.scm.ScmContextListener.getInjector(ScmContextListener.java:168) at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:45) at sonia.scm.ScmContextListener.contextInitialized(ScmContextListener.java:133) at sonia.scm.boot.BootstrapListener.contextInitialized(BootstrapListener.java:171) at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173) at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:187) ... 7 more 11:51:18,119 ERROR [org.jboss.as.controller.management-operation] (XNIO-1 task-5) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "scm-webapp-1.36.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host.\"/scm-webapp-1.36\"" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host.\"/scm-webapp-1.36\": Failed to start service Caused by: java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: -10 Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -10"}} 11:51:18,134 ERROR [org.jboss.as.server] (XNIO-1 task-5) JBAS015870: Deploy of deployment "scm-webapp-1.36.war" was rolled back with the following failure message:{"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host.\"/scm-webapp-1.36\"" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host.\"/scm-webapp-1.36\": Failed to start service Caused by: java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: -10 Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -10"}} 11:51:18,161 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016009: Stopping weld service for deployment scm-webapp-1.36.war 11:51:21,110 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment scm-webapp-1.36.war (runtime-name: scm-webapp-1.36.war) in 2976ms 11:51:21,116 INFO [org.jboss.as.controller] (XNIO-1 task-5) JBAS014774: Service status report JBAS014775: New missing/unsatisfied dependencies: service jboss.deployment.unit."scm-webapp-1.36.war".component."com.sun.faces.config.ConfigureListener".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."com.sun.jersey.server.impl.container.servlet.Include".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."javax.faces.webapp.FacetTag".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."org.apache.shiro.web.tags.AuthenticatedTag".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."org.apache.shiro.web.tags.GuestTag".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."org.apache.shiro.web.tags.HasAnyRolesTag".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."org.apache.shiro.web.tags.HasPermissionTag".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."org.apache.shiro.web.tags.HasRoleTag".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."org.apache.shiro.web.tags.LacksPermissionTag".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."org.apache.shiro.web.tags.LacksRoleTag".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."org.apache.shiro.web.tags.NotAuthenticatedTag".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."org.apache.shiro.web.tags.PrincipalTag".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."org.apache.shiro.web.tags.UserTag".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."org.jboss.weld.servlet.WeldInitialListener".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."org.jboss.weld.servlet.WeldTerminalListener".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."sonia.scm.boot.BootstrapFilter".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.deployment.unit."scm-webapp-1.36.war".component."sonia.scm.boot.BootstrapListener".START (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] service jboss.undertow.deployment.default-server.default-host."/scm-webapp-1.36" (missing) dependents: [service jboss.deployment.unit."scm-webapp-1.36.war".deploymentCompleteService] JBAS014777: Services which failed to start: service jboss.undertow.deployment.default-server.default-host."/scm-webapp-1.36"