Problème de démarrage d application.war webSphere9

Spring2023 Messages postés 1 Date d'inscription lundi 2 octobre 2023 Statut Membre Dernière intervention 2 octobre 2023 - Modifié le 2 oct. 2023 à 11:45

Bonjour,

J’ai créé une application API backend avec spring boot et maven, mais je n'arrive pas à démarrer application.war au niveau de Websphere 9 IBM j’ai l’erreur suivante :

     FFDC Exception:com.ibm.ws.exception.RuntimeWarning SourceId:com.ibm.wsspi.runtime.component.WsComponentImpl ProbeId:297 Reporter:com.ibm.ws.runtime.component.CompositionUnitMgrImpl@2e3bbf6e

com.ibm.ws.exception.RuntimeWarning: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: null

            at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:433)

            at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:719)

            at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1249)

            at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1591)

            at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:720)

            at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:1162)

            at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:801)

            at com.ibm.ws.runtime.component.ApplicationMgrImpl$5.run(ApplicationMgrImpl.java:2325)

            at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5568)

            at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5694)

            at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)

            at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2330)

            at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:436)

            at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)

            at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:379)

            at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:127)

            at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:985)

            at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:524)

            at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)

Caused by: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: null

            at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:914)

            at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:789)

            at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:427)

            ... 18 more

Caused by: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: null

            at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:186)

            at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:904)

            ... 20 more

Caused by: java.lang.ExceptionInInitializerError

            at java.lang.J9VMInternals.ensureError(J9VMInternals.java:145)

            at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:134)

            at org.apache.jasper.runtime.JspFactoryImpl.getJspApplicationContext(JspFactoryImpl.java:267)

            at com.ibm.ws.cdi.web.impl.AbstractServletInitializer.onStartup(AbstractServletInitializer.java:104)

            at com.ibm.ws.webcontainer.webapp.WebAppImpl.initializeServletContainerInitializers(WebAppImpl.java:653)

            at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:437)

            at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)

            at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:171)

            ... 21 more

Caused by: javax.el.ELException: Unable to find ExpressionFactory of type: # Licensed to the Apache Software Foundation (ASF) under one or more

            at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:181)

            at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:105)

            at org.apache.jasper.runtime.JspApplicationContextImpl.<clinit>(JspApplicationContextImpl.java:58)

            ... 27 more

Caused by: java.lang.ClassNotFoundException: # Licensed to the Apache Software Foundation (ASF) under one or more

            at java.net.URLClassLoader.findClass(URLClassLoader.java:610)

            at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:273)

            at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:942)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:887)

            at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:150)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:870)

            at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:67)

            at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:63)

            at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:630)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:870)

            at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:630)

            at java.lang.ClassLoader.loadClass(ClassLoader.java:870)

            at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:174)

            ... 29 more

pom.xml 

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.7.14</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<groupId>com.application</groupId>
	<artifactId>MyApplication</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<packaging>war</packaging>
	<name>MyApplication</name>
	<description>MyApplication API</description>
	<properties>
		<java.version>1.8</java.version>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-data-jpa</artifactId>
			<exclusions>
			<exclusion>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-tomcat</artifactId>
			</exclusion>
			</exclusions>
		</dependency>
	<!--<dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-validation</artifactId>
		<exclusions>
			<exclusion>
			<artifactId>tomcat-embed-el</artifactId>
			<groupId>org.apache.tomcat.embed</groupId>
			</exclusion>
		</exclusions>
	</dependency>-->
 
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
			<exclusions>
				<exclusion>
					<groupId>org.springframework.boot</groupId>
					<artifactId>spring-boot-starter-tomcat</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.tomcat.embed</groupId>
					<artifactId>tomcat-embed-websocket</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
 
			<!--<dependency>
	    		<groupId>org.springframework.boot</groupId>
	    		<artifactId>spring-boot-starter-log4j2</artifactId>
			</dependency>-->
 
    	<!-- Dépendance pour le pilote Oracle JDBC -->
	    <dependency>
	        <groupId>com.oracle.database.jdbc</groupId>
	        <artifactId>ojdbc8</artifactId>
	        <version>19.3.0.0</version>
	    </dependency> 
	    <dependency>
	        <groupId>com.oracle.ojdbc</groupId>
	        <artifactId>ojdbc8</artifactId>
	        <version>19.3.0.0</version>
	    </dependency>
	    <dependency>
	        <groupId>com.oracle.ojdbc</groupId>
	        <artifactId>orai18n</artifactId>
	        <version>19.3.0.0</version>
	    </dependency>
 
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
			<exclusions>
			<exclusion>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-tomcat</artifactId>
			</exclusion>
			</exclusions>
		</dependency>
		<!--<dependency>
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-test</artifactId>
			<scope>test</scope>
		</dependency>-->
		<dependency>
		    <groupId>org.junit.jupiter</groupId>
		    <artifactId>junit-jupiter-api</artifactId>
		    <version>5.9.0</version>
		    <scope>test</scope>
		</dependency>
 
		<dependency>
			<groupId>com.ibm.disthub2</groupId>
			<artifactId>dhbcore</artifactId>
			<version>7.0.1.8</version>
		</dependency>                
		<dependency>
			<groupId>com.ibm.mq</groupId>
			<artifactId>com.ibm.mq.allclient</artifactId>
			<version>9.2.2.0</version>            
		</dependency>
		<dependency>
		    <groupId>org.springframework</groupId>
		    <artifactId>spring-jms</artifactId>
		    <version>5.3.14</version>
		</dependency>
 
		<dependency>
		    <groupId>com.ibm.mq</groupId>
		    <artifactId>com.ibm.mq.allclient</artifactId>
		    <version>9.1.5.0</version> 
		</dependency>
	    <dependency>
	        <groupId>javax.jms</groupId>
	        <artifactId>javax.jms-api</artifactId>
	        <version>2.0.1</version> 
	    </dependency>		    
		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-api</artifactId>
			<version>2.17.1</version>
		</dependency>
		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-core</artifactId>
			<version>2.17.1</version>
		</dependency>
 
		<dependency>
		    <groupId>javax.el</groupId>
		    <artifactId>javax.el-api</artifactId>
		    <version>3.0.0</version>
		    <scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<scope>provided</scope>
		</dependency>
</dependencies>
<build>
	<plugins>
		<plugin>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-maven-plugin</artifactId>
			<configuration>
  				<excludeGroupIds>org.apache.tomcat.embed</excludeGroupIds>
			</configuration>
		</plugin>
 
		<plugin>
        <groupId>io.openliberty.tools</groupId>
        <artifactId>liberty-maven-plugin</artifactId>
        <version>3.4</version>
    </plugin>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>3.3.2</version>
        <configuration>
            <failOnMissingWebXml>false</failOnMissingWebXml>
        </configuration>
    </plugin>
	</plugins>
 
	<pluginManagement>
		<plugins>
			<plugin>
				<groupId>org.eclipse.m2e</groupId>
				<artifactId>lifecycle-mapping</artifactId>
				<version>1.0.0</version>
				<configuration>
					<lifecycleMappingMetadata>
						<pluginExecutions>
							<pluginExecution>
								<pluginExecutionFilter>
									<groupId>
										org.apache.maven.plugins
									</groupId>
									<artifactId>
										maven-compiler-plugin
									</artifactId>
									<versionRange>
										[3.7.0,)
									</versionRange>
									<goals>
										<goal>testCompile</goal>
									</goals>
								</pluginExecutionFilter>
								<action>
									<ignore></ignore>
								</action>
							</pluginExecution>
						</pluginExecutions>
					</lifecycleMappingMetadata>
				</configuration>
			</plugin>
		</plugins>
	</pluginManagement>	
</build>
	<repositories>
		<repository>
			<id>spring-milestones</id>
			<name>Spring Milestones</name>
			<url>https://repo.spring.io/milestone
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</repository>
		<repository>
			<id>spring-snapshots</id>
			<name>Spring Snapshots</name>
			<url>https://repo.spring.io/snapshot
			<releases>
				<enabled>false</enabled>
			</releases>
		</repository>
		    <repository>
      <releases>
        <enabled>false</enabled>
        <updatePolicy>always</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
      </releases>
      <snapshots>
        <enabled>true</enabled>
        <updatePolicy>never</updatePolicy>
        <checksumPolicy>fail</checksumPolicy>
      </snapshots>
      <name>Nexus Snapshots</name>
      <id>snapshots-repo</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots
      <layout>default</layout>
    </repository>
        <repository>
        <id>central</id>
        <url>https://repo.maven.apache.org/maven2
    </repository>
	</repositories>
	<pluginRepositories>
		<pluginRepository>
			<id>spring-milestones</id>
			<name>Spring Milestones</name>
			<url>https://repo.spring.io/milestone
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
		</pluginRepository>
		<pluginRepository>
			<id>spring-snapshots</id>
			<name>Spring Snapshots</name>
			<url>https://repo.spring.io/snapshot
			<releases>
				<enabled>false</enabled>
			</releases>
		</pluginRepository>
	</pluginRepositories>
Rejoignez-nous