Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0.RC1
    • Component/s: SERVER
    • Labels:
      None

      Description

      1. Start with a clean build.
      2. In Package Explorer, select New > Spring Template Project
      3. Select Spring MVC Project > Finish. Tell it okay when it asks if you want to download it.
      4. Give the project a name and a location, press Finish.
      5. Wait. It takes a while for the build to finish.
        You will see the error: Class 'org.springframework.web.servlet.view.InternalResourceViewResolver' not found [config set: <projectName>/web-context
      6. Project > Clean clean the project. It will rebuild and this time have no error.
      7. Create a vFabric server (if you don't have one already). I did: Servers, New > Server > VMware vFabric tc Server v2.5, v2.6, server info, new instance named "base" which only had "base".
      8. Drag your project onto the server.
      9. Start the server.
      10. Select your project under the server; right-click and select Open Home Page.
        You will get an error:
      javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method 
      "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" 
      the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, 
      org/apache/jsp/WEB_002dINF/views/home_jsp, and 
      the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, 
      javax/servlet/jsp/JspApplicationContext, have different Class objects for the type 
      
      javax/el/ExpressionFactory used in the signature
      

        Activity

        Kaitlin Sherwood (c) made changes -
        Field Original Value New Value
        Assignee Kaitlin Sherwood [ kaitlinsherwood ]
        Andrew Eisenberg (c) made changes -
        Description 0. Start with a clean build.
        1. In Package Explorer, select New > Spring Template Project
        2. Select Spring MVC Project > Finish. Tell it okay when it asks if you want to download it.
        3. Give the project a name and a location, press Finish.
        4. Wait. It takes a while for the build to finish.
             You will see the error: Class 'org.springframework.web.servlet.view.InternalResourceViewResolver' not found [config set: <projectName>/web-context
        5. Project > Clean clean the project. It will rebuild and this time have no error.

        6. Create a vFabric server (if you don't have one already). I did: Servers, New > Server > VMware vFabric tc Server v2.5, v2.6, server info, new instance named "base" which only had "base".
        7. Drag your project onto the server.
        8. Start the server.
        9. Select your project under the server; right-click and select Open Home Page.
            You will get an error: javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/WEB_002dINF/views/home_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
        # Start with a clean build.
        # In Package Explorer, select New > Spring Template Project
        # Select Spring MVC Project > Finish. Tell it okay when it asks if you want to download it.
        # Give the project a name and a location, press Finish.
        # Wait. It takes a while for the build to finish.
             You will see the error: Class 'org.springframework.web.servlet.view.InternalResourceViewResolver' not found [config set: <projectName>/web-context
        # Project > Clean clean the project. It will rebuild and this time have no error.
        # Create a vFabric server (if you don't have one already). I did: Servers, New > Server > VMware vFabric tc Server v2.5, v2.6, server info, new instance named "base" which only had "base".
        # Drag your project onto the server.
        # Start the server.
        # Select your project under the server; right-click and select Open Home Page.
            You will get an error:

        {noformat}
        javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method
        "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;"
        the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class,
        org/apache/jsp/WEB_002dINF/views/home_jsp, and
        the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class,
        javax/servlet/jsp/JspApplicationContext, have different Class objects for the type

        javax/el/ExpressionFactory used in the signature
        {noformat}
        Tomasz Zarna made changes -
        Assignee Kaitlin Sherwood (c) [ kaitlinsherwood ]
        Martin Lippert (c) made changes -
        Assignee Tomasz Zarna [ zaza ]
        Leo Dos Santos (c) made changes -
        Assignee Tomasz Zarna [ zaza ] Leo Dos Santos (c) [ ldossantos ]
        Martin Lippert (c) made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Leo Dos Santos (c) [ ldossantos ] Martin Lippert [ mlippert ]
        Fix Version/s 3.2.0.RC1 [ 12885 ]
        Resolution Fixed [ 8 ]
        Trevor Marshall (c) made changes -
        Workflow jira [ 41791 ] jira with Pivotal Tracker [ 67278 ]

          People

          • Assignee:
            Martin Lippert (c)
            Reporter:
            Kaitlin Sherwood (c)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: