- This topic has 3 replies, 2 voices, and was last updated 6 years, 10 months ago by support-tony.
-
AuthorPosts
-
Richard_pathogenParticipantI have a web project that deploys and runs fine to Tomcat when done under MyEclipse.
I need to export the war, however, for deployment to another server.
When I right-click on the project though and select WAR file, then complete the wizard form and hit Finish, all I get is a mostly empty war with a size of only 1K.
You can see what I get from the attached image.
Can someone please advise what I am doing wrong?
Thanks!
Attachments:
You must be logged in to view attached files.
support-tonyKeymasterRichard,
Sorry you’re seeing this problem. Just to confirm, you’re right clicking on the project and then going to Export>Java EE>WAR file, right? Things you might check are:
- Are there class files in the output location for the project? Check the output location in the Source tab of the build path properties.
- Is the deployment assembly set up correctly? Right click on the project and go to Properties then then Deployment>Deployment Assembly.
If you can’t see a problem there, then please let us know which release of MyEclipse you’re using and which OS. We may need more information later.
Richard_pathogenParticipantSorry you’re seeing this problem. Just to confirm, you’re right clicking on the project and then going to Export>Java EE>WAR file, right?
Yep, that is exactly what I am doing.
Are there class files in the output location for the project? Check the output location in the Source tab of the build path properties.
Source folder was there but no output folder. So I clicked on the checkbox and set this as the output location: project_name/WebRoot/WEB-INF/classes
Tried exporting again. Same issue.
Is the deployment assembly set up correctly? Right click on the project and go to Properties then then Deployment>Deployment Assembly.
To be honest, I’m not sure what all should be there. See screenshot for what I have please.
If you can’t see a problem there, then please let us know which release of MyEclipse you’re using and which OS. We may need more information later.
I am using Hi Sierra and this is the info on ME:
MyEclipse Enterprise WorkbenchVersion: 2017 CI 10
Build id: 15.0.1-20171220Thank you for your help!
- This reply was modified 6 years, 10 months ago by Richard_pathogen.
Attachments:
You must be logged in to view attached files.
support-tonyKeymasterRichard,
Thanks for that information. Your set up seems fine now, though I’m not sure how you created a Web project without an output folder. However, you seem to be all set and yet you’re still seeing the problem. In that case, there might be errors which show up in the log.
Please clear the error log (this can be done from the Error Log view), try to export again. Now export the error log to a text file (again, this can be done from the Error Log view) and attach that file here. Hopefully, there will be some relevant errors there which will lead us to the cause. Please also mention exactly what the WAR file contains and what it is missing.
-
AuthorPosts