JDeveloper - MapViewer - Svg
Hi,
I'm using mapviewer and svg samples. But I can't work any svg with Embedded OC4J Server. When I work svgmap.jsp in my project, I get a empty map. But if I deploy this project to Standalone OC4J then svg is working. How can I solve this prolem? İs there any idea?
Sorry for my english.
Thanks
Oğuzhan
Hi,
I'm using mapviewer and svg samples. But I can't work any svg with Embedded OC4J Server. When I work svgmap.jsp in my project, I get a empty map. But if I deploy this project to Standalone OC4J then svg is working. How can I solve this prolem? İs there any idea?
Sorry for my english.
Thanks
Oğuzhan
Similar Messages
-
Mapviewer SVG and Content-Type http header
Hello,
We have a Mapviewer installation that seems to be serving up the wrong Content-Type header for the SVG charts. The map is being created correctly and we can get GIF's and such.
The wrong Content-Type causes the Adobe SVG viewer to never render the SVG map successfully. When I save the SVG file to the desktop it opens perfectly or if I statically link it in to the web page from the sever it also opens perfectly. Is there some configuration that is missing somewhere on the mapviewer or the application server to correctly set the Content-Type ?
Notice the content type of the failing map compared to a working SVG chart we have.
HTTP/1.x 200 OK
Content-Length: 41979
Cache-Control: private
Content-Type: application/octet-streamConnection: Keep-Alive
Keep-Alive: timeout=5, max=999
Server: Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server OracleAS-Web-Cache-10g/10.1.2.0.0 (N;ecid=92576875655,0)
Last-Modified: Wed, 16 Aug 2006 20:31:58 GMT
Date: Wed, 16 Aug 2006 20:32:01 GMT
Accept-Ranges: bytes
instead of a working SVG graphic
HTTP/1.x 200 OK
Date: Wed, 16 Aug 2006 20:35:32 GMT
Server: Oracle9iAS/9.0.2 Oracle HTTP Server Oracle9iAS-Web-Cache/9.0.3
Content-Length: 3831
Content-Type: image/svg+xml; charset=utf-8Connection: Keep-Alive
Keep-Alive: timeout=5, max=999
This seems to be the last sticking point in successfully rolling out this mapviewer implementation. Any help would be greatly appreciated.
Thanks, in advance.
Thanks,
CarlHello,
Thanks for the reply I've tried both SVG_URL and SVGZ_URL and used a http header sniffer to watch what's getting served up and the urls associated with MapViewer SVG are definitely getting served up with that wrong Content-Type.
Our front end is an Oracle APEX environment were we use APEX's SVG charting on the same page and they are getting served up with the correct Content-Type and display correctly, which is nice cause I can watch the header difference's side by side, and we know the mapping itself is working right because we can get image files back
Is there a sever config file or something like the httpd.conf for apache that needs to be set?
Thanks for any help or insight
Carl -
Mapviewer SVG and Theme Selection
Im trying to highlight a line by clicking on the line. Im using the svg feature. Here is the xml request im using:
<?xml version="1.0" standalone="yes"?>
<map_request
title="Oracle LBS MAP"
basemap="demo_map"
datasource = "mvdemo"
width="640"
height="480"
bgcolor="#a6cae0"
antialiase="false"
format="SVG_STREAM">
<themes>
<theme name="theme1" selectable_in_svg="true" >
<jdbc_query
spatial_column="geom" jdbc_srid="8265"
render_style="transparent_color"
label_column="destination" label_style="t.street name"
datasource="mvdemo" key_column="origin">SELECT geom, origin, destination FROM flight_geometry WHERE origin ='PHX' and destination ='SDF'
</jdbc_query>
</theme>
</themes>
</map request>
The map is generated a line is displayed however, when I click on the line nothing happens. I set the key column and the selectable in svg attribute. Now when I look at the map, save the svg source to a different file and manually manipulate the featureselect variable in the svg javascript code, view the svg map and click on it it turns red. What is the correlation between the featureselect variable and mapviewer??? Am I not setting a parameter somewhere?? Any help would be appreciated.
Thanks,
MoI do not think the feature selection function is available on line features; it is only supported for Area and Point features. we will support linear feature selection/tool-tip functions in the next release.
A possible workaround is to identify a mid-point on the line feature, and place a marker on that mid-point feature. you can then select that point feature and display any information that might be associated with the underlying line. -
Mapviewer svg jsp - example for enableFeatureSelect ?
hi,
can anybody give me a simple example for enableFeatureSelect/getSelectedIdList (or even for enablePolygonSelect to get some highway-id's)? in the demo mapinit.jsp with svg you can zoomin and recenter.
i want to create a new radio button for clicking on the svg and not to zoomin or recenter, but for selecting and highlighting a county.
how can i select a county so it changes its color and i can get the id for this county?
greetings
thomasThere is a SVG Territory Manager Demo that comes with MapViewer that can be downloaded from OTN. It alows you to select a county on the map and it uses the enableFeatureSelect and getSelectedIdList functioins. If you have not downloaded the latest 10.1.2 mapviewer and the demo data, you can download it from here, http://www.oracle.com/technology/software/products/mapviewer/index.html.
Basically you need to do the following things to make it work.
1. In the XML base map definition, set "selectable_in_svg" attribute and onclick function for the theme on which you want feature selection to be enabled . Here is an example,
<?xml version="1.0" standalone="yes"?>
<map_definition>
<theme name="STATES" min_scale="50.0" max_scale="4.0"/>
<theme name="COUNTIES" min_scale="4.0" max_scale="0.0" min_dist="0.5" selectable_in_svg="true" onclick="selectCounty"/>
<theme name="STATES_LINE" min_scale="4.0" max_scale="0.0"/>
<theme name="HIGHWAYS" min_dist="1.0"/>
<theme name="CITIES" min_scale="1.2" max_scale="0.0" />
</map_definition>
2. Define the onclick javascript function in your jsp/html page where the svg map is embedded. For example, if you have created a base map using the sample XML shown above, you should define a javacript function called "selectCounty" to handle the mouse click event when the feature is clicked. Inside this javascript function, you can call getSelectedIdList to get the id of the clicked feature.
3. In your jsp/html page, call javascript function enableFeatureSelect to enable single feature selection. -
Get coordinates from mapviewer svg output (JavaScript)
hello,
i would like to read the coordinates of the mousepointer moving over the svg output of the MapViewer using java script in datas coordinate systems (not screen!).
the svg is included by the object-tag of html (like an image).
has somebody done something like this, i´m new to JavaScript an don´t want to reinvent the wheel.
Maybe there is an easy way to solve this, but i don´t know.
thanksHi,
We strongly recommend that you look into using Oracle Maps when developing mapviewer applications. It has an open and well documented JavaScript API, unlike the SVG support which is currently on the back burner.
If you have to use SVG, there is a chapter in the MapViewer User's Guide that documents some of the javaScript functions you can use.
thanks
lj -
Hello everybody,
I want to create a jsp page that will send a request in MapViewer and it fails in the next line of code :
<%@ page import="oracle.lbs.mapclient.MapViewer" %>
I know that because every tag library which is related with MapViewer fails.
Where is the MapViewer LBS library located?
Thanks in advance.When you copied the MapViewer extension into JDev (mvpalette.jar) it sould have also created a library with the classpath set to mapclient.jar. If it did not, you can do it easily yourself:
1) Create a new library and call it something like "Oracle MapViewer"
2) Add the path to mvclient.jar (from your MapViewer deployment) to the classpath
3) Under Tools>Manage Libraries edit the MapViewer JSP Tag Library and add your new library to it (under "Libraries")
That should fix this issue.
-Justin -
Unable to get the SVG demos to work in mapinit.jsp
Hi forum
I've played a bit around with the Mapviewer demos for Oracle Maps. I have loaded the demo data in a database and done the setup as described in the setup. Everything works - except all demos related to SVG, like mapinit.jsp in this case. I've tried both version 10.1.3.1 and 10.1.3.3. I've tried this in misc. browsers, and here's what happens in each
IE7 + Adobe SVG Viewer: The SVG window is blank
Firefox 3: For Mapviewer 10.1.3.1, displays a "Malformed XML document error". For Mapviewer 10.1.3.3, wants to install an "Unknown plugin" which it then can't find, and doesn't display anything.
Google Chrome: Outputs an XML document as text in the SVG window
I have tried adding an entry to mime-types like "image/svg+xml svgz", but that didn't seem to change anything. No browser wants to display the SVG correctly.
Choosing "Regular image" for the same demo data works fine.
How do you get this to work? What am I missing? The appserver runs 10.1.3.4.
Thanks in advance,
JacobHi Jacob,
Since Adobe dropped support of their SVG viewer, MapViewer SVG support has not been updated with the new features added. Therefore, do not expect to get in SVG, what you currently get with other formats. The minimum support initially added for SVG, is still there. We will check the demos.
Different browsers provider different levels (some rather incomplete) of support for SVG, and scripting with SVG is also done differently on different browser/platform, so this makes difficult to keep SVG support updated. You experienced these differences in your tests with different browsers.
Joao -
Mapviewer demo mapinit.jsp with svg doesn't work with jdeveloper
hi ng,
i tried the source code for the svg-sample in jdeveloper and first of all jdeveloper dislikes the line "<embed id="map" src="<%= mv.getGeneratedMapImageURL() %>...". after "embed" a green line is to be seen.
When i start the sample the map looks okay, but when i want to hide a theme (or zoom), i get the internet_explorer-message "error on the page".
"themeVisibleArray[idx]='false';" goes right but the next line occurs the error: "map.window.hideTheme(theme) ;"
map is not known at this place, it seems to me.
who can help (please)?
greetings
thomashi,
i still have a problem. i can work on an existing svg-map but not on a just generated svg-map. zoomin2 works.
here's the code:
<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/spatial/mvtaglib.tld" prefix="mapviewer"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.net.*"%>
<%@ page import="java.util.*"%>
<%@ page import="oracle.lbs.mapclient.*"%>
<%@ page import="oracle.lbs.mapcommon.MapResponse"%>
<%@ page import="java.awt.Dimension"%>
<%
String sizeStr = request.getParameter("initsize") ;
String scaleStr = request.getParameter("scale") ;
String cxStr = request.getParameter("centerX") ;
String cyStr = request.getParameter("centerY") ;
String baseMap = request.getParameter("basemap");
String _width = request.getParameter("width") ;
String _height = request.getParameter("height") ;
String _infoon = request.getParameter("infoon") ;
String action = request.getParameter("action");
boolean infoon = false;
boolean recenter = false ;
boolean zoomin = false ;
boolean zoomin2 = false ;
int width = 600 ;
int height = 400 ;
if(_width!=null && _height!=null)
try
width = Integer.parseInt(_width) ;
catch(Exception e){}
try
height = Integer.parseInt(_height) ;
catch(Exception e){}
if(baseMap==null) baseMap = "demo_map";
double size = 0.2 ;
try
size = Double.parseDouble(sizeStr) ;
catch(Exception e){}
double scale = 2 ;
try
scale = Double.parseDouble(scaleStr) ;
catch(Exception e){}
double cx = -122.2615 ;
try
cx = Double.parseDouble(cxStr) ;
catch(Exception e){}
double cy = 37.5266 ;
try
cy = Double.parseDouble(cyStr) ;
catch(Exception e){}
String dataSrc = request.getParameter("datasrc");
boolean newSession = false;
// retrieve mapviewer client handle from session
MapViewer mv = (MapViewer) session.getAttribute("mvhandle");
boolean sessionExpired = false ;
if(mv==null || request.getParameter("initflag")!=null)
if(request.getParameter("initflag")==null)
sessionExpired = true ;
else
//initializes MapViewer bean instance
newSession = true;
String mvURL = request.getParameter("mvurl");
// create a new mapviewer client handle
mv = new MapViewer(mvURL);
mv.setDataSourceName(dataSrc);
mv.setImageFormat(MapResponse.FORMAT_SVGZ_URL);
/* the javascript function svgClicked will be called when the svg map
is clicked. svgClicked is defined in this page, it recenters or zoomins
the map. */
mv.setSVGOnClick("svgClicked") ;
/* initial themes (from an existing base map) */
mv.addThemesFromBaseMap(baseMap);
mv.setSVGZoomLevels(3);
/* disable the builtin navigation bar */
mv.setShowSVGNavBar(false) ;
mv.setMapTitle(" MAP TITLE ");
mv.setMapLegend(
"<legend bgstyle=\"fill:#ffffff;stroke:#ff0000\" profile=\"MEDIUM\" position=\"SOUTH_EAST\">"+
" <column>"+
" <entry text=\"Map Legend\" is_title=\"true\" />"+
" <entry style=\"M.CITY HALL 3\" text=\"cities\" />"+
" <entry style=\"M.CITY HALL 4\" text=\"big cities\" />"+
" <entry style=\"L.PH\" text=\"interstate highway\" />"+
" </column></legend>");
mv.setDeviceSize(new Dimension(width, height));
session.setAttribute("mvhandle", mv); // keep client handle in the session
String themes[] = new String[0] ;
if(!sessionExpired)
themes = mv.getThemeNames() ;
mv.setCenter(cx, cy);
mv.setSize(size);
mv.setSVGZoomRatio(scale) ;
mv.setSVGShowInfo(infoon);
String[] checkedThemes = request.getParameterValues("_mthemev_");
if(checkedThemes!=null && checkedThemes.length>0)
Hashtable checked = new Hashtable(30) ;
for(int i=0; i<checkedThemes.length; i++)
checked.put(checkedThemes, checkedThemes[i]) ;
for(int i=0; i<themes.length; i++)
if(checked.get(themes[i])!=null)
mv.setThemeVisibleInSVG(themes[i], true);
else
mv.setThemeVisibleInSVG(themes[i], false) ;
mv.run() ;
%>
<html>
<head>
<title>untitled</title>
<%-- <embed id="map" name="map" src="<%= mv.getGeneratedMapImageURL() %>" width="<%= width %>" height="<%= height %>"></embed> --%>
<%-- src="images/omsmap3_56.svgz" --%>
<%-- src="<%= mv.getGeneratedMapImageURL() %>" --%>
<%-- <object name="map" data="images/test_svg.svgz" type="image/svg+xml" width="800" height="600" standby="Warte noch ein Weilchen..."> --%>
<%-- </object> --%>
<script type="text/javascript">
var mapSize = <%= size %> ;
var scale = <%= scale %> ;
var width=<%= width%> ;
var height=<%= height%> ;
var rcx = <%= cx %> ;
var rcy = <%= cy %> ;
var cx = <%= width/2%> ;
var cy = <%= height/2%> ;
var disabled = true ;
// var themeVisibleArray = ...
var info = <%= infoon %> ;
var legend = false ;
var clickZoomin = <%= zoomin %> ;
var clickRecenter = <%= recenter %> ;
function zoomin()
map.window.setZoomRatio(1.1);
function zoomin2()
map2.window.setZoomRatio(1.1);
</script>
</head>
<body>
<P>
<form method="GET" action="test2.jsp">
<P>Name:
<input type="text" size="60" name="name" value="<%= mv.getGeneratedMapImageURL() %>"/>
<input type="text" size="60" name="datasrc" value="<%= request.getParameter("datasrc") %>"/>
<input type="text" size="60" name="basemap" value="<%= request.getParameter("basemap") %>"/>
<input type="text" size="60" name="centerX" value="<%= request.getParameter("centerX") %>"/>
<input type="text" size="60" name="centerY" value="<%= request.getParameter("centerY") %>"/>
<input type="text" size="60" name="initsize" value="<%= request.getParameter("initsize") %>"/>
<input type="text" size="60" name="width" value="<%= request.getParameter("width") %>"/>
<input type="text" size="60" name="height" value="<%= request.getParameter("height") %>"/>
<input type="text" size="60" name="type" value="<%= request.getParameter("type") %>"/>
</P>
<P>
<input type="SUBMIT" value="Submit"/>
</P>
</form>
</P>
<table>
<tr>
<td colspan="2">
<I>URL</I>[<B><%=mv.getGeneratedMapImageURL()%></B>]
</td>
</tr>
</table>
<%-- images/test_svg.svgz --%>
<embed src="<%= mv.getGeneratedMapImageURL() %>" name="map" id="map" width="500" height="500" type="image/svg+xml" />
<embed src="images/test_svg.svgz" name="map2" id="map2" width="500" height="500" type="image/svg+xml" />
<%-- <embed id="map" src="<%= mv.getGeneratedMapImageURL() %>" width="<%= width %>" height="<%= height %>"></embed> --%>
<FORM name="form" action="test2.jsp" method="GET" >
<input type="radio" name="action" value="zoomin" <%= zoomin?"checked":"" %> onclick="zoomin()" ><B>Zoom In</B>
<input type="radio" name="action2" value="zoomin2" <%= zoomin2?"checked":"" %> onclick="zoomin2()" ><B>Zoom In2</B>
<input type="hidden" name="width" value="<%=width%>"/>
<input type="hidden" name="height" value="<%=height%>"/>
<input type="hidden" id="cx" name="centerX" value=""/>
<input type="hidden" id="cy" name="centerY" value=""/>
<input type="hidden" id="size" name="initsize" value=""/>
<input type="hidden" id="scale" name="scale" value=""/>
<input type="hidden" id="infoon" name="infoon" value="<%=(infoon?"yes":"no")%>" />
</FORM>
<br>
<P>
</P>
</body>
</html> -
Hi,
Is it possible to display SVG format map generated by MapViewer through Jdeveloper / embedded oc4j?
Thanks,
ShoutongMaybe this sample can help:
http://andrejusb-samples.blogspot.com/2007/01/jdevadf-sample-spatially-enabled-adf.html -
How to use mapviewer extension for jdevelop?
I am working on the mapviewer. But my problem is that I can not connect mapviewer, or I can not start mapviewer using the embedded oc4j by jdeveloper. In mapviewer faq I read that:
"How do I view the mapping metadata through JDeveloper's Connections Navigator?
We have developed an Oracle JDeveloper extension that lets you browse the available list of styles, themes and basemaps defined in a datasource through JDeveloper's Connections Navigator. To do this, you will first need to download the mvconnection.jar file from OTN's MapViewer site. This jar contains the code that defines a MapViewer connection type for JDeveloper. To install, simply drop this jar file to the JDeveloper extension directory, normally $JDEV_HOME/jdev/lib/ext. Then restart JDeveloper, and you are all set.
But when I restart jdeveloper, I got the message:
"H:\Programme\jdev\jdev\lib\ext\mvpalette.jar!\META-INF\jdev-ext.xml
Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvpalette.jar!/META-INF/jdev-ext.xml<Line 105, Column 18>: XSD-2021: (Error) Element not completed: 'jsplibrary'
H:\Programme\jdev\jdev\lib\ext\mvconnection.jar!\META-INF\jdev-ext.xml
Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvconnection.jar!/META-INF/jdev-ext.xml<Line 25, Column 20>: XSD-2034: (Error) Element 'description' not expected.
Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvconnection.jar!/META-INF/jdev-ext.xml<Line 26, Column 13>: XSD-2034: (Error) Element 'help' not expected.
I use Jdeveloper 10g. Have you ever met the same problem?
Thanks in advanceThe Map Viewer extension is still not available for JDeveloper 10g. It works with JDeveloper 9.
The Mapping group is currently working on an upgrade. -
Error in Running map from Jdeveloper Weblogic -MAPVIEWER-05523--06036
Hi,
I have deployed Mapviewer.ear on an integrated weblogic server and loaded mvdemo sample dataset into my db, and made required changes in map_data_source in mapViewerConfig.xml.
Now, I am able to run all the demo apps and tutorial. However, when I run the map code(basic map) in a jspx from Jdeveloper, I am getting the below error in a pop-up in the browser.
"[MVGlobalVariables.getMapCacheConfig]*MAPVIEWER-05523*:Cannot process response from MapViewer server.(MVDEMO.DEMO_MAP:MAPVIEWER-06036: MapTileServer is not read. Please try again later.)"
In the log, error is "<CacheInstanceConfig> <loadCacheStorageDef> Invalid cache root directory:/scrtach/mvdemomaps\. Cache root directory will be set to default root directory."
I am using Jdeveloper version 11.1.1.4.
What could be the issue, esp when demos are running successfully on the same server.Ok, so the error comes cause the application is trying to get the tile layer from the server while the Mapviewer server is not ready.
So make sure you run your application once mapviewer server is up and running.
Now, for the problem that you get a blank page it is propably a javascript error as mapviewer gives no errors.
I have made a mistake in the previous post in the HTML section of my code. Give it a try now.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>testMap1</title>
<script language="Javascript" type="text/javascript" src="/mapviewer/fsmc/jslib/oraclemaps.js"> </script>
<script type="text/javascript">
var basemap1 = new MVMapTileLayer("mvdemo.demo_map");
function showMap()
//maybe formating is taking away the plus symbols. just make sure the base url is formatted correctly
var baseURL = "http://" + document.location.host + "/mapviewer";
var mapCenterLon = -122.45;
var mapCenterLat = 37.6706;
var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
var mapZoom = 5;
var mapview = new MVMapView(document.getElementById("map"), baseURL);
mapview.addMapTileLayer(basemap1);
mapview.setCenter(mpoint);
mapview.setZoomLevel(mapZoom);
mapview.addNavigationPanel("EAST");
mapview.display();
</script>
</head>
<body onload="showMap()">
<div id="map"
</div>
</body>
</html>
if you still get a blank page. Try using firefox with firebug and see what errors rise up in firebug. You should be able to find out what goes wrong with javascript.
Edited by: P.T on 17 Μαϊ 2011 5:11 πμ
Edited by: P.T on 17 Μαϊ 2011 5:15 πμ
Edited by: P.T on 17 Μαϊ 2011 5:15 πμ -
How to use a standalone mapviewer in JDeveloper
Hello everybody,
I want to use a standalone MapViewer (deployed in a standalone OC4J from MapViewer Quick Start) in JDeveloper.
How can i do it?First of all thanks a lot for your interest !
What i want to do is to create a jsp page which will use the JSP tag library of Mapviewer.
The problem appears when i try to run a jsp page in JDeveloper which contain (for example) the init tag.
To be speceific i try to do what is described in the following link with the difference that i use a standalone mapviewer
http://www.oracle.com/technology/products/jdev/howtos/10g/map/mv_jdev_howto.htm
Thanks in advance! -
Good day!
I have successfully deployed the mapviewer in my pc using extended oc4j. My next task is to develop a program using JDeveloper with mapviewer. I followed the step-by-step instruction in this tutorial : http://www.oracle.com/technology/products/jdev/howtos/10g/map/mv_jdev_howto.htm.
My problem is when I ran my program I got these error messages.
Project: C:\JDev9051\jdev\mywork\WebMap\ViewController\ViewController.jpr
C:\JDev9051\jdev\mywork\WebMap\ViewController\public_html\webmap.jsp
Error(10,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(10,190): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(10,102): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(10,28): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
Error(10,40): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
Error(11,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(11,198): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(11,106): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(12,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(12,188): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(12,101): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(13,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
Error(13,200): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
Error(13,107): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
-- what am I missing? any ideas?
Thanks.Hi,
It is ok, that you can see it in JSP Tag Libraries window. MapViewer.class is in the jdev_home.
To succesfully build your project with MapViewer Tag Lib do the following:
A). Check libraries
1. Tools -> Manage Libraries -> Libraries Window
2. In User Libraries section you should see MapViewer library entry (for example, Oracle MapViewer) which points to the mvclient.jar
3. If there is no MapViewer library, then create it
B). Check tag lib
4. Switch to the JSP Tag Libraries window
5. Double click on mapviewer entry
6. If tag is not associated with MapViewer library (from section A), then associate it. You should see in the 'Libraries (separated by sime-columns)' MapViewer library name (from section A)
7. Close Manage Libraries window with OK
C). Final step - check your project
8. Click on your project in Applications Navigator
9. With right click choose Project Properties
10. Then, go to Libraries section
11. If there is no MapViewer library name from section A in Selected Libraries section, add it
D). Finally, rebuild must be succesfull
Regards,
Andrejus -
Calling Mapviewer from Jdeveloper
Hello,
I am trying to call MapViewer from Jdeveloper. I have already used map builder to access my map, but when I try to call MapViewer I got an error message.
My Code is as follows:
MapViewer mv = new MapViewer("http://******:8888");
mv.setDataSourceName("MVDEMO");
mv.setBaseMapName("CUSTOMER_MAP");
mv.setMapTitle(" ");
mv.setImageFormat(MapViewer.FORMAT_PNG_URL);
mv.setDeviceSize(
new Dimension(256, 256)
mv.setCenterAndScale( 0, 0, 25000000);
mv.setMapRequestSRID(new Integer(8307));
mv.run();
The error message i get is:
cannot find error code
Server response is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en,us">
<HEAD>
<TITLE>Welcome to Oracle Containers for J2EE 10g (10.1.3.1.0)</TITLE>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<link rel="stylesheet" href="ohs_images/portals.css">
</HEAD>
<body bgcolor="#FFFFFF" link="#663300" vlink="#996633" alink="#FF6600" text="#000000">
<span style="font-size: 1pt;"><img src="ohs_images/space.gif" alt="Skip tabs" height=1 width=1 align="right" border=0></span>
<!-- tabs -->
<a name="tabs"></a>
<table summary="" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" valign="bottom" class="OraLightHeaderSub"><img alt="Oracle Application Server logo" src="ohs_images/9iAShome_banner_2.gif" width="338" height="90"></td>
<td align="right">
<table summary="" align=right border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=60 align="center" valign="bottom"> </td>
<td valign=bottom width=60 align="center"> </td>
</tr>
<tr align=center valign="top">
<td width=60 align="center"> </td>
<td width=60 align="center"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right" valign="bottom">
<table summary="" border=0 cellpadding=0 cellspacing=0 height=22>
<tbody>
<tr>
<td align=right noWrap width=16><img alt="selected tab:" height=22 src="tab_files/asytlse.gif" width=14></td>
<td background="tab_files/blue-content.gif" class=OraNav1Selected width="75">Welcome</td>
<td align=right noWrap width=12><img alt="" src="tab_files/blue-end.gif"></td>
<!--<td background="tab_files/green-content.gif" noWrap width="97"> </td>-->
<td align=right noWrap width=12> </td>
<td align=right noWrap width=12> </td>
<td noWrap width=15> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<!-- blue banner -->
<table summary="" border=0 cellpadding=0 cellspacing=0 width="100%">
<tbody>
<tr valign="top">
<td height=24>
<table summary="" border=0 cellpadding=0 cellspacing=0 width="100%">
<tbody>
<tr>
<td bgcolor="#336699" noWrap valign=bottom align="left" width="50"> </td>
<td background="tab_files/asysrtb.gif" height=30 noWrap valign="top"><img alt="" border=0 height=30 src="tab_files/asysrt.gif" width=40></td>
<td background="ohs_images/rhshadow.gif" height=30 noWrap valign="top" width=10 align="left">
<img alt="" border=0 height=30 src="tab_files/asylrhs.gif" width=8></td>
</tr>
<tr>
<td background="tab_files/asylttb.gif" noWrap
valign="top" align="left" width="50" height="16"> </td>
<td noWrap valign="top" width="600" height="16"><img alt="" border=0 height=16 src="tab_files/asysrb.gif" width=40></td>
<td align=left valign="top" width=10 height="16"><img alt="" height=1 src="ohs_images/space.gif" width=1></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<a name="portlets"></a>
<span style="font-size: 1pt;">
<img src="ohs_images/space.gif" alt="This page contains the following topics:" border=0>
<img src="ohs_images/space.gif" alt="Overview" height=1 width=1 border=0>
<img src="ohs_images/space.gif" alt="Documentation" height=1 width=1 border=0>
<img src="ohs_images/space.gif" alt="Quick Tour" height=1 width=1 border=0>
<img src="ohs_images/space.gif" alt="Release Notes" height=1 width=1 border=0>
<img src="ohs_images/space.gif" alt="Oracle Enterprise Manager" height=1 width=1 border=0>
<img src="ohs_images/space.gif" alt="New Features" height=1 width=1 border=0>
</span>
<!-- main layout table -->
<div align="left">
<table summary="" width="100%" border="0" cellspacing="0" cellpadding="4" height="426">
<tr valign="top">
<!-- left column -->
<td>
<div align="left"><img alt="Welcome to Oracle Containers for J2EE" src="ohs_images/welcome_CJ2EE_1.gif" width="347" height="60"><br>
<br>
<br>
</div>
<a name="grid"></a>
<table summary="" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="OraHeader" height="25" width="25%">Overview</td>
<td class="OraGlobalButtonText" height="25" width="75%">
<div align="right"></div></td>
<td class="OraGlobalButtonText" colspan="6" width="0%">
<div align="right"></div>
</td>
</tr>
<tr>
<td height="1" bgcolor="#CCCC99" colspan="2"><img alt="" src="ohs_images/bisspace.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="142" class="OraInstructionText" width="30%">
<p align="center"><img alt="" src="ohs_images/art3.gif" width="150" height="200"></p>
</td>
<td height="142" class="OraInstructionText" width="70%">
<p>
Oracle Containers for J2EE 10g (10.1.3.1.0) is the core
J2EE runtime component of Oracle Application Server.</p>
<p>The key values of this release are: </p>
<ul>
<li> J2EE 1.4 compatible with additional support for the final EJB 3.0 specification, including JPA 1.0 API</li>
<li>Extensive Web Services capabilties with support for JAX-RPC,
WS-I, WS-Security, WS-Reliability</li>
<li>Industry leading Object-Relational persistence solution with
Oracle TopLink</li>
<li>Standards based management and deployment support with Enterprise
Manager Application Server Control </li>
<li>Enterprise performance and scalability</li>
</ul>
</td>
</tr>
</table>
<a name="doc"></a>
<table summary="doc" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="OraHeader" height="25" width="69%">Documentation</td>
<td class="OraGlobalButtonText" height="25" width="31%">
<div align="right"></div></td>
<td class="OraGlobalButtonText" colspan="6" width="0%">
<div align="right"></div>
</td>
</tr>
<tr>
<td height="1" bgcolor="#CCCC99" colspan="2"><img alt="" src="ohs_images/bisspace.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="142" class="OraInstructionText" >
<p> </p>
<p>The Configuration and Administration Guide is included within this distribution. <br>It can be be accessed from here (requires Adobe Acrobat reader).</p>
<p>The full documentation set is available from Oracle Technology Network at http://www.oracle.com/technology/documentation and contains:</p>
<ul>
<li>Configuration and Administration guide to help with management of the server</li>
<li>Deployment guide to help with deployment operations</li>
<li>Development guides to support the development of J2EE applications
using JSP, Servlet, and EJB technologies</li>
<li>Development guides to support the development and deployment of Web Services</li>
<li>Security and Services guides which describe the standard
services available such as JNDI and JMS and the comprehensive
security infrastructure</li>
</ul>
</td>
</tr>
</table>
<br>
<a name="tour"></a>
</td>
<!-- column spacer -->
<td class="OraInstructionText" rowspan="2" width="12"> </td>
<!-- right column -->
<td valign="top" width="228" align="left">
<table summary="" bgcolor="#f7f7e7" border=0 cellpadding=0 cellspacing=0 width=218>
<tbody>
<tr>
<td colspan=3 valign="top"><img alt="" border=0 height=14 src="tab_files/upperbox.gif" width=218></td>
</tr>
<tr>
<td bgcolor="#cccc99"><img alt="" border=0 src="tab_files/asybase.gif" width=1></td>
<td valign="top"> <a name="new"></a>
<table summary="" border=0 cellpadding=0 cellspacing=0 width=216>
<tbody>
<tr>
<td valign="middle" colspan="3"><span class=tab3heading> <img alt="" src="ohs_images/logon_cctitle.gif" width="18" height="18"> <span class="OraHeaderSubSub">
OC4J Management</span></span><br>
<table summary="" align=center border=0 cellpadding=0 cellspacing=0
width="90%">
<tbody>
<tr>
<td bgcolor="#cccc99"><img alt="" height=1 src="tab_files/asybase.gif"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
<td class=OraPortletBodyText>
<p>OC4J is managed from a browser using Application Server Control.</p>
<p>Launch Application Server Control</p>
</td>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
</tr>
</tbody>
</table>
</td>
<td align=left bgcolor="#cccc99" width=1><img alt="" border=0 src="tab_files/asybase.gif" width=1> </td>
</tr>
<tr>
<td colspan=3 valign="top" height="2"><img alt="" border=0 height=13 src="tab_files/lowerbox.gif" width=218></td>
</tr>
</tbody>
</table>
<br>
<table summary="" bgcolor="#f7f7e7" border=0 cellpadding=0 cellspacing=0 width=218>
<tbody>
<tr>
<td colspan=3 valign="top"><img alt="" border=0 height=14 src="tab_files/upperbox.gif" width=218></td>
</tr>
<tr>
<td bgcolor="#cccc99"><img alt="" border=0 src="tab_files/asybase.gif" width=1></td>
<td valign="top">
<a name="relnotes"></a>
<table summary="" border=0 cellpadding=0 cellspacing=0 width=216>
<tbody>
<tr>
<td colspan="3"><span class=tab3heading> <img alt="" src="ohs_images/tree_document.gif" width="16" height="16"> <span class="OraHeaderSubSub"><b>OTN
and Release Notes</b><span class="OraPortletBodyText"></span></span></span><br>
<table summary="" align=center border=0 cellpadding=0 cellspacing=0
width="90%">
<tbody>
<tr>
<td bgcolor="#cccc99"><img alt="" height=1 src="tab_files/asybase.gif"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
<td class=OraPortletBodyText><p><span class="OraPortletBodyText">Check the OC4J
page on OTN for the latest information,
technical notes and how-to examples.</span></p>
<p><span class="OraPortletBodyText">Read
the latest Release Notes on Oracle Technology
Network for important information about Oracle Containers for J2EE 10g (10.1.3.1.0)</span><br>
</p></td>
<td class=OraPortletBodyText width="10">
<p> </p></td>
</tr>
</tbody>
</table>
</td>
<!--width of the bottom - 2 pixel for border - width of the arrow -->
<td align=left bgcolor="#cccc99" width=1><img alt="" border=0 src="tab_files/asybase.gif" width=1>
</td>
</tr>
<tr>
<td colspan=3 valign="top" height="2"><img alt="" border=0 height=13 src="tab_files/lowerbox.gif" width=218></td>
</tr>
</tbody>
</table>
<br>
<table summary="" bgcolor="#f7f7e7" border=0 cellpadding=0 cellspacing=0 width=218>
<tbody>
<tr>
<td colspan=3 valign="top"><img alt="" border=0 height=14 src="tab_files/upperbox.gif" width=218></td>
</tr>
<tr>
<td bgcolor="#cccc99"><img alt="" border=0 src="tab_files/asybase.gif" width=1></td>
<td valign="top"> <a name="new"></a>
<table summary="" border=0 cellpadding=0 cellspacing=0 width=216>
<tbody>
<tr>
<td valign="middle" colspan="3"><span class=tab3heading> <img alt="" src="ohs_images/relatedapps_cctitle.gif" width="18" height="18"> <span class="OraHeaderSubSub">Quick
Check</span></span><br>
<table summary="" align=center border=0 cellpadding=0 cellspacing=0
width="90%">
<tbody>
<tr>
<td bgcolor="#cccc99"><img alt="" height=1 src="tab_files/asybase.gif"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
<td class=OraPortletBodyText>
<p>Click on the links below to perform a quick check
of your installation:</p>
<ul>
<li>JSP Test Page</li>
<li>Servlet Test Page<br>
</li>
</ul> </td>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
</tr>
</tbody>
</table>
</td>
<td align=left bgcolor="#cccc99" width=1><img alt="" border=0 src="tab_files/asybase.gif" width=1> </td>
</tr>
<tr>
<td colspan=3 valign="top" height="2"><img alt="" border=0 height=13 src="tab_files/lowerbox.gif" width=218></td>
</tr>
</tbody>
</table>
<br>
<table summary="" bgcolor="#f7f7e7" border=0 cellpadding=0 cellspacing=0 width=218>
<tbody>
<tr>
<td colspan=3 valign="top"><img alt="" border=0 height=14 src="tab_files/upperbox.gif" width=218></td>
</tr>
<tr>
<td bgcolor="#cccc99"><img alt="" border=0 src="tab_files/asybase.gif" width=1></td>
<td valign="top"> <a name="new"></a>
<table summary="" border=0 cellpadding=0 cellspacing=0 width=216>
<tbody>
<tr>
<td valign="middle" colspan="3"><span class=tab3heading> <img alt="" src="ohs_images/relatedapps_cctitle.gif" width="18" height="18"> <span class="OraHeaderSubSub">Community
Forums</span></span><br>
<table summary="" align=center border=0 cellpadding=0 cellspacing=0
width="90%">
<tbody>
<tr>
<td bgcolor="#cccc99"><img alt="" height=1 src="tab_files/asybase.gif"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
<td class=OraPortletBodyText>
<p>Collaborate with other users of Oracle Containers
for J2EE by visiting theOC4J on OTN.<br>
</p>
</td>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
</tr>
</tbody>
</table>
</td>
<td align=left bgcolor="#cccc99" width=1><img alt="" border=0 src="tab_files/asybase.gif" width=1> </td>
</tr>
<tr>
<td colspan=3 valign="top" height="2"><img alt="" border=0 height=13 src="tab_files/lowerbox.gif" width=218></td>
</tr>
</tbody>
</table> <br>
</td>
</tr>
</table>
</div>
<div align="left"> </div>
<div align="left">
<table summary="" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="604"> </td>
<td rowspan="2" valign="bottom" width="12"><img alt="" src="ohs_images/slieghright.gif" width="12" height="15"></td>
</tr>
<tr>
<td bgcolor="#CCCC99" height="1"><img alt="" src="ohs_images/bisspace.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="5"><img alt="" src="ohs_images/bisspace.gif" width="1" height="1"></td>
</tr>
<tr>
<td align="left" class="OraInstructionText"> </td>
</tr>
</table>
<table summary="" width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td>
<table summary="" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align=center colspan=2 class="OraInstructionText"> </td>
</tr>
<tr>
<td class="OraCopyright">Copyright © 2005 Oracle.
All Rights Reserved.</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</BODY></HTML>
Exception in thread "main" java.lang.Exception: MapViewer cannot process your map request. Check MapViewer log for details.
at oracle.lbs.mapclient.MapViewer.processImgURL(MapViewer.java:6962)
at oracle.lbs.mapclient.MapViewer.run(MapViewer.java:6391)
at project1.JDBCVersion.main(JDBCVersion.java:80)
Thanks,
MThanks,
I think so, Could you please let me know how I can check if the deployment is done correctly?
Also is MapViewer mv = new MapViewer("http://localhost:8888") a correct declaration?
Thanks,
M
Edited by: 834943 on Feb 18, 2011 9:16 AM -
MapViewer / Jdeveloper 10g / Installation
Hi,
Just beginning to explore MapViewer and I'm wondering if the embedded OC4J container in Jdeveloper will support exploring MapViewer capabilities, or do I have to install a separate OC4J container to begin.
Thanks,
MarieIt'll work in the embedded OC4J. There are some specific setup steps you have to do. I don't recall them. They were discussed in an earlier post on this discussion forum.
Maybe you are looking for
-
I save the RoboForm2Go program on a flash drive and when I opened a site that I had saved the user name and password, the RoboForm2Go would show up in the taskbar with the site I opened so I could just click on it and it would automatically fill in t
-
Unable to recover Time Machine back-up because I "don't have permission"...
Trying to recover an old version of my iPhoto library from a Time Machine backup. I get about 1/3 into the restore and I get the message "The operation can't be completed because you don't have permission to access iPhoto Library". Any suggestions? D
-
DVD drive is not working on Satellite A200-1S5
After installing vista the dvd unit is not reading any disk until reboot. To be more specific, from the first moment I purchased the notebook I try to install ms works from disk but the unit was not reading. I observed that if the disk was in the uni
-
Profit center substitution rule miss matching or not working properly
Hi Experts, We have a substitution rule for profit center for sales group and profit center rule is like Is the sales group is 123 profit center should be 123, but now for some g/l like sales deductions that rule is not working for sales group BG1
-
How to get Javascript plugin?
I cannot load images into a layered stack in Photoshop. The error message says it's because I don't have the Javascript plugin. I have Java installed, but I don't see how to get the plugin.