users@glassfish.java.net

Problem with overriding SAXParserFactory in application

From: <glassfish_at_javadesktop.org>
Date: Mon, 21 Apr 2008 09:31:53 PDT

We have now such a problem. We use oracle library xmlparserv2.jar in our web application (contained in WEB-INF\lib). This library overrides default SAX parser via META-INF\services.

So when we try to deploy this application to glassfish v2ur1-b09d we get an error:
javax.faces.FacesException: Can't parse configuration file: jndi:/server/tmconso
le/WEB-INF/faces-config.xml: Error at line 2 column 14: jndi:/server/tmconsole/W
EB-INF/faces-config.xml<Line 2, Column 14>: XML-20149: (Error) Element 'faces-co
nfig' used but not declared.
at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1
438)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureLi
stener.java:376)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:4523)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5
184)

And then:

[#|2008-04-21T19:32:24.036+0400|SEVERE|sun-appserver9.1|oracle.jdbc|_ThreadID=13
;_ThreadName=pool-1-thread-4;_RequestID=2a706c42-8e12-4eb2-bcdc-40a449f54890;|Er
ror while registering Oracle JDBC Diagnosability MBean.
javax.management.MalformedObjectNameException: Invalid character '
' in value part of property
at javax.management.ObjectName.construct(ObjectName.java:602)
at javax.management.ObjectName.<init>(ObjectName.java:1394)
at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:303)
at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:213)

This problem was described earlier in http://forums.java.net/jive/thread.jspa?threadID=27555. But it is mentioned there that this problem should be fixed since build 50.

Does anybody can help?

Thank you.
Alexey.
[Message sent by forum member 'hazurek' (hazurek)]

http://forums.java.net/jive/thread.jspa?messageID=270433