Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RequestMappingHandlerMapping unable to map urls if start class has package name too long [SPR-12681] #17280

Closed
spring-projects-issues opened this issue Feb 3, 2015 · 1 comment
Labels
in: web status: invalid

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Feb 3, 2015

Jonatas Chagas opened SPR-12681 and commented

Version: spring-boot-starter (org.springframework.boot:spring-boot-starter-web) with gradle org.springframework.boot:spring-boot-gradle-plugin:1.1.5.RELEASE

When using a long package name for the "Start-Class" the framework has problems to generate a proper MANIFEST.MF file in the final "war" file. The issue seems to be that in the MANIFEST.MF file, the "Start-Class" property breaks the line if the package or the class name exceeds certain length of characters. Here's an example of broken MANIFEST file:

Manifest-Version: 1.0
Start-Class: com.mycompany.marketing.reports.postbacks.base.Applicati
on
Spring-Boot-Version: 1.1.5.RELEASE
Main-Class: org.springframework.boot.loader.WarLauncher

When deploying the war file, everything seems to be ok except that the @RequestMapping doesn't work. It was really hard to find out why the requests were not being mapped since there were no "warnings" or "errors" generated by the framework to prevent this.


No further details from SPR-12681

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Feb 3, 2015

Juergen Hoeller commented

It seems that this is a Spring Boot issue: Please report it through the Boot issue tracker at https://github.com/spring-projects/spring-boot/issues

I'm afraid this here is the issue tracker for the Spring Framework core project only, and we can't easily move issues to Boot's tracker at GitHub...

Juergen

@spring-projects-issues spring-projects-issues added type: bug status: invalid in: web and removed type: bug labels Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web status: invalid
Projects
None yet
Development

No branches or pull requests

1 participant