I tried
that ... didn't work.
I put
sdoapi.jar in both Middleware/jdeveloper/modules/
and Middleware/jdeveloper/modules/oracle.toplink_11.1.1
and I
setup my environment
variables so that SPATIAL_LIB =
c:/oracle/Middleware/jdeveloper/modules/sdoapi.jar
and I
get
exactly the same
error.
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.
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