Hi Ari,
What are your dependencies for the StAX implementation, are you using
JDK 6?
Have you tried the settings documented here:
http://java.sun.com/javase/6/docs/api/javax/xml/stream/XMLInputFactory.html#newInstance%28%29
For example you could set the system property
javax.xml.stream.XMLInputFactory to the implementation.
Note that we recommend you utilize Woodstox, which is documented in
the dependencies:
<dependency>
<groupId>woodstox</groupId>
<artifactId>wstx-asl</artifactId>
<version>3.2.1</version>
</dependency>
https://jersey.dev.java.net/source/browse/*checkout*/jersey/tags/jersey-1.1.1-ea/jersey/dependencies.html
Paul.
On Aug 11, 2009, at 11:53 AM, Ari Heino wrote:
>
>
>
> Paul Sandoz wrote:
>>
>>
>> If you use arrays you do not need to utilize GenericEntity.
>> Unfortunately this is the only way to do things because of type
>> erasure.
>>
>> Paul.
>>
>>
> Hi!
>
> Tried using arrays inside Response objecct, and it kinda works.
> Again, I'm
> having Jersey client inside OSGi bundles inside Eclipse client. The
> error i
> get is as follows:
>
> javax.xml.stream.FactoryConfigurationError: Provider
> com.bea.xml.stream.MXParserFactory not found
> at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:178)
> at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:92)
> at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:
> 136)
> at
> com
> .sun
> .jersey
> .core
> .impl
> .provider
> .entity
> .XMLListElementProvider
> .getXMLStreamReader(XMLListElementProvider.java:99)
> at
> com
> .sun
> .jersey
> .core
> .provider
> .jaxb
> .AbstractListElementProvider
> .readFrom(AbstractListElementProvider.java:181)
> at
> com
> .sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:
> 259)
> at
> com
> .sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:
> 220)
>
> and that is said to be caused by this:
> http://forums.java.net/jive/thread.jspa?messageID=117971 but I can't
> figure
> out how to fix it. The StAX implementation just wont want to be
> corrected in
> my classpaths. Any similar problems with Jersey earlier?
>
> -- .aRi
> --
> View this message in context: http://n2.nabble.com/Jersey-JAX-RS-JAXB---Returning-an-Array-of-Objects-tp2669077p3422862.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>