I am using the Spring Tool Suite for eclipse. When I launch the program. I get the following message:
An internal error occurred during: "Initializing Spring Tooling".
Attempted to beginRule: P/some.package.name, does not match outer
scope rule: Beans Model Initialization
But I don't understand what it means
Thanks for your help
It will work if you clean your project.
Eclipse-project-clean.
It works for me.
It was a problem with the eclipse project. As this was a maven project, I was able to do the following:
I deleted the project in eclipse (right click - delete). I then deleted the .project file from the directory and imported the project as existing maven project.
(I think you can only do this if you are using maven)
Related
I have updated my STS to v4 few days ago,since then I unable to run my application which has groovy files.
I have installed Groovy Development plugin and tried to build the project using the maven command "clean install".
Maven build has been successfully executed, but when I started my project it throws that the Groovy class has not found exception.
I tried cleaning the project many times, but getting the same ClassNotFoundException for the Groovy classes.
My STS v4 installation details:
Java Build path details:
Error Details, while I am running the project:
That parser class is the groovy class which throws ClassNotFoundException.
Moreover, I the project explorer some strange icon is shown next to those kind of groovy files.
I am also attaching the maven build details,
these build information shows that those groovy files are compiled successfully, but still it throws ClassNotFoundException while starting the application.
NOTE: I gave clean - build, "clean compile" and updated maven project more than 15 times. Yet no luck.
Please help me in reSolving this issue SO!
Found the answer!
Compiler mismatch is the culprit here.
I have setup a spring boot gradle project in STS. It was working fine till yesterday without any issues.
Today all of a sudden, when I try to run the app as Spring boot, I am getting below error.
java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication
I have checked STS , all the dependent jars are available in the workspace under 'Project and External Dependencies' .
Can you please guide me in resolving the error
Did you upgrade STS? Or is it exactly the same STS instance?
If it is exactly the same then it must be something in the Eclipse workspace that might have gotten corrupted. It may be hard and time consuming to understand what exactly went wrong so I'd just do the following:
Find the project in the file system and delete all .project, .classpath files and .settings folders for the root Gradle and module projects.
Re-import the Gradle project in STS
Didn't work? Try opening a brand new workspace and importing the project into it.
I am using VS Code to compile and debug my Spring Boot Java project with help of Gradle. I recently added Redis dependency to my project. The project compiles in Eclipse, but throws error in VS Code.
I'm not sure this answer becomes helpful to you or not but,
Normally VS code is not comes with default configurational setting of spring boot.
Spring boot project not able to run without dependencies.
So Because of your project not able to find relevant dependencies so it is generate this errors.
It solved using download plugin of vscode-spring-initializer and / or others.
If you need more detail then,
Try recognize your spring boot project in different IDE like IntelliJ or Eclipes. You see that there is some extra files are there like following,
External Libraries - which handle by maven kind of tool for load dependency.
.iml file in intellij : File which handle development module(contain plugins, module and other details).
This files are not existing there so that it generate issue.(That are different based on IDE)
If you have recently modified the pom.xml or build.gradle config file, you need right click on pom.xml or build.gradle file and then run the menu "Update project configuration" to force the language server to update the project configuration/classpath. Otherwise, the java language server cannot recognize the newly added dependency.
I have a Maven project imported into Eclipse via m2e. The project includes Spring and other dependencies, but for some reason they are not being recognized by Eclipse at all. When I attempt to use "Update Project..." (right click => Maven => Update Project) to rectify the issue, I get the following error:
An internal error occurred during: "Updating Maven Project".
Unable to find referenced rule EmptyIfStmt; perhaps the rule name is misspelled?
PMD and Checkstyle are not enabled for this project. Any ideas as to why I might be getting the error and/or how to address it?
The project builds fine via "mvn clean install," so I assume that this issue is Eclipse-specific.
I've tried disabling and re-enabling the Maven nature of the project but to no avail. I end up getting the same error upon converting the project back to a Maven one.
Go to your project folder and run mvn eclipse:eclipse before running Update Project. I hope it will resolve the issue.
The maven-eclipse-plugin (used in mvn eclipse:eclipse) is discontinued and shouldn't be used anymore. M2Eclipse replaces it for most, if not all, usage.
My maven web project is working fine before i included the shiro-core-1.2.2 and shiro-web-1.2.2
but after i include this dependency in pom.xml then i getting error at the time of
mvn tomee:deploy. and this same project code after arranging project structure if i execute in eclipse then is working fine but in maven and in netbeans is not working .its display error
SEVERE: Can't find of appInfo for C:\my_work\Snefocaremaven\target\Snefocaremaven.war, availables: [C:\App\apache-tomee-jaxrs-1.5.2\webapps\Demo, C:\App\apache-tomee-jaxrs-1.5.2\webapps\host-manager, C:\App\apache-tomee-jaxrs-1.5.2\webapps\tomee, C:\App\apache-tomee-jaxrs-1.5.2\webapps\ROOT, C:\App\apache-tomee-jaxrs-1.5.2\webapps\docs, C:\App\apache-tomee-jaxrs-1.5.2\webapps\manager]
in catalina log file. and the full trace of message is here:
http://www.docdroid.net/5prk/shiro-error.txt.html
may you need to include the library in netbean and the pom.xml .you can refer this link for solution.
i hope this will solve your problem.
see this link::Get apache shiro to work in netbeans without maven