[JAVA-1956] classnot found exception Created: 09/Sep/15  Updated: 11/Sep/19  Resolved: 08/Oct/15

Status: Closed
Project: Java Driver
Component/s: Authentication
Affects Version/s: 3.0.3
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: MarioRasa Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

test



 Description   

I get three different type of classnot found exception.

mongodb server version : 3.0.6
shell : 3.0.6

first exception testing with ,Mongodb-driver-core-3.0.3.

com.unitechsys.iitap.component.capturemgr.export.error.ErrorCAMProcessing {errorDelegate=[[EXCEPTION: com.unitechsys.iitap.component.capturemgr.export.error.ErrorCAMProcessing, MESSAGE: #UCAM002: A capture processing error occurred for source  .]], parameters=[, ], cause=com.unitechsys.component.exception.ErrorCMFChannelOpen {errorDelegate=[[EXCEPTION: com.unitechsys.component.exception.ErrorCMFChannelOpen, MESSAGE: #UCMF026: The system failed to open the source channel: .], [EXCEPTION: com.unitechsys.component.exception.ErrorCMFChannelOpen, MESSAGE: #UCMF026: The system failed to open the source channel: .]], parameters=[], cause=java.lang.ClassNotFoundException: mongodb.jdbc.MongoDriver from BaseClassLoader@79acd496{vfs:///D:/IGX_TRUNK/srv/Infogix/jboss/server/igx/deploy/IA1.ear}}}

second exception testing with ,Mongodb-driver-core-3.0.3.
Mongodb-driver-core-3.0.3
Mongodb-driver-3.0.1
Bson-3.0.1

com.unitechsys.iitap.component.capturemgr.export.error.ErrorCAMProcessing {errorDelegate=[[EXCEPTION: com.unitechsys.iitap.component.capturemgr.export.error.ErrorCAMProcessing, MESSAGE: #UCAM002: A capture processing error occurred for source  .]], parameters=[, ], cause=com.unitechsys.component.exception.ErrorCMFChannelOpen {errorDelegate=[[EXCEPTION: com.unitechsys.component.exception.ErrorCMFChannelOpen, MESSAGE: #UCMF026: The system failed to open the source channel: .], [EXCEPTION: com.unitechsys.component.exception.ErrorCMFChannelOpen, MESSAGE: #UCMF026: The system failed to open the source channel: .]], parameters=[], cause=java.lang.ClassNotFoundException: mongodb.jdbc.MongoDriver from BaseClassLoader@2cf4dea2{vfs:///D:/IGX_TRUNK/srv/Infogix/jboss/server/igx/deploy/IA1.ear}}}

third exception:
Mongodb-driver-3.0.1
Bson-3.0.1
Mongodb-driver-core-3.0.1

com.unitechsys.iitap.component.capturemgr.export.error.ErrorCAMProcessing {errorDelegate=[[EXCEPTION: com.unitechsys.iitap.component.capturemgr.export.error.ErrorCAMProcessing, MESSAGE: #UCAM002: A capture processing error occurred for source  .]], parameters=[, ], cause=com.unitechsys.component.exception.ErrorCMFChannelOpen {errorDelegate=[[EXCEPTION: com.unitechsys.component.exception.ErrorCMFChannelOpen, MESSAGE: #UCMF026: The system failed to open the source channel: .], [EXCEPTION: com.unitechsys.component.exception.ErrorCMFChannelOpen, MESSAGE: #UCMF026: The system failed to open the source channel: .]], parameters=[], cause=java.lang.ClassNotFoundException: mongodb.jdbc.MongoDriver from BaseClassLoader@17b1f4e5{vfs:///D:/IGX_TRUNK/srv/Infogix/jboss/server/igx/deploy/IA1.ear}}}

fourth exception :

UnityJDBC jar file.
can you please help using the correct jar file.
my goal isto connect with local java application via jdbc and test jdbc connectivity.



 Comments   
Comment by Ross Lawley [ 10/Sep/15 ]

Hi mario196,

I noticed you are trying different minor versions of the driver, as they are released together and contain bug fixes please keep the versions aligned eg:

  • Mongodb-driver-core-3.0.3
  • Mongodb-driver-3.0.3
  • Bson-3.0.3

We also provide an uber jar which contains all these packages together. This may be preferable as it will stop the mis-alignment of minor versions: mongo-java-driver-3.0.3.

I can see from your code that there is the following error:

java.lang.ClassNotFoundException: mongodb.jdbc.MongoDriver 

We don't provide a mongodb.jdbc.MongoDriver class, you will need to ensure you got that class on the class path and that it is compatible with the 3.0.x series of the MongoDB Java Driver.

Ross

Generated at Thu Feb 08 08:55:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.