Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 825315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:14:06+00:00 2026-05-15T03:14:06+00:00

I am working on a GWT application which uses GWT-RPC. I just made a

  • 0

I am working on a GWT application which uses GWT-RPC.
I just made a test groovlet to see if it worked, but ran into some problems

here’s my groovlet

package groovy.servlet;
print "testing the groovlet";

Every tutorial said we don’t need to subclass anything, and just a simple script would act as a servlet.

my web.xml looks like this –

<!--  groovy -->
 <servlet>
      <servlet-name>testGroovy</servlet-name>
      <servlet-class>groovy.servlet.testGroovy</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>testGroovy</servlet-name>
        <url-pattern>*.groovy</url-pattern>
    </servlet-mapping

When I Run as -> web application,
i get the following error from jetty :

 [WARN] failed testGroovy
javax.servlet.UnavailableException: Servlet class groovy.servlet.testGroovy is not a javax.servlet.Servlet
 at org.mortbay.jetty.servlet.ServletHolder.checkServletType(ServletHolder.java:377)
 at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:234)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
 at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:616)
 at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
 at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
 at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
 at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
 at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:447)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
 at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
 at org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
 at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
 at org.mortbay.jetty.Server.doStart(Server.java:222)
 at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
 at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:543)
 at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:421)
 at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
 at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:783)
 at com.google.gwt.dev.DevMode.main(DevMode.java:275)

What did I miss ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:14:07+00:00Added an answer on May 15, 2026 at 3:14 am

    You’re building a new class there, not extending the HttpServlet class (or the groovy.servlet.GroovyServlet either).

    GroovyServlet is the servlet, that then interprets your groovy script.

    To set it up in web.xml you use

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

    And then in a file named something.groovy somwhere under your web root you can write

    out.println 'testing the groovlet'
    

    The objects request, response, session, params and others are also present at your disposal. So that you for instance can write

    out.println "Hello ${params['name']}"
    

    More info at http://groovy.codehaus.org/Groovlet

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a project for college that uses GWT, Hibernate and Gilead.
Working with python interactively, it's sometimes necessary to display a result which is some
Working with an Oracle 9i database from an ASP.NET 2.0 (VB) application using OLEDB.
We are looking at integrating a full-blown GWT (Google Web Toolkit 2.0) application with
I am currently working on a simple web application through Google App engine using
I have an AWT applet application that needs to be ported over to GWT.
This is specifically about GWT's RequestBuilder, but should apply to general XHR as well.
Working with dates in ruby and rails on windows, I'm having problems with pre-epoch
Working with a SqlCommand in C# I've created a query that contains a IN
Working on a project at the moment and we have to implement soft deletion

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.