Deployment source for facet 'Web' has no valid extension

I have started using version 7 and trying to deploy a web application to JBoss. When I create the deployment and setup the web facet I get the error message:
"Deployment source for facet 'Web' has no valid extension" There is a button to the right that says Fix. However, the screen that opens (Project Settings) does not help me figure out what is wrong. What exactly does the error message mean? And how can I fix it?

I am trying to deploy an exploded war.

Michael

6 comments

Are you deploying in exploded form?
For JBoss the directory name needs to end with ".war" - which is not the default in idea.

Michael Franz wrote:

I have started using version 7 and trying to deploy a web application to JBoss. When I create the deployment and setup the web facet I get the error message:
"Deployment source for facet 'Web' has no valid extension" There is a button to the right that says Fix. However, the screen that opens (Project Settings) does not help me figure out what is wrong. What exactly does the error message mean? And how can I fix it?

I am trying to deploy an exploded war.

Michael

0

That worked! I guess I knew that from another issue I had a few years ago. Somehow, back then it was easier to figure out.

0

What is the solution to this. It is not clear what to do to avoid this nor valid extension message.

0

Read the post from Stephan Friedrich above:
"For JBoss the directory name needs to end with ".war" ..."

0

Sorry I'm a intelliJ / Jboss newbie and I have difficulties getting my head around this.

I understand the sentence:

For JBoss the directory name needs to end with ".war" ...

As:
- Rename the path in "Create application Exploded directory" in Java EE build settings to end with .war, but renaming a directory to *.war doesn't really make sence and it doesn't seem to work either.

Please explain in further details.

Thanks

Morten Matras

0

You understand it right, you really have to name the directory *.war. That's because the JBoss deployer detects the type of the deployment target by looking at the extension. A web module is detected by its .war extension, an EJB module by .ejb, and a whole Java EE application needs to have a .ear extension.

So yes, go to the Java EE build settings and change the name of the exploded directory to have a .war extension.

0

Please sign in to leave a comment.