Need Help: Tomee deployment issue of an ear file

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

Need Help: Tomee deployment issue of an ear file

Srinath.Mandal
Hi,
I am deploying an ear file to tomee apps directory. This has one ejb module and war file. While deploying I am getting below error. Can anyone please help me understand the real issue here?

org.apache.openejb.util.OpenEJBErrorHandler.handleUnknownError FATAL ERROR: Unknown error in Assembler.  Please send the following stack trace and this message to [hidden email] :
java.lang.ArrayIndexOutOfBoundsException: 48188
        at org.apache.xbean.asm5.ClassReader.readClass(Unknown Source)
        at org.apache.xbean.asm5.ClassReader.accept(Unknown Source)
        at org.apache.xbean.asm5.ClassReader.accept(Unknown Source)
        at org.apache.openejb.util.AnnotationFinder.readClassDef(AnnotationFinder.java:300)
        at org.apache.openejb.util.AnnotationFinder.find(AnnotationFinder.java:164)
        at org.apache.openejb.config.DeploymentLoader.checkAnnotations(DeploymentLoader.java:2088)
        at org.apache.openejb.config.DeploymentLoader.discoverModuleType(DeploymentLoader.java:1971)
        at org.apache.openejb.config.DeploymentsResolver.processUrls(DeploymentsResolver.java:361)
        at org.apache.openejb.config.DeploymentsResolver.loadFromClasspath(DeploymentsResolver.java:257)
        at org.apache.openejb.config.DeploymentsResolver.loadFromClasspath(DeploymentsResolver.java:322)
        at org.apache.openejb.config.DeploymentLoader.createAppModule(DeploymentLoader.java:648)
        at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:168)
        at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:855)
        at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:547)
        at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:634)
        at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:504)
        at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:483)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
        at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:247)
        at org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:168)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:395)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:108)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:606)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:629)
        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:498)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
Reply | Threaded
Open this post in threaded view
|

Re: Need Help: Tomee deployment issue of an ear file

Romain Manni-Bucau
Hi

looks like you deploy on an old tomee not fully supporting java 8 code,
maybe upgrade and retry


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-09-07 11:40 GMT+02:00 <[hidden email]>:

> Hi,
> I am deploying an ear file to tomee apps directory. This has one ejb
> module and war file. While deploying I am getting below error. Can anyone
> please help me understand the real issue here?
>
> org.apache.openejb.util.OpenEJBErrorHandler.handleUnknownError FATAL
> ERROR: Unknown error in Assembler.  Please send the following stack trace
> and this message to [hidden email] :
> java.lang.ArrayIndexOutOfBoundsException: 48188
>         at org.apache.xbean.asm5.ClassReader.readClass(Unknown Source)
>         at org.apache.xbean.asm5.ClassReader.accept(Unknown Source)
>         at org.apache.xbean.asm5.ClassReader.accept(Unknown Source)
>         at org.apache.openejb.util.AnnotationFinder.readClassDef(
> AnnotationFinder.java:300)
>         at org.apache.openejb.util.AnnotationFinder.find(
> AnnotationFinder.java:164)
>         at org.apache.openejb.config.DeploymentLoader.checkAnnotations(
> DeploymentLoader.java:2088)
>         at org.apache.openejb.config.DeploymentLoader.discoverModuleType(
> DeploymentLoader.java:1971)
>         at org.apache.openejb.config.DeploymentsResolver.processUrls(
> DeploymentsResolver.java:361)
>         at org.apache.openejb.config.DeploymentsResolver.
> loadFromClasspath(DeploymentsResolver.java:257)
>         at org.apache.openejb.config.DeploymentsResolver.
> loadFromClasspath(DeploymentsResolver.java:322)
>         at org.apache.openejb.config.DeploymentLoader.createAppModule(
> DeploymentLoader.java:648)
>         at org.apache.openejb.config.DeploymentLoader.load(
> DeploymentLoader.java:168)
>         at org.apache.openejb.config.ConfigurationFactory.
> configureApplication(ConfigurationFactory.java:855)
>         at org.apache.openejb.config.ConfigurationFactory.
> getOpenEjbConfiguration(ConfigurationFactory.java:547)
>         at org.apache.openejb.config.ConfigurationFactory.
> getOpenEjbConfiguration(ConfigurationFactory.java:634)
>         at org.apache.openejb.assembler.classic.Assembler.
> getOpenEjbConfiguration(Assembler.java:504)
>         at org.apache.openejb.assembler.classic.Assembler.build(
> Assembler.java:483)
>         at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
>         at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
>         at org.apache.tomee.catalina.TomcatLoader.initialize(
> TomcatLoader.java:247)
>         at org.apache.tomee.catalina.ServerListener.lifecycleEvent(
> ServerListener.java:168)
>         at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
> LifecycleBase.java:94)
>         at org.apache.catalina.util.LifecycleBase.setStateInternal(
> LifecycleBase.java:395)
>         at org.apache.catalina.util.LifecycleBase.init(
> LifecycleBase.java:108)
>         at org.apache.catalina.startup.Catalina.load(Catalina.java:606)
>         at org.apache.catalina.startup.Catalina.load(Catalina.java:629)
>         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:498)
>         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)
> This e-mail and any files transmitted with it are for the sole use of the
> intended recipient(s) and may contain confidential and privileged
> information. If you are not the intended recipient(s), please reply to the
> sender and destroy all copies of the original message. Any unauthorized
> review, use, disclosure, dissemination, forwarding, printing or copying of
> this email, and/or any action taken in reliance on the contents of this
> e-mail is strictly prohibited and may be unlawful. Where permitted by
> applicable law, this e-mail and other e-mail communications sent to and
> from Cognizant e-mail addresses may be monitored.
>
Reply | Threaded
Open this post in threaded view
|

Re: Need Help: Tomee deployment issue of an ear file

David Blevins-2
In reply to this post by Srinath.Mandal
Hi Shrinath,

What version of TomEE are you using and what Java version was the application compiled with?


--
David Blevins
http://twitter.com/dblevins
http://www.tomitribe.com

> On Sep 7, 2017, at 2:40 AM, [hidden email] wrote:
>
> Hi,
> I am deploying an ear file to tomee apps directory. This has one ejb module and war file. While deploying I am getting below error. Can anyone please help me understand the real issue here?
>
> org.apache.openejb.util.OpenEJBErrorHandler.handleUnknownError FATAL ERROR: Unknown error in Assembler.  Please send the following stack trace and this message to [hidden email] :
> java.lang.ArrayIndexOutOfBoundsException: 48188
>        at org.apache.xbean.asm5.ClassReader.readClass(Unknown Source)
>        at org.apache.xbean.asm5.ClassReader.accept(Unknown Source)
>        at org.apache.xbean.asm5.ClassReader.accept(Unknown Source)
>        at org.apache.openejb.util.AnnotationFinder.readClassDef(AnnotationFinder.java:300)
>        at org.apache.openejb.util.AnnotationFinder.find(AnnotationFinder.java:164)
>        at org.apache.openejb.config.DeploymentLoader.checkAnnotations(DeploymentLoader.java:2088)
>        at org.apache.openejb.config.DeploymentLoader.discoverModuleType(DeploymentLoader.java:1971)
>        at org.apache.openejb.config.DeploymentsResolver.processUrls(DeploymentsResolver.java:361)
>        at org.apache.openejb.config.DeploymentsResolver.loadFromClasspath(DeploymentsResolver.java:257)
>        at org.apache.openejb.config.DeploymentsResolver.loadFromClasspath(DeploymentsResolver.java:322)
>        at org.apache.openejb.config.DeploymentLoader.createAppModule(DeploymentLoader.java:648)
>        at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:168)
>        at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:855)
>        at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:547)
>        at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:634)
>        at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:504)
>        at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:483)
>        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:150)
>        at org.apache.openejb.OpenEJB.init(OpenEJB.java:307)
>        at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:247)
>        at org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:168)
>        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
>        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:395)
>        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:108)
>        at org.apache.catalina.startup.Catalina.load(Catalina.java:606)
>        at org.apache.catalina.startup.Catalina.load(Catalina.java:629)
>        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:498)
>        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.