Re: [Geoserver-users] Native JAI not working

2012-07-05 Thread Benjamin Mearns
Glad to hear it, Michael!

I don't remember needing to set any parameters via Tomcat manager or in any
files ... just directly in my Windows environment variables:

These are the three related to Java or Geoserver that I had set (included
the values just for example).  BTW, I didn't see anything on PATH related
to either.

JAVA_HOME = C:\Program Files\Java\jdk1.7.0_04
GEOSERVER_DATA_DIR = C:\Program Files (x86)\geoserver-2.2\data_dir
GEOSERVER_HOME = C:\Program Files (x86)\geoserver-2.2

Ben


On Tue, Jul 3, 2012 at 3:10 PM, Michael Smith  wrote:

> Ben and Andrea,
> I finally got it to work today. I ended up adding the JRE home, bin, and
> lib\ext locations to my PATH statement, probably overkill but it was late
> enough I just wanted to put all the key directories in the PATH.  What
> really seemed to be the key, though, was entering the locations of the
> three native JAI JAR files to the 'Java Classpath' line (Java tab) in the
> Tomcat properties manager.
>
> Ben, I am using Windows Server 2003 (32 bit) and Tomcat 6.0.35 so I am not
> sure if it is directly applicable to your setup, but wanted to pass on what
> worked for me. Thank you for offering to help!
>
> Andrea, thank you for the troubleshooting help. Once I get my development
> server back I will redo the process to see the minimal steps required to
> get GeoServer on Windows 2003 to recognize the native JAI and will pass
> that on if you are interested. One might only have to update the classpath
> in the Tomcat properties manager, and nothing else, but I do not know as I
> did not go back and try that. Since the setup I need right now works, I am
> going to leave it alone.
>
>
> - Michael
>
>
>


-- 
Ben Mearns
Lead Geospatial Information Consultant
IT-Client Support & Services
University of Delaware
mea...@udel.edu : 302.831.1978
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Native JAI not working

2012-07-03 Thread Michael Smith
Ben and Andrea,
I finally got it to work today. I ended up adding the JRE home, bin, and 
lib\ext locations to my PATH statement, probably overkill but it was late 
enough I just wanted to put all the key directories in the PATH.  What really 
seemed to be the key, though, was entering the locations of the three native 
JAI JAR files to the 'Java Classpath' line (Java tab) in the Tomcat properties 
manager.

Ben, I am using Windows Server 2003 (32 bit) and Tomcat 6.0.35 so I am not sure 
if it is directly applicable to your setup, but wanted to pass on what worked 
for me. Thank you for offering to help!

Andrea, thank you for the troubleshooting help. Once I get my development 
server back I will redo the process to see the minimal steps required to get 
GeoServer on Windows 2003 to recognize the native JAI and will pass that on if 
you are interested. One might only have to update the classpath in the Tomcat 
properties manager, and nothing else, but I do not know as I did not go back 
and try that. Since the setup I need right now works, I am going to leave it 
alone.


- Michael



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Native JAI not working

2012-07-03 Thread Benjamin Mearns
Michael,

I'm hoping to reinstall on a VM and document my install soon.

Ben

On Monday, July 2, 2012, Michael Smith  wrote:
> The native JAI Windows installers install the files to
JAVA_HOME\jre\lib\ext
>
> To try and get the Windows installers output recognized I tried the
following:
> 1- set symlinks to the files installed in JAVA_HOME\jre\lib\ext in
JAVA_HOME\jre\lib\i386
> 2 - set symlinks to the files installed in JAVA_HOME\jre\lib\ext in
tomcat\webapps\geoserver\WEB-INF\lib (thought I would try this again and
leave the 1.1.3 off the end of the file names to see if the name was what
caused the server status to read false for native JAI)
>
> Neither option worked. I also added the JRE location within the JDK to
the system PATH statement.
>
> When GeoServer is deployed as a WAR through Apache Tomcat it is not
installed as its own service, so there is no wrapper.conf generated that
can be edited. To make sure it was not in another location I did a search
on the entire drive.
>
>
> - Michael
>
>
>
>
>
 Andrea Aime  6/29/2012 12:11 PM >>>
> Hmm.. native JAI should be installed in $JAVA_HOME/jre/lib/i386 on such
> platform. Aren't you using the windows installers? They
> do place it in the right position.
> Hum... and then there is the service wrapper, maybe that one needs some
> configuration as well, see here:
>
http://geo-solutions.blogspot.it/2010/02/fix-gdal-extension-not-working-with.html
>
> Cheers
> Andrea
>
>
> --
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
>
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
>
> phone: +39 0584 962313
> fax:  +39 0584 962313
> mob:+39 339 8844549
>
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
>
>
>
--
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

-- 
Ben Mearns
Lead Geospatial Information Consultant
IT-Client Support & Services
University of Delaware
mea...@udel.edu : 302.831.1978
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Native JAI not working

2012-07-02 Thread Michael Smith
The native JAI Windows installers install the files to JAVA_HOME\jre\lib\ext

To try and get the Windows installers output recognized I tried the following:
1- set symlinks to the files installed in JAVA_HOME\jre\lib\ext in 
JAVA_HOME\jre\lib\i386
2 - set symlinks to the files installed in JAVA_HOME\jre\lib\ext in 
tomcat\webapps\geoserver\WEB-INF\lib (thought I would try this again and leave 
the 1.1.3 off the end of the file names to see if the name was what caused the 
server status to read false for native JAI)

Neither option worked. I also added the JRE location within the JDK to the 
system PATH statement.

When GeoServer is deployed as a WAR through Apache Tomcat it is not installed 
as its own service, so there is no wrapper.conf generated that can be edited. 
To make sure it was not in another location I did a search on the entire drive.


- Michael





>>> Andrea Aime  6/29/2012 12:11 PM >>>
Hmm.. native JAI should be installed in $JAVA_HOME/jre/lib/i386 on such
platform. Aren't you using the windows installers? They
do place it in the right position.
Hum... and then there is the service wrapper, maybe that one needs some
configuration as well, see here:
http://geo-solutions.blogspot.it/2010/02/fix-gdal-extension-not-working-with.html
 

Cheers
Andrea


-- 
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:  +39 0584 962313
mob:+39 339 8844549

http://www.geo-solutions.it 
http://geo-solutions.blogspot.com/ 
http://www.youtube.com/user/GeoSolutionsIT 
http://www.linkedin.com/in/andreaaime 
http://twitter.com/geowolf


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Native JAI not working

2012-06-29 Thread Benjamin Mearns
Michael,

I have the native JAI functioning on Windows Server 2008 R2 Standard SP1
64-bit but with all other components of the stack being 32-bit ... these
are the other components:

-apache-tomcat-7.0.27.exe (32-bit)
-jai_imageio-1_1 (32-bit)
-jai-1_1_3 (32-bit)
-jre-7u4 (32-bit)

and geoserver-2.2-beta2-war

It took me awhile (actually gave up for about a year and tried again) to
get it working :-p  If you need help obtaining any of the components, let
me know.

Ben

-- 
Ben Mearns
Lead Geospatial Information Consultant
IT-Client Support & Services
University of Delaware
mea...@udel.edu : 302.831.1978
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Native JAI not working

2012-06-29 Thread Andrea Aime
On Fri, Jun 29, 2012 at 10:05 PM, Benjamin Mearns  wrote:

> Michael,
>
> I have the native JAI functioning on Windows Server 2008 R2 Standard SP1
> 64-bit but with all other components of the stack being 32-bit ... these
> are the other components:
>
> -apache-tomcat-7.0.27.exe (32-bit)
> -jai_imageio-1_1 (32-bit)
> -jai-1_1_3 (32-bit)
> -jre-7u4 (32-bit)
>
> and geoserver-2.2-beta2-war
>
> It took me awhile (actually gave up for about a year and tried again) to
> get it working :-p  If you need help obtaining any of the components, let
> me know.
>

It would be great if someone could put togheter some documentation,
"installing and optimizing GeoServer on Windows 200x"

Cheers
Andrea

-- 
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:  +39 0584 962313
mob:+39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Native JAI not working

2012-06-29 Thread Andrea Aime
On Fri, Jun 29, 2012 at 7:47 PM, Michael Smith  wrote:

> Andrea,
> Yes, that would have been helpful. I am using the 32 bit version of
> Windows 2003.
>
> I installed Java and the native JAI prior to deploying the GeoServer WAR.
> The location of the JDK bin directory is at the beginning of the PATH
> environment variable so it is read first. After I installed Java and set
> the JAVA_HOME and %JAVA_HOME%\bin environment variables I rebooted the
> server so the proper Java resource was registered with the system. After
> installing the native JAI I rebooted again to refresh the system. After
> deploying the WAR I logged onto GeoServer to check that native JAI was
> reading false (as it should) then stopped the GeoServer service in Tomcat,
> deleted the three GeoServer JAI jars and started the service again. Native
> JAI in Server Status still read false, same after restarting the Tomcat
> service and rebooting the server again.
>

Hmm.. native JAI should be installed in $JAVA_HOME/jre/lib/i386 on such
platform. Aren't you using the windows installers? They
do place it in the right position.
Hum... and then there is the service wrapper, maybe that one needs some
configuration as well, see here:
http://geo-solutions.blogspot.it/2010/02/fix-gdal-extension-not-working-with.html

Cheers
Andrea


-- 
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:  +39 0584 962313
mob:+39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Native JAI not working

2012-06-29 Thread Michael Smith
Andrea,
Yes, that would have been helpful. I am using the 32 bit version of Windows 
2003.

I installed Java and the native JAI prior to deploying the GeoServer WAR. The 
location of the JDK bin directory is at the beginning of the PATH environment 
variable so it is read first. After I installed Java and set the JAVA_HOME and 
%JAVA_HOME%\bin environment variables I rebooted the server so the proper Java 
resource was registered with the system. After installing the native JAI I 
rebooted again to refresh the system. After deploying the WAR I logged onto 
GeoServer to check that native JAI was reading false (as it should) then 
stopped the GeoServer service in Tomcat, deleted the three GeoServer JAI jars 
and started the service again. Native JAI in Server Status still read false, 
same after restarting the Tomcat service and rebooting the server again.

I had this problem a couple months ago and initially thought I had solved it by 
placing symlinks to the native JAI. It turns out that did not actually solve 
the issue, but since it was a test install I did not need to solve that 
particular issue at the time.


- Michael



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Native JAI not working

2012-06-29 Thread Andrea Aime
On Fri, Jun 29, 2012 at 1:29 AM, Michael Smith  wrote:

> After following the insructions provided at
> http://docs.geoserver.org/stable/en/user/production/java.html#production-javaI
>  am unable to get GeoServer to start after removing the three jai*.jar
> files from geoserver\WEB-INF on Windows 2003 Server. If the three jai*.jar
> files are in geoserver\WEB-INF then GeoServer does not recognize the native
> libraries. Has anyone using Windows 2003 gotten this to work?
>

Windows 2003... 64 or 32 bits? Native JAI is available only for 32 bits on
Windows (on Linux you also get 64 bit support)

Cheers
Andrea

-- 
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:  +39 0584 962313
mob:+39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Native JAI not working

2012-06-28 Thread Michael Smith
After following the insructions provided at 
http://docs.geoserver.org/stable/en/user/production/java.html#production-java I 
am unable to get GeoServer to start after removing the three jai*.jar files 
from geoserver\WEB-INF on Windows 2003 Server. If the three jai*.jar files are 
in geoserver\WEB-INF then GeoServer does not recognize the native libraries. 
Has anyone using Windows 2003 gotten this to work?

I am using:
Tomcat 6.0.35
IIS 6
GeoServer 2.1.4 (deployed as WAR in Tomcat)
Java 7 SDK


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users