Issue with server start up

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Issue with server start up

Dignesh
Hi ,
I am using 7.0.2 TomEE with Hibernate 4.3.5

When I start the server I see the below issue

Caused by: java.lang.NoClassDefFoundError: org/hibernate/service/jta/platform/internal/AbstractJtaPlatform
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at org.apache.openejb.util.classloader.URLClassLoaderFirst.loadInternal(URLClassLoaderFirst.java:173)
        at org.apache.openejb.util.classloader.URLClassLoaderFirst.loadClass(URLClassLoaderFirst.java:121)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl$AggregatedClassLoader.findClass(ClassLoaderServiceImpl.java:222)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:270)
        at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:240)
        at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.selectStrategyImplementor(StrategySelectorImpl.java:125)
        at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:155)
        at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:136)
        at org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator.initiateService(JtaPlatformInitiator.java:57)
        at org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator.initiateService(JtaPlatformInitiator.java:43)
        at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:105)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:251)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:225)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:107)
        at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2442)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2438)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1855)

Is there any jars that needs to be updated ? Can anyone please help me on this.
Thank you,
Dignesh,
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with server start up

Romain Manni-Bucau
Hi

maybe specify the jta_platform in your persistence unit or system properties


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-18 12:50 GMT+02:00 Dignesh <[hidden email]>:

> Hi ,
> I am using 7.0.2 TomEE with Hibernate 4.3.5
>
> When I start the server I see the below issue
>
> Caused by: java.lang.NoClassDefFoundError:
> org/hibernate/service/jta/platform/internal/AbstractJtaPlatform
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>         at
> org.apache.openejb.util.classloader.URLClassLoaderFirst.loadInternal(
> URLClassLoaderFirst.java:173)
>         at
> org.apache.openejb.util.classloader.URLClassLoaderFirst.loadClass(
> URLClassLoaderFirst.java:121)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>         at
> org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl$
> AggregatedClassLoader.findClass(ClassLoaderServiceImpl.java:222)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:270)
>         at
> org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.
> classForName(ClassLoaderServiceImpl.java:240)
>         at
> org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.
> selectStrategyImplementor(StrategySelectorImpl.java:125)
>         at
> org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.
> resolveDefaultableStrategy(StrategySelectorImpl.java:155)
>         at
> org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.
> resolveStrategy(StrategySelectorImpl.java:136)
>         at
> org.hibernate.engine.transaction.jta.platform.
> internal.JtaPlatformInitiator.initiateService(
> JtaPlatformInitiator.java:57)
>         at
> org.hibernate.engine.transaction.jta.platform.
> internal.JtaPlatformInitiator.initiateService(
> JtaPlatformInitiator.java:43)
>         at
> org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.
> initiateService(StandardServiceRegistryImpl.java:105)
>         at
> org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(
> AbstractServiceRegistryImpl.java:251)
>         at
> org.hibernate.service.internal.AbstractServiceRegistryImpl.
> initializeService(AbstractServiceRegistryImpl.java:225)
>         at
> org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(
> AbstractServiceRegistryImpl.java:206)
>         at
> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:107)
>         at
> org.hibernate.cfg.Configuration.buildSettingsInternal(
> Configuration.java:2442)
>         at
> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2438)
>         at
> org.hibernate.cfg.Configuration.buildSessionFactory(
> Configuration.java:1855)
>
> Is there any jars that needs to be updated ? Can anyone please help me on
> this.
> Thank you,
> Dignesh,
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Issue-with-server-start-up-tp4681709.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with server start up

Dignesh
Hi Romain,

Thank you very much for your reply.

jta_platform is specified and it is - "org.apache.openejb.hibernate.OpenEJBJtaPlatform"

I debugged the issue to some extent:

I decompiled the source for OpenEJBJtaPlatform and i see the below import statement

"import org.hibernate.service.jta.platform.internal.AbstractJtaPlatform;"


From hibernate 4.3.5 the package structure is changed to

"org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform"


So any suggestion how should I proceed on this.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with server start up

Romain Manni-Bucau
I see,

did you try to NOT configure it? If you really want to put a value use
org.apache.openejb.hibernate.OpenEJBJtaPlatform2


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-18 16:15 GMT+02:00 Dignesh <[hidden email]>:

> Hi Romain,
>
> Thank you very much for your reply.
>
> jta_platform is specified and it is -
> "org.apache.openejb.hibernate.OpenEJBJtaPlatform"
>
> I debugged the issue to some extent:
>
> I decompiled the source for OpenEJBJtaPlatform and i see the below import
> statement
>
> "import org.hibernate.service.jta.platform.internal.AbstractJtaPlatform;"
>
>
> From hibernate 4.3.5 the package structure is changed to
>
> "org.hibernate.engine.transaction.jta.platform.
> internal.AbstractJtaPlatform"
>
>
> So any suggestion how should I proceed on this.
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Issue-with-server-start-up-tp4681709p4681713.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>
Loading...