custom processor : ops will not load in jboss

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

custom processor : ops will not load in jboss

Henk Schets
Hi,

I have written a custom serializer for using JFreeChart within Orbeon
(the default one was too limited).  I packaged it in a jar, added a
reference to the processor in custom-processors.xml, copied the jar into
WEB-INF/lib and redeployed orbeon.  JBoss consequently refuses to load
the application (see stacktrace below).
If I remove my jar from WEB-INF/lib, everything is ok again.
Any ideas what this could be ?

Thanks a lot

Henk



ERROR [org.apache.commons.modeler.BaseModelMBean] Exception invoking
method addChild
java.lang.NoSuchMethodError: makeConfig
         at
org.orbeon.oxf.xml.XercesSAXParserFactoryImpl.<clinit>(XercesSAXParserFactoryImpl.java:41)
         at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at javax.xml.parsers.FactoryFinder.newInstance(Unknown Source)
         at
javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
         at javax.xml.parsers.FactoryFinder.find(Unknown Source)
         at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
         at
org.apache.tomcat.util.digester.Digester.getFactory(Digester.java:486)
         at
org.apache.tomcat.util.digester.Digester.getParser(Digester.java:691)
         at
org.apache.tomcat.util.digester.Digester.getXMLReader(Digester.java:899)
         at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
         at
org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:514)
         at
org.apache.catalina.startup.TldConfig.tldScanJar(TldConfig.java:472)
         at
org.apache.catalina.startup.TldConfig.execute(TldConfig.java:307)
         at
org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4302)
         at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4139)
         at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
         at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
         at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: custom processor : ops will not load in jboss

Alessandro Vernet
Administrator
Hi Henk,

org.orbeon.oxf.xml.XercesSAXParserFactoryImpl is calling
org.orbeon.oxf.xml.XercesSAXParser.makeConfig(). Those are all Orbeon
classes, so I don't see why the VM wouldn't find makeConfig().

It could be that you have a very old version of Orbeon Forms lying
around. Looking at the CVS history, the last time the definition of
makeConfig changed was in Oct 2005. Could that be possible?

Is there anything special about that jar file you are adding? Are you
sure that this is what is causing the problem?

Alex

On 2/23/07, Henk Schets <[hidden email]> wrote:

> Hi,
>
> I have written a custom serializer for using JFreeChart within Orbeon
> (the default one was too limited).  I packaged it in a jar, added a
> reference to the processor in custom-processors.xml, copied the jar into
> WEB-INF/lib and redeployed orbeon.  JBoss consequently refuses to load
> the application (see stacktrace below).
> If I remove my jar from WEB-INF/lib, everything is ok again.
> Any ideas what this could be ?
>
> Thanks a lot
>
> Henk
>
>
>
> ERROR [org.apache.commons.modeler.BaseModelMBean] Exception invoking
> method addChild
> java.lang.NoSuchMethodError: makeConfig
>          at
> org.orbeon.oxf.xml.XercesSAXParserFactoryImpl.<clinit>(XercesSAXParserFactoryImpl.java:41)
>          at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>          at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>          at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>          at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>          at java.lang.Class.newInstance0(Class.java:350)
>          at java.lang.Class.newInstance(Class.java:303)
>          at javax.xml.parsers.FactoryFinder.newInstance(Unknown Source)
>          at
> javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
>          at javax.xml.parsers.FactoryFinder.find(Unknown Source)
>          at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
>          at
> org.apache.tomcat.util.digester.Digester.getFactory(Digester.java:486)
>          at
> org.apache.tomcat.util.digester.Digester.getParser(Digester.java:691)
>          at
> org.apache.tomcat.util.digester.Digester.getXMLReader(Digester.java:899)
>          at
> org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
>          at
> org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:514)
>          at
> org.apache.catalina.startup.TldConfig.tldScanJar(TldConfig.java:472)
>          at
> org.apache.catalina.startup.TldConfig.execute(TldConfig.java:307)
>          at
> org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4302)
>          at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4139)
>          at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>          at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>          at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>          at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>          at java.lang.reflect.Method.invoke(Method.java:585)
>          at
> org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
>
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>

--
Orbeon Forms - Web 2.0 Forms for the Enterprise
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: custom processor : ops will not load in jboss

Henk Schets
Hi Alessandro,

I think JBoss and Orbeon don't like each other very much.  I think the
reason lies in the classloader stuff, which I, I admit, don't know much
about.  I have a feeling JBoss tries to load an MBean, thinks it is
using its own sax implementation but is actually using the one from Orbeon.
The only way I can make sure my jar gets loaded without complaining is
by doing this :
- copy the jar in WEB-INF/lib
- change jboss-service.xml by setting UseJBossWebLoader to true
- redeploy orbon, ignore the errors
- change jboss-service.xml by setting UseJBossWebLoader to false again
- redeploy orbeon

I can't let UseJBossWebLoader be set to true all the time because this
gives a lot of other problems (apart from the fact I don't like classes
being shared between web apps).

Thanks

Henk


Alessandro Vernet wrote:

> Hi Henk,
>
> org.orbeon.oxf.xml.XercesSAXParserFactoryImpl is calling
> org.orbeon.oxf.xml.XercesSAXParser.makeConfig(). Those are all Orbeon
> classes, so I don't see why the VM wouldn't find makeConfig().
>
> It could be that you have a very old version of Orbeon Forms lying
> around. Looking at the CVS history, the last time the definition of
> makeConfig changed was in Oct 2005. Could that be possible?
>
> Is there anything special about that jar file you are adding? Are you
> sure that this is what is causing the problem?
>
> Alex
>
> On 2/23/07, Henk Schets <[hidden email]> wrote:
>> Hi,
>>
>> I have written a custom serializer for using JFreeChart within Orbeon
>> (the default one was too limited).  I packaged it in a jar, added a
>> reference to the processor in custom-processors.xml, copied the jar into
>> WEB-INF/lib and redeployed orbeon.  JBoss consequently refuses to load
>> the application (see stacktrace below).
>> If I remove my jar from WEB-INF/lib, everything is ok again.
>> Any ideas what this could be ?
>>
>> Thanks a lot
>>
>> Henk
>>
>>
>>
>> ERROR [org.apache.commons.modeler.BaseModelMBean] Exception invoking
>> method addChild
>> java.lang.NoSuchMethodError: makeConfig
>>          at
>> org.orbeon.oxf.xml.XercesSAXParserFactoryImpl.<clinit>(XercesSAXParserFactoryImpl.java:41)
>>
>>          at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>          at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>
>>          at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>
>>          at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>>          at java.lang.Class.newInstance0(Class.java:350)
>>          at java.lang.Class.newInstance(Class.java:303)
>>          at javax.xml.parsers.FactoryFinder.newInstance(Unknown Source)
>>          at
>> javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
>>          at javax.xml.parsers.FactoryFinder.find(Unknown Source)
>>          at javax.xml.parsers.SAXParserFactory.newInstance(Unknown
>> Source)
>>          at
>> org.apache.tomcat.util.digester.Digester.getFactory(Digester.java:486)
>>          at
>> org.apache.tomcat.util.digester.Digester.getParser(Digester.java:691)
>>          at
>> org.apache.tomcat.util.digester.Digester.getXMLReader(Digester.java:899)
>>          at
>> org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
>>          at
>> org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:514)
>>          at
>> org.apache.catalina.startup.TldConfig.tldScanJar(TldConfig.java:472)
>>          at
>> org.apache.catalina.startup.TldConfig.execute(TldConfig.java:307)
>>          at
>> org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4302)
>>
>>          at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4139)
>>          at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>>
>>          at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>>          at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>          at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>>          at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>>          at java.lang.reflect.Method.invoke(Method.java:585)
>>          at
>> org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
>>
>>
>>
>> --
>> 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
>> ObjectWeb mailing lists service home page: http://www.objectweb.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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Henk Schets

  Team Leader Product Development

  Royal Meteorological Institute of Belgium (R.M.I.B.)
  Ringlaan 3
  B-1180 Brussels
  Belgium

  Tel: (+32) 2 3730597
  Fax: (+32) 2 3757549
  E-mail: [hidden email]

  WWW server: http://www.meteo.be



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: custom processor : ops will not load in jboss

Alessandro Vernet
Administrator
Hi Henk,

On 2/26/07, Henk Schets <[hidden email]> wrote:
> - copy the jar in WEB-INF/lib
> - change jboss-service.xml by setting UseJBossWebLoader to true
> - redeploy orbon, ignore the errors
> - change jboss-service.xml by setting UseJBossWebLoader to false again
> - redeploy orbeon

Are you saying that after doing this Orbeon Forms runs fine?

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: custom processor : ops will not load in jboss

Henk Schets
Yes, orbeon runs perfectly afterwards.  I'm sorry for not completely
understanding the classloading procedure in JBoss and Orbeon, but I have
a feeling some classes keep lingering around.
I will try to post this question on the JBoss forum too.

Thanks

Henk


Alessandro Vernet wrote:

> Hi Henk,
>
> On 2/26/07, Henk Schets <[hidden email]> wrote:
>> - copy the jar in WEB-INF/lib
>> - change jboss-service.xml by setting UseJBossWebLoader to true
>> - redeploy orbon, ignore the errors
>> - change jboss-service.xml by setting UseJBossWebLoader to false again
>> - redeploy orbeon
>
> Are you saying that after doing this Orbeon Forms runs fine?
>
> Alex
>
>
> ------------------------------------------------------------------------
>


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws