Well, my problem is that i have geoserver installed over a windows 7 x64 system with both java (JRE 6u29) x32 and x64 installed and i can't proyect my layers on the website. The preview on geoserver works fine, but it doesn't work on my site ( it's a localhost server, a testing server)
I have Apache + Openlayer + geoserver.
I have tried Tomcat + Openlayer + geoserver (war) with similar results.
The server status shows Jai libraries marked as false. I say this because i think the problem may be on the jai library. I searched about and found that JAI works only on x32 systems so i don't know how to solve this. I need to work with x64 architectures.
I tried to install Jai over the x32 version of java but my server stop working after that.
My local call to geoserver trough OpenLayer Instance is this:
<script type="text/javascript">
var mapa, capa;
function init(){
mapa = new OpenLayers.Map('mapwms');
capa = new OpenLayers.Layer.WMS(
"Catastro",
"http://localhost:8080/geoserver/Catastro/wms",
{layers: 'Catastro:Predios'}
);
map.addLayers([capa]);
map.zoomToMaxExtent();
map.addControl(new OpenLayers.Control.LayerSwitcher());
}
</script>
So i need to figure out why the geoserver preview is working and not my code.
I'm new on this kind of softwares so i need some help
I put "http://localhost:8080/geoserver/Catastro/wms" because that is how appear on the preview source code.
I'll really appreciate your help please ;)
NOTE: i've changed the question title to a more clearg one ;)
SOLVED: Thanks all for your help. I follow your advice and my server is now working.