Rewrite on Tomcat 8 and CDI Weld Why not working?

Splash Forums Rewrite Users Rewrite on Tomcat 8 and CDI Weld Why not working?

This topic contains 3 replies, has 2 voices, and was last updated by  Christian Kaltepoth 1 year, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26347

    salviof
    Participant

    I Received that error:

    SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStop Exception sending context destroyed event to listener instance of class org.ocpsoft.rewrite.servlet.impl.RewriteServletContextListener
    org.ocpsoft.rewrite.cdi.manager.BeanManagerUnavailableException

    PLease I did all my aplication with Rewrite, using tomcat 6 and EL 2.2, now I need go to tomcat8 with EL 3, and Rewrite are not working, whats the problem?

    Thanks!

    • This topic was modified 1 year, 12 months ago by  salviof.
    • This topic was modified 1 year, 12 months ago by  salviof.
    Attachments:
    1. web.xml
    2. pom.xml
    #26352

    salviof
    Participant

    I try create file in service providers folder with name: org.ocpsoft.rewrite.cdi.manager.ServletContainerJndiBeanManagerProvider
    with content: javax.enterprise.inject.spi.BeanManager

    and nothing Happenns ..

    #26353

    salviof
    Participant

    Now I try create this class: com.mycompany.testwebapp.BM_RW_SBWebPaginas

    and set a reference to that in service provider:
    nothing Happenns ..

    import org.ocpsoft.rewrite.cdi.spi.BeanManagerProvider;
    public class BM_RW_SBWebPaginas implements BeanManagerProvider{

    @Override
    public BeanManager getBeanManager() {

    return CDI.current().getBeanManager();
    }

    @Override
    public int priority() {
    return 1;
    }

    }

    #26362

    What do you mean with “nothing happenns”? Do you still get this error?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Comments are closed.