andre
andre

Reputation: 11

RapidClipse X + 11 deployment generates a "war-file" without any index-file inside

I am interested in working with rapidclipse and I tried it out a little. I installed rapidclipse on win10 pro. Everything works fine, and the internal preview from rapidclipse works shows the expected result.

But when I generate a war-file and deploy it to Tomcat, Tomcat shows an error: "resource not found". I found out that there were no index files in the deployed folder from Tomcat. After creating an index file manually, the error disappeared from Tomcat.

At last I found out, there is no index-file inside the war-archive.

The index-file in the generated war-archive by rapidclipse is always missing.

I guess that it is a configuration problem of rapidclipse.

Is there anybody there who can help me?

What i've tried:

Upvotes: 1

Views: 102

Answers (1)

Dirk Bundies
Dirk Bundies

Reputation: 11

In the Develop Perspective select your RapidClipse Project, then right click on it to open the context menu. Click on 'Run As' then 'Maven build...'. In the dialog enter the following in the field 'goals':

clean package -Pproduction

Then press 'Run'. At the end a .war-File has been created in your /target folder of the RapidClipse Project which contains everything to run this .war-File on another machine running.

If you only have choosed 'clean package' the .war-File does not contain all necessary files to run on another machine.

Upvotes: 1

Related Questions