[Insight-users] ITKToolkit.jar not loading from a web page

Luis Ibanez luis.ibanez at kitware.com
Wed Dec 28 12:10:56 EST 2005


Hi Hammond,

You may want to look at:

http://www.javaworld.com/javaworld/jw-10-1998/jw-10-apptowin32.html


Do you want the code to be executed in the server ?
or do you want it to be executed in the client ?



Regards,


    Luis



------------------------------------------
Hammond, Christopher R (Research) wrote:
> I am running it from a jsp page.  So I have a class that I created and that I call from the jsp.
> Everything runs on the server under Tomcat.  I can run it from the command line on the server using a command like
> 
> java com.ge.mdtsuite.dicom.ConvertDicomFile image.dcm image.dcm.jpeg
> 
> The classpath is currently
> 
> /home/hammondc/mdtsuite/www/public_html/WEB-INF/lib/mdtsuite.jar:/home/hammondc/mdtsuite/www/public_html/WEBINF/lib/InsightToolkit.jar
> 
> I suspect it has something to do with Tomcat and JNI?
> 
> -----Original Message-----
> From: Luis Ibanez [mailto:luis.ibanez at kitware.com]
> Sent: Wednesday, December 28, 2005 11:50 AM
> To: Hammond, Christopher R (Research)
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] ITKToolkit.jar not loading from a web page
> 
> 
> 
> 
> Hi Hammond,
> 
> 
> Some questions:
> 
> 
> 1) Are you trying to run ITK from an Applet ?
> 
> 2) When you say that libSwigRuntimeJava.so
>     is in your Unix path, do you mean the
>     one in the server ? or the one in the
>     client ?
> 
> 3) What do you have right now in your
>     CLASSPATH ?
> 
> 
> Please let us know
> 
> 
>     Thanks
> 
> 
>        Luis
> 
> 
> --------------------------------------
> Hammond, Christopher R (Research) wrote:
> 
>>Hello,
>>I am trying to use InsightToolkit.jar from a jsp web page in Tomcat.  I am able to run the code from the command line in the ITK build on the same machine.  I have copied the ITKToolkit.jar file to the WEB-INF/lib directory.  When I access the web page I get the error.
>>
>>javax.servlet.ServletException: Can't load library: /InsightToolkit.jar must be in CLASSPATH/libSwigRuntimeJava.so
>>	at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)
>>	at org.apache.jsp.displayDicom_jsp._jspService(displayDicom_jsp.java:63)
>>	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
>>....
>>
>>I don't know what the first line means when it references libSwigRuntimeJava.so.  This file is in my unix path.  Maybe some mod to Tomcat startup?  
>>
>>
>>Thanks
>>
>>		Christopher Hammond
>>		Computational Biology and Biostatistics Lab
>>		GE Global Research Center
>>		Building K1, Room 5B37
>>		1 Research Circle, Schenectady, NY 12301
>>		* Phone: 518.387.6960  Dial Comm:  8*833.6960
>>		* FAX: 518.387.7765
>>
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
>>
>>
> 
> 
> 
> 



More information about the Insight-users mailing list