Open barnabe opened 13 years ago
Try this:
1) Put the library (libacid-maps-jni.dylib) in your Java library path (e.g.: /Library/Java/Extensions)
2) Restart Geoserver
Thanks.
unfortunately i now get this error message: "java.lang.UnsatisfiedLinkError: /usr/lib/java/libacid-maps-jni.dylib: no suitable image found. Did find: /usr/lib/java/libacid-maps-jni.dylib: mach-o, but wrong architecture /usr/lib/java/libacid-maps-jni.dylib: no suitable image found. Did find: /usr/lib/java/libacid-maps-jni.dylib: mach-o, but wrong architecture"
Are there different OSX versions of the library? I am confused about why the architecture does not match.
I got the same error, then I restarted Geoserver and everything goes well.
I'm using the same versions: Geoserver 2.1.1 and OSX 10.7
There's just one difference, I'm using Geoserver Standalone (http://downloads.sourceforge.net/geoserver/geoserver-2.1.1-bin.zip). Anyway, I think this shouldn't be related to your problem.
well no luck... even after (several) restarts. I am back to "java.lang.NoClassDefFoundError: Could not initialize class com.xoomcode.acidmaps.adapter.JCAdapter Could not initialize class com.xoomcode.acidmaps.adapter.JCAdapter"
i need to double check what my java library path actually is...
having tried to save the JNI file in /system/library/java/extension, i now get this error "java.lang.UnsatisfiedLinkError: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libacid-maps-jni.dylib: no suitable image found. Did find: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libacid-maps-jni.dylib: mach-o, but wrong architecture /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libacid-maps-jni.dylib: no suitable image found. Did find: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libacid-maps-jni.dylib: mach-o, but wrong architecture"
i must be dumb...
Thank you maurimiranda for helping me identify the problem. for the record we concluded that acid maps seems not to work well with the app version of Geoserver on OS X. I installed the standalone version and got it to work immediately through an http request such as
however, i am now struggling to make acidmaps perform with open layers. here is my code:
test Acid Maps
I see two main errors:
<script src="http://www.openlayers.org/dev/OpenLayers.js"></script>
http://ams.xoomcode.com/geoserver/wms
http://localhost:8080/geoserver/wms
I wrote an example that could help you.
Check it out at: https://github.com/XoomCode/AcidMaps/tree/master/examples/isolines
I sent an email to the Geoserver guys to ask them about the problem we are getting with the app version.
I'll let you know as soon as I get an answer.
Thank you for this. That was very helpful. Got it to work now but still having problems with the tiled version of the service. Any known issues with this?
Yes, it seems to crash because of wrong memory access. That only occurs in OSX so I guess it's something related to the way we are allocating the memory. We use AcidMaps only in Linux servers so we haven't test it good enough in the other platforms. I'll check the code as soon as I can.
Hello,
I'm using Windows Server 2008 r2, GeoServer Version 2.1.3.
I'm facing the same issue:
"
I'm using 64 bit version of Java, and Windows Server, the JNI adapter is in the System32 folder.
Is Windows Server version also facing wrong memory access issue?
Hi I can't wait to use this plugin but I am running into this issue.
I try to access the service from open layers using the example provided (using sf:bugsites) I still get this error: "Could not get a ServiceInfo for service ams thus could not check if the service is enabled"
Any suggestion would be greatly appreciated.
Thanks in advance B