question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

In STS, sleuth causes the compile error: Build path is incomplete. Cannot find class file for org/tmatesoft/svn/core/wc2/SvnOperationFactory

See original GitHub issue

Hi,

I have a config server application and all were fine until I added spring-cloud-starter-sleuth which is causing a compilation error:

Build path is incomplete. Cannot find class file for org/tmatesoft/svn/core/wc2/SvnOperationFactory

the important part of my pom:

      <dependencies>
		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-config-server</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-security</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-amqp</artifactId>
		</dependency>
   		<dependency>
       		        <groupId>org.springframework.cloud</groupId>
        	        <artifactId>spring-cloud-starter-sleuth</artifactId>
   		 </dependency>
	</dependencies>

      <dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.springframework.cloud</groupId>
				<artifactId>spring-cloud-dependencies</artifactId>
				<version>Camden.SR5</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

My spring boot version is: 1.5.1.RELEASE

Any help?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

12reactions
kdvoldercommented, Mar 15, 2017

Here’s a workaround. Right click the project and go to

“Properties >> Spring”

Select the “Enable Project Specific settings” checkbox.

Go to “Project Builders” tab and disable “AOP Reference Model Builder”.

My guess is that the AOP reference model builder is running into references to types that a regular compile would not visit, and these types are not on the project classpath, causing that error.

1reaction
spencergibbcommented, Mar 14, 2017

As a GitHub project or a zip file, not as comments

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build path is incomplete. Cannot find class file - Stack Overflow
It looks like your com.dao.StudentDaoImpl class is in reality in some other package than com.dao . Or the class name is different, ...
Read more >
Build path is incomplete. Cannot find the class file for java.lang
Hi, When opening a Gradle project via buildship I get following for error for all sub projects and compilation fails with many errors...
Read more >
Eclipse Error - Cannot find the class file for java.lang.Object
lang.Object. Fix the build path then try building this project. Solution 1. Try to close the project and re-open it.
Read more >
class file there but Eclipse misses it, errantly says "build path ...
Eclipse gives two errors: The project was not built since its build path is incomplete. Cannot find the class file for <api.package>.
Read more >
How to Solve Java Build Path Problem in Eclipse - YouTube
Steps:1. How to resolve java build path problem in Eclipse2. Right click the project - select build path - click configure build path3....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found