• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

No class by name: AjaxUtils

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
J've just installed JForum 2.1.6 and, in the admin pages, when I click on "Configurations" in "Forum Admin" I see the page and get the following exception.

What's wrong and how do I solve it?

2006-09-17 17:22:27.000::WARN: /jforum/dwr/interface/AjaxUtils.js:
java.lang.SecurityException: No class by name: AjaxUtils
at uk.ltd.getahead.dwr.impl.DefaultCreatorManager.getCreator(DefaultCreatorManager.java:196)
at uk.ltd.getahead.dwr.impl.DefaultInterfaceProcessor.handle(DefaultInterfaceProcessor.java:54)
at uk.ltd.getahead.dwr.impl.DefaultProcessor.handle(DefaultProcessor.java:79)
at uk.ltd.getahead.dwr.AbstractDWRServlet.doPost(AbstractDWRServlet.java:162)
at uk.ltd.getahead.dwr.AbstractDWRServlet.doGet(AbstractDWRServlet.java:149)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:447)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:356)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:621)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
at org.mortbay.jetty.Server.handle(Server.java:269)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:678)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:492)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
at org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)



[originally posted on jforum.net by imjames]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rafael, I've checkout the CVS today to check if this error happens there too.

I confirm that it happens in the lastest version of the code.
And I haven't mess with the configuration. It happens "out of the box".


[originally posted on jforum.net by imjames]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hhm.. problem related to jetty? Are you able to just test it with Tomcat?

Thanks

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, has this problem been resolved. If it has, how is it supposed to be fixed.
[originally posted on jforum.net by jaydryu]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The same happens here with Tomcat.
[originally posted on jforum.net by rcastro]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the problem seems to be with Oracle IAS 10gR3 too...
All the rest is right!
[originally posted on jforum.net by sburky]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In fact the pb seems to load the dwr-jforum.xml...

I think the parameter of the servlet DWRServlet was not correctly pass with some application server.

I modify the web.xml as follow


<!-- AJAX -->
<servlet>
<servlet-name>dwr-invoker</servlet-name> <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
<!-- <br /> <init-param> <br /> <param-name>configJForum</param-name> <br /> <param-value>WEB-INF/dwr-jforum.xml</param-value> <br /> </init-param> <br /> -->
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
</servlet>


I copy dwr-jforum.xml to dwr.xml and now it's working in Ias 10gR3...

May this help some one of you...
[originally posted on jforum.net by sburky]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
edit your web.xml
change .. from
<param-value>WEB-INF/dwr-jforum.xml</param-value>
to
<param-value>/WEB-INF/dwr-jforum.xml</param-value>

[originally posted on jforum.net by rened]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

rened wrote:edit your web.xml
change .. from
<param-value>WEB-INF/dwr-jforum.xml</param-value>
to
<param-value>/WEB-INF/dwr-jforum.xml</param-value>



This fixed my AjaxUtils class problem. Now I am getting the following logs... Any ideas? I am running 2.1.7 on Jetty5.



Thank-you for any help... Guidedog
[originally posted on jforum.net by Guidedog]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ran into this as well, so I'll post this just for reference.

You should be able to fix all errors from DWR by changing the content of your dwl-jforum.xml to the following:



Works for DWL version 1.1 supplied with JForum 2.1.7.


Regards,
Martin
[originally posted on jforum.net by inzide]
reply
    Bookmark Topic Watch Topic
  • New Topic