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

  • SEARCH
  • Home
  • 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 8205595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:18:26+00:00 2026-06-07T08:18:26+00:00

I am using dwr to send and get some information but i get the

  • 0

I am using dwr to send and get some information but i get the following errore .

service(DwrSampleTest) is not defined

when i tried to use the following line to see the file :

http://localhost:8080/Servlets-DWR/dwr/index.html

i get the following exception : Access to debug pages is denied.

here is my dwr.xml :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dwr PUBLIC
"-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN"
"http://getahead.org/dwr/dwr20.dtd">
<dwr>
    <allow>
            <create creator="new" javascript="Dwrsample">
            <param name="class" value="com.dwrsample.servlet.DwrSampleTest"/>
        </create>
    </allow>
</dwr>

web.xml :

<servlet>
        <servlet-name>dwr-invoker</servlet-name>
        <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
        <init-param>
            <param-name>crossDomainSessionSecurity</param-name>
            <param-value>false</param-value>
        </init-param>
        <init-param>
            <param-name>debug</param-name>
            <param-value>false</param-value>
        </init-param>
    </servlet>
    <servlet>
        <servlet-name>DwrsampleServlet</servlet-name>
        <servlet-class>com.dwrsample.servlet.DwrsampleServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>dwr-invoker</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>

and the file where i call the method :

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>DWR Sample</title>
        <script src='dwr/dwr/engine.js'></script>
        <script src='dwr/dwr/util.js'></script>
        <script src='dwr/dwr/interface/DwrSampleTest.js'></script>

        <script>
            function getName() {
                DwrSampleTest.getName({callback:setName,async:false});
            }
            function setName(strName) {
                document.getElementById("enterdwr").value = "";
                document.getElementById("enterdwr").value = strName;
            }
        </script>
    </head>
    <body>
        <h1>DWR Sample Test!</h1>

        <form method="post" name="dwrsample" id="dwrsample">
            <table>
                <tr class="lightrow">
                    <td width="1%">*</td>
                    <td width="39%">Eenter DWR</td>
                    <td width="60%"><input name="enterdwr" id="password" type="text" onblur="getName()"/></td>
                </tr>
                <tr class="lightrow">
                    <td width="1%">*</td>
                    <td width="39%">DWR Result</td>
                    <td width="60%"><input name="resultdwr" id="password" type="text" /></td>
                </tr>
            </table>
        </form>
    </body>
</html>

please help me to solve this.

  • 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-06-07T08:18:29+00:00Added an answer on June 7, 2026 at 8:18 am

    Change the entry in dwr.xml file as follows

        <create creator="new" javascript="DwrSampleTest">
            <param name="class" value="com.dwrsample.servlet.DwrSampleTest"/>
        </create> 
    
    Javascript ="DwrSampleTest" must match with the service name that you call in jsp page .
    

    you have called the javaclass name than calling the javascript class name.

    and to get debug enabled

    <init-param>
                <param-name>debug</param-name>
                <param-value>true</param-value>
            </init-param>
    

    change the param value true.

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

Sidebar

Related Questions

Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
I have been using DWR for couple of months in my project. i tried
I'm using dwr and spring and I get this error: java.lang.IllegalArgumentException: Javascript name *
Using the Redis info command, I am able to get all the stats of
Using Location.getBearing(); I seem to get randomly changing bearings. Aka, I can turn the
Using the navigator.geolocation object in JavaScript. Trying to establish accurate ranges, but wondering exactly
Using android 2.3.3, I have a background Service which has a socket connection. There's
I am using DWR for one of my application. I have setup the environment
My current task is to migrate a J2EE application (JDK5) that is using DWR
I am using a Direct Web Remoting (DWR) JavaScript library file and am getting

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.