Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » servers > wildfly 23 > add and remove > cannot copy class to wildfly
servers > wildfly 23 > add and remove > cannot copy class to wildfly [message #1863608] Thu, 15 February 2024 07:48 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 82
Registered: April 2011
Member
My eclipse project use maven, and the ear is in folder
C:\Slis\20231116\SLIS_WEB\SLISEAR\target\SLISEAR-0.0.1-SNAPSHOT.ear
if use 7zip to see its content, it includes a .war and if expand the .war, it contains all .java class and .class file
https://i.postimg.cc/SstMkfgQ/question20240215-1.jpg
https://i.postimg.cc/XYhmGRX9/question20240215-2.jpg

And I clear all folder in wildfly \standalone\deployments folder
https://i.postimg.cc/SQnHfNFH/question20240215-4.jpg


then in eclipse servers tab, select wildfly 23, add and remove, and add the project to configured listbox, press finsh button.
the folder in C:\wildfly-23.0.2.Final\standalone\deployments is still empty
then I right click and select publish in eclipse > servers > wildfly 23.
then I can see the ear folder and a .dodeploy file in C:\wildfly-23.0.2.Final\standalone\deployments

but if I open the ear folder, I see no any .java file or .class file inside the .war > web-inf > classes folder
https://i.postimg.cc/nLj2yMFD/question20240215-5.jpg

Anyway, I found inside C:\wildfly-23.0.2.Final\standalone\deployments\SLISEAR-0.0.1-SNAPSHOT.ear\SLIS-0.0.1-SNAPSHOT.war\WEB-INF\view has many .jsp
https://i.postimg.cc/rmgDgCBC/question20240215-6.jpg

and in eclipse servers > wildfly 23, it show [Stopped, Republish]

If I choose debug now, many error like class not found exception.
https://i.postimg.cc/1tL3vCWF/question20240215-7.jpg

Why no .java file or .class file inside the .war > web-inf > classes folder when I choose publish in eclipse servers > publish? there is java file and .cass file insdie the project target folder .ear file.


Re: servers > wildfly 23 > add and remove > cannot copy class to wildfly [message #1863706 is a reply to message #1863608] Thu, 22 February 2024 05:07 Go to previous message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 82
Registered: April 2011
Member
Don't know the reason, but I try many different ways and finally works again. I guess the following steps is related:
Try close the project > reopen the project > in server tab, right click wildfly and select clean, then right click slis_web\pom.xml and choose maven > update project.
Previous Topic:Hibernate XML mapping validation using DTD from classpath
Next Topic:Unable to run WDT 9.x on Eclipse 2024-03
Goto Forum:
  


Current Time: Tue Dec 03 03:30:48 GMT 2024

Powered by FUDForum. Page generated in 0.06417 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top