Runing the listener in Tomcat

I have a GroovyServlet running in my Tomcat server.

I have a Listener generating a menu in my Website.

This run ok with my Java Servlets, but the Groovy Servelets aren't getting this menu.


To have Groovy in my Tomcat Server I added:

      <servlet>
            <servlet-name>Groovy</servlet-name>
            <servlet-class>groovy.servlet.GroovyServlet</servlet-class>
      </servlet>

      <servlet-mapping>
            <servlet-name>Groovy</servlet-name>
            <url-pattern>*.groovy</url-pattern>
      </servlet-mapping>


Did I forget something with Groovy?
LVL 10
oleberAsked:
Who is Participating?
 
oleberAuthor Commented:
I discover de problem.

The menu is done in a filter, not in the listener.

Thanks for trying to help
0
 
Ajay-SinghCommented:
Are you seeing exception/error on the tomcat logs?
0
 
oleberAuthor Commented:
I fix it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.