Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [eclipselink-users] java.lang.NoClassDefFoundError: oracle/spatial/geometry/JGeometry

What we've done in the "short term" is to merge the contents of sdoapi.jar into eclipselink.jar and we no longer get the errors.

 

But I'd really like to figure out how to do this properly as customizing the eclipselink.jar seems like a really BAD idea.

 

Mark

 

Mark Millman | Mizar, LLC | mark.millman@xxxxxxxxx | www.mizar.com | (360) 945-2643

589 S Beach Rd. | Point Roberts, WA 98281

 

The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender.

 

From: Michael O'Brien [mailto:michael.obrien@xxxxxxxxxx]
Sent: Friday, January 30, 2009 11:18 AM
To: mark.millman@xxxxxxxxx; EclipseLink User Discussions
Subject: Re: [eclipselink-users] java.lang.NoClassDefFoundError: oracle/spatial/geometry/JGeometry

 

Mark,
    Hi, I would recommend putting it higher in your classpath tree in the <weblogic_home>/modules directory which is where org.eclipse.persistence_1.0.0.0_1-1-0.jar is and not off your domain\lib dir.
  
    (Spatial - not to be confused with the EclipseLink SDO API that is inside eclipselink.jar)
    http://wiki.eclipse.org/EclipseLink/Development/Testing/Prereq#Classpath_Variables

    thank you
    /michael
   

Mark Millman wrote:

We've developed an application using the Eclipselink spatial extensions developed by Doug Clarke's team and we're in the process of porting our applications to the Production JDeveloper release, WebLogic, and Eclipselink.   We're failing when we add the first

 

[pre]

@StructConverter(name = "JGeometry", converter = "org.eclipse.persistence.platform.database.oracle.converters.JGeometryConverter") to a bean.

[/pre]

 

with the following error message when we create the first EntityManager.

 

[pre]

]] Root cause of ServletException.

java.lang.NoClassDefFoundError: oracle/spatial/geometry/JGeometry

                at org.eclipse.persistence.platform.database.oracle.converters.JGeometryConverter.<clinit>(JGeometryConverter.java:33)

                at java.lang.Class.forName0(Native Method)

                at java.lang.Class.forName(Class.java:247)

                at org.eclipse.persistence.internal.security.PrivilegedAccessHelper.getClassForName(PrivilegedAccessHelper.java:86)

                at org.eclipse.persistence.internal.jpa.metadata.MetadataHelper.getClassForName(MetadataHelper.java:52)

                Truncated. see log file for complete stacktrace

[/pre]

 

sdoapi.jar is in the applications WEB-INF/lib/ folder but I assume that this is the same problem that we had using OC4J that was cured by copying sdoapi.jar into the %JDEV_HOME%\lib\java\shared\oracle.toplink.ojdbc\11.1.1.0.0\ folder.

 

Where is org.eclipse.persistence.platform.database.oracle.converters.JGeometryConverter expecting to find the sdoapi.jar file?

 

Thanks

 

Mark

 

Mark Millman | Mizar, LLC | mark.millman@xxxxxxxxx | www.mizar.com | (360) 945-2643

589 S Beach Rd. | Point Roberts, WA 98281

 

The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender.

 

 


 
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users
  

 


Back to the top