2 Replies Latest reply on Nov 22, 2010 11:59 AM by Didier Schonne

    a4j:loadScript is no longer supported in RF 4.0.0 (M3 or M4) ?

    Didier Schonne Newbie

      Hi,

       

      When I use this :

       

      <a4j:loadScript src="resource:///js/imgpreview.min.0.22.jquery.js"/>
      or
      <a4j:loadScript src="/js/imgpreview.min.0.22.jquery.js"/>
      

       

      I have this error :

       

      ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/bss.war.backoffice].[Faces Servlet]] "Servlet.service()" pour la servlet Faces Servlet a généré une exception: javax.faces.view.facelets.TagException: /pages/activation/activationEdit.xhtml @8,86 <a4j:loadScript> Tag Library supports namespace: http://richfaces.org/a4j, but no tag was defined for name: loadScript
          at com.sun.faces.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:289) [:2.0.3-SNAPSHOT]
          at com.sun.faces.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:228) [:2.0.3-SNAPSHOT]
          at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) [xercesImpl.jar:]
          at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) [xercesImpl.jar:]
          at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source) [xercesImpl.jar:]
          at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) [xercesImpl.jar:]
          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) [xercesImpl.jar:]
          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [xercesImpl.jar:]
          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl.jar:]
          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl.jar:]
          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [xercesImpl.jar:]
          at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [xercesImpl.jar:]
          at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) [xercesImpl.jar:]
          at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source) [xercesImpl.jar:]
          at javax.xml.parsers.SAXParser.parse(SAXParser.java:198) [:1.6.0_22]
          at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:388) [:2.0.3-SNAPSHOT]
          at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:364) [:2.0.3-SNAPSHOT]
          at com.sun.faces.facelets.compiler.Compiler.compile(Compiler.java:122) [:2.0.3-SNAPSHOT]
          at com.sun.faces.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:294) [:2.0.3-SNAPSHOT]
          at com.sun.faces.facelets.impl.DefaultFaceletFactory.access$100(DefaultFaceletFactory.java:89) [:2.0.3-SNAPSHOT]
          at com.sun.faces.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:159) [:2.0.3-SNAPSHOT]
          at com.sun.faces.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:158) [:2.0.3-SNAPSHOT]
          at com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(DefaultFaceletCache.java:79) [:2.0.3-SNAPSHOT]
          at com.sun.faces.facelets.impl.DefaultFaceletCache$1.newInstance(DefaultFaceletCache.java:75) [:2.0.3-SNAPSHOT]
          at com.sun.faces.util.ExpiringConcurrentCache$1.call(ExpiringConcurrentCache.java:95) [:2.0.3-SNAPSHOT]
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [:1.6.0_22]
          at java.util.concurrent.FutureTask.run(FutureTask.java:138) [:1.6.0_22]
          at com.sun.faces.util.ExpiringConcurrentCache.get(ExpiringConcurrentCache.java:110) [:2.0.3-SNAPSHOT]
          at com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:115) [:2.0.3-SNAPSHOT]
          at com.sun.faces.facelets.impl.DefaultFaceletCache.getFacelet(DefaultFaceletCache.java:58) [:2.0.3-SNAPSHOT]
          at com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:245) [:2.0.3-SNAPSHOT]
          at com.sun.faces.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:190) [:2.0.3-SNAPSHOT]
          at com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(FaceletViewHandlingStrategy.java:731) [:2.0.3-SNAPSHOT]
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:96) [:2.0.3-SNAPSHOT]
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-SNAPSHOT]
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135) [:2.0.3-SNAPSHOT]
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309) [:2.0.3-SNAPSHOT]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
          at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:63) [:]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
          at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [:6.0.0-SNAPSHOT]
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:]
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:]
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:]
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0-SNAPSHOT]
          at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.CR3]
          at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.CR3]
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0-SNAPSHOT]
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0-SNAPSHOT]
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:]
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:]
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0-SNAPSHOT]
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:]
          at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0-SNAPSHOT]
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:]
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:]
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [:]
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:]
          at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
      

       

      Did I miss something ?