Details

    • Type: Defect Defect
    • Status: Done Done
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 2.0.0.M4
    • Fix Version/s: Sprint 9, 2.0.0.M5, 2.0.0.RELEASE
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows XP and JDK1.6 U 13

      Description

      Slices are not working in 2.0.0.M4 , but this ia working in 2.0.0.M3, I Tried with Petclininc Sample Host and appointmnets.

        Activity

        Hide
        Andy Wilkinson added a comment -

        Mahesh's latest comment on the blog:

        Sorry, I have not checked the functionality, the server is giving

        org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sliceFactoryMonitor' defined in URL [bundleentry://101.fwk2614099/META-INF/spring/module-context.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: com.springsource.osgi.slices.core.internal.webapp.WebAppSliceFactory cannot be cast to com.springsource.osgi.slices.core.internal.deployer.SliceFactory

        for this I used the latest slices night build, can you please help me in this

        Show
        Andy Wilkinson added a comment - Mahesh's latest comment on the blog: Sorry, I have not checked the functionality, the server is giving org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sliceFactoryMonitor' defined in URL [bundleentry://101.fwk2614099/META-INF/spring/module-context.xml] : Invocation of init method failed; nested exception is java.lang.ClassCastException: com.springsource.osgi.slices.core.internal.webapp.WebAppSliceFactory cannot be cast to com.springsource.osgi.slices.core.internal.deployer.SliceFactory for this I used the latest slices night build, can you please help me in this
        Hide
        Andy Wilkinson added a comment -

        Mahesh, my guess is that you have two versions of Slices installed at the same time. Did you delete the old version when you upgraded?

        Show
        Andy Wilkinson added a comment - Mahesh, my guess is that you have two versions of Slices installed at the same time. Did you delete the old version when you upgraded?
        Hide
        Mahesh Yamsani added a comment -

        Andy, I took the latest version of Slices from night builds, now it is able to recognize the Slices, That means I am able see the link appointments link in Host page, but when I clicked on that link I am getting exception like

        description The requested resource (/petclinic/appointments/WEB-INF/appointments.jsp) is not available.

        even though the jsp is present in it.

        One more strange thing is now I am getting differnt problem like, It is not able to recognise the host bundle as Web-Bundle insted it is giving (type: No personality association) for host also, when I deleted the Server and reconfigured it is again showing as a web bundle.

        Show
        Mahesh Yamsani added a comment - Andy, I took the latest version of Slices from night builds, now it is able to recognize the Slices, That means I am able see the link appointments link in Host page, but when I clicked on that link I am getting exception like description The requested resource (/petclinic/appointments/WEB-INF/appointments.jsp) is not available. even though the jsp is present in it. One more strange thing is now I am getting differnt problem like, It is not able to recognise the host bundle as Web-Bundle insted it is giving (type: No personality association) for host also, when I deleted the Server and reconfigured it is again showing as a web bundle.
        Hide
        Andy Wilkinson added a comment -

        Thanks, Mahesh.

        We recently improved the way that Slices handles forwards and includes, such that it's possible to drive forwards and includes between different Slices and from Slice to Host and Host to Slice. Part of this improvement means that the HostFilter now needs to be mapped to includes and forwards in addtion to requests.

        We'd neglected to make this change to the PetClinic sample's host. I've now updated to Host's web.xml to map the filter correctly.

        Show
        Andy Wilkinson added a comment - Thanks, Mahesh. We recently improved the way that Slices handles forwards and includes, such that it's possible to drive forwards and includes between different Slices and from Slice to Host and Host to Slice. Part of this improvement means that the HostFilter now needs to be mapped to includes and forwards in addtion to requests. We'd neglected to make this change to the PetClinic sample's host. I've now updated to Host's web.xml to map the filter correctly.
        Hide
        Mahesh Yamsani added a comment -

        Thanks, Andy,
        Nay I have the link for getting latest Petclinic Sample project

        Show
        Mahesh Yamsani added a comment - Thanks, Andy, Nay I have the link for getting latest Petclinic Sample project
        Hide
        Andy Wilkinson added a comment -

        Hi, Mahesh. The latest samples are all available in the Slices git repository: git://git.springsource.org/slices/slices.git

        Show
        Andy Wilkinson added a comment - Hi, Mahesh. The latest samples are all available in the Slices git repository: git://git.springsource.org/slices/slices.git

          People

          • Assignee:
            Andy Wilkinson
            Reporter:
            Mahesh Yamsani
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date:

              Time Tracking

              Estimated:
              Original Estimate - 0.5h
              0.5h
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 0.5h
              0.5h