Jetty with OpenEJB 7.0.3 and ServletContextListener

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Jetty with OpenEJB 7.0.3 and ServletContextListener

JumpStart
I’m upgrading from 4.5.2 to 7.0.3. Now my ServletContextListeners (which are declared in web.xml) are being started twice.

I’ve forced a stacktrace inside the ServletContextListener (they all have a superclass of AbstractDaemon) and I see that:
- call 1 is from OpenEJB’s LightweightWebAppBuilder, and
- call 2 is from Jetty’s ContextHandler.
I think call 1 is a new thing since 4.6. Is there a Java EE 6 thing going on here? Do I need to turn off something in my ageing Jetty 6.1.24?

Call 1:

java.lang.IllegalStateException: Temporary, to help debug OpenEJB upgrade. Repeating Bookings Populater
        at com.goxpro.xpro.web.daemons.AbstractDaemon.contextInitialized(AbstractDaemon.java:51)
        at org.apache.openejb.web.LightweightWebAppBuilder$1.run(LightweightWebAppBuilder.java:191)
        at org.apache.openejb.web.LightweightWebAppBuilder.switchServletContextIfNeeded(LightweightWebAppBuilder.java:399)
        at org.apache.openejb.web.LightweightWebAppBuilder.deployWebApps(LightweightWebAppBuilder.java:188)
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:997)
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:718)
        at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:596)
        at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:484)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:66)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:278)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
        at org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:99)
        at org.apache.openejb.core.LocalInitialContextFactory.init(LocalInitialContextFactory.java:63)
        at org.apache.openejb.core.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:47)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
        at javax.naming.InitialContext.init(InitialContext.java:244)
        at javax.naming.InitialContext.<init>(InitialContext.java:192)
        at org.mortbay.jetty.plus.naming.NamingEntry.save(NamingEntry.java:191)
        at org.mortbay.jetty.plus.naming.NamingEntry.<init>(NamingEntry.java:58)
        at org.mortbay.jetty.plus.naming.EnvEntry.<init>(EnvEntry.java:46)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at org.mortbay.xml.XmlConfiguration.newObj(XmlConfiguration.java:608)
        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:256)
        at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:214)
        at org.mortbay.jetty.deployer.ContextDeployer.createContext(ContextDeployer.java:369)
        at org.mortbay.jetty.deployer.ContextDeployer.deploy(ContextDeployer.java:263)
        at org.mortbay.jetty.deployer.ContextDeployer.access$000(ContextDeployer.java:67)
        at org.mortbay.jetty.deployer.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:89)
        at org.mortbay.util.Scanner.reportAddition(Scanner.java:410)
        at org.mortbay.util.Scanner.reportDifferences(Scanner.java:324)
        at org.mortbay.util.Scanner.scan(Scanner.java:280)
        at org.mortbay.jetty.deployer.ContextDeployer.doStart(ContextDeployer.java:327)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.Server.doStart(Server.java:201)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
 WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating Bookings Populater
 WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating Bookings Populater

Call 2:

java.lang.IllegalStateException: Temporary, to help debug OpenEJB upgrade. Repeating Bookings Populater
        at com.goxpro.xpro.web.daemons.AbstractDaemon.contextInitialized(AbstractDaemon.java:51)
        at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
 WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating Bookings Populater
 WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating Bookings Populater

Geoff
Reply | Threaded
Open this post in threaded view
|

Re: Jetty with OpenEJB 7.0.3 and ServletContextListener

Romain Manni-Bucau
Le 24 mai 2017 15:49, "JumpStart" <[hidden email]> a
écrit :

I’m upgrading from 4.5.2 to 7.0.3. Now my ServletContextListeners (which
are declared in web.xml) are being started twice.

I’ve forced a stacktrace inside the ServletContextListener (they all have a
superclass of AbstractDaemon) and I see that:
- call 1 is from OpenEJB’s LightweightWebAppBuilder, and


This is the embedded management of http component for openejb-http


- call 2 is from Jetty’s ContextHandler.
I think call 1 is a new thing since 4.6. Is there a Java EE 6 thing going
on here? Do I need to turn off something in my ageing Jetty 6.1.24?



You surely need to set a custom WebAppBuilder if you use a custom http
layer (not default openejb-http one) or just drop jetty if it is an option.


Call 1:

java.lang.IllegalStateException: Temporary, to help debug OpenEJB upgrade.
Repeating Bookings Populater
        at com.goxpro.xpro.web.daemons.AbstractDaemon.contextInitialized(
AbstractDaemon.java:51)
        at org.apache.openejb.web.LightweightWebAppBuilder$1.
run(LightweightWebAppBuilder.java:191)
        at org.apache.openejb.web.LightweightWebAppBuilder.
switchServletContextIfNeeded(LightweightWebAppBuilder.java:399)
        at org.apache.openejb.web.LightweightWebAppBuilder.deployWebApps(
LightweightWebAppBuilder.java:188)
        at org.apache.openejb.assembler.classic.Assembler.
createApplication(Assembler.java:997)
        at org.apache.openejb.assembler.classic.Assembler.
createApplication(Assembler.java:718)
        at org.apache.openejb.assembler.classic.Assembler.
buildContainerSystem(Assembler.java:596)
        at org.apache.openejb.assembler.classic.Assembler.build(
Assembler.java:484)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:66)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:278)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.openejb.loader.OpenEJBInstance.init(
OpenEJBInstance.java:36)
        at org.apache.openejb.core.LocalInitialContextFactory.init(
LocalInitialContextFactory.java:99)
        at org.apache.openejb.core.LocalInitialContextFactory.init(
LocalInitialContextFactory.java:63)
        at org.apache.openejb.core.LocalInitialContextFactory.
getInitialContext(LocalInitialContextFactory.java:47)
        at javax.naming.spi.NamingManager.getInitialContext(
NamingManager.java:684)
        at javax.naming.InitialContext.getDefaultInitCtx(
InitialContext.java:313)
        at javax.naming.InitialContext.init(InitialContext.java:244)
        at javax.naming.InitialContext.<init>(InitialContext.java:192)
        at org.mortbay.jetty.plus.naming.NamingEntry.save(NamingEntry.
java:191)
        at org.mortbay.jetty.plus.naming.NamingEntry.<init>(
NamingEntry.java:58)
        at org.mortbay.jetty.plus.naming.EnvEntry.<init>(EnvEntry.java:46)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at org.mortbay.xml.XmlConfiguration.newObj(
XmlConfiguration.java:608)
        at org.mortbay.xml.XmlConfiguration.configure(
XmlConfiguration.java:256)
        at org.mortbay.xml.XmlConfiguration.configure(
XmlConfiguration.java:214)
        at org.mortbay.jetty.deployer.ContextDeployer.createContext(
ContextDeployer.java:369)
        at org.mortbay.jetty.deployer.ContextDeployer.deploy(
ContextDeployer.java:263)
        at org.mortbay.jetty.deployer.ContextDeployer.access$000(
ContextDeployer.java:67)
        at org.mortbay.jetty.deployer.ContextDeployer$
ScannerListener.fileAdded(ContextDeployer.java:89)
        at org.mortbay.util.Scanner.reportAddition(Scanner.java:410)
        at org.mortbay.util.Scanner.reportDifferences(Scanner.java:324)
        at org.mortbay.util.Scanner.scan(Scanner.java:280)
        at org.mortbay.jetty.deployer.ContextDeployer.doStart(
ContextDeployer.java:327)
        at org.mortbay.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:50)
        at org.mortbay.jetty.Server.doStart(Server.java:201)
        at org.mortbay.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:50)
        at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
 WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating Bookings
Populater
 WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating Bookings
Populater

Call 2:

java.lang.IllegalStateException: Temporary, to help debug OpenEJB upgrade.
Repeating Bookings Populater
        at com.goxpro.xpro.web.daemons.AbstractDaemon.contextInitialized(
AbstractDaemon.java:51)
        at org.mortbay.jetty.handler.ContextHandler.startContext(
ContextHandler.java:548)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(
WebAppContext.java:1250)
        at org.mortbay.jetty.handler.ContextHandler.doStart(
ContextHandler.java:517)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(
WebAppContext.java:467)
        at org.mortbay.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(
HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:50)
        at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
 WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating Bookings
Populater
 WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating Bookings
Populater

Geoff
Reply | Threaded
Open this post in threaded view
|

Re: Jetty with OpenEJB 7.0.3 and ServletContextListener

JumpStart
In the short term I would like to continue with Jetty for the web portion of my app. I presume openejb-http was added in 4.6. Can you please point me to the documentation which describes how to disable it? I’ve looked and can’t find it.

> On 24 May 2017, at 9:54 PM, Romain Manni-Bucau <[hidden email]> wrote:
>
> Le 24 mai 2017 15:49, "JumpStart" <[hidden email]> a
> écrit :
>
> I’m upgrading from 4.5.2 to 7.0.3. Now my ServletContextListeners (which
> are declared in web.xml) are being started twice.
>
> I’ve forced a stacktrace inside the ServletContextListener (they all have a
> superclass of AbstractDaemon) and I see that:
> - call 1 is from OpenEJB’s LightweightWebAppBuilder, and
>
>
> This is the embedded management of http component for openejb-http
>
>
> - call 2 is from Jetty’s ContextHandler.
> I think call 1 is a new thing since 4.6. Is there a Java EE 6 thing going
> on here? Do I need to turn off something in my ageing Jetty 6.1.24?
>
>
>
> You surely need to set a custom WebAppBuilder if you use a custom http
> layer (not default openejb-http one) or just drop jetty if it is an option.
>
>
> Call 1:
>
> java.lang.IllegalStateException: Temporary, to help debug OpenEJB upgrade.
> Repeating Bookings Populater
>        at com.goxpro.xpro.web.daemons.AbstractDaemon.contextInitialized(
> AbstractDaemon.java:51)
>        at org.apache.openejb.web.LightweightWebAppBuilder$1.
> run(LightweightWebAppBuilder.java:191)
>        at org.apache.openejb.web.LightweightWebAppBuilder.
> switchServletContextIfNeeded(LightweightWebAppBuilder.java:399)
>        at org.apache.openejb.web.LightweightWebAppBuilder.deployWebApps(
> LightweightWebAppBuilder.java:188)
>        at org.apache.openejb.assembler.classic.Assembler.
> createApplication(Assembler.java:997)
>        at org.apache.openejb.assembler.classic.Assembler.
> createApplication(Assembler.java:718)
>        at org.apache.openejb.assembler.classic.Assembler.
> buildContainerSystem(Assembler.java:596)
>        at org.apache.openejb.assembler.classic.Assembler.build(
> Assembler.java:484)
>        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
>        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:66)
>        at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
>        at org.apache.openejb.OpenEJB.init(OpenEJB.java:278)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:497)
>        at org.apache.openejb.loader.OpenEJBInstance.init(
> OpenEJBInstance.java:36)
>        at org.apache.openejb.core.LocalInitialContextFactory.init(
> LocalInitialContextFactory.java:99)
>        at org.apache.openejb.core.LocalInitialContextFactory.init(
> LocalInitialContextFactory.java:63)
>        at org.apache.openejb.core.LocalInitialContextFactory.
> getInitialContext(LocalInitialContextFactory.java:47)
>        at javax.naming.spi.NamingManager.getInitialContext(
> NamingManager.java:684)
>        at javax.naming.InitialContext.getDefaultInitCtx(
> InitialContext.java:313)
>        at javax.naming.InitialContext.init(InitialContext.java:244)
>        at javax.naming.InitialContext.<init>(InitialContext.java:192)
>        at org.mortbay.jetty.plus.naming.NamingEntry.save(NamingEntry.
> java:191)
>        at org.mortbay.jetty.plus.naming.NamingEntry.<init>(
> NamingEntry.java:58)
>        at org.mortbay.jetty.plus.naming.EnvEntry.<init>(EnvEntry.java:46)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
> NativeConstructorAccessorImpl.java:62)
>        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:45)
>        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
>        at org.mortbay.xml.XmlConfiguration.newObj(
> XmlConfiguration.java:608)
>        at org.mortbay.xml.XmlConfiguration.configure(
> XmlConfiguration.java:256)
>        at org.mortbay.xml.XmlConfiguration.configure(
> XmlConfiguration.java:214)
>        at org.mortbay.jetty.deployer.ContextDeployer.createContext(
> ContextDeployer.java:369)
>        at org.mortbay.jetty.deployer.ContextDeployer.deploy(
> ContextDeployer.java:263)
>        at org.mortbay.jetty.deployer.ContextDeployer.access$000(
> ContextDeployer.java:67)
>        at org.mortbay.jetty.deployer.ContextDeployer$
> ScannerListener.fileAdded(ContextDeployer.java:89)
>        at org.mortbay.util.Scanner.reportAddition(Scanner.java:410)
>        at org.mortbay.util.Scanner.reportDifferences(Scanner.java:324)
>        at org.mortbay.util.Scanner.scan(Scanner.java:280)
>        at org.mortbay.jetty.deployer.ContextDeployer.doStart(
> ContextDeployer.java:327)
>        at org.mortbay.component.AbstractLifeCycle.start(
> AbstractLifeCycle.java:50)
>        at org.mortbay.jetty.Server.doStart(Server.java:201)
>        at org.mortbay.component.AbstractLifeCycle.start(
> AbstractLifeCycle.java:50)
>        at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
> WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating Bookings
> Populater
> WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating Bookings
> Populater
>
> Call 2:
>
> java.lang.IllegalStateException: Temporary, to help debug OpenEJB upgrade.
> Repeating Bookings Populater
>        at com.goxpro.xpro.web.daemons.AbstractDaemon.contextInitialized(
> AbstractDaemon.java:51)
>        at org.mortbay.jetty.handler.ContextHandler.startContext(
> ContextHandler.java:548)
>        at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
>        at org.mortbay.jetty.webapp.WebAppContext.startContext(
> WebAppContext.java:1250)
>        at org.mortbay.jetty.handler.ContextHandler.doStart(
> ContextHandler.java:517)
>        at org.mortbay.jetty.webapp.WebAppContext.doStart(
> WebAppContext.java:467)
>        at org.mortbay.component.AbstractLifeCycle.start(
> AbstractLifeCycle.java:50)
>        at org.mortbay.jetty.handler.HandlerWrapper.doStart(
> HandlerWrapper.java:130)
>        at org.mortbay.jetty.Server.doStart(Server.java:224)
>        at org.mortbay.component.AbstractLifeCycle.start(
> AbstractLifeCycle.java:50)
>        at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
> WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating Bookings
> Populater
> WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating Bookings
> Populater
>
> Geoff

Reply | Threaded
Open this post in threaded view
|

Re: Jetty with OpenEJB 7.0.3 and ServletContextListener

Romain Manni-Bucau
Try setting instead of org.apache.openejb.assembler.classic.WebAppBuilder =
org.apache.openejb.web.LightweightWebAppBuilder

 org.apache.openejb.assembler.classic.WebAppBuilder =
your.impl.NoWebAppBuilder

Just implement a mock of WebAppBuilder (no-op methods)


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-05-24 16:26 GMT+02:00 JumpStart <[hidden email]>:

> In the short term I would like to continue with Jetty for the web portion
> of my app. I presume openejb-http was added in 4.6. Can you please point me
> to the documentation which describes how to disable it? I’ve looked and
> can’t find it.
>
> > On 24 May 2017, at 9:54 PM, Romain Manni-Bucau <[hidden email]>
> wrote:
> >
> > Le 24 mai 2017 15:49, "JumpStart" <[hidden email]>
> a
> > écrit :
> >
> > I’m upgrading from 4.5.2 to 7.0.3. Now my ServletContextListeners (which
> > are declared in web.xml) are being started twice.
> >
> > I’ve forced a stacktrace inside the ServletContextListener (they all
> have a
> > superclass of AbstractDaemon) and I see that:
> > - call 1 is from OpenEJB’s LightweightWebAppBuilder, and
> >
> >
> > This is the embedded management of http component for openejb-http
> >
> >
> > - call 2 is from Jetty’s ContextHandler.
> > I think call 1 is a new thing since 4.6. Is there a Java EE 6 thing going
> > on here? Do I need to turn off something in my ageing Jetty 6.1.24?
> >
> >
> >
> > You surely need to set a custom WebAppBuilder if you use a custom http
> > layer (not default openejb-http one) or just drop jetty if it is an
> option.
> >
> >
> > Call 1:
> >
> > java.lang.IllegalStateException: Temporary, to help debug OpenEJB
> upgrade.
> > Repeating Bookings Populater
> >        at com.goxpro.xpro.web.daemons.AbstractDaemon.contextInitialized(
> > AbstractDaemon.java:51)
> >        at org.apache.openejb.web.LightweightWebAppBuilder$1.
> > run(LightweightWebAppBuilder.java:191)
> >        at org.apache.openejb.web.LightweightWebAppBuilder.
> > switchServletContextIfNeeded(LightweightWebAppBuilder.java:399)
> >        at org.apache.openejb.web.LightweightWebAppBuilder.deployWebApps(
> > LightweightWebAppBuilder.java:188)
> >        at org.apache.openejb.assembler.classic.Assembler.
> > createApplication(Assembler.java:997)
> >        at org.apache.openejb.assembler.classic.Assembler.
> > createApplication(Assembler.java:718)
> >        at org.apache.openejb.assembler.classic.Assembler.
> > buildContainerSystem(Assembler.java:596)
> >        at org.apache.openejb.assembler.classic.Assembler.build(
> > Assembler.java:484)
> >        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
> >        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:66)
> >        at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
> >        at org.apache.openejb.OpenEJB.init(OpenEJB.java:278)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:62)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:43)
> >        at java.lang.reflect.Method.invoke(Method.java:497)
> >        at org.apache.openejb.loader.OpenEJBInstance.init(
> > OpenEJBInstance.java:36)
> >        at org.apache.openejb.core.LocalInitialContextFactory.init(
> > LocalInitialContextFactory.java:99)
> >        at org.apache.openejb.core.LocalInitialContextFactory.init(
> > LocalInitialContextFactory.java:63)
> >        at org.apache.openejb.core.LocalInitialContextFactory.
> > getInitialContext(LocalInitialContextFactory.java:47)
> >        at javax.naming.spi.NamingManager.getInitialContext(
> > NamingManager.java:684)
> >        at javax.naming.InitialContext.getDefaultInitCtx(
> > InitialContext.java:313)
> >        at javax.naming.InitialContext.init(InitialContext.java:244)
> >        at javax.naming.InitialContext.<init>(InitialContext.java:192)
> >        at org.mortbay.jetty.plus.naming.NamingEntry.save(NamingEntry.
> > java:191)
> >        at org.mortbay.jetty.plus.naming.NamingEntry.<init>(
> > NamingEntry.java:58)
> >        at org.mortbay.jetty.plus.naming.EnvEntry.<init>(EnvEntry.java:
> 46)
> >        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > Method)
> >        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
> > NativeConstructorAccessorImpl.java:62)
> >        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> > DelegatingConstructorAccessorImpl.java:45)
> >        at java.lang.reflect.Constructor.newInstance(Constructor.java:
> 422)
> >        at org.mortbay.xml.XmlConfiguration.newObj(
> > XmlConfiguration.java:608)
> >        at org.mortbay.xml.XmlConfiguration.configure(
> > XmlConfiguration.java:256)
> >        at org.mortbay.xml.XmlConfiguration.configure(
> > XmlConfiguration.java:214)
> >        at org.mortbay.jetty.deployer.ContextDeployer.createContext(
> > ContextDeployer.java:369)
> >        at org.mortbay.jetty.deployer.ContextDeployer.deploy(
> > ContextDeployer.java:263)
> >        at org.mortbay.jetty.deployer.ContextDeployer.access$000(
> > ContextDeployer.java:67)
> >        at org.mortbay.jetty.deployer.ContextDeployer$
> > ScannerListener.fileAdded(ContextDeployer.java:89)
> >        at org.mortbay.util.Scanner.reportAddition(Scanner.java:410)
> >        at org.mortbay.util.Scanner.reportDifferences(Scanner.java:324)
> >        at org.mortbay.util.Scanner.scan(Scanner.java:280)
> >        at org.mortbay.jetty.deployer.ContextDeployer.doStart(
> > ContextDeployer.java:327)
> >        at org.mortbay.component.AbstractLifeCycle.start(
> > AbstractLifeCycle.java:50)
> >        at org.mortbay.jetty.Server.doStart(Server.java:201)
> >        at org.mortbay.component.AbstractLifeCycle.start(
> > AbstractLifeCycle.java:50)
> >        at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
> > WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating Bookings
> > Populater
> > WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating Bookings
> > Populater
> >
> > Call 2:
> >
> > java.lang.IllegalStateException: Temporary, to help debug OpenEJB
> upgrade.
> > Repeating Bookings Populater
> >        at com.goxpro.xpro.web.daemons.AbstractDaemon.contextInitialized(
> > AbstractDaemon.java:51)
> >        at org.mortbay.jetty.handler.ContextHandler.startContext(
> > ContextHandler.java:548)
> >        at org.mortbay.jetty.servlet.Context.startContext(Context.
> java:136)
> >        at org.mortbay.jetty.webapp.WebAppContext.startContext(
> > WebAppContext.java:1250)
> >        at org.mortbay.jetty.handler.ContextHandler.doStart(
> > ContextHandler.java:517)
> >        at org.mortbay.jetty.webapp.WebAppContext.doStart(
> > WebAppContext.java:467)
> >        at org.mortbay.component.AbstractLifeCycle.start(
> > AbstractLifeCycle.java:50)
> >        at org.mortbay.jetty.handler.HandlerWrapper.doStart(
> > HandlerWrapper.java:130)
> >        at org.mortbay.jetty.Server.doStart(Server.java:224)
> >        at org.mortbay.component.AbstractLifeCycle.start(
> > AbstractLifeCycle.java:50)
> >        at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
> > WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating Bookings
> > Populater
> > WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating Bookings
> > Populater
> >
> > Geoff
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Jetty with OpenEJB 7.0.3 and ServletContextListener

JumpStart
Thanks Romain, I will try that.

I am thoroughly confused about the modern purpose of OpenEJB - I was very surprised to hear that openejb-http even exists. Is there a page in the TomEE site that explains what TomEE is, OpenEJB is, and the difference between the various downloads (plume, plus, etc)?

An observation: it looks like the website is purely “reference” documentation, which is great if you already know the essentials, but I can’t find any “user guide” documentation, that steps you from a starting point of knowing nothing.

As for documentation on how one release differs from the last, I see nothing.

Geoff

> On 24 May 2017, at 11:17 PM, Romain Manni-Bucau <[hidden email]> wrote:
>
> Try setting instead of org.apache.openejb.assembler.classic.WebAppBuilder =
> org.apache.openejb.web.LightweightWebAppBuilder
>
> org.apache.openejb.assembler.classic.WebAppBuilder =
> your.impl.NoWebAppBuilder
>
> Just implement a mock of WebAppBuilder (no-op methods)
>
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://blog-rmannibucau.rhcloud.com> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
> <https://javaeefactory-rmannibucau.rhcloud.com>
>
> 2017-05-24 16:26 GMT+02:00 JumpStart <[hidden email]>:
>
>> In the short term I would like to continue with Jetty for the web portion
>> of my app. I presume openejb-http was added in 4.6. Can you please point me
>> to the documentation which describes how to disable it? I’ve looked and
>> can’t find it.
>>
>>> On 24 May 2017, at 9:54 PM, Romain Manni-Bucau <[hidden email]>
>> wrote:
>>>
>>> Le 24 mai 2017 15:49, "JumpStart" <[hidden email]>
>> a
>>> écrit :
>>>
>>> I’m upgrading from 4.5.2 to 7.0.3. Now my ServletContextListeners (which
>>> are declared in web.xml) are being started twice.
>>>
>>> I’ve forced a stacktrace inside the ServletContextListener (they all
>> have a
>>> superclass of AbstractDaemon) and I see that:
>>> - call 1 is from OpenEJB’s LightweightWebAppBuilder, and
>>>
>>>
>>> This is the embedded management of http component for openejb-http
>>>
>>>
>>> - call 2 is from Jetty’s ContextHandler.
>>> I think call 1 is a new thing since 4.6. Is there a Java EE 6 thing going
>>> on here? Do I need to turn off something in my ageing Jetty 6.1.24?
>>>
>>>
>>>
>>> You surely need to set a custom WebAppBuilder if you use a custom http
>>> layer (not default openejb-http one) or just drop jetty if it is an
>> option.
>>>
>>>
>>> Call 1:
>>>
>>> java.lang.IllegalStateException: Temporary, to help debug OpenEJB
>> upgrade.
>>> Repeating Bookings Populater
>>>       at com.goxpro.xpro.web.daemons.AbstractDaemon.contextInitialized(
>>> AbstractDaemon.java:51)
>>>       at org.apache.openejb.web.LightweightWebAppBuilder$1.
>>> run(LightweightWebAppBuilder.java:191)
>>>       at org.apache.openejb.web.LightweightWebAppBuilder.
>>> switchServletContextIfNeeded(LightweightWebAppBuilder.java:399)
>>>       at org.apache.openejb.web.LightweightWebAppBuilder.deployWebApps(
>>> LightweightWebAppBuilder.java:188)
>>>       at org.apache.openejb.assembler.classic.Assembler.
>>> createApplication(Assembler.java:997)
>>>       at org.apache.openejb.assembler.classic.Assembler.
>>> createApplication(Assembler.java:718)
>>>       at org.apache.openejb.assembler.classic.Assembler.
>>> buildContainerSystem(Assembler.java:596)
>>>       at org.apache.openejb.assembler.classic.Assembler.build(
>>> Assembler.java:484)
>>>       at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
>>>       at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:66)
>>>       at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
>>>       at org.apache.openejb.OpenEJB.init(OpenEJB.java:278)
>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>       at sun.reflect.NativeMethodAccessorImpl.invoke(
>>> NativeMethodAccessorImpl.java:62)
>>>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>> DelegatingMethodAccessorImpl.java:43)
>>>       at java.lang.reflect.Method.invoke(Method.java:497)
>>>       at org.apache.openejb.loader.OpenEJBInstance.init(
>>> OpenEJBInstance.java:36)
>>>       at org.apache.openejb.core.LocalInitialContextFactory.init(
>>> LocalInitialContextFactory.java:99)
>>>       at org.apache.openejb.core.LocalInitialContextFactory.init(
>>> LocalInitialContextFactory.java:63)
>>>       at org.apache.openejb.core.LocalInitialContextFactory.
>>> getInitialContext(LocalInitialContextFactory.java:47)
>>>       at javax.naming.spi.NamingManager.getInitialContext(
>>> NamingManager.java:684)
>>>       at javax.naming.InitialContext.getDefaultInitCtx(
>>> InitialContext.java:313)
>>>       at javax.naming.InitialContext.init(InitialContext.java:244)
>>>       at javax.naming.InitialContext.<init>(InitialContext.java:192)
>>>       at org.mortbay.jetty.plus.naming.NamingEntry.save(NamingEntry.
>>> java:191)
>>>       at org.mortbay.jetty.plus.naming.NamingEntry.<init>(
>>> NamingEntry.java:58)
>>>       at org.mortbay.jetty.plus.naming.EnvEntry.<init>(EnvEntry.java:
>> 46)
>>>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>> Method)
>>>       at sun.reflect.NativeConstructorAccessorImpl.newInstance(
>>> NativeConstructorAccessorImpl.java:62)
>>>       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
>>> DelegatingConstructorAccessorImpl.java:45)
>>>       at java.lang.reflect.Constructor.newInstance(Constructor.java:
>> 422)
>>>       at org.mortbay.xml.XmlConfiguration.newObj(
>>> XmlConfiguration.java:608)
>>>       at org.mortbay.xml.XmlConfiguration.configure(
>>> XmlConfiguration.java:256)
>>>       at org.mortbay.xml.XmlConfiguration.configure(
>>> XmlConfiguration.java:214)
>>>       at org.mortbay.jetty.deployer.ContextDeployer.createContext(
>>> ContextDeployer.java:369)
>>>       at org.mortbay.jetty.deployer.ContextDeployer.deploy(
>>> ContextDeployer.java:263)
>>>       at org.mortbay.jetty.deployer.ContextDeployer.access$000(
>>> ContextDeployer.java:67)
>>>       at org.mortbay.jetty.deployer.ContextDeployer$
>>> ScannerListener.fileAdded(ContextDeployer.java:89)
>>>       at org.mortbay.util.Scanner.reportAddition(Scanner.java:410)
>>>       at org.mortbay.util.Scanner.reportDifferences(Scanner.java:324)
>>>       at org.mortbay.util.Scanner.scan(Scanner.java:280)
>>>       at org.mortbay.jetty.deployer.ContextDeployer.doStart(
>>> ContextDeployer.java:327)
>>>       at org.mortbay.component.AbstractLifeCycle.start(
>>> AbstractLifeCycle.java:50)
>>>       at org.mortbay.jetty.Server.doStart(Server.java:201)
>>>       at org.mortbay.component.AbstractLifeCycle.start(
>>> AbstractLifeCycle.java:50)
>>>       at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
>>> WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating Bookings
>>> Populater
>>> WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating Bookings
>>> Populater
>>>
>>> Call 2:
>>>
>>> java.lang.IllegalStateException: Temporary, to help debug OpenEJB
>> upgrade.
>>> Repeating Bookings Populater
>>>       at com.goxpro.xpro.web.daemons.AbstractDaemon.contextInitialized(
>>> AbstractDaemon.java:51)
>>>       at org.mortbay.jetty.handler.ContextHandler.startContext(
>>> ContextHandler.java:548)
>>>       at org.mortbay.jetty.servlet.Context.startContext(Context.
>> java:136)
>>>       at org.mortbay.jetty.webapp.WebAppContext.startContext(
>>> WebAppContext.java:1250)
>>>       at org.mortbay.jetty.handler.ContextHandler.doStart(
>>> ContextHandler.java:517)
>>>       at org.mortbay.jetty.webapp.WebAppContext.doStart(
>>> WebAppContext.java:467)
>>>       at org.mortbay.component.AbstractLifeCycle.start(
>>> AbstractLifeCycle.java:50)
>>>       at org.mortbay.jetty.handler.HandlerWrapper.doStart(
>>> HandlerWrapper.java:130)
>>>       at org.mortbay.jetty.Server.doStart(Server.java:224)
>>>       at org.mortbay.component.AbstractLifeCycle.start(
>>> AbstractLifeCycle.java:50)
>>>       at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
>>> WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating Bookings
>>> Populater
>>> WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating Bookings
>>> Populater
>>>
>>> Geoff
>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: Jetty with OpenEJB 7.0.3 and ServletContextListener

Romain Manni-Bucau
2017-05-25 5:32 GMT+02:00 JumpStart <[hidden email]>:

> Thanks Romain, I will try that.
>
> I am thoroughly confused about the modern purpose of OpenEJB - I was very
> surprised to hear that openejb-http even exists. Is there a page in the
> TomEE site that explains what TomEE is, OpenEJB is, and the difference
> between the various downloads (plume, plus, etc)?
>

We still have http://tomee.apache.org/comparison.html

In short: OpenEJB was renamed TomEE in 2011 but we kept the openejb name to
avoid confusion to users and to change tons of dependencies.


>
> An observation: it looks like the website is purely “reference”
> documentation, which is great if you already know the essentials, but I
> can’t find any “user guide” documentation, that steps you from a starting
> point of knowing nothing.
>

This is close to be right, at least the getting started are not that
referenced and we tend to rely on examples (
http://tomee.apache.org/examples/index.html). Want to give it a try? Site
is written in asciidoc format at
http://svn.apache.org/repos/asf/tomee/site/trunk/generators/site-tomee-ng/src/main/jbake/content/
(just checkout
http://svn.apache.org/repos/asf/tomee/site/trunk/generators/site-tomee-ng
and submit a patch on http://issues.apache.org/jira/browse/TOMEE)


>
> As for documentation on how one release differs from the last, I see
> nothing.
>

Hehe, this is true, we have the pages but just realized we were not linking
them durably on the website. However JIRA gives you this information at
https://issues.apache.org/jira/browse/TOMEE/?selectedTab=com.atlassian.jira.jira-projects-plugin:changelog-panel


>
> Geoff
>
> > On 24 May 2017, at 11:17 PM, Romain Manni-Bucau <[hidden email]>
> wrote:
> >
> > Try setting instead of org.apache.openejb.assembler.classic.WebAppBuilder
> =
> > org.apache.openejb.web.LightweightWebAppBuilder
> >
> > org.apache.openejb.assembler.classic.WebAppBuilder =
> > your.impl.NoWebAppBuilder
> >
> > Just implement a mock of WebAppBuilder (no-op methods)
> >
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <https://blog-rmannibucau.rhcloud.com> | Old Blog
> > <http://rmannibucau.wordpress.com> | Github <https://github.com/
> rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
> > <https://javaeefactory-rmannibucau.rhcloud.com>
> >
> > 2017-05-24 16:26 GMT+02:00 JumpStart <geoff.callender.jumpstart@
> gmail.com>:
> >
> >> In the short term I would like to continue with Jetty for the web
> portion
> >> of my app. I presume openejb-http was added in 4.6. Can you please
> point me
> >> to the documentation which describes how to disable it? I’ve looked and
> >> can’t find it.
> >>
> >>> On 24 May 2017, at 9:54 PM, Romain Manni-Bucau <[hidden email]>
> >> wrote:
> >>>
> >>> Le 24 mai 2017 15:49, "JumpStart" <[hidden email]
> >
> >> a
> >>> écrit :
> >>>
> >>> I’m upgrading from 4.5.2 to 7.0.3. Now my ServletContextListeners
> (which
> >>> are declared in web.xml) are being started twice.
> >>>
> >>> I’ve forced a stacktrace inside the ServletContextListener (they all
> >> have a
> >>> superclass of AbstractDaemon) and I see that:
> >>> - call 1 is from OpenEJB’s LightweightWebAppBuilder, and
> >>>
> >>>
> >>> This is the embedded management of http component for openejb-http
> >>>
> >>>
> >>> - call 2 is from Jetty’s ContextHandler.
> >>> I think call 1 is a new thing since 4.6. Is there a Java EE 6 thing
> going
> >>> on here? Do I need to turn off something in my ageing Jetty 6.1.24?
> >>>
> >>>
> >>>
> >>> You surely need to set a custom WebAppBuilder if you use a custom http
> >>> layer (not default openejb-http one) or just drop jetty if it is an
> >> option.
> >>>
> >>>
> >>> Call 1:
> >>>
> >>> java.lang.IllegalStateException: Temporary, to help debug OpenEJB
> >> upgrade.
> >>> Repeating Bookings Populater
> >>>       at com.goxpro.xpro.web.daemons.AbstractDaemon.
> contextInitialized(
> >>> AbstractDaemon.java:51)
> >>>       at org.apache.openejb.web.LightweightWebAppBuilder$1.
> >>> run(LightweightWebAppBuilder.java:191)
> >>>       at org.apache.openejb.web.LightweightWebAppBuilder.
> >>> switchServletContextIfNeeded(LightweightWebAppBuilder.java:399)
> >>>       at org.apache.openejb.web.LightweightWebAppBuilder.
> deployWebApps(
> >>> LightweightWebAppBuilder.java:188)
> >>>       at org.apache.openejb.assembler.classic.Assembler.
> >>> createApplication(Assembler.java:997)
> >>>       at org.apache.openejb.assembler.classic.Assembler.
> >>> createApplication(Assembler.java:718)
> >>>       at org.apache.openejb.assembler.classic.Assembler.
> >>> buildContainerSystem(Assembler.java:596)
> >>>       at org.apache.openejb.assembler.classic.Assembler.build(
> >>> Assembler.java:484)
> >>>       at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
> >>>       at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:66)
> >>>       at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
> >>>       at org.apache.openejb.OpenEJB.init(OpenEJB.java:278)
> >>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>       at sun.reflect.NativeMethodAccessorImpl.invoke(
> >>> NativeMethodAccessorImpl.java:62)
> >>>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >>> DelegatingMethodAccessorImpl.java:43)
> >>>       at java.lang.reflect.Method.invoke(Method.java:497)
> >>>       at org.apache.openejb.loader.OpenEJBInstance.init(
> >>> OpenEJBInstance.java:36)
> >>>       at org.apache.openejb.core.LocalInitialContextFactory.init(
> >>> LocalInitialContextFactory.java:99)
> >>>       at org.apache.openejb.core.LocalInitialContextFactory.init(
> >>> LocalInitialContextFactory.java:63)
> >>>       at org.apache.openejb.core.LocalInitialContextFactory.
> >>> getInitialContext(LocalInitialContextFactory.java:47)
> >>>       at javax.naming.spi.NamingManager.getInitialContext(
> >>> NamingManager.java:684)
> >>>       at javax.naming.InitialContext.getDefaultInitCtx(
> >>> InitialContext.java:313)
> >>>       at javax.naming.InitialContext.init(InitialContext.java:244)
> >>>       at javax.naming.InitialContext.<init>(InitialContext.java:192)
> >>>       at org.mortbay.jetty.plus.naming.NamingEntry.save(NamingEntry.
> >>> java:191)
> >>>       at org.mortbay.jetty.plus.naming.NamingEntry.<init>(
> >>> NamingEntry.java:58)
> >>>       at org.mortbay.jetty.plus.naming.EnvEntry.<init>(EnvEntry.java:
> >> 46)
> >>>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> >>> Method)
> >>>       at sun.reflect.NativeConstructorAccessorImpl.newInstance(
> >>> NativeConstructorAccessorImpl.java:62)
> >>>       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> >>> DelegatingConstructorAccessorImpl.java:45)
> >>>       at java.lang.reflect.Constructor.newInstance(Constructor.java:
> >> 422)
> >>>       at org.mortbay.xml.XmlConfiguration.newObj(
> >>> XmlConfiguration.java:608)
> >>>       at org.mortbay.xml.XmlConfiguration.configure(
> >>> XmlConfiguration.java:256)
> >>>       at org.mortbay.xml.XmlConfiguration.configure(
> >>> XmlConfiguration.java:214)
> >>>       at org.mortbay.jetty.deployer.ContextDeployer.createContext(
> >>> ContextDeployer.java:369)
> >>>       at org.mortbay.jetty.deployer.ContextDeployer.deploy(
> >>> ContextDeployer.java:263)
> >>>       at org.mortbay.jetty.deployer.ContextDeployer.access$000(
> >>> ContextDeployer.java:67)
> >>>       at org.mortbay.jetty.deployer.ContextDeployer$
> >>> ScannerListener.fileAdded(ContextDeployer.java:89)
> >>>       at org.mortbay.util.Scanner.reportAddition(Scanner.java:410)
> >>>       at org.mortbay.util.Scanner.reportDifferences(Scanner.java:324)
> >>>       at org.mortbay.util.Scanner.scan(Scanner.java:280)
> >>>       at org.mortbay.jetty.deployer.ContextDeployer.doStart(
> >>> ContextDeployer.java:327)
> >>>       at org.mortbay.component.AbstractLifeCycle.start(
> >>> AbstractLifeCycle.java:50)
> >>>       at org.mortbay.jetty.Server.doStart(Server.java:201)
> >>>       at org.mortbay.component.AbstractLifeCycle.start(
> >>> AbstractLifeCycle.java:50)
> >>>       at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
> >>> WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating
> Bookings
> >>> Populater
> >>> WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating
> Bookings
> >>> Populater
> >>>
> >>> Call 2:
> >>>
> >>> java.lang.IllegalStateException: Temporary, to help debug OpenEJB
> >> upgrade.
> >>> Repeating Bookings Populater
> >>>       at com.goxpro.xpro.web.daemons.AbstractDaemon.
> contextInitialized(
> >>> AbstractDaemon.java:51)
> >>>       at org.mortbay.jetty.handler.ContextHandler.startContext(
> >>> ContextHandler.java:548)
> >>>       at org.mortbay.jetty.servlet.Context.startContext(Context.
> >> java:136)
> >>>       at org.mortbay.jetty.webapp.WebAppContext.startContext(
> >>> WebAppContext.java:1250)
> >>>       at org.mortbay.jetty.handler.ContextHandler.doStart(
> >>> ContextHandler.java:517)
> >>>       at org.mortbay.jetty.webapp.WebAppContext.doStart(
> >>> WebAppContext.java:467)
> >>>       at org.mortbay.component.AbstractLifeCycle.start(
> >>> AbstractLifeCycle.java:50)
> >>>       at org.mortbay.jetty.handler.HandlerWrapper.doStart(
> >>> HandlerWrapper.java:130)
> >>>       at org.mortbay.jetty.Server.doStart(Server.java:224)
> >>>       at org.mortbay.component.AbstractLifeCycle.start(
> >>> AbstractLifeCycle.java:50)
> >>>       at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
> >>> WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating
> Bookings
> >>> Populater
> >>> WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating
> Bookings
> >>> Populater
> >>>
> >>> Geoff
> >>
> >>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Jetty with OpenEJB 7.0.3 and ServletContextListener

JumpStart
Actually, regarding the lack of “user guide” or starting point documentation, I’ve since realised that there kind of is one, but it’s just not visible from the home page. I think it should be.

        http://tomee.apache.org/documentation.html

I would love to help, but I am so engulfed in real work - using Tapestry and OpenEJB every day - that I can't even spend time updating Tapestry Jumpstart.

> On 25 May 2017, at 6:45 pm, Romain Manni-Bucau <[hidden email]> wrote:
>
> 2017-05-25 5:32 GMT+02:00 JumpStart <[hidden email]>:
>
>> Thanks Romain, I will try that.
>>
>> I am thoroughly confused about the modern purpose of OpenEJB - I was very
>> surprised to hear that openejb-http even exists. Is there a page in the
>> TomEE site that explains what TomEE is, OpenEJB is, and the difference
>> between the various downloads (plume, plus, etc)?
>>
>
> We still have http://tomee.apache.org/comparison.html
>
> In short: OpenEJB was renamed TomEE in 2011 but we kept the openejb name to
> avoid confusion to users and to change tons of dependencies.
>
>
>>
>> An observation: it looks like the website is purely “reference”
>> documentation, which is great if you already know the essentials, but I
>> can’t find any “user guide” documentation, that steps you from a starting
>> point of knowing nothing.
>>
>
> This is close to be right, at least the getting started are not that
> referenced and we tend to rely on examples (
> http://tomee.apache.org/examples/index.html). Want to give it a try? Site
> is written in asciidoc format at
> http://svn.apache.org/repos/asf/tomee/site/trunk/generators/site-tomee-ng/src/main/jbake/content/
> (just checkout
> http://svn.apache.org/repos/asf/tomee/site/trunk/generators/site-tomee-ng
> and submit a patch on http://issues.apache.org/jira/browse/TOMEE)
>
>
>>
>> As for documentation on how one release differs from the last, I see
>> nothing.
>>
>
> Hehe, this is true, we have the pages but just realized we were not linking
> them durably on the website. However JIRA gives you this information at
> https://issues.apache.org/jira/browse/TOMEE/?selectedTab=com.atlassian.jira.jira-projects-plugin:changelog-panel
>
>
>>
>> Geoff
>>
>>> On 24 May 2017, at 11:17 PM, Romain Manni-Bucau <[hidden email]>
>> wrote:
>>>
>>> Try setting instead of org.apache.openejb.assembler.classic.WebAppBuilder
>> =
>>> org.apache.openejb.web.LightweightWebAppBuilder
>>>
>>> org.apache.openejb.assembler.classic.WebAppBuilder =
>>> your.impl.NoWebAppBuilder
>>>
>>> Just implement a mock of WebAppBuilder (no-op methods)
>>>
>>>
>>> Romain Manni-Bucau
>>> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
>>> <https://blog-rmannibucau.rhcloud.com> | Old Blog
>>> <http://rmannibucau.wordpress.com> | Github <https://github.com/
>> rmannibucau> |
>>> LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
>>> <https://javaeefactory-rmannibucau.rhcloud.com>
>>>
>>> 2017-05-24 16:26 GMT+02:00 JumpStart <geoff.callender.jumpstart@
>> gmail.com>:
>>>
>>>> In the short term I would like to continue with Jetty for the web
>> portion
>>>> of my app. I presume openejb-http was added in 4.6. Can you please
>> point me
>>>> to the documentation which describes how to disable it? I’ve looked and
>>>> can’t find it.
>>>>
>>>>> On 24 May 2017, at 9:54 PM, Romain Manni-Bucau <[hidden email]>
>>>> wrote:
>>>>>
>>>>> Le 24 mai 2017 15:49, "JumpStart" <[hidden email]
>>>
>>>> a
>>>>> écrit :
>>>>>
>>>>> I’m upgrading from 4.5.2 to 7.0.3. Now my ServletContextListeners
>> (which
>>>>> are declared in web.xml) are being started twice.
>>>>>
>>>>> I’ve forced a stacktrace inside the ServletContextListener (they all
>>>> have a
>>>>> superclass of AbstractDaemon) and I see that:
>>>>> - call 1 is from OpenEJB’s LightweightWebAppBuilder, and
>>>>>
>>>>>
>>>>> This is the embedded management of http component for openejb-http
>>>>>
>>>>>
>>>>> - call 2 is from Jetty’s ContextHandler.
>>>>> I think call 1 is a new thing since 4.6. Is there a Java EE 6 thing
>> going
>>>>> on here? Do I need to turn off something in my ageing Jetty 6.1.24?
>>>>>
>>>>>
>>>>>
>>>>> You surely need to set a custom WebAppBuilder if you use a custom http
>>>>> layer (not default openejb-http one) or just drop jetty if it is an
>>>> option.
>>>>>
>>>>>
>>>>> Call 1:
>>>>>
>>>>> java.lang.IllegalStateException: Temporary, to help debug OpenEJB
>>>> upgrade.
>>>>> Repeating Bookings Populater
>>>>>      at com.goxpro.xpro.web.daemons.AbstractDaemon.
>> contextInitialized(
>>>>> AbstractDaemon.java:51)
>>>>>      at org.apache.openejb.web.LightweightWebAppBuilder$1.
>>>>> run(LightweightWebAppBuilder.java:191)
>>>>>      at org.apache.openejb.web.LightweightWebAppBuilder.
>>>>> switchServletContextIfNeeded(LightweightWebAppBuilder.java:399)
>>>>>      at org.apache.openejb.web.LightweightWebAppBuilder.
>> deployWebApps(
>>>>> LightweightWebAppBuilder.java:188)
>>>>>      at org.apache.openejb.assembler.classic.Assembler.
>>>>> createApplication(Assembler.java:997)
>>>>>      at org.apache.openejb.assembler.classic.Assembler.
>>>>> createApplication(Assembler.java:718)
>>>>>      at org.apache.openejb.assembler.classic.Assembler.
>>>>> buildContainerSystem(Assembler.java:596)
>>>>>      at org.apache.openejb.assembler.classic.Assembler.build(
>>>>> Assembler.java:484)
>>>>>      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
>>>>>      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:66)
>>>>>      at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
>>>>>      at org.apache.openejb.OpenEJB.init(OpenEJB.java:278)
>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>> NativeMethodAccessorImpl.java:62)
>>>>>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>>>> DelegatingMethodAccessorImpl.java:43)
>>>>>      at java.lang.reflect.Method.invoke(Method.java:497)
>>>>>      at org.apache.openejb.loader.OpenEJBInstance.init(
>>>>> OpenEJBInstance.java:36)
>>>>>      at org.apache.openejb.core.LocalInitialContextFactory.init(
>>>>> LocalInitialContextFactory.java:99)
>>>>>      at org.apache.openejb.core.LocalInitialContextFactory.init(
>>>>> LocalInitialContextFactory.java:63)
>>>>>      at org.apache.openejb.core.LocalInitialContextFactory.
>>>>> getInitialContext(LocalInitialContextFactory.java:47)
>>>>>      at javax.naming.spi.NamingManager.getInitialContext(
>>>>> NamingManager.java:684)
>>>>>      at javax.naming.InitialContext.getDefaultInitCtx(
>>>>> InitialContext.java:313)
>>>>>      at javax.naming.InitialContext.init(InitialContext.java:244)
>>>>>      at javax.naming.InitialContext.<init>(InitialContext.java:192)
>>>>>      at org.mortbay.jetty.plus.naming.NamingEntry.save(NamingEntry.
>>>>> java:191)
>>>>>      at org.mortbay.jetty.plus.naming.NamingEntry.<init>(
>>>>> NamingEntry.java:58)
>>>>>      at org.mortbay.jetty.plus.naming.EnvEntry.<init>(EnvEntry.java:
>>>> 46)
>>>>>      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>>>> Method)
>>>>>      at sun.reflect.NativeConstructorAccessorImpl.newInstance(
>>>>> NativeConstructorAccessorImpl.java:62)
>>>>>      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
>>>>> DelegatingConstructorAccessorImpl.java:45)
>>>>>      at java.lang.reflect.Constructor.newInstance(Constructor.java:
>>>> 422)
>>>>>      at org.mortbay.xml.XmlConfiguration.newObj(
>>>>> XmlConfiguration.java:608)
>>>>>      at org.mortbay.xml.XmlConfiguration.configure(
>>>>> XmlConfiguration.java:256)
>>>>>      at org.mortbay.xml.XmlConfiguration.configure(
>>>>> XmlConfiguration.java:214)
>>>>>      at org.mortbay.jetty.deployer.ContextDeployer.createContext(
>>>>> ContextDeployer.java:369)
>>>>>      at org.mortbay.jetty.deployer.ContextDeployer.deploy(
>>>>> ContextDeployer.java:263)
>>>>>      at org.mortbay.jetty.deployer.ContextDeployer.access$000(
>>>>> ContextDeployer.java:67)
>>>>>      at org.mortbay.jetty.deployer.ContextDeployer$
>>>>> ScannerListener.fileAdded(ContextDeployer.java:89)
>>>>>      at org.mortbay.util.Scanner.reportAddition(Scanner.java:410)
>>>>>      at org.mortbay.util.Scanner.reportDifferences(Scanner.java:324)
>>>>>      at org.mortbay.util.Scanner.scan(Scanner.java:280)
>>>>>      at org.mortbay.jetty.deployer.ContextDeployer.doStart(
>>>>> ContextDeployer.java:327)
>>>>>      at org.mortbay.component.AbstractLifeCycle.start(
>>>>> AbstractLifeCycle.java:50)
>>>>>      at org.mortbay.jetty.Server.doStart(Server.java:201)
>>>>>      at org.mortbay.component.AbstractLifeCycle.start(
>>>>> AbstractLifeCycle.java:50)
>>>>>      at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
>>>>> WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating
>> Bookings
>>>>> Populater
>>>>> WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating
>> Bookings
>>>>> Populater
>>>>>
>>>>> Call 2:
>>>>>
>>>>> java.lang.IllegalStateException: Temporary, to help debug OpenEJB
>>>> upgrade.
>>>>> Repeating Bookings Populater
>>>>>      at com.goxpro.xpro.web.daemons.AbstractDaemon.
>> contextInitialized(
>>>>> AbstractDaemon.java:51)
>>>>>      at org.mortbay.jetty.handler.ContextHandler.startContext(
>>>>> ContextHandler.java:548)
>>>>>      at org.mortbay.jetty.servlet.Context.startContext(Context.
>>>> java:136)
>>>>>      at org.mortbay.jetty.webapp.WebAppContext.startContext(
>>>>> WebAppContext.java:1250)
>>>>>      at org.mortbay.jetty.handler.ContextHandler.doStart(
>>>>> ContextHandler.java:517)
>>>>>      at org.mortbay.jetty.webapp.WebAppContext.doStart(
>>>>> WebAppContext.java:467)
>>>>>      at org.mortbay.component.AbstractLifeCycle.start(
>>>>> AbstractLifeCycle.java:50)
>>>>>      at org.mortbay.jetty.handler.HandlerWrapper.doStart(
>>>>> HandlerWrapper.java:130)
>>>>>      at org.mortbay.jetty.Server.doStart(Server.java:224)
>>>>>      at org.mortbay.component.AbstractLifeCycle.start(
>>>>> AbstractLifeCycle.java:50)
>>>>>      at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
>>>>> WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating
>> Bookings
>>>>> Populater
>>>>> WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating
>> Bookings
>>>>> Populater
>>>>>
>>>>> Geoff
>>>>
>>>>
>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: Jetty with OpenEJB 7.0.3 and ServletContextListener

Romain Manni-Bucau
this page should be equivalent to the menus at http://tomee.apache.org/ but
in a more contextualized way (vs a dump of everything). What could make it
easier to browse?


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-05-26 9:26 GMT+02:00 JumpStart <[hidden email]>:

> Actually, regarding the lack of “user guide” or starting point
> documentation, I’ve since realised that there kind of is one, but it’s just
> not visible from the home page. I think it should be.
>
>         http://tomee.apache.org/documentation.html
>
> I would love to help, but I am so engulfed in real work - using Tapestry
> and OpenEJB every day - that I can't even spend time updating Tapestry
> Jumpstart.
>
> > On 25 May 2017, at 6:45 pm, Romain Manni-Bucau <[hidden email]>
> wrote:
> >
> > 2017-05-25 5:32 GMT+02:00 JumpStart <[hidden email]
> >:
> >
> >> Thanks Romain, I will try that.
> >>
> >> I am thoroughly confused about the modern purpose of OpenEJB - I was
> very
> >> surprised to hear that openejb-http even exists. Is there a page in the
> >> TomEE site that explains what TomEE is, OpenEJB is, and the difference
> >> between the various downloads (plume, plus, etc)?
> >>
> >
> > We still have http://tomee.apache.org/comparison.html
> >
> > In short: OpenEJB was renamed TomEE in 2011 but we kept the openejb name
> to
> > avoid confusion to users and to change tons of dependencies.
> >
> >
> >>
> >> An observation: it looks like the website is purely “reference”
> >> documentation, which is great if you already know the essentials, but I
> >> can’t find any “user guide” documentation, that steps you from a
> starting
> >> point of knowing nothing.
> >>
> >
> > This is close to be right, at least the getting started are not that
> > referenced and we tend to rely on examples (
> > http://tomee.apache.org/examples/index.html). Want to give it a try?
> Site
> > is written in asciidoc format at
> > http://svn.apache.org/repos/asf/tomee/site/trunk/
> generators/site-tomee-ng/src/main/jbake/content/
> > (just checkout
> > http://svn.apache.org/repos/asf/tomee/site/trunk/
> generators/site-tomee-ng
> > and submit a patch on http://issues.apache.org/jira/browse/TOMEE)
> >
> >
> >>
> >> As for documentation on how one release differs from the last, I see
> >> nothing.
> >>
> >
> > Hehe, this is true, we have the pages but just realized we were not
> linking
> > them durably on the website. However JIRA gives you this information at
> > https://issues.apache.org/jira/browse/TOMEE/?selectedTab=com.atlassian.
> jira.jira-projects-plugin:changelog-panel
> >
> >
> >>
> >> Geoff
> >>
> >>> On 24 May 2017, at 11:17 PM, Romain Manni-Bucau <[hidden email]
> >
> >> wrote:
> >>>
> >>> Try setting instead of org.apache.openejb.assembler.
> classic.WebAppBuilder
> >> =
> >>> org.apache.openejb.web.LightweightWebAppBuilder
> >>>
> >>> org.apache.openejb.assembler.classic.WebAppBuilder =
> >>> your.impl.NoWebAppBuilder
> >>>
> >>> Just implement a mock of WebAppBuilder (no-op methods)
> >>>
> >>>
> >>> Romain Manni-Bucau
> >>> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> >>> <https://blog-rmannibucau.rhcloud.com> | Old Blog
> >>> <http://rmannibucau.wordpress.com> | Github <https://github.com/
> >> rmannibucau> |
> >>> LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
> >>> <https://javaeefactory-rmannibucau.rhcloud.com>
> >>>
> >>> 2017-05-24 16:26 GMT+02:00 JumpStart <geoff.callender.jumpstart@
> >> gmail.com>:
> >>>
> >>>> In the short term I would like to continue with Jetty for the web
> >> portion
> >>>> of my app. I presume openejb-http was added in 4.6. Can you please
> >> point me
> >>>> to the documentation which describes how to disable it? I’ve looked
> and
> >>>> can’t find it.
> >>>>
> >>>>> On 24 May 2017, at 9:54 PM, Romain Manni-Bucau <
> [hidden email]>
> >>>> wrote:
> >>>>>
> >>>>> Le 24 mai 2017 15:49, "JumpStart" <geoff.callender.jumpstart@
> gmail.com
> >>>
> >>>> a
> >>>>> écrit :
> >>>>>
> >>>>> I’m upgrading from 4.5.2 to 7.0.3. Now my ServletContextListeners
> >> (which
> >>>>> are declared in web.xml) are being started twice.
> >>>>>
> >>>>> I’ve forced a stacktrace inside the ServletContextListener (they all
> >>>> have a
> >>>>> superclass of AbstractDaemon) and I see that:
> >>>>> - call 1 is from OpenEJB’s LightweightWebAppBuilder, and
> >>>>>
> >>>>>
> >>>>> This is the embedded management of http component for openejb-http
> >>>>>
> >>>>>
> >>>>> - call 2 is from Jetty’s ContextHandler.
> >>>>> I think call 1 is a new thing since 4.6. Is there a Java EE 6 thing
> >> going
> >>>>> on here? Do I need to turn off something in my ageing Jetty 6.1.24?
> >>>>>
> >>>>>
> >>>>>
> >>>>> You surely need to set a custom WebAppBuilder if you use a custom
> http
> >>>>> layer (not default openejb-http one) or just drop jetty if it is an
> >>>> option.
> >>>>>
> >>>>>
> >>>>> Call 1:
> >>>>>
> >>>>> java.lang.IllegalStateException: Temporary, to help debug OpenEJB
> >>>> upgrade.
> >>>>> Repeating Bookings Populater
> >>>>>      at com.goxpro.xpro.web.daemons.AbstractDaemon.
> >> contextInitialized(
> >>>>> AbstractDaemon.java:51)
> >>>>>      at org.apache.openejb.web.LightweightWebAppBuilder$1.
> >>>>> run(LightweightWebAppBuilder.java:191)
> >>>>>      at org.apache.openejb.web.LightweightWebAppBuilder.
> >>>>> switchServletContextIfNeeded(LightweightWebAppBuilder.java:399)
> >>>>>      at org.apache.openejb.web.LightweightWebAppBuilder.
> >> deployWebApps(
> >>>>> LightweightWebAppBuilder.java:188)
> >>>>>      at org.apache.openejb.assembler.classic.Assembler.
> >>>>> createApplication(Assembler.java:997)
> >>>>>      at org.apache.openejb.assembler.classic.Assembler.
> >>>>> createApplication(Assembler.java:718)
> >>>>>      at org.apache.openejb.assembler.classic.Assembler.
> >>>>> buildContainerSystem(Assembler.java:596)
> >>>>>      at org.apache.openejb.assembler.classic.Assembler.build(
> >>>>> Assembler.java:484)
> >>>>>      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
> >>>>>      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:66)
> >>>>>      at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
> >>>>>      at org.apache.openejb.OpenEJB.init(OpenEJB.java:278)
> >>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>> NativeMethodAccessorImpl.java:62)
> >>>>>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >>>>> DelegatingMethodAccessorImpl.java:43)
> >>>>>      at java.lang.reflect.Method.invoke(Method.java:497)
> >>>>>      at org.apache.openejb.loader.OpenEJBInstance.init(
> >>>>> OpenEJBInstance.java:36)
> >>>>>      at org.apache.openejb.core.LocalInitialContextFactory.init(
> >>>>> LocalInitialContextFactory.java:99)
> >>>>>      at org.apache.openejb.core.LocalInitialContextFactory.init(
> >>>>> LocalInitialContextFactory.java:63)
> >>>>>      at org.apache.openejb.core.LocalInitialContextFactory.
> >>>>> getInitialContext(LocalInitialContextFactory.java:47)
> >>>>>      at javax.naming.spi.NamingManager.getInitialContext(
> >>>>> NamingManager.java:684)
> >>>>>      at javax.naming.InitialContext.getDefaultInitCtx(
> >>>>> InitialContext.java:313)
> >>>>>      at javax.naming.InitialContext.init(InitialContext.java:244)
> >>>>>      at javax.naming.InitialContext.<init>(InitialContext.java:192)
> >>>>>      at org.mortbay.jetty.plus.naming.NamingEntry.save(NamingEntry.
> >>>>> java:191)
> >>>>>      at org.mortbay.jetty.plus.naming.NamingEntry.<init>(
> >>>>> NamingEntry.java:58)
> >>>>>      at org.mortbay.jetty.plus.naming.EnvEntry.<init>(EnvEntry.java:
> >>>> 46)
> >>>>>      at sun.reflect.NativeConstructorAccessorImpl.
> newInstance0(Native
> >>>>> Method)
> >>>>>      at sun.reflect.NativeConstructorAccessorImpl.newInstance(
> >>>>> NativeConstructorAccessorImpl.java:62)
> >>>>>      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> >>>>> DelegatingConstructorAccessorImpl.java:45)
> >>>>>      at java.lang.reflect.Constructor.newInstance(Constructor.java:
> >>>> 422)
> >>>>>      at org.mortbay.xml.XmlConfiguration.newObj(
> >>>>> XmlConfiguration.java:608)
> >>>>>      at org.mortbay.xml.XmlConfiguration.configure(
> >>>>> XmlConfiguration.java:256)
> >>>>>      at org.mortbay.xml.XmlConfiguration.configure(
> >>>>> XmlConfiguration.java:214)
> >>>>>      at org.mortbay.jetty.deployer.ContextDeployer.createContext(
> >>>>> ContextDeployer.java:369)
> >>>>>      at org.mortbay.jetty.deployer.ContextDeployer.deploy(
> >>>>> ContextDeployer.java:263)
> >>>>>      at org.mortbay.jetty.deployer.ContextDeployer.access$000(
> >>>>> ContextDeployer.java:67)
> >>>>>      at org.mortbay.jetty.deployer.ContextDeployer$
> >>>>> ScannerListener.fileAdded(ContextDeployer.java:89)
> >>>>>      at org.mortbay.util.Scanner.reportAddition(Scanner.java:410)
> >>>>>      at org.mortbay.util.Scanner.reportDifferences(Scanner.java:324)
> >>>>>      at org.mortbay.util.Scanner.scan(Scanner.java:280)
> >>>>>      at org.mortbay.jetty.deployer.ContextDeployer.doStart(
> >>>>> ContextDeployer.java:327)
> >>>>>      at org.mortbay.component.AbstractLifeCycle.start(
> >>>>> AbstractLifeCycle.java:50)
> >>>>>      at org.mortbay.jetty.Server.doStart(Server.java:201)
> >>>>>      at org.mortbay.component.AbstractLifeCycle.start(
> >>>>> AbstractLifeCycle.java:50)
> >>>>>      at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
> >>>>> WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating
> >> Bookings
> >>>>> Populater
> >>>>> WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating
> >> Bookings
> >>>>> Populater
> >>>>>
> >>>>> Call 2:
> >>>>>
> >>>>> java.lang.IllegalStateException: Temporary, to help debug OpenEJB
> >>>> upgrade.
> >>>>> Repeating Bookings Populater
> >>>>>      at com.goxpro.xpro.web.daemons.AbstractDaemon.
> >> contextInitialized(
> >>>>> AbstractDaemon.java:51)
> >>>>>      at org.mortbay.jetty.handler.ContextHandler.startContext(
> >>>>> ContextHandler.java:548)
> >>>>>      at org.mortbay.jetty.servlet.Context.startContext(Context.
> >>>> java:136)
> >>>>>      at org.mortbay.jetty.webapp.WebAppContext.startContext(
> >>>>> WebAppContext.java:1250)
> >>>>>      at org.mortbay.jetty.handler.ContextHandler.doStart(
> >>>>> ContextHandler.java:517)
> >>>>>      at org.mortbay.jetty.webapp.WebAppContext.doStart(
> >>>>> WebAppContext.java:467)
> >>>>>      at org.mortbay.component.AbstractLifeCycle.start(
> >>>>> AbstractLifeCycle.java:50)
> >>>>>      at org.mortbay.jetty.handler.HandlerWrapper.doStart(
> >>>>> HandlerWrapper.java:130)
> >>>>>      at org.mortbay.jetty.Server.doStart(Server.java:224)
> >>>>>      at org.mortbay.component.AbstractLifeCycle.start(
> >>>>> AbstractLifeCycle.java:50)
> >>>>>      at com.goxpro.xpro.web.RunJetty.main(RunJetty.java:84)
> >>>>> WARN [main] (AbstractDaemon.java:58) - Before schedule Repeating
> >> Bookings
> >>>>> Populater
> >>>>> WARN [main] (AbstractDaemon.java:60) - After  schedule Repeating
> >> Bookings
> >>>>> Populater
> >>>>>
> >>>>> Geoff
> >>>>
> >>>>
> >>
> >>
>
>