Solved

Runing the listener in Tomcat

Posted on 2008-09-30
3
669 Views
Last Modified: 2013-12-02
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?
0
Comment
Question by:oleber
  • 2
3 Comments
 
LVL 23

Expert Comment

by:Ajay-Singh
ID: 22611366
Are you seeing exception/error on the tomcat logs?
0
 
LVL 10

Accepted Solution

by:
oleber earned 0 total points
ID: 22612116
I discover de problem.

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

Thanks for trying to help
0
 
LVL 10

Author Comment

by:oleber
ID: 22612120
I fix it.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now