Hi
I've just found that orbeon.jar defines the service javax.xml.parsers.SAXParserFactory in META-INF/services as org.orbeon.oxf.xml.xerces.XercesSAXParserFactoryImpl. It seems that this class uses in turn the customized class orbeon.apache.xerces.parsers.SAXParser. The problem is that it is in private/xerces-xercesImpl-2_9_orbeon_20070711.jar. So it seems the service is not fully implemented within the boundary of the JAR it is defined within, and that the service requires another JAR tagged as "private." Here is a description of how I run into the problem, in case this is worth knowing. I define custom processors, so I added orbeon.jar to my build path, as well as to the class path used to run unit tests. One of these tests use Saxon to run an XSLT transform. It seems Saxon uses the standard class SAXParserFactory. Because orbeon.jar is in the class path, the Orbeon's implementation is used, but at the end the Orbeon's SAXParser is not in the class path. Maybe it would be worth providing a JAR dedicated to extensions writing (including SimpleProcessor, ...) and not including Orbeon Server's runtime details (using a special SAXParserFactory) ? Of course, I added the private JAR to my class path for now, and everything run fine. Regards, --drkm __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités http://mail.yahoo.fr Yahoo! Mail -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
I've encountered similar problems with those jars, see the March archive for
the "more details on the deployment problems on SAP WAS (Netweaver)" thread. Something to try is to delete the "private" directory in orbeon.war/web-inf/lib, it worked for me for separate deployments. ----- Original Message ----- From: "Florent Georges" <[hidden email]> To: "OPS Users ML" <[hidden email]> Sent: Tuesday, April 29, 2008 8:10 AM Subject: [ops-users] javax.xml.parsers.SAXParserFactory in orbeon.jar > Hi > > I've just found that orbeon.jar defines the service > javax.xml.parsers.SAXParserFactory in META-INF/services as > org.orbeon.oxf.xml.xerces.XercesSAXParserFactoryImpl. > > It seems that this class uses in turn the customized class > orbeon.apache.xerces.parsers.SAXParser. The problem is that > it is in private/xerces-xercesImpl-2_9_orbeon_20070711.jar. > So it seems the service is not fully implemented within the > boundary of the JAR it is defined within, and that the > service requires another JAR tagged as "private." > > Here is a description of how I run into the problem, in > case this is worth knowing. I define custom processors, so > I added orbeon.jar to my build path, as well as to the class > path used to run unit tests. One of these tests use Saxon > to run an XSLT transform. It seems Saxon uses the standard > class SAXParserFactory. Because orbeon.jar is in the class > path, the Orbeon's implementation is used, but at the end > the Orbeon's SAXParser is not in the class path. > > Maybe it would be worth providing a JAR dedicated to > extensions writing (including SimpleProcessor, ...) and not > including Orbeon Server's runtime details (using a special > SAXParserFactory) ? > > Of course, I added the private JAR to my class path for > now, and everything run fine. > > Regards, > > --drkm > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > En finir avec le spam? Yahoo! Mail vous offre la meilleure protection > possible contre les messages non sollicités > http://mail.yahoo.fr Yahoo! Mail > > -------------------------------------------------------------------------------- > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Jean Luc wrote:
Hi Thank you for the hint! > I've encountered similar problems with those jars, see the > March archive for the "more details on the deployment > problems on SAP WAS (Netweaver)" thread. That's not exactly the same problem. Actually, if I'm right, that's even quite the opposite :-) Here I am in the build environment (that is, my IDE: Eclipse). The problem is that I added to the build path orbeon.jar that I extracted from the WAR; and only orbeon.jar! So... > Something to try is to delete the "private" directory in > orbeon.war/web-inf/lib, it worked for me for separate > deployments. ...I did the opposite and created a "private" dir in the dir I added orbeon.jar to, I put within it the JAR xerces-..., and voila :-) Anyway, thank you for the link. It gave me the clue that the JAR was referred to by name in the MANIFEST. Regards, --drkm __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités http://mail.yahoo.fr Yahoo! Mail -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
These class loading issues are confusing :-(
I think BTW that we have removed services declarations from the xercesImpl manifest quite a while ago. I don't think we want it to be there as it seems to cause problems. I assume you don't have the latest nightly, so can you try removing it and see if it improves things? -Erik On Apr 29, 2008, at 8:55 AM, Florent Georges wrote: > Jean Luc wrote: > > Hi > > Thank you for the hint! > >> I've encountered similar problems with those jars, see the >> March archive for the "more details on the deployment >> problems on SAP WAS (Netweaver)" thread. > > That's not exactly the same problem. Actually, if I'm > right, that's even quite the opposite :-) Here I am in the > build environment (that is, my IDE: Eclipse). The problem > is that I added to the build path orbeon.jar that I > extracted from the WAR; and only orbeon.jar! So... > >> Something to try is to delete the "private" directory in >> orbeon.war/web-inf/lib, it worked for me for separate >> deployments. > > ...I did the opposite and created a "private" dir in the dir > I added orbeon.jar to, I put within it the JAR xerces-..., > and voila :-) > > Anyway, thank you for the link. It gave me the clue that > the JAR was referred to by name in the MANIFEST. > > Regards, > > --drkm > > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > En finir avec le spam? Yahoo! Mail vous offre la meilleure > protection possible contre les messages non sollicités > http://mail.yahoo.fr Yahoo! Mail > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
I cannot try any recent build because of the problem described in the "JS
and CSS links are broken (no longer relative) in the last build(s)" thread. So I'm stuck with a March build - frustrating, as I see the number of fixes added in 3.7 but cannot use a new build. Please, please, have a look :) ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Tuesday, April 29, 2008 1:22 PM Subject: [ops-users] Re: Re: Re: javax.xml.parsers.SAXParserFactory in orbeon.jar These class loading issues are confusing :-( I think BTW that we have removed services declarations from the xercesImpl manifest quite a while ago. I don't think we want it to be there as it seems to cause problems. I assume you don't have the latest nightly, so can you try removing it and see if it improves things? -Erik On Apr 29, 2008, at 8:55 AM, Florent Georges wrote: > Jean Luc wrote: > > Hi > > Thank you for the hint! > >> I've encountered similar problems with those jars, see the >> March archive for the "more details on the deployment >> problems on SAP WAS (Netweaver)" thread. > > That's not exactly the same problem. Actually, if I'm > right, that's even quite the opposite :-) Here I am in the > build environment (that is, my IDE: Eclipse). The problem > is that I added to the build path orbeon.jar that I > extracted from the WAR; and only orbeon.jar! So... > >> Something to try is to delete the "private" directory in >> orbeon.war/web-inf/lib, it worked for me for separate >> deployments. > > ...I did the opposite and created a "private" dir in the dir > I added orbeon.jar to, I put within it the JAR xerces-..., > and voila :-) > > Anyway, thank you for the link. It gave me the clue that > the JAR was referred to by name in the MANIFEST. > > Regards, > > --drkm > > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > En finir avec le spam? Yahoo! Mail vous offre la meilleure > protection possible contre les messages non sollicités > http://mail.yahoo.fr Yahoo! Mail > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -------------------------------------------------------------------------------- > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Erik Bruchez
Erik Bruchez wrote:
Erik, > I assume you don't have the latest nightly, so can you try > removing it and see if it improves things? Indeed, I use the same version to develop than the version we have in prod, the 3.6.0 from 2007-12-06. Actually the error was mine (I am always confused by all the things a classpath can depend on): I only extracted orbeon.jar, and didn't see it depends on private/xerces-...jar (as stated in its Manifest.) So I just extracted this JAR as well from the WAR and put it in a "private" dir, and all is fine now. Thanks for the help, --drkm __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités http://mail.yahoo.fr Yahoo! Mail -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Strange...I just tried to copy from the bookcast example the regexpr for the url(link) but it´s not working... I have exactly the same link element in my app and I defined it in my schema, too but it´s not working... in my schema... <xs:simpleType name="link"> <xs:restriction base="xs:string"> <!-- Approximative regexp for HTTP URLs --> <xs:pattern value="(https?\://([^/?#]+)/([^?#]*)(\?([^?#]+))?(#(.*))?)?"/> </xs:restriction> </xs:simpleType> in my view.xml <xforms:input ref="link"> <xforms:label>link</xforms:label> </xforms:input> I tried the example online on the orbeon site, it´s working. Now I have the same code...it´s not working..=( -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
On Tue, Apr 29, 2008 at 12:45 PM, Masen J <[hidden email]> wrote:
> I tried the example online on the orbeon site, it´s working. > Now I have the same code...it´s not working..=( Is it your example or the Bookcast example you tried on the orbeon.com site? Maybe you could create an example that runs in the XForms sandbox and reproduces this and post it here. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |