9 Replies Latest reply on Jan 30, 2008 1:18 PM by Ilya Shaikovsky

    Servlet 500 error when using rich:effect

    rachana patel Newbie

      Hi Everyone,

      I use richfaces 3.1.0 and application deployed in OAS 10.1.2. I keep getting getting 500 internal server error. I saw in log, errors are because of scriptaculous library. :

      Servlet error
      org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : scripts/scriptaculous/sound.js
          at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:393)
          at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:337)
          at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:155)
          at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
          at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:265)
      


      Similarly I get :

      org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : scripts/scriptaculous/controls.js
      
      
      org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : scripts/scriptaculous/slider.js
      
      
      org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : scripts/scriptaculous/sound.js
      
      


      Would it help if I load them all the way I load effect.js:


      <a4j:loadScript src="resource:///org/richfaces/renderkit/html/scripts/scriptaculous/effects.js"/>
      

      The sample code in demo doesnt say that if have to load libraries explicitly at all.
      Please let me know what should I do. Should I use load script for all of them ? Actually I am not sure if that is the solution.

      Thanks!