[mapserver-users] catalina.bat on sysdeo

2010-01-11 Thread Flavio Souza
Hello , my name is Flávio
I have a question

I try run the servlet HelloServlet


public class HelloServlet extends HttpServlet {
  public void doGet (HttpServletRequest req,
 HttpServletResponse res)
throws ServletException, IOException
  {
try
{
-   System.loadLibrary(mapscript);
System.err.println(Loaded the Mapscript library);
}
catch (UnsatisfiedLinkError e)
{
e.printStackTrace();
}

  // mapscript
  mapObj map;
  map = new mapObj (third.map);

I get the following error: at System.loadLibrary(mapscript); *

java.lang.UnsatisfiedLinkError:
C:\ms4w\Apache\cgi-bin\mapscript\java\mapscript.dll: Can't find
dependent libraries
java.lang.ClassLoader$NativeLibrary.load(Native Method)
java.lang.ClassLoader.loadLibrary0(Unknown Source)
java.lang.ClassLoader.loadLibrary(Unknown Source)
java.lang.Runtime.loadLibrary0(Unknown Source)
java.lang.System.loadLibrary(Unknown Source)
edu.umn.gis.mapscript.mapscriptJNI.clinit(mapscriptJNI.java:23)
edu.umn.gis.mapscript.mapObj.init(mapObj.java:275)
HelloServlet.doGet(HelloServlet.java:30)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

i am use sysdeo tomcat , and i am not know what i do

thanks in advance
Flávio souza

___

(021)  7629-4249
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] catalina.bat on sysdeo

2010-01-11 Thread Jeff McKenna

Flavio Souza wrote:

Hello , my name is Flávio
I have a question

I try run the servlet HelloServlet


public class HelloServlet extends HttpServlet {
  public void doGet (HttpServletRequest req,
 HttpServletResponse res)
throws ServletException, IOException
  {
try
{
-   System.loadLibrary(mapscript);
System.err.println(Loaded the Mapscript library);
}
catch (UnsatisfiedLinkError e)
{
e.printStackTrace();
}

  // mapscript
  mapObj map;
  map = new mapObj (third.map);

I get the following error: at System.loadLibrary(mapscript); *

java.lang.UnsatisfiedLinkError:
C:\ms4w\Apache\cgi-bin\mapscript\java\mapscript.dll: Can't find
dependent libraries
java.lang.ClassLoader$NativeLibrary.load(Native Method)
java.lang.ClassLoader.loadLibrary0(Unknown Source)
java.lang.ClassLoader.loadLibrary(Unknown Source)
java.lang.Runtime.loadLibrary0(Unknown Source)
java.lang.System.loadLibrary(Unknown Source)
edu.umn.gis.mapscript.mapscriptJNI.clinit(mapscriptJNI.java:23)
edu.umn.gis.mapscript.mapObj.init(mapObj.java:275)
HelloServlet.doGet(HelloServlet.java:30)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

i am use sysdeo tomcat , and i am not know what i do



Hello Flavio,

I don't use Java MapScript, but I do package it for use in MS4W...but I 
don't know if it is used frequently.  You can search the MS4W-users 
mailing list to see Java questions 
(http://old.nabble.com/forum/Search.jtp?forum=16523local=yquery=java) 
but not many questions are asked for Java.  By the way you can also 
search this MapServer-users list here: 
http://n2.nabble.com/MapServer-f1969210.html


If you find a problem with Java mapscript in MS4W, you can report it in 
its issue tracker 
(http://www.maptools.org/ms4w/index.phtml?page=bugs.html) or send a 
message to the MS4W-users list (subscribe at 
http://lists.maptools.org/mailman/listinfo/ms4w-users).


thanks.

-jeff


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] catalina.bat on sysdeo

2010-01-11 Thread Ian Tidy
Hi Flávio

I'm don't know if this is applicable (I don't use Java MapScript), but when I 
was trying to get php_mapscript working with Aptana, I needed to set the paths 
to the supporting DLLs.  Have a look at the C:\MS4W\setenv.bat file and modify 
your system settings to include all the paths and other variables that are set 
in this batch file.  The MapServer.DLL has a few dependencies, and your system 
is not finding them.

Cheers Ian

__
Ian Tidy
GIS Analyst / Developer
Works Asset Department
Napier City Council
Skype ian.tidy.ncc
mailto:i...@napier.govt.nz
http://www.napier.govt.nz | http://maps.napier.govt.nz 


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Flavio Souza
Sent: Tuesday, January 12, 2010 8:18 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] catalina.bat on sysdeo

Hello , my name is Flávio
I have a question

I try run the servlet HelloServlet


public class HelloServlet extends HttpServlet {
  public void doGet (HttpServletRequest req,
 HttpServletResponse res)
throws ServletException, IOException
  {
try
{
-   System.loadLibrary(mapscript);
System.err.println(Loaded the Mapscript library);
}
catch (UnsatisfiedLinkError e)
{
e.printStackTrace();
}

  // mapscript
  mapObj map;
  map = new mapObj (third.map);

I get the following error: at System.loadLibrary(mapscript); *

java.lang.UnsatisfiedLinkError:
C:\ms4w\Apache\cgi-bin\mapscript\java\mapscript.dll: Can't find
dependent libraries
java.lang.ClassLoader$NativeLibrary.load(Native Method)
java.lang.ClassLoader.loadLibrary0(Unknown Source)
java.lang.ClassLoader.loadLibrary(Unknown Source)
java.lang.Runtime.loadLibrary0(Unknown Source)
java.lang.System.loadLibrary(Unknown Source)
edu.umn.gis.mapscript.mapscriptJNI.clinit(mapscriptJNI.java:23)
edu.umn.gis.mapscript.mapObj.init(mapObj.java:275)
HelloServlet.doGet(HelloServlet.java:30)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

i am use sysdeo tomcat , and i am not know what i do

thanks in advance
Flávio souza

___

(021)  7629-4249
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#

##
Attention: 
This e-mail message and accompanying data may contain information that
is confidential and subject to legal privilege. Any information
provided is given in good faith. However unless specifically stated to
the contrary, Napier City Council accepts no liability for the
content of this e-mail or for the consequences of any action taken on
the basis of the information provided, unless that information is
subsequently confirmed in writing. If you are not the intended recipient,
you are notified that any use, dissemination, distribution or copying
of this message or data is prohibited. If you received this e-mail
message in error, please notify us immediately and erase all copies
of this message and attachments. Thank you.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users