[Geoserver-users] help, gdal and Tomcat

Hi all,
I have been running Geoserver 1.7.4 install on windows XP with default jetty but needed to move it to Tomcat and having trouble recover functionality of previous configuration. I can’t get the gdal plugin for mrsid to show up in the coverage plugins list.
When I try to view images (previously loaded) .sid images outside the demo I
get a
code “Internal error” java.lang.NullPointException null. message.
Is this error related to the inability to get the gdal mrSid plugin
functional?
Thanks
Chris

Hi,
can you provide us the full stack trace of this error?
Can you also provide us some additional info on your settings? (Are using a specific GEOSERVER_DATA_DIR? Where GDAL dlls have been placed?)

Regards,
Daniele

On Thu, Jun 4, 2009 at 4:19 AM, chris Wild <chrismwild@anonymised.com> wrote:

Hi all,
I have been running Geoserver 1.7.4 install on windows XP with default jetty but needed to move it to Tomcat and having trouble recover functionality of previous configuration. I can’t get the gdal plugin for mrsid to show up in the coverage plugins list.
When I try to view images (previously loaded) .sid images outside the demo I
get a
code “Internal error” java.lang.NullPointException null. message.
Is this error related to the inability to get the gdal mrSid plugin
functional?
Thanks
Chris


OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Eng. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 328 0559267

http://www.geo-solutions.it


Hi Daniele,
Thanks for your help, much apreciated.
Attached is log file for error.

Im confused about your question of the data directory and dlls.
I notice the directory system created for Geoserver by running the .war puts the data path C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data
In the windows install the data path is C:\GeoServer 1.7.4\data_dir.

I followed the instructions in documentation
Geoserver Version 1.7.4 and above comes with GDAL-ImageIO-Extension already available on it.
You have to download and configure the native libraries needed to actually read the coverage data. They are available at the imageio-ext download page.
Download the proper version (OS-specific).
If you are on windows, be sure to deploy the GDAL DLLs on the PATH (As an instance on your JDK/bin folder).
Finally, you need to get the GDAL’s CRS definitions from here. Then, set a GDAL_DATA environment variable to the folder where you have extracted this zip file
I downloaded the imageio-ext-1.0.2-windows32-dlls into C:\Program Files\Java\jdk1.6.0_11\bin and set the GDAL_DATA environment variable.
The GDAL-ImageIO jars are in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\WEB-INF\lib.

Hope this what you need. Thanks again.
Regards
Chris

On Thu, Jun 4, 2009 at 11:10 PM, Daniele Romagnoli <daniele.romagnoli@anonymised.com> wrote:

Hi,
can you provide us the full stack trace of this error?
Can you also provide us some additional info on your settings? (Are using a specific GEOSERVER_DATA_DIR? Where GDAL dlls have been placed?)

Regards,
Daniele

On Thu, Jun 4, 2009 at 4:19 AM, chris Wild <chrismwild@anonymised.com> wrote:

Hi all,
I have been running Geoserver 1.7.4 install on windows XP with default jetty but needed to move it to Tomcat and having trouble recover functionality of previous configuration. I can’t get the gdal plugin for mrsid to show up in the coverage plugins list.
When I try to view images (previously loaded) .sid images outside the demo I
get a
code “Internal error” java.lang.NullPointException null. message.
Is this error related to the inability to get the gdal mrSid plugin
functional?
Thanks
Chris


OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get


Geoserver-users mailing list
Geoserver-users@anonymised.comceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Eng. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 328 0559267

http://www.geo-solutions.it


errornull.txt (153 KB)

Hi Chris,

On Thu, Jun 4, 2009 at 11:05 PM, chris Wild <chrismwild@anonymised.com> wrote:

Hi Daniele,
Thanks for your help, much apreciated.
Attached is log file for error.

Im confused about your question of the data directory and dlls.
I notice the directory system created for Geoserver by running the .war puts the data path C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data
In the windows install the data path is C:\GeoServer 1.7.4\data_dir.

What I mean about the data directory is that in case you have configured a GEOSERVER_DATA_DIR when using geoserver with Jetty, you should set the same dir when deploying it on tomcat to be sure all configurations and data are preserved. Can you give me more details on this?

I followed the instructions in documentation
Geoserver Version 1.7.4 and above comes with GDAL-ImageIO-Extension already available on it.
You have to download and configure the native libraries needed to actually read the coverage data. They are available at the imageio-ext download page.
Download the proper version (OS-specific).
If you are on windows, be sure to deploy the GDAL DLLs on the PATH (As an instance on your JDK/bin folder).
Finally, you need to get the GDAL’s CRS definitions from here. Then, set a GDAL_DATA environment variable to the folder where you have extracted this zip file
I downloaded the imageio-ext-1.0.2-windows32-dlls into C:\Program Files\Java\jdk1.6.0_11\bin and set the GDAL_DATA environment variable.
The GDAL-ImageIO jars are in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\WEB-INF\lib.

That should be ok. Anyway, a little tip: when possible, avoid to use path containing white spaces.
Is your jdk/bin set on the PATH?

Regards,
Daniele

Hope this what you need. Thanks again.
Regards
Chris

On Thu, Jun 4, 2009 at 11:10 PM, Daniele Romagnoli <daniele.romagnoli@anonymised.com> wrote:

Hi,
can you provide us the full stack trace of this error?
Can you also provide us some additional info on your settings? (Are using a specific GEOSERVER_DATA_DIR? Where GDAL dlls have been placed?)

Regards,
Daniele

On Thu, Jun 4, 2009 at 4:19 AM, chris Wild <chrismwild@anonymised.com> wrote:

Hi all,
I have been running Geoserver 1.7.4 install on windows XP with default jetty but needed to move it to Tomcat and having trouble recover functionality of previous configuration. I can’t get the gdal plugin for mrsid to show up in the coverage plugins list.
When I try to view images (previously loaded) .sid images outside the demo I
get a
code “Internal error” java.lang.NullPointException null. message.
Is this error related to the inability to get the gdal mrSid plugin
functional?
Thanks
Chris


OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get


Geoserver-users mailing list
Geoserver-users@anonymised.comceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Eng. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 328 0559267

http://www.geo-solutions.it


Eng. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 328 0559267

http://www.geo-solutions.it