|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
"Class not found" errorI am seeing a strange problem with DWR 3.0 RC2. I created a set of servlets which perform unit tests on my system. The URL is http://localhost/servlet/test/test1. It appears that DWR is intercepting the calls and generating the following errors:
[java] 2009-10-07 13:37:58,952 ERROR: org.directwebremoting.impl.DefaultCreatorManager - Class not found: 'test1' [java] 2009-10-07 13:37:58,952 WARN : org.directwebremoting.impl.DefaultCreatorManager - Names of known classes are: __System CalendarController AccountController __Data SignupController [java] 2009-10-07 13:37:58,999 WARN : org.directwebremoting.servlet.ExceptionHandler - Error: java.lang.SecurityException: Class not found When I move it to http://localhost/servlet/t/test1 there is no problem. Any idea? Thanks in advance, Bill |
|
|
Re: "Class not found" errorHow do you have the DWR servlet mapped?
On Wed, Oct 7, 2009 at 12:47 PM, Bill Wied <wied@...> wrote:
|
|
|
Re: "Class not found" errorAre you using Spring? I recall something related to that...
Regards
On Wed, Oct 7, 2009 at 8:47 PM, Bill Wied <wied@...> wrote:
|
|
|
Re: "Class not found" errorHere is my configuration.
web.xml: <servlet> <description>DWR controller servlet</description> <servlet-name>DWR</servlet-name> <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class> <init-param> <param-name>classes</param-name> <param-value> com.sagepoint.controller.SignupController, com.sagepoint.form.SignupForm, com.sagepoint.form.SignupItemForm, com.sagepoint.bean.SignupServiceBean, com.sagepoint.bean.SignupItemServiceBean, com.sagepoint.bean.SignupItemUserServiceBean, com.sagepoint.bean.SignupUserServiceBean, com.sagepoint.controller.CalendarController, com.sagepoint.form.CalendarForm, com.sagepoint.controller.AccountController </param-value> </init-param> </servlet> dwr-config.xml: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.directwebremoting.org/schema/spring-dwr http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd"> <dwr:configuration> <dwr:convert type="bean" class="com.sagepoint.bean.SignupServiceBean" /> <dwr:convert type="bean" class="com.sagepoint.bean.SignupItemServiceBean" /> <dwr:convert type="bean" class="com.sagepoint.bean.SignupItemUserServiceBean" /> <dwr:convert type="bean" class="com.sagepoint.bean.SignupUserServiceBean" /> <dwr:convert type="bean" class="com.sagepoint.form.SignupForm" /> <dwr:convert type="bean" class="com.sagepoint.form.SignupItemForm" /> <dwr:convert type="bean" class="com.sagepoint.form.CalendarForm" /> </dwr:configuration> <dwr:annotation-config /> <dwr:url-mapping /> <dwr:controller id="dwrController" debug="true" /> </beans>
|
|
|
Re: "Class not found" errorProbably we should fix it but right now DWR is quite greedy about /test. Either don't put anything there or use another entry point and not DWR's servlet.
Regards
On Thu, Oct 8, 2009 at 7:47 AM, Bill Wied <wied@...> wrote:
|
|
|
Re: "Class not found" errorYes, I'm using Spring.
|
|
|
Re: "Class not found" errorThe way I have DWR mapped it should only intercept if the servlet is /servlet/DWR not /servlet/test
|
|
|
Re: "Class not found" errorHow are your servlet-mappings declared?
Regards
On Thu, Oct 8, 2009 at 8:07 AM, Bill Wied <wied@...> wrote:
|
|
|
Re: "Class not found" errorYeah, I don't really see how this can happen unless you have your test servlets mapped to the same URL as DWR. DWR is a servlet and can only handle requests that are mapped to it.
On Thu, Oct 8, 2009 at 4:14 AM, Jose Noheda <jose.noheda@...> wrote: How are your servlet-mappings declared? |
| Free embeddable forum powered by Nabble | Forum Help |