Skip to content

Fix WebJar paths for npm-based bootstrap dependency-created-by-agentic #352

@shaykeren

Description

@shaykeren

This issue tracks the WebJar path misconfiguration in the PetClinic service that is causing static resources to fail loading.

Problem:
The application is using npm-based WebJars (org.webjars.npm:bootstrap) but attempting to access resources using classic WebJar path structure.

Error Details:

  • Error ID: 1251351a-4449-11f0-90fe-0242ac160004
  • Error Type: org.springframework.web.servlet.resource.NoResourceFoundException
  • Error Message: No static resource bootstrap/5.2.3/dist/js/bootstrap.bundle.min.js

Solution:
A pull request (#351) has been created that updates the WebJar paths to match the npm structure:

  • Changed from /webjars/bootstrap/5.2.3/dist/js/bootstrap.bundle.min.js to /webjars/bootstrap/js/bootstrap.bundle.min.js

Testing Required:

  1. Verify that bootstrap resources load correctly after applying the change
  2. Check that the frontend styling and JavaScript functionality works as expected

Please review and merge PR #351 to resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions