Invalid deployment file name in deployment directory

I get the error message "404 Not found" when visiting: http: // localhost: 8080 / bword in Eclipse.

This app is served by Wildfly. In POM.xml, it defines:

<artifactId>bword</artifactId>
<packaging>war</packaging>
<name>bword</name>

However, it is rather strange that when I run the application in Eclipse with Wildfly 9.0 configured as a server, what is deployed to wildfly / standone / deployments / is bbword.war, as shown below:

[abigail@localhost wildfly-9.0.2.Final]$ ls standalone/deployments/
bbword.war/          bbword.war.deployed 

What is wrong, it should be "bword.war /" and "bword.war.deployed".

Outside of Eclipse, if I "mvn clean package" in the "bword" project, I can get "bword.war" in the target / directory.

See app screenshot for reference. I suspect that somewhere in my pomp or eclipse, or somewhere, there is an incorrect configuration of "bbword" instead of "bword", but I can not find it. I can not find any traces of "bbword". What determines the name of the deployed war file during deployment?

See attached file.

enter image description here

Edited (part of POM.xml):

<build>
            <!-- Set the name of the war, used as the context root when the app 
                is deployed -->
            <finalName>${project.artifactId}</finalName>
            <plugins>
                <plugin>
                    <artifactId>maven-war-plugin</artifactId>
                    <version>${version.war.plugin}</version>
                    <configuration>
                        <!-- Java EE 7 doesn't require web.xml, Maven needs to catch up! -->
                        <failOnMissingWebXml>false</failOnMissingWebXml>
                    </configuration>
                </plugin>
                <!-- WildFly plugin to deploy war -->
                <plugin>
                    <groupId>org.wildfly.plugins</groupId>
                    <artifactId>wildfly-maven-plugin</artifactId>
                    <version>${version.wildfly.maven.plugin}</version>
                </plugin>
                <!-- Compiler plugin enforces Java 1.6 compatibility and activates 
                    annotation processors -->
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>${version.compiler.plugin}</version>
                    <configuration>
                        <source>${maven.compiler.source}</source>
                        <target>${maven.compiler.target}</target>
                    </configuration>
                </plugin>
            </plugins>
        </build>

Another addition:

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
17:32:35,508 INFO  [org.jboss.modules] (main) JBoss Modules version 1.4.3.Final
17:32:35,702 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
17:32:35,761 INFO  [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) starting
17:32:36,573 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 22) WFLYCTL0028: Attribute 'job-repository-type' in the resource at address '/subsystem=batch' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
17:32:36,594 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found bbword.war in deployment directory. To trigger deployment create a file called bbword.war.dodeploy
17:32:36,625 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
17:32:36,647 INFO  [org.xnio] (MSC service thread 1-5) XNIO version 3.3.1.Final

......

, "Run as Server" Wildfly. , " bbword.war ". , //*. . , "bbword.war" , . . "find/-name bbword.war" , . .

:

: "bword" ".setting", : bword/.settings/org.eclipse.wst.common.component

:, "bbword" , . Maven, "", , . , , dirctory,.setting, maven.

, .

+4
2

, maven (bword.war) ( Eclipse).
, bword.war /target path_to_wildfly/standalone/deployments.
: Registered web context: <web_context_name>, . /bbword - , , , jboss-web.xml src/main/webapp/WEB-INF, web-context.

maven webcontext -/bword, Eclipse. Eclipse Maven?:

  • .
  • Maven
  • " "
  • Wildfly . , . Eclipse.

.

+1

, 2 :

.settings/org.eclipse.wst.common.component = > deploy-name ..

.project = >

+1

Source: https://habr.com/ru/post/1619606/


All Articles