Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1776

ManagerObjectFactory getObjectInstance not working for Windows systems

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 3.0.0.Alpha2, 2.2.7.Final
    • 2.2.5.Final
    • None
    • None
    • Hide

      Windows system, Tomcat, configure a BeanManager Resource in context.xml with factory "org.jboss.weld.resources.ManagerObjectFactory"

      Show
      Windows system, Tomcat, configure a BeanManager Resource in context.xml with factory "org.jboss.weld.resources.ManagerObjectFactory"

      In ManagerObjectFactory the String WEB_INF_CLASSES is hard coded to "/WEB-INF/classes" and is compared to a absolute path in line 54. bda.getId().contains(WEB_INF_CLASSES).

      This is not suitable for Windows systems because of the separator (Windows uses '\') so the BeanManager cannot be initialized.

      This code was introduced in: https://github.com/weld/core/commit/f98dfb0fbf0a123c2b70558cf422646003adef15

              mkouba@redhat.com Martin Kouba
              fleske_jira Dragan Lesic (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: