You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Serkan Camurcuoglu <Se...@telenity.com> on 2009/05/12 14:23:57 UTC

possible bug

Hi all,
We need to have the oracle xml parser in our tomcat /lib/ directory since we have to use the client api of Oracle BPEL in our application.
But when using xml property files, I get the following exception if I use a comment inside the property file:

java.lang.ClassCastException: oracle.xml.parser.v2.XMLComment
     at org.apache.wicket.util.io.Streams.loadFromXml(Streams.java:158)
     at org.apache.wicket.resource.PropertiesFactory.loadPropertiesFile(PropertiesFactory.java:199)
     at org.apache.wicket.resource.PropertiesFactory.loadPropertiesFileAndWatchForChanges(PropertiesFactory.java:289)
     at org.apache.wicket.resource.PropertiesFactory.load(PropertiesFactory.java:118)
     at org.apache.wicket.resource.loader.ComponentStringResourceLoader.loadStringResource(ComponentStringResourceLoader.java:148)
     at org.apache.wicket.resource.loader.ComponentStringResourceLoader.loadStringResource(ComponentStringResourceLoader.java:225)
     at org.apache.wicket.Localizer.getString(Localizer.java:225)
     at org.apache.wicket.Localizer.getString(Localizer.java:116)
     at org.apache.wicket.Component.getString(Component.java:1807)
     at org.apache.wicket.Component.getString(Component.java:1794)

I'm using wicket 1.3.4. Do you think I should open a jira issue for this?

Regards,

SerkanC



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: possible bug

Posted by Martijn Dashorst <ma...@gmail.com>.
Nope. This is not a bug in wicket, but a bug in your configuration or
the oracle parser. Either don't use the oracle xml parser, configure
it to use the correct DOM tree parser, ensure you can use another
parser next to the oracle parser or don't use xml property files.

Apparently XMLComment does not extend org.w3c.dom.Element

Martijn

On Tue, May 12, 2009 at 2:23 PM, Serkan Camurcuoglu
<Se...@telenity.com> wrote:
> Hi all,
> We need to have the oracle xml parser in our tomcat /lib/ directory since we
> have to use the client api of Oracle BPEL in our application.
> But when using xml property files, I get the following exception if I use a
> comment inside the property file:
>
> java.lang.ClassCastException: oracle.xml.parser.v2.XMLComment
>    at org.apache.wicket.util.io.Streams.loadFromXml(Streams.java:158)
>    at
> org.apache.wicket.resource.PropertiesFactory.loadPropertiesFile(PropertiesFactory.java:199)
>    at
> org.apache.wicket.resource.PropertiesFactory.loadPropertiesFileAndWatchForChanges(PropertiesFactory.java:289)
>    at
> org.apache.wicket.resource.PropertiesFactory.load(PropertiesFactory.java:118)
>    at
> org.apache.wicket.resource.loader.ComponentStringResourceLoader.loadStringResource(ComponentStringResourceLoader.java:148)
>    at
> org.apache.wicket.resource.loader.ComponentStringResourceLoader.loadStringResource(ComponentStringResourceLoader.java:225)
>    at org.apache.wicket.Localizer.getString(Localizer.java:225)
>    at org.apache.wicket.Localizer.getString(Localizer.java:116)
>    at org.apache.wicket.Component.getString(Component.java:1807)
>    at org.apache.wicket.Component.getString(Component.java:1794)
>
> I'm using wicket 1.3.4. Do you think I should open a jira issue for this?
>
> Regards,
>
> SerkanC
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org