3 Replies Latest reply on Jun 29, 2009 8:04 PM by Tanya Ruttenberg

    ResourceNotFoundException Resource not registered : stylesheet theme.xcss

    Tanya Ruttenberg Expert

      Latest and greatest Seam.


      Everything was working just fine until late last week I started getting this error on seam restart:


      11:26:56,284 INFO  [SeamFilter] Initializing filter: org.jboss.seam.web.redirectFilter
      11:26:56,284 INFO  [SeamFilter] Initializing filter: org.jboss.seam.web.exceptionFilter
      11:26:56,284 INFO  [SeamFilter] Initializing filter: org.jboss.seam.web.multipartFilter
      11:26:56,284 INFO  [SeamFilter] Initializing filter: org.jboss.seam.web.identityFilter
      11:27:40,096 ERROR [[default]] Servlet.service() for servlet default threw exception
      org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : stylesheet/theme.xcss
              at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:397)
              at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceForKey(ResourceBuilderImpl.java:341)
              at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:152)
              at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:510)
              at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              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)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Unknown Source)



      Today it is happening every 3rd or 4th time I do seam restart.


      I am developing in eclipse, but I seam restart in a command line window because I was getting incomplete deployment errors way too often when I use eclipse build.


      I am making small edits to views and entity bean files and this error crops up frequently enough to be quite annoying.  I stop Jboss server (5.0) and seam clean unexplode undeploy (overkill probably, I know) and then seam restart and then restart JBoss and sometimes it works, sometimes not.


      Any suggestions?  Is this a JBoss server question?  Or some other non-Seam question?  If so, please let me know.


      TDR