You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by CULori <lk...@cornell.edu> on 2016/01/12 17:51:17 UTC

Unable to create annotation scanner for web module error from war file compiled with Java 7

I have a restful web service war file that works on Apache Tomcat 7.0.37 and
JVM 1.7.0_40-b43 on Windows Server 2008 R2. I didn't install the
Tomcat/TomEE server so I don't know exactly what version of TomEE it is. 
When we installed apache-tomee-plus-1.7.2 on a new Windows Server 2012 R2
and added the same war file to the webapps folder we get:

SEVERE: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/wsdev]]
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095)
	at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1930)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.tomee.catalina.TomEERuntimeException:
org.apache.openejb.OpenEJBException: Unable to create annotation scanner for
web module wsdev: null
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2198)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1147)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
	at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	... 10 more
Caused by: org.apache.openejb.OpenEJBException: Unable to create annotation
scanner for web module wsdev: null
	at
org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:849)
	at
org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:221)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2196)
	... 17 more
Caused by: java.lang.ArrayIndexOutOfBoundsException

Any help would be greatly appreciated.
Thank you.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Unable-to-create-annotation-scanner-for-web-module-error-from-war-file-compiled-with-Java-7-tp4677419.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Unable to create annotation scanner for web module error from war file compiled with Java 7

Posted by Romain Manni-Bucau <rm...@gmail.com>.
the fastest will be to exclude them all then add them one by one I guess. I
know we changed few exclusion between version so maybe you have been
affected by this.

If you can reproduce it on github we can maybe help you a bit more.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2016-01-13 20:14 GMT+01:00 CULori <lk...@cornell.edu>:

> Hi
> tomee 1.7.3 didn't work either.  How would I know which jar I'm missing or
> which jar I need to exclude?  Especially since it worked on a previous
> version?
>
>
>
> Romain Manni-Bucau wrote
> > Hi
> >
> > can you try tomee 1.7.3?
> >
> > If it doesnt work you probably either miss a jar in the war or need to
> > exclude one through exclusions.list
> >
> >
> > Romain Manni-Bucau
> > @rmannibucau &lt;https://twitter.com/rmannibucau&gt; |  Blog
> > &lt;http://rmannibucau.wordpress.com&gt; | Github
> > &lt;https://github.com/rmannibucau&gt; |
> > LinkedIn &lt;https://www.linkedin.com/in/rmannibucau&gt; | Tomitriber
> > &lt;http://www.tomitribe.com&gt;
> >
> > 2016-01-12 17:51 GMT+01:00 CULori &lt;
>
> > lkl32@
>
> > &gt;:
> >
> >> I have a restful web service war file that works on Apache Tomcat 7.0.37
> >> and
> >> JVM 1.7.0_40-b43 on Windows Server 2008 R2. I didn't install the
> >> Tomcat/TomEE server so I don't know exactly what version of TomEE it is.
> >> When we installed apache-tomee-plus-1.7.2 on a new Windows Server 2012
> R2
> >> and added the same war file to the webapps folder we get:
> >>
> >> SEVERE: ContainerBase.addChild: start:
> >> org.apache.catalina.LifecycleException: Failed to start component
> >>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/wsdev]]
> >>         at
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> >>         at
> >>
> >>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> >>         at
> >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> >>         at
> >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
> >>         at
> >> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095)
> >>         at
> >>
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1930)
> >>         at
> >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> >>         at
> >>
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> >>         at
> >>
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> >>         at java.lang.Thread.run(Thread.java:745)
> >> Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> >> org.apache.openejb.OpenEJBException: Unable to create annotation scanner
> >> for
> >> web module wsdev: null
> >>         at
> >>
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2198)
> >>         at
> >>
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1147)
> >>         at
> >>
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
> >>         at
> >>
> >>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
> >>         at
> >>
> >>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> >>         at
> >>
> >>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >>         at
> >>
> >>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416)
> >>         at
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >>         ... 10 more
> >> Caused by: org.apache.openejb.OpenEJBException: Unable to create
> >> annotation
> >> scanner for web module wsdev: null
> >>         at
> >>
> >>
> org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:849)
> >>         at
> >>
> org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:221)
> >>         at
> >>
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2196)
> >>         ... 17 more
> >> Caused by: java.lang.ArrayIndexOutOfBoundsException
> >>
> >> Any help would be greatly appreciated.
> >> Thank you.
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://tomee-openejb.979440.n4.nabble.com/Unable-to-create-annotation-scanner-for-web-module-error-from-war-file-compiled-with-Java-7-tp4677419.html
> >> Sent from the TomEE Users mailing list archive at Nabble.com.
> >>
>
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Unable-to-create-annotation-scanner-for-web-module-error-from-war-file-compiled-with-Java-7-tp4677419p4677449.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Re: Unable to create annotation scanner for web module error from war file compiled with Java 7

Posted by CULori <lk...@cornell.edu>.
Hi
tomee 1.7.3 didn't work either.  How would I know which jar I'm missing or
which jar I need to exclude?  Especially since it worked on a previous
version?



Romain Manni-Bucau wrote
> Hi
> 
> can you try tomee 1.7.3?
> 
> If it doesnt work you probably either miss a jar in the war or need to
> exclude one through exclusions.list
> 
> 
> Romain Manni-Bucau
> @rmannibucau &lt;https://twitter.com/rmannibucau&gt; |  Blog
> &lt;http://rmannibucau.wordpress.com&gt; | Github
> &lt;https://github.com/rmannibucau&gt; |
> LinkedIn &lt;https://www.linkedin.com/in/rmannibucau&gt; | Tomitriber
> &lt;http://www.tomitribe.com&gt;
> 
> 2016-01-12 17:51 GMT+01:00 CULori &lt;

> lkl32@

> &gt;:
> 
>> I have a restful web service war file that works on Apache Tomcat 7.0.37
>> and
>> JVM 1.7.0_40-b43 on Windows Server 2008 R2. I didn't install the
>> Tomcat/TomEE server so I don't know exactly what version of TomEE it is.
>> When we installed apache-tomee-plus-1.7.2 on a new Windows Server 2012 R2
>> and added the same war file to the webapps folder we get:
>>
>> SEVERE: ContainerBase.addChild: start:
>> org.apache.catalina.LifecycleException: Failed to start component
>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/wsdev]]
>>         at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>>         at
>>
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>>         at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>>         at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>>         at
>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095)
>>         at
>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1930)
>>         at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>         at
>>
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>         at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>         at java.lang.Thread.run(Thread.java:745)
>> Caused by: org.apache.tomee.catalina.TomEERuntimeException:
>> org.apache.openejb.OpenEJBException: Unable to create annotation scanner
>> for
>> web module wsdev: null
>>         at
>>
>> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2198)
>>         at
>>
>> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1147)
>>         at
>>
>> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
>>         at
>>
>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
>>         at
>>
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>>         at
>>
>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>         at
>>
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416)
>>         at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>         ... 10 more
>> Caused by: org.apache.openejb.OpenEJBException: Unable to create
>> annotation
>> scanner for web module wsdev: null
>>         at
>>
>> org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:849)
>>         at
>> org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:221)
>>         at
>>
>> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2196)
>>         ... 17 more
>> Caused by: java.lang.ArrayIndexOutOfBoundsException
>>
>> Any help would be greatly appreciated.
>> Thank you.
>>
>>
>>
>> --
>> View this message in context:
>> http://tomee-openejb.979440.n4.nabble.com/Unable-to-create-annotation-scanner-for-web-module-error-from-war-file-compiled-with-Java-7-tp4677419.html
>> Sent from the TomEE Users mailing list archive at Nabble.com.
>>





--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Unable-to-create-annotation-scanner-for-web-module-error-from-war-file-compiled-with-Java-7-tp4677419p4677449.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Unable to create annotation scanner for web module error from war file compiled with Java 7

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

can you try tomee 1.7.3?

If it doesnt work you probably either miss a jar in the war or need to
exclude one through exclusions.list


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2016-01-12 17:51 GMT+01:00 CULori <lk...@cornell.edu>:

> I have a restful web service war file that works on Apache Tomcat 7.0.37
> and
> JVM 1.7.0_40-b43 on Windows Server 2008 R2. I didn't install the
> Tomcat/TomEE server so I don't know exactly what version of TomEE it is.
> When we installed apache-tomee-plus-1.7.2 on a new Windows Server 2012 R2
> and added the same war file to the webapps folder we get:
>
> SEVERE: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/wsdev]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095)
>         at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1930)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> org.apache.openejb.OpenEJBException: Unable to create annotation scanner
> for
> web module wsdev: null
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2198)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1147)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 10 more
> Caused by: org.apache.openejb.OpenEJBException: Unable to create annotation
> scanner for web module wsdev: null
>         at
>
> org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:849)
>         at
> org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:221)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2196)
>         ... 17 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException
>
> Any help would be greatly appreciated.
> Thank you.
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Unable-to-create-annotation-scanner-for-web-module-error-from-war-file-compiled-with-Java-7-tp4677419.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>