<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6983</bug_id>
          
          <creation_ts>2009-05-30 18:02:35 +0000</creation_ts>
          <short_desc>Error in css-validator.war implimentation</short_desc>
          <delta_ts>2012-06-25 22:09:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>upload file</component>
          <version>CSS Validator</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>www.vietfun.com</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mangal">mangal.varshney</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>cau_ut_416</cc>
    
    <cc>sneha.snk</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25377</commentid>
    <comment_count>0</comment_count>
    <who name="Mangal">mangal.varshney</who>
    <bug_when>2009-05-30 18:02:35 +0000</bug_when>
    <thetext>Hello,

I have successfully build css-validator.war file and deploy in tomcat 6.0 but i am getting following error message on validating the css file.

-----------------------------------------------------------
Validator
Error
Target: file://localhost/Perr_9781588360625_epub_css_r1.css

Oups! Internal error! 
-----------------------------------------------------------

please assist me why this error is occurring.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49219</commentid>
    <comment_count>1</comment_count>
    <who name="Sneha">sneha.snk</who>
    <bug_when>2011-06-06 18:37:14 +0000</bug_when>
    <thetext>Hi Mangal,, I have same problem and not able to get the problem.. God knows what goes wrong.. :( .. I add some log entries to track the fault,, But all I get is error log in stdout.log file of tomcat ,,


[trace] *******************************************************************
[debug] Starting Apache Velocity v1.5 (compiled: 2007-02-22 08:52:29)
[trace] RuntimeInstance initializing.
[debug] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
[debug] Trying to use logger class org.apache.velocity.runtime.log.AvalonLogChute
[debug] Couldn&apos;t find class org.apache.velocity.runtime.log.AvalonLogChute or necessary supporting classes in classpath.
org/apache/log/format/Formatter
java.lang.NoClassDefFoundError: org/apache/log/format/Formatter
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.velocity.util.ClassUtils.getClass(ClassUtils.java:63)
at org.apache.velocity.util.ClassUtils.getNewInstance(ClassUtils.java:95)
at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:147)
at org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:208)
at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:728)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:240)
at org.apache.velocity.runtime.RuntimeSingleton.init(RuntimeSingleton.java:113)
at org.apache.velocity.app.Velocity.init(Velocity.java:83)
at org.w3c.css.index.IndexGenerator.generatesIndex(IndexGenerator.java:102)
at org.w3c.css.servlet.CssValidator$1.run(CssValidator.java:144)
Caused by: java.lang.ClassNotFoundException: org.apache.log.format.Formatter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
... 12 more
[debug] Using SystemLogChute.
[debug] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
[debug] ResourceLoader instantiated: org.apache.velocity.runtime.resource.loader.FileResourceLoader
[trace] FileResourceLoader : initialization starting.
[debug] Do unicode file recognition: false
[info] FileResourceLoader : adding path &apos;/D:/hardik_java/Eclipse%203.1/eclipse/eclipse/workspace/vys/.deployables/vys/WEB-INF/classes/org/w3c/css/index/&apos;
[info] FileResourceLoader : adding path &apos;/D:/hardik_java/Eclipse%203.1/eclipse/eclipse/workspace/vys/.deployables/vys/WEB-INF/classes/org/w3c/css/index/../../../../&apos;
[trace] FileResourceLoader : initialization complete.
[debug] ResourceCache: initialized (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[trace] Default ResourceManager initialization complete.
[debug] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[debug] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[debug] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[debug] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[debug] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[debug] Created &apos;20&apos; parsers.
[trace] Velocimacro : initialization starting.
[debug] Velocimacro : &quot;velocimacro.library&quot; is not set. Trying default library: VM_global_library.vm
[debug] Velocimacro : Default library not found.
[debug] Velocimacro : allowInline = true : VMs can be defined inline in templates
[debug] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[debug] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[debug] Velocimacro : autoload off : VM system will not automatically reload global library macros
[trace] Velocimacro : Velocimacro : initialization complete.
[trace] RuntimeInstance successfully initialized.
[error] ResourceManager : unable to find resource &apos;validator.vm&apos; in any resource loader.
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource &apos;validator.vm&apos;
at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:452)
at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:335)
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102)
at org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.java:324)
at org.apache.velocity.app.Velocity.getTemplate(Velocity.java:524)
at org.w3c.css.index.IndexGenerator.generatesIndex(IndexGenerator.java:110)
at org.w3c.css.servlet.CssValidator$1.run(CssValidator.java:144)
[error] ResourceManager : unable to find resource &apos;org/w3c/css/css/xhtml.properties&apos; in any resource loader.
Unable to find resource &apos;org/w3c/css/css/xhtml.properties&apos;
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource &apos;org/w3c/css/css/xhtml.properties&apos;
at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:452)
at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:335)
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102)
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1077)
at org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.java:303)
at org.apache.velocity.app.Velocity.getTemplate(Velocity.java:503)
at org.w3c.css.css.StyleSheetGenerator.&lt;init&gt;(StyleSheetGenerator.java:199)
at org.w3c.css.css.StyleReportFactory.getStyleReport(StyleReportFactory.java:19)
at org.w3c.css.servlet.CssValidator.handleRequest(CssValidator.java:758)
at org.w3c.css.servlet.CssValidator.doGet(CssValidator.java:393)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at org.w3c.css.css.StyleSheetGenerator.print(StyleSheetGenerator.java:474)
at org.w3c.css.servlet.CssValidator.handleRequest(CssValidator.java:770)
at org.w3c.css.servlet.CssValidator.doGet(CssValidator.java:393)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source) 



please tell me if you find any solution ,I also request to all my eveloper frnds to halp me out.. I need to solve this ...

Thanks,
Sneha.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>