I faced a similar problem during m2 build on the trunk. The
o.a.g.s.plugin.pluginInstallerTest fails on the trunk. The following
line marked with '--->' throws exception, as a result setErrorHandler()
is not executed. the exception (IllegalArgumentException) says this is
an invalid attribute for this parser (crimson). The 'system' module
does not have a dependency on xerces. Though this should not be a
problem in a full server.
Thanks
Anita
private static DocumentBuilder createDocumentBuilder() throws
ParserConfigurationException {
........................................................
factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage",
"http://www.w3.org/2001/XMLSchema"); <----
factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaSource",
new InputStream[]{
PluginInstallerGBean.class.getResourceAsStream("/META-INF/schema/local-attributes-1.1.xsd"),
PluginInstallerGBean.class.getResourceAsStream("/META-INF/schema/plugins-1.1.xsd"),
}
);
DocumentBuilder builder = factory.newDocumentBuilder();
builder.setErrorHandler(new ErrorHandler() {
--- John Sisson <[EMAIL PROTECTED]> wrote:
> Ahmed,
>
> I can reproduce your problem in the j2ee-tomcat assembly. It appears
>
> that a recent change (20 May) to the config.xml file in revision
> 407883
> has introduced the problem.
>
> To work around the issue place an XML comment out the following in
> the
> var\config.xml file (near line 73):
>
> <!--
> <gbean name="TomcatEngine">
> <reference name="TomcatValveChain" />
> </gbean>
> -->
> <!-- To enable accesslogging change the load="false" below to
>
> load="true" -->
> <!--
> <gbean name="FirstValve" load="false"></gbean>
> -->
>
> The message about the error handler is a warning from Xerces that it
> encountered a validation (in the config.xml file) error but Geronimo
> didn't have an error handler registered. That is another issue we
> need
> to look into, as it wasn't clear in the message from Xerces what file
>
> had the error. Once you apply the workaround above, this warning
> shouldn't appear.
>
> Regards,
>
> John
>
> ahmed wrote:
> > Hi Everybody ,
> >
> > I have downloaded Geronimo1.1 source recently and was
> > able to build successfully .
> >
> > But when i start the server i get below warning message
>
> > saying , setErrorHandler( ) , i have pasted the warning messages
> also.
> >
> > Can somebody help me , what is wrong ,
> >
> > Thanks in advance !!!
> >
> > Booting Geronimo Kernel (in Java 1.4.2_09)...
> > Warning: validation was turned on but an org.xml.sax.ErrorHandler
> was not
> > set, which is probably not what is desired. Parser will use a
> default
> > ErrorHandler to print the first 10 errors. Please call
> > the 'setErrorHandler' method to fix this.
> > Error: URI=null Line=65: cvc-complex-type.2.4.b: The content of
> > element 'referen
> > ce' is not complete. One of '{"
> > http://geronimo.apache.org/xml/ns/attributes-1.1"
> > :pattern}' is expected.
> > Starting Geronimo Application Server v1.1-SNAPSHOT
> > [********************] 100% 35s Startup complete
> > Listening on Ports:
> > 1099 0.0.0.0 <http://0.0.0.0> RMI Naming
> > 1527 0.0.0.0 <http://0.0.0.0> Derby Connector
> > 4242 0.0.0.0 <http://0.0.0.0> Remote Login Listener
> > 8009 0.0.0.0 <http://0.0.0.0> Tomcat Connector AJP
> > 8080 0.0.0.0 <http://0.0.0.0> Tomcat Connector HTTP
> > 8443 0.0.0.0 <http://0.0.0.0> Tomcat Connector HTTPS
> > 9999 0.0.0.0 <http://0.0.0.0> JMX Remoting Connector
> > 61616 0.0.0.0 <http://0.0.0.0> ActiveMQ Message Broker Connector
> >
> > Started Application Modules:
> > EAR: geronimo/webconsole-tomcat/1.1-SNAPSHOT/car
> > RAR: geronimo/activemq/1.1-SNAPSHOT/car
> > RAR: geronimo/system-database/1.1-SNAPSHOT/car
> > WAR: geronimo/remote-deploy-tomcat/1.1-SNAPSHOT/car
> > WAR: geronimo/welcome-tomcat/1.1-SNAPSHOT/car
> >
> > Web Applications:
> > http://vidyarao:8080/
> > http://vidyarao:8080/console
> > http://vidyarao:8080/console-standard
> > http://vidyarao:8080/remote-deploy
> >
> > Geronimo Application Server started
> >
> >
> >
> > With Thanks and Regards,
> >
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com