1 Reply Latest reply on Dec 18, 2003 2:10 AM by milowe

    Sharing a servlet

    mferreg

      Hello.

      I'm working with jboss+tomcat 3.2.1.

      I have a web-app where for some resources I need a basic auth method and for other I need a form auth method, it depends on path, but java code is most the same (same servlet, same ejbs, same utilities).

      I've seen web.xml does not allow to define 2 form methods, so I've decided to create a 2 wep apps in an ear file and put all shared resources in a jar inside the ear. The problem is the servlet is a shared resource, and so must be in the jar, but then the classloader does not find it when loading the wars.

      How can I solve it? Any ideas?

      Thanks in advance,
      Dolors