Skip to content

ThemeSource and Theme classes no longer exist in Version 7.0.0 #35818

@mavsoftware

Description

@mavsoftware

I am receiving the following error on my application after picking up version 7.0.0 of org.springframework.spring-context

{"ts":"2025-11-14T13:05:14.445+0000","class":"org.springframework.boot.SpringApplication","level":"ERROR","evt":{"msg":"Application run failed"},"thread":"main","exception":{"class":"java.lang.NoClassDefFoundError","message":"org/springframework/ui/context/ThemeSource","stacktrace":"java.lang.NoClassDefFoundError: org/springframework/ui/context/ThemeSource\n\tat

Looks like ThemeSource and Theme classes no longer exists in 7.0.0

[ 6.2.13]# jar -tvf spring-context-6.2.13.jar|grep Theme
409 Thu Nov 13 08:45:02 GMT 2025 org/springframework/ui/context/ThemeSource.class
341 Thu Nov 13 08:45:02 GMT 2025 org/springframework/ui/context/Theme.class
5618 Thu Nov 13 08:45:02 GMT 2025 org/springframework/ui/context/support/ResourceBundleThemeSource.class
1156 Thu Nov 13 08:45:02 GMT 2025 org/springframework/ui/context/support/SimpleTheme.class
1345 Thu Nov 13 08:45:02 GMT 2025 org/springframework/ui/context/support/DelegatingThemeSource.class
611 Thu Nov 13 08:45:02 GMT 2025 org/springframework/ui/context/HierarchicalThemeSource.class

[ 7.0.0]# jar -tvf spring-context-7.0.0.jar|grep Theme

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions