I'm sure that this is probably something really simple... but here goes.

I'm trying to add a servlet filter to an existing (working) deployment just
to see how servlet filters are deployed in Orion; however, after adding my
filter I'm getting the below error when going to my deployment url at
localhost:8888/testapp

"Error instantiating web-application
Error initializing testapp-war, Filter Servlet 'DebugFilter1' not found"

The above url should be going to a simple login.jsp page.

Inside of  ../application-deployments/testapp/testapp-war/
My orion-web.xml looks like:

<orion-web-app
        deployment-version="1.0.2.2"
        jsp-cache-directory="./persistence"
        temporary-directory="./temp"
        servlet-webdir="/servlet/">

        <servlet-filter url-pattern="*.jsp" servlet-name="DebugFilter1" />
</orion-web-app>

The servlet class is compiled and located at
../applications/testapp/testapp-war/WEB-INF/classes/ and is also found
inside of the non-extracted war file of my ear file.

My web.xml from ../applications/testapp/testapp-war/WEB-INF/ looks like:

<web-app>
  <servlet>
    <servlet-name>DebugFilter1</servlet-name>
    <servlet-class>example.DebugFilter1</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>DebugFilter1</servlet-name>
    <url-pattern>*.jsp</url-pattern>
  </servlet-mapping>

  <welcome-file-list>
    <welcome-file>login.jsp</welcome-file>
  </welcome-file-list>
</web-app>

I have the following entry in my server.xml
        <application name="testapp" path="../applications/testapp.ear"
auto-start="true" />

and the following entry in my default-web-site.xml
        <web-app application="testapp" name="testapp-war" root="/testapp" />

In receiving the error.. the Orion console is not printing anything.. and
../application-deployments/testapp/application.txt doesn't print anything.

When I remove the <servlet-filter .../> line from orion-web.xml my login.jsp
page does load, but the filter doesn't appear to get applied. I say that it
does not appear to be getting applied in this scenario as my filter should
be doing a standard out print in the core Filter methods that I'm
implementing. 

What am I missing here?


Reply via email to