Comments (13)
It smells a lot like then m2e issue consequences in Eclipse: #929.
Do you mind giving m2e latest snapshot a try? (M2E snapshot update site: https://download.eclipse.org/technology/m2e/snapshots/latest/) Might solve your issue.
Also Cleaning the project and building from scratch ideally should help as well.
from sts4.
@navy1978 it is on the Java launch config not on the spring boot launch config (perhaps we should have it on the spring boot launch tab as well).
from sts4.
Thanks! Just installed I will keep you updated.
(FYI : till now Cleaning the project and building from scratch didn't help)
from sts4.
Thanks! Just installed I will keep you updated.
That is awesome, thanks for giving this a try. Would be extremely interesting to know whether this new m2e snapshot version solves this issue for you. Please keep us updated on that.
from sts4.
Unfortunatlty it didn't work.
FYI:
- lanching the app from the Boot Dashborad produces again this error:
_***************************
APPLICATION FAILED TO START
Description:
Field mapper in xxxx.yyy.MyService required a bean of type 'xxxx.yyy.MyMapper' that could not be found.
Action:
Consider defining a bean of type 'xxxx.yyy.MyMapper' in your configuration._
- if I create a "maven build" in Eclipse/STS and I put:
goals: spring-boot:run
this works fine, and it was working well even before having updated m2e to the latest snapshot.
This issue is a little bit frustrating because it doesnt occur all the time and it's complicated to provide the steps to reproduce it.
Do you have other suggestions?
from sts4.
Hmmm... 🤔 If you startup the application via the dashboard and the error message appears, could you take a look at the target output folder and its content to see if there is anything missing from it? Maybe some files missing in that folder that you would expect to be there? (like application.prpoerties, .class files for the mapstruct generated sources, etc.) That might point us in some direction.
from sts4.
The files are all there, but somehow STS/Eclipse cannot find them.
FYI: once I got this error I have modified the created, modified and accessed date of all files in the target folder with a little software, this somehow made STS/Eclipse locate the files again and the app started form Boot Dashboard with no issue. I cannot guarantee this was not a coincidence . I will keep you updated.
from sts4.
Just a little update on this, I can confirm that using this little app: https://www.petges.lu/download/
and changing the created, modified and accessed date of all files in the target folder seems a workaround for this issue.
At least it solved it 3 times in a row.
Anyway whould be nice to understand the cause ...
from sts4.
Just a little update on this, I can confirm that using this little app: https://www.petges.lu/download/ and changing the created, modified and accessed date of all files in the target folder seems a workaround for this issue. At least it solved it 3 times in a row.
This is quite puzzling. If I understand you correctly, you are changing the modification timestamp of the files with the tool you mentioned and then it works?
Another test here could be to run the application from the command line instead of the boot dashboard to see if just running java
with the classpath and main class specified works fine or not (without modifying those file attributes upfront).
from sts4.
Another test here could be to run the application from the command line instead of the boot dashboard to see if just running
java
with the classpath and main class specified works fine or not (without modifying those file attributes upfront).
There is a show command line
button on the launch config dialog that would give you this command for your convenience.
from sts4.
Another test here could be to run the application from the command line instead of the boot dashboard to see if just running
java
with the classpath and main class specified works fine or not (without modifying those file attributes upfront).There is a
show command line
button on the launch config dialog that would give you this command for your convenience.
I cannot find this button , can you give me more info where to find this?
from sts4.
Related Issues (20)
- Add possibility to define groups in the Boot dashboard HOT 3
- Unable to get Intellisense and formatting for JSP files HOT 1
- Bind update of Spring Modulith metadata to a full project build HOT 5
- Filter types ineligible for access in code completion for Spring Modulith projects HOT 4
- [Concourse] `set_pipeline` step considers `team` attribute invalid HOT 3
- spring tool 3 add on not downloading HOT 5
- Show changes "Preview" rather than "Confirmation" once recipe is applied
- An internal error occurred during: "Send Classpath Notifications". org/eclipse/lsp4e/LanguageServers HOT 20
- STS for exlipse 4.21.0 变量重命名BUG HOT 1
- throws exception when closing editors HOT 6
- "Unknown property" marker is created when there is a setter but no getter HOT 15
- quick fix to convert `@Autowired` field into constructor param doesn't work HOT 3
- quick fix to remove public modifier from `@Bean` method causes exception HOT 1
- add starters wizard throws `IllegalArgumentException` on Eclipse 2024-03 M2 HOT 2
- 4.21.1 release doesn't embed JDK anymore HOT 3
- builds on early Eclipse 2024-03 builds don't compile anymore
- Running Boot processes from IDE client HOT 1
- issue starting multiple projects simultaneously in the Boot Dashboard HOT 6
- exception thrown under the hood when file URL protocol is unknown HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sts4.