From: Dannes W. <da...@ex...> - 2010-02-12 23:01:06
|
hi, At this moment I am revamping the JNLP/webstart code in exist. My plan is to use stax to generate XML output. While running the code however, I get the following message: javax.servlet.ServletException: An error occurred: Provider com.ctc.wstx.stax.WstxOutputFactory not found at org.exist.webstart.JnlpServlet.doGet(JnlpServlet.java:114) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530) Caused by: javax.xml.stream.FactoryConfigurationError: Provider com.ctc.wstx.stax.WstxOutputFactory not found at javax.xml.stream.XMLOutputFactory.newInstance(Unknown Source) at org.exist.webstart.JnlpWriter.writeJnlpXML(JnlpWriter.java:109) at org.exist.webstart.JnlpServlet.doGet(JnlpServlet.java:90) ... 35 more Caused by: javax.xml.stream.FactoryConfigurationError: Provider com.ctc.wstx.stax.WstxOutputFactory not found at javax.xml.stream.XMLOutputFactory.newInstance(Unknown Source) at org.exist.webstart.JnlpWriter.writeJnlpXML(JnlpWriter.java:109) As you see it attempts to use codehaus' com.ctc.wstx.stax.WstxOutputFactory but as far as I know there is no dependency with the codehaus stuff. I expect that 'something' forces the * javax.xml.stream.XMLOutputFactory.newInstance()* to use these classes. Maybe it it jetty7.... Any one an idea where to search? greets Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: Dmitriy S. <sha...@gm...> - 2010-02-13 03:12:44
Attachments:
smime.p7s
|
You see jetty, because it front-end & it handle request and forward it to jnlp servlet, so it nothing about jetty ... I did try last trunk & didn't get any problem (debian). It mainly java OS-related problem (mac?), IMHO. -- Cheers, Dmitriy Shabanov On Sat, 2010-02-13 at 00:00 +0100, Dannes Wessels wrote: > hi, > > At this moment I am revamping the JNLP/webstart code in exist. My plan > is to use stax to generate XML output. While running the code however, > I get the following message: > > javax.servlet.ServletException: An error occurred: Provider com.ctc.wstx.stax.WstxOutputFactory not found > > > at org.exist.webstart.JnlpServlet.doGet(JnlpServlet.java:114) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530) > > > Caused by: javax.xml.stream.FactoryConfigurationError: Provider com.ctc.wstx.stax.WstxOutputFactory not found > at javax.xml.stream.XMLOutputFactory.newInstance(Unknown Source) > at org.exist.webstart.JnlpWriter.writeJnlpXML(JnlpWriter.java:109) > > > at org.exist.webstart.JnlpServlet.doGet(JnlpServlet.java:90) > ... 35 more > Caused by: > javax.xml.stream.FactoryConfigurationError: Provider com.ctc.wstx.stax.WstxOutputFactory not found > at javax.xml.stream.XMLOutputFactory.newInstance(Unknown Source) > > > at org.exist.webstart.JnlpWriter.writeJnlpXML(JnlpWriter.java:109) > > As you see it attempts to use codehaus' > com.ctc.wstx.stax.WstxOutputFactory but as far as I know there is no > dependency with the codehaus stuff. I expect that 'something' forces > the javax.xml.stream.XMLOutputFactory.newInstance() to use these > classes. Maybe it it jetty7.... > > Any one an idea where to search? > > greets > > Dannes > > > -- > eXist-db Native XML Database - http://exist-db.org > Join us on linked-in: http://www.linkedin.com/groups?gid=35624 > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ Exist-development mailing list Exi...@li... https://lists.sourceforge.net/lists/listinfo/exist-development |
From: Dannes W. <da...@ex...> - 2010-02-13 11:08:49
|
Hi, On Sat, Feb 13, 2010 at 4:11 AM, Dmitriy Shabanov <sha...@gm...>wrote: > You see jetty, because it front-end & it handle request and forward it > to jnlp servlet, so it nothing about jetty ... > > I did try last trunk & didn't get any problem (debian). > > It mainly java OS-related problem (mac?), IMHO. > It is about code not committed into trunk, and reproducible on Mac and Windows. The problem is more difficult: Stax is an specification, for which you can have more than one implementation. Java6 has one implementation by itself, which should be used. There should no relation with an other stax implementation........ but when looking at the stack trace, there absolutely is. So one of the thirdparty jars forces the use of the codehaus stuff..... but which :-/ regards Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: Dmitriy S. <sha...@gm...> - 2010-02-13 13:10:13
Attachments:
smime.p7s
|
On Sat, 2010-02-13 at 12:08 +0100, Dannes Wessels wrote: > > It is about code not committed into trunk What do you have here? -- Cheers, Dmitriy Shabanov |
From: Dannes W. <da...@ex...> - 2010-02-13 16:43:21
|
On Sat, Feb 13, 2010 at 2:08 PM, Dmitriy Shabanov <sha...@gm...>wrote: > On Sat, 2010-02-13 at 12:08 +0100, Dannes Wessels wrote: > > > > It is about code not committed into trunk > > What do you have here? > > This is the failing code: XMLOutputFactory outputFactory = XMLOutputFactory.newInstance() from the javadoc: *This method uses the following ordered lookup procedure to determine the XMLOutputFactory implementation class to load: Use the javax.xml.stream.XMLOutputFactory system property. Use the properties file "lib/stax.properties" in the JRE directory. This configuration file is in standard java.util.Properties format and contains the fully qualified name of the implementation class with the key being the system property defined above. Use the Services API (as detailed in the JAR specification), if available, to determine the classname. The Services API will look for a classname in the file META-INF/services/javax.xml.stream.XMLOutputFactory in jars available to the runtime. Platform default XMLOutputFactory instance. Once an application has obtained a reference to a XMLOutputFactory it can use the factory to configure and obtain stream instances. * regards Dannes -- eXist-db Native XML Database - http://exist-db.org Join us on linked-in: http://www.linkedin.com/groups?gid=35624 |
From: Dmitriy S. <sha...@gm...> - 2010-02-13 16:57:53
Attachments:
smime.p7s
|
On Sat, 2010-02-13 at 17:42 +0100, Dannes Wessels wrote: > Use the Services API (as detailed in the JAR specification), if > available, to determine the classname. The Services API will look for > a classname in the file > META-INF/services/javax.xml.stream.XMLOutputFactory in jars available > to the runtime. I did check trunk's jars, nothing ... -- Cheers, Dmitriy Shabanov |