orbeon 3.7.1 install error on glassfish 3.0 IllegalStateException in orbeon.apache.xerces.xinclude.XIncludeHandler$XIncludeListener

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

orbeon 3.7.1 install error on glassfish 3.0 IllegalStateException in orbeon.apache.xerces.xinclude.XIncludeHandler$XIncludeListener

Andrew Bailey
Hi,

I am trying to install orbeon-dev-3.7.1.200905272119 to glassfish 3.0 and get the following error:


[#|2010-04-30T16:13:12.544-0500|SEVERE|glassfishv3.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=28;_ThreadName=Thread-1;|Exception while loading the app
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.orbeon.oxf.common.OXFException: orbeon.apache.xerces.xinclude.XIncludeHandler$XIncludeListener
    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:117)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)
    at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
    at org.glassfish.admingui.common.util.LocalDeploymentFacility$LocalDFCommandRunner.run(LocalDeploymentFacility.java:138)
    at org.glassfish.deployment.client.AbstractDeploymentFacility.deploy(AbstractDeploymentFacility.java:350)
    at org.glassfish.admingui.common.util.DeployUtil.invokeDeploymentFacility(DeployUtil.java:89)
    at org.glassfish.admingui.common.util.DeployUtil.deploy(DeployUtil.java:66)
    at org.glassfish.admingui.common.handlers.DeploymentHandler.deploy(DeploymentHandler.java:186)
    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:597)
    at com.sun.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:442)
    at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:420)
    at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:394)
    at com.sun.jsftemplating.layout.event.CommandActionListener.invokeCommandHandlers(CommandActionListener.java:150)
    at com.sun.jsftemplating.layout.event.CommandActionListener.processAction(CommandActionListener.java:98)
    at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
    at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:772)
    at javax.faces.component.UICommand.broadcast(UICommand.java:300)
    at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
    at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:229)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:329)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
    at java.lang.Thread.run(Thread.java:619)
|#]

[#|2010-04-30T16:13:13.235-0500|SEVERE|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=28;_ThreadName=Thread-1;|log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.|#]

Any ideas?

Thanks

Andy Bailey



--
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
Reply | Threaded
Open this post in threaded view
|

Re: orbeon 3.7.1 install error on glassfish 3.0 IllegalStateExceptionin orbeon.apache.xerces.xinclude.XIncludeHandler$XIncludeListener

Andrew Bailey
Update ..

The same happens to the nightly build CE when deploying it in
glassfish v3 (with latest updates applied)

Exception while loading the app : java.lang.Exception:
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException:
org.orbeon.oxf.common.OXFException:
orbeon.apache.xerces.xinclude.XIncludeHandler$XIncludeListener

Any chance of fixing it for the 3.8 release

Andy Bailey


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: orbeon 3.7.1 install error on glassfish 3.0 IllegalStateExceptionin orbeon.apache.xerces.xinclude.XIncludeHandler$XIncludeListener

Erik Bruchez-3
Andy,

Unfortunately we cannot commit that this will be fixed for 3.8.0
unless we get help on this one and the fix is an easy one, as we want
3.8.0 out ASAP.

This said, the stack trace is missing the line number of the original exception:

orbeon.apache.xerces.xinclude.XIncludeHandler$XIncludeListener

There is a chance that the issue is with the ThreadLocal stuff in this file:

http://github.com/orbeon/xerces/blob/master/src/orbeon/apache/xerces/xinclude/XIncludeHandler.java

Are you able to debug this?

-Erik

On Mon, May 3, 2010 at 7:33 PM, Andrew Bailey <[hidden email]> wrote:

> Update ..
>
> The same happens to the nightly build CE when deploying it in
> glassfish v3 (with latest updates applied)
>
> Exception while loading the app : java.lang.Exception:
> java.lang.IllegalStateException: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException:
> org.orbeon.oxf.common.OXFException:
> orbeon.apache.xerces.xinclude.XIncludeHandler$XIncludeListener
>
> Any chance of fixing it for the 3.8 release
>
> Andy Bailey
>
>
> --
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: orbeon 3.7.1 install error on glassfish 3.0IllegalStateExceptionin orbeon.apache.xerces.xinclude.XIncludeHandler$XIncludeListener

Andrew Bailey
Eric,

I was looking further into the logs and found that the first exception
is a Class not found exception for
orbeon.apache.xerces.xinclude.XIncludeHandler

I repackaged the jar moving the jars from WEB-INF/lib/private to WEB-INF/lib

First problem solved.

Now I get another exception


[#|2010-05-05T15:05:03.806-0500|SEVERE|glassfishv3.0|javax.enterprise.system.std
.com.sun.enterprise.v3.services.impl|_ThreadID=29;_ThreadName=Thread-1;|Servlet
Context Listener - Error initializing the WebAppContext
java.lang.ClassNotFoundException: org.jaxen.JaxenException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
        at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
        at org.orbeon.oxf.xml.XPathUtils.selectIterator(XPathUtils.java:47)
        at org.orbeon.oxf.xml.XPathUtils.selectIterator(XPathUtils.java:36)
        at org.orbeon.oxf.properties.PropertyStore.<init>(PropertyStore.java:77)
        at org.orbeon.oxf.properties.Properties.update(Properties.java:133)
        at org.orbeon.oxf.properties.Properties.instance(Properties.java:87)
        at org.orbeon.oxf.properties.Properties.init(Properties.java:76)
        at org.orbeon.oxf.webapp.WebAppContext.<init>(WebAppContext.java:102)
        at org.orbeon.oxf.webapp.WebAppContext.instance(WebAppContext.java:70)
        at org.orbeon.oxf.pipeline.InitUtils.run(InitUtils.java:229)
        at org.orbeon.oxf.webapp.OPSServletContextListenerDelegate.contextInitialized(OPSServletContextListenerDelegate.java:40)
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4591)
        at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:535)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5193)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1605)
        at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
...

However this is in the jaxen-1_1_beta_9.jar in WEB-INF/lib

jar tvf  jaxen-1_1_beta_9.jar | grep org.jaxen.JaxenException
  1243 Sat Apr 08 09:26:38 COT 2006 org/jaxen/JaxenException.class

Seems to be problems with the way glassfish performs classloading.

Any experts on glassfish that can give a hand?

It would be great to have 3.8 glassfish instalable.

Eric any ideas?

Thanks

Andy Bailey


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: orbeon 3.7.1 install error on glassfish3.0IllegalStateExceptionin orbeon.apache.xerces.xinclude.XIncludeHandler$XIncludeListener

Alessandro  Vernet
Administrator
Andy,

About 2 years ago, Orbeon Forms used to run on GlassFish 2 out of the
box (https://wiki.ow2.org/ops/Wiki.jsp?page=OrbeonFormsOnDifferentApplicationServers),
and I didn't get a chance to try since then. Are there options in
GlassFish to tell it "use the jars in the war first" or "don't expose
jars from GlassFish to the war"? Application servers often provide
configuration options like that
(http://wiki.orbeon.com/forms/doc/developer-guide/admin/installing).

Alex

On Wed, May 5, 2010 at 1:15 PM, Andrew Bailey <[hidden email]> wrote:

> Eric,
>
> I was looking further into the logs and found that the first exception
> is a Class not found exception for
> orbeon.apache.xerces.xinclude.XIncludeHandler
>
> I repackaged the jar moving the jars from WEB-INF/lib/private to WEB-INF/lib
>
> First problem solved.
>
> Now I get another exception
>
>
> [#|2010-05-05T15:05:03.806-0500|SEVERE|glassfishv3.0|javax.enterprise.system.std
> .com.sun.enterprise.v3.services.impl|_ThreadID=29;_ThreadName=Thread-1;|Servlet
> Context Listener - Error initializing the WebAppContext
> java.lang.ClassNotFoundException: org.jaxen.JaxenException
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>        at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
>        at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
>        at org.orbeon.oxf.xml.XPathUtils.selectIterator(XPathUtils.java:47)
>        at org.orbeon.oxf.xml.XPathUtils.selectIterator(XPathUtils.java:36)
>        at org.orbeon.oxf.properties.PropertyStore.<init>(PropertyStore.java:77)
>        at org.orbeon.oxf.properties.Properties.update(Properties.java:133)
>        at org.orbeon.oxf.properties.Properties.instance(Properties.java:87)
>        at org.orbeon.oxf.properties.Properties.init(Properties.java:76)
>        at org.orbeon.oxf.webapp.WebAppContext.<init>(WebAppContext.java:102)
>        at org.orbeon.oxf.webapp.WebAppContext.instance(WebAppContext.java:70)
>        at org.orbeon.oxf.pipeline.InitUtils.run(InitUtils.java:229)
>        at org.orbeon.oxf.webapp.OPSServletContextListenerDelegate.contextInitialized(OPSServletContextListenerDelegate.java:40)
>        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:4591)
>        at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:535)
>        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5193)
>        at com.sun.enterprise.web.WebModule.start(WebModule.java:499)
>        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)
>        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
>        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
>        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)
>        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1605)
>        at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)
> ...
>
> However this is in the jaxen-1_1_beta_9.jar in WEB-INF/lib
>
> jar tvf  jaxen-1_1_beta_9.jar | grep org.jaxen.JaxenException
>  1243 Sat Apr 08 09:26:38 COT 2006 org/jaxen/JaxenException.class
>
> Seems to be problems with the way glassfish performs classloading.
>
> Any experts on glassfish that can give a hand?
>
> It would be great to have 3.8 glassfish instalable.
>
> Eric any ideas?
>
> Thanks
>
> Andy Bailey
>
>
> --
> 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, open-source, for the Enterprise -
http://www.orbeon.com/
My 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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: orbeon 3.7.1 install error on glassfish3.0IllegalStateExceptionin orbeon.apache.xerces.xinclude.XIncludeHandler$XIncludeListener

Andrew Bailey
Thanks Alex and Erik,

Orbeon is now up and running on Glassfish v3.

The two steps needed to make this work are:

1) Edit WEB-INF/sun-web.xml (Attached)
and add towards the end:
...
<class-loader delegate="false"/>
</sun-web-app>

(so that glassfish wont load classes from other jars in the server)

2) cd WEB-INF/lib/
mv private/* .
rmdir private

(As glassfish seems to ignore jars in directories below  WEB-INF/lib)

Please could this be done before 3.8 ships?

Thanks for the quick responses and hints.

Andy


--
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

sun-web.xml (882 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: orbeon 3.7.1 install error on glassfish3.0IllegalStateExceptionin orbeon.apache.xerces.xinclude.XIncludeHandler$XIncludeListener

Alessandro  Vernet
Administrator
Hi Andy,

Great find!

The jar files under WEB-INF/lib/private were loaded because there was
a reference to those files in the Class-Path of the orbeon.jar
MANIFEST.MF. This was a trick to get those files to come after the
orbeon.jar, so we could override a configuration file in Xerces. But
we don't need anymore to override that configuration file, and so
really don't have a reason to jump through hoops to load those jar
files, and we can put them directly in WEB-INF/lib. Plus, since
GlassFish doesn't seem to honor the Class-Path in the MANIFEST.MF,
this solves that issue as well. So we did this change.

And the additional <class-loader delegate="false"/> in sun-web.xml is
in. For reference, this is the relevant part of the GlassFish
documentation that described this property:
http://docs.sun.com/app/docs/doc/820-4496/beagb?a=view. It is ironic
that they opted to make the default to be the opposite of what the
spec says, and that doing so creates problems.

This will all be in the next nightly build. You'll let us know if it
all works fine for you!

Alex

On Wed, May 5, 2010 at 8:52 PM, Andrew Bailey <[hidden email]> wrote:

> Thanks Alex and Erik,
>
> Orbeon is now up and running on Glassfish v3.
>
> The two steps needed to make this work are:
>
> 1) Edit WEB-INF/sun-web.xml (Attached)
> and add towards the end:
> ...
> <class-loader delegate="false"/>
> </sun-web-app>
>
> (so that glassfish wont load classes from other jars in the server)
>
> 2) cd WEB-INF/lib/
> mv private/* .
> rmdir private
>
> (As glassfish seems to ignore jars in directories below  WEB-INF/lib)
>
> Please could this be done before 3.8 ships?
>
> Thanks for the quick responses and hints.
>
> Andy
>
>
> --
> 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, open-source, for the Enterprise -
http://www.orbeon.com/
My 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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet