Carl Bailey wrote:
Hi,

I am trying to run the tc5 client deployer standalone to
pre-compile a web application , the application compiles fine,
however the validator task
throws the following error. I have checked that the build directory contains a valid web.xml
under the WEB-INF directory, and that the correct path to the
application is passed to the validator task. I notice that the
java docs for org.apache.catalina.ant.ValidatorTask, suggest that
the validation uses XML schema Validation, does this require a
valid schema to be included in the web.xml


Can anyone help or point me to additional docs on the
validatorTask

[validator] 6/01/2004 16:34:22
org.apache.commons.digester.Digester startElement
[validator] SEVERE: Begin event threw exception
[validator] java.lang.IndexOutOfBoundsException: Index: 0, Size:
0
[validator]     at
java.util.ArrayList.RangeCheck(ArrayList.java:508)
[validator]     at java.util.ArrayList.get(ArrayList.java:320)
[validator]     at
org.apache.commons.collections.ArrayStack.peek(Unknown Source)
[validator]     at
org.apache.commons.digester.Digester.peek(Digester.java:2329)
[validator]     at
org.apache.catalina.startup.SetPublicIdRule.begin(WebRuleSet.java:599)
[validator]     at
org.apache.commons.digester.Rule.begin(Rule.java:200)
[validator]     at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
[validator]     at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
[validator]     at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
Source)
[validator]     at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
[validator]     at
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown
Source)
[validator]     at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
[validator]     at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
[validator]     at
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
[validator]     at
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
[validator]     at
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[validator]     at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
[validator]     at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
[validator]     at
org.apache.catalina.ant.ValidatorTask.execute(ValidatorTask.java:144)
[validator]     at
org.apache.tools.ant.Task.perform(Task.java:341)
[validator]     at
org.apache.tools.ant.Target.execute(Target.java:309)
[validator]     at
org.apache.tools.ant.Target.performTasks(Target.java:336)
[validator]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[validator]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1255)
[validator]     at
org.apache.tools.ant.Main.runBuild(Main.java:609)
[validator]     at
org.apache.tools.ant.Main.start(Main.java:196)
[validator]     at
org.apache.tools.ant.Main.main(Main.java:235)

The validator task is broken in 5.0.16. This has been fixed already, and 5.0.17 will have the fix.


So do not use the validator task for now.

--
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
R�my Maucherat
Senior Developer & Consultant
JBoss Group (Europe) S�RL
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to