Products for USB Sensing and Control
It is currently Sat May 25, 2013 8:21 pm

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Apr 14, 2011 11:44 am 
Offline
Phidgetly

Joined: Mon May 05, 2008 10:02 am
Posts: 46
Hi, I am developing a web where i use a phodget SBC.

When i run the application from within the development environment ( eclipse) everythin works fine, but when I depluy the SW to tomcat on the same machine i get the follownig error:
--------------------------------------------------------------
2011-apr-13 19:34:17 org.apache.catalina.core.StandardWrapperValve invoke
SERIOUS: Servlet.service() for servlet MooseFeeder Servlet threw exception
java.lang.ExceptionInInitializerError: no phidget21 in java.library.path
Could not locate the Phidget C library.
The Windows Phidget21 MSI must be installed

-----------------------------------------------------------------

I have installed the 64 bit MSI. the OS is windows 7 x64.

regards,

/Lars


Top
 Profile  
 
PostPosted: Fri Apr 15, 2011 9:19 am 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2351
Location: Canada
Maybe java servelets are not allowed to load JNI libraries? Or maybe they need to be configured specifically for it somehow?

-Patrick


Top
 Profile Send private message  
 
PostPosted: Mon Aug 06, 2012 3:36 pm 
Offline
Phidgetsian

Joined: Sun Apr 01, 2012 9:39 am
Posts: 7
I've been trying for the past week to get tomcat working with phidgets.

The problem is that tomcat uses a number of different classloaders to isolate each of the web applications.

You're supposed to be able to place the libraries in question in /share/lib, or /lib, but I'm either getting the error above, or the classloader can't find the phidgets jar.

I've tried running the phidgets via a web service, but it seems that the phidgets21.jar still tries to load the jni libraries, which fails.

I've admitted defeat I'm afraid. I'm going to run a standalone phidgets application, and then have the web application poll a shared database. A little inelegant, but it's more likely to work!


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group