Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Eclipselink cache coordination throwing NoClassDefFoundError (Eclipselink cache coordination throwing NoClassDefFoundError )
Eclipselink cache coordination throwing NoClassDefFoundError [message #673485] Mon, 23 May 2011 15:18 Go to next message
Kamal  is currently offline Kamal
Messages: 9
Registered: May 2011
Junior Member
I' am trying to migrate from Toplink 10.1.3 to EclipseLink 2.2.0 on Weblogic 10.3. Trying to setup cache coordination using our Tibco queues. Do not want to enable JMX or profiling. I have overriden the JMSTopicRemoteConnection and JMSTopicTransportManager to connect to the Queues with a user name and password.
I'am using the following sessions.xml. Eclipselink send the messages over to the Topic but throws the following error when it tries to merge the changes.
Any pointers would be helpful.


Exception in thread "Thread-364045" java.lang.NoClassDefFoundError: org/eclipse/persistence/internal/sessions/coordination/ProfileMessageReceiveCommand

at org.eclipse.persistence.sessions.coordination.RemoteCommandManager.processCommandFromRemoteConnection(RemoteCommandManager.java:236)

at org.eclipse.persistence.internal.sessions.coordination.broadcast.BroadcastRemoteConnection.processReceivedObject(BroadcastRemoteConnection.java:175)

at org.eclipse.persistence.internal.sessions.coordination.jms.JMSTopicRemoteConnection.onMessage(JMSTopicRemoteConnection.java:228)

at org.eclipse.persistence.internal.sessions.coordination.jms.JMSTopicRemoteConnection$JMSOnMessageHelper.run(JMSTopicRemoteConnection.java:491)





<?xml version="1.0" encoding="UTF-8"?>
<!--
This file contains Eclipselink session configurations for the
PST development environment.
-->
<sessions
version="2.2"
"links removed due to forum restriction">

<session xsi:type="server-session">
<name>default</name>
<server-platform xsi:type="custom-platform">
<enable-runtime-services>false</enable-runtime-services>
<enable-jta>false</enable-jta>
</server-platform>
<remote-command>
<commands>
<cache-sync>true</cache-sync>
</commands>
<transport xsi:type="jms-topic-transport">
<topic-host-url>tcp://tibjms:8293</topic-host-url>
<topic-connection-factory-name>TCF</topic-connection-factory-name>
<topic-name>TOPLINK_CACHE.REFRESH</topic-name>
<jndi-naming-service>
<user-name>user</user-name>
<password>password</password>
<initial-context-factory-name>com.tibco.tibjms.naming.TibjmsInitialContextFactory</initial-context-factory-name>
</jndi-naming-service>
</transport>
</remote-command>
<logging xsi:type="eclipselink-log">
<log-level>all</log-level>
<file-name>/logs/eclipselink.log</file-name>
<logging-options>
<log-exception-stacktrace>true</log-exception-stacktrace>
<print-thread>true</print-thread>
<print-session>false</print-session>
<print-connection>false</print-connection>
<print-date>true</print-date>
</logging-options>
</logging>
<primary-project xsi:type="class">ToplinkProject</primary-project>
<login xsi:type="database-login">
<platform-class>org.eclipse.persistence.platform.database.oracle.Oracle10Platform</platform-class>
<external-connection-pooling>true</external-connection-pooling>
<external-transaction-controller>false</external-transaction-controller>
<sequencing>
<default-sequence xsi:type="native-sequence">
<name>Default</name>
</default-sequence>
</sequencing>
<datasource>PoolTXDS</datasource>
</login>
</session>
</sessions>

Re: Eclipselink cache coordination throwing NoClassDefFoundError [message #673744 is a reply to message #673485] Tue, 24 May 2011 11:33 Go to previous messageGo to next message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

I can't see how this could possibly occur, the class is in the eclipselink.jar.

Have you altered the EclipseLink jar or classes in any way?


James : Wiki : Book : Blog : Twitter
Re: Eclipselink cache coordination throwing NoClassDefFoundError [message #673812 is a reply to message #673744] Tue, 24 May 2011 16:12 Go to previous messageGo to next message
Kamal  is currently offline Kamal
Messages: 9
Registered: May 2011
Junior Member
Thank you for the response James.

I did extend some methods in the following classes in an attempt to use user name and password while creating Topic Connections. These are bundled in the application jar(Did not modify eclipselink.jar).

XMLSessionConfigLoader (Use my extended class to load the session which in turn loads the other custom implementations)
SessionsFactory
JMSTopicTransportManager
JMSTopicRemoteConnection

From the comments, looks like ProfileMessageReceiveCommand is used for Profiling
messages. Wondering why should that be instantiated when profiling is turned off.
Re: Eclipselink cache coordination throwing NoClassDefFoundError [message #674061 is a reply to message #673812] Wed, 25 May 2011 13:12 Go to previous message
Kamal  is currently offline Kamal
Messages: 9
Registered: May 2011
Junior Member
This issues has been resolved. I moved some of the Message processing logic into our application codebase. So same code but compiled with the application. Still not sure why the class in the jar did not work.
Previous Topic:EmbeddedObjects - fields not populated correctly
Next Topic:How to get DataSource Name from entity manager
Goto Forum:
  


Current Time: Mon Jul 28 22:40:04 EDT 2014

Powered by FUDForum. Page generated in 0.01669 seconds