MapViewer Demo - mapclient.jsp

Hi,
I have installed mapviewer demo on a standalone OC4J. I added a datasource "mvdemo". I can get other jsp's to work: jview.jsp, mapinit.jsp and tagmap.jsp but when I go to mapclient.jsp and enter the datasource field along with Map Center X and Y, I just get a blue blank screen. Do I need to enter anything for Map Base field. Also, I am not getting any error messages.
On OC4J window, I get only message that says "no theme to render".
here is the request:
<?xml version="1.0" standalone="yes"?>
<map_request
datasource="mvdemo"
width="500"
height="375"
bgcolor="#a6caf0"
antialiase="false"
format="GIF_URL">
<center size="100.0">
<geoFeature>
<geometricProperty typeName="center">
<Point>
<coordinates>-74.0,43.0</coordinates>
</Point>
</geometricProperty>
</geoFeature>
</center>
</map_request>
and response:
<?xml version="1.0" encoding="UTF-8"?>
<map_response>
<map_image>
<map_content url="http://localhost:8888/mapviewer/images/omsmap2_11.gif?refresh=9095605334584782896" />
<box srsName="default">
<coordinates>
null </coordinates>
</box>
<xfm matrix="1.0 0.0 0.0 1.0 0.0 0.0" />
<WMTException version="1.0.0" error_code="SUCCESS">
</WMTException>
</map_image>
</map_response>
Also, here is more info on what I am using:
mapviewer for 10.1.2
Stand alone OC4J - J2EE 10g (9.0.4.0.0)
Database - 10g Release 1
Thanks,
-A

I do not see basemap in your XML request. You are trying to see entire US extents. Try with smaller size such 1.00.
The following is the XML request I used.
<?xml version="1.0" standalone="yes"?>
<map_request
title="test"
basemap="demo_map"
datasource="mvdemo"
width="500"
height="375"
bgcolor="#a6caf0"
antialiase="false"
format="GIF_URL">
<center size="100.0">
<geoFeature>
<geometricProperty typeName="center">
<Point>
<coordinates>-74.0,43.0</coordinates>
</Point>
</geometricProperty>
</geoFeature>
</center>
</map_request>
The following is the XML response.
<?xml version="1.0" encoding="UTF-8"?>
<map_response>
<map_image>
<map_content url="http://mycomputer:8888/mapviewer/images/omsmap35_110.gif?refresh=8522609524205187237" />
<box srsName="default">
<coordinates>
-140.66666666666666,-7.0 -7.333333333333343,90.0 </coordinates>
</box>
<xfm matrix="0.2666666666666666 0.0 0.0 -0.2666666666666666 -140.66666666666666 91.49999999999999" />
<WMTException version="1.0.0" error_code="SUCCESS">
</WMTException>
</map_image>
</map_response>

Similar Messages

  • 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
    thomas

    hi,
    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>

  • Mapviewer demo mapinit.jsp with svg

    hi,
    the demo shows me per tooltip the number of a highway or the data about a county.
    how can i in a jsp-file get the highlighted data out of the svg-map, for example:
    if i get a tooltip for a highway and i click the mouse, i want to (onclick) get the highwaynumber. all i know now is that i can get the rowid of the selected feature.
    function my_feature(theme, id, x, y)
    alert('my_feature 1');
    alert(theme);
    alert(id);
    s_str = map.window.getinfo(theme, id); --> error
    alert('my_feature 2');
    is getinfo the right method?
    thomas

    getInfo is the right method for your purpose. However, getInfo returns the whole info tip string and you need to extract the attribute that you need from it.

  • Mapviewer-demo: no map viewed

    Hi,
    I imported the Mapviewer demo in a new schema,
    and deployed the Mapviewer on stand alone OC4J.
    I can start and configure the Mapviewer how described in the guide
    without errors but when i try to submit a map request using the sample file included in the demo (mapclient.jsp)
    the ff error appeared in the request/response/Msg:
    xml_response=<?xml version="1.0" encoding="UTF-8"?><oms_error>Message:[XMLHelper] error in parsing xml map request.
    Thu Oct 09 16:56:29 PDT 2003
    Machine Node Name: ibmdemo
    Severity: 0
    Description:
    Message:[XMLHelper] no geofeature defined for CENTER.
    Thu Oct 09 16:56:29 PDT 2003
    Machine Node Name: ibmdemo
    Severity: 0
    Description:
         at oracle.spatial.mapserver.core.XMLHelper4Mapper.convert(XMLHelper4Mapper.java:167)
         at oracle.spatial.mapserver.core.XMLHelper4Mapper.convert(XMLHelper4Mapper.java:67)
         at oracle.spatial.mapserver.oms.getMapRequest(oms.java:374)
         at oracle.spatial.mapserver.oms.doPost(oms.java:178)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:720)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:305)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:742)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:248)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    </oms_error>
    thanks!
    gemma

    hi,
    found one mistake, still the map is not shown.
    ist must be...
    <script type="text/Javascript" src=...
    thanx
    tom

  • [MapViewer] MapClient.jsp to Servlet?

    Hi,
    Has anybody ever tried to convert the demo that comes with MapViewer into a servlet?
    Right now the MapClient.jsp demo is very slow here, and I hope to get some speed improvements with a servlet. I also think it's a little easier to add some extra functionallity with a servlet...
    So, has anybody done it?

    You may want to first find out what's slowing down the jsp client. Most likely its the database query time dominating the performance, in which case converting the jsp into servlet wont help much.
    you can change the logging level of MapViewer to "finest" and check the logs while doing a few zoom/pans from the client. see how much time is spent in loading the data from db and what's the percentage of that in the overall process.
    lj

  • MapViewer mapclient.jsp?

    Hi,
    I've been working with MapViewer for a while now, and now is the time de make my own .jsp page. So I'm trying to figure out how the mapclient.jsp page works.
    I can't figure the part out about the "click to recenter". How does the applet knows where my mousepointer is? Where is imageCenter.x and .y defined?
    How does the Servlet make the new image url?
    Can anyone explain?

    HI:
    An input element of the "image" type in the form is set up as follows:
    <input type="image" src="<%= imgURL %>" name="imageCenter"
    width="<%= width %>" height="<%= height %>"
    alt="Click to Recenter at This Position">
    This input field creates a graphical "submit" button. The value of the src attribute specifies the URI of the image that will decorate the button. The alternate text provides a tool tip when the mouse is on the image. The width and height are are size of of the image when it is displayed in a browser. The name attribute gives a name to this control.
    When a mouse is used to click on the image, the form is submitted and the click coordinates passed to the server. The x value is measured in pixels from the left of the image, and the y value in pixels from the top of the image. (The upper-left corner of the image is at coordinate (0,0).) The submitted data includes name.x=x-value and name.y=y-value where "name" is the value of the name attribute, and x-value and y-value are the x and y coordinate values, respectively.
    At the beginning of the mapclient.jsp source code, the x and y are fetched from the standard input stream, and the new map center (cx, cy) is computed.
    if (request.getParameter("imageCenter.x")!=null &&
    request.getParameter("imageCenter.y")!=null &&
    cx!=0.0 && cy!=0.0) {
    imgCX = Integer.valueOf(request.getParameter("imageCenter.x")).intValue();
    imgCY = Integer.valueOf(request.getParameter("imageCenter.y")).intValue();
    //mapResponse = mapResponse +
    // "Computing new center from screen coords("+imgCX+","+imgCY+")\n";
    cx = boxLLX+imgCX/width*(boxURX-boxLLX);
    cy = boxURY-imgCY/height*(boxURY-boxLLY);
    Hope it help.
    Regards,

  • Spatial index - mapviewer demo

    Hi,
    I tried the mapclient.jsp demo of the maviewer demo and it only returns a blue image. I check the log file and found this:
    [oracle.sdovis.JDBCDataSource4PT, Thu May 18 10:21:36 CST 2006, ERROR] *** SQL Exception while querying theme: THEME_DEMO_COUNTIES
    [oracle.sdovis.JDBCDataSource4PT, Thu May 18 10:21:36 CST 2006, ERROR] java.sql.SQLException: ORA-13226: interface not supported without a spatial index
    seems like a spatial index is missing. My question is,
    - is the spatial index created when I imported the mvdemo.dmp file?
    - is this the same index that is stated in the oracle_home\mapviewer\lbs\admin\mapdefinition.sql?
    - or, is this index should be included in the database installation?
    - who should be creating this index?
    - if I create this index, how would I do this?
    I really need your assistance. I'll be presenting this demo to my boss two days from now, my team is pushing the idea of migrating our existing gis system to Oracle Spatial. We need this demo badly.
    Thanks for the support?

    First, which MapViewer version are you using and which database version?
    Second, the indexes are usually built on import. You can check if they exist and if not create them.
    To check if the indexes exist
    select * from user_sdo_index_info
    An sample index creation statement is:
    create index counties_sides on counties(geometry) indextype is mdsys.spatial_index;
    If the index exists and is invalid then drop it and recreate it. Drop it using
    drop index counties_sidx force ;

  • MapViewer Demo:

    Hello all,
    I have deployed successfully MapViewer (I checked it through the enterprise console), I have imported the mvdemo. A week ago I had to reinstall Oracle Database Server and since then I receive the following message when I'm trying to use i.e. the Mapclient.jsp demo (using the example located in first chapter of Oracle Spatial pdf)
    <?xml version="1.0" encoding="UTF-8"?><oms_error>Message:[oms] map data source not found.
    Tue Jul 19 10:42:35 EEST 2005
    Severity: 0
    Description:
    at oracle.lbs.mapserver.oms.doPost(oms.java:334)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    </oms_error>
    MapViewer cannot process your map request. Check MapViewer log for details.
    The log file I found is empty...
    Any comments would be helpful!
    Thank you a priori

    <oms_error>Message:[oms] map data source not found.
    Means mapviewer cannot find the data source. If you define the data source from mapviewer admin page, then you need to do it again if you restart the mapviewer. To make it permanent, add the datasource to $OC4J_HOME\j2ee\home\applications\mapviewer\web\WEB-INF\conf\mapViewerConfig.xml.
    wijaya

  • Mapviewer demo Problem

    I have seen a number of posts regarding this issue, but none seem to have solved it. I have installed OC4J, I have installed and imported the mapviewer demo data. I get all of the demos to come up but all I get is a blue screen with the words "Oracle Map viewer Demo" I installed the data with the mvdemo user not as scott/tiger Does that matter? Not sure what else it could be as I am getting no errors anywhere.
    Thanks in advance!
    -Scott

    Good Morning LJ,
    I have run that, results are below. I get the same problem, just a blus screen then when I click on the screen I get 500 Internal Server Errors.
    JServer Release 9.2.0.1.0 - Production
    SQL> @mvdemo.sql
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    Commit complete.
    counties a, terr_counties b
    ERROR at line 6:
    ORA-00942: table or view does not exist
    1 row created.
    Commit complete.
    insert into user_sdo_styles select * from styles
    ERROR at line 1:
    ORA-00942: table or view does not exist
    insert into user_sdo_themes select * from themes
    ERROR at line 1:
    ORA-00942: table or view does not exist
    insert into user_sdo_maps select * from maps
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Commit complete.
    create index STATES_SDX on STATES(GEOM)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    create index COUNTIES_SDX on COUNTIES(GEOM)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    create index INTERSTATES_SDX on INTERSTATES(GEOM)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    create index CITIES_SDX on CITIES(LOCATION)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    create index TERRITORIES_SDX on TERRITORIES(GEOMETRY)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL>
    500 Internal Server Error
    java.lang.NullPointerException     at oracle.lbs.mapclient.MapViewer.pan(MapViewer.java:3726)     at demo.jview._jspService(_jview.java:152)     [SRC:/demo/jview.jsp:322]     at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     at java.lang.Thread.run(Thread.java:534)

  • Mapviewer demo's

    Hi,
    I'm trying to get the mapviewer demo's up and running, but I can't find instructions to do this.
    Oracle spatial and mapviewer are new to me, so maybe anyone can tell me how to do this.
    I've installed oracle 10g database and standalone mapviewer.
    I can visualize data from the demo-dataset for user scott.
    But when I click (on the mapviewer homepage) on one of the examples my browser gives the usual 'the page cannot be displayed' message.
    Do I need to install the demo's in some way, or place the jsp files in a certain directory??

    Suggest just doing a search within this forum, that answer has been written about 1000 times. Try this: http://www.oracle.com/technology/software/products/mapviewer/index.html
    try the QuickStart Kit and install the Demo's.
    This will provide you with all of your answers.
    Hope it helps.
    -Scott

  • Display map in mapclient.jsp

    i really have done create base map and theme using map builder. i can display map using sample map request. but when i want to dispaly map using mapclient.jsp there is no map, only background and title were display. how i can dispaly map using mapclient.jsp?

    Verify the parameters that you entered on mapclient.jsp page.
    1) Data source name must exists on MapViewer service
    2) Base map name must exist on data source
    3) Center and size should define an area that intersects with base map data.
    If you think the parameters that you entered are right, then take a look on MapViewer's log for additional messages.

  • Mapviewer demo Import error ( imp-00980 )

    I'm encountering an import problem when attempting to import the mvdemo.dmp sample data that is included with the Mapviewer demo into Oracle 9i PEdition. Is there a problem with the the EXP coming from Oracle v8? Here is a sample of the error log output:
    Export file created by EXPORT:V08.01.07 via conventional path
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    export client uses US7ASCII character set (possible charset conversion)
    export server uses US7ASCII NCHAR character set (possible ncharset conversion)
    . importing SCOTT's objects into SCOTT
    . . importing table "STYLES" 250 rows imported
    . . importing table "THEMES" 7 rows imported
    . . importing table "MAPS" 2 rows imported
    . . importing table "CITIES" 195 rows imported
    . . importing table "COUNTIES" 3230 rows imported
    . . importing table "INTERSTATES" 239 rows imported
    . . importing table "STATES" 56 rows imported
    IMP-00017: following statement failed with ORACLE error 980:
    "BEGIN "
    "execute immediate 'INSERT INTO USER_SDO_GEOM_METADATA values (''CITIES'','"
    "'LOCATION'',mdsys.SDO_dim_array(MDSYS.SDO_DIM_ELEMENT(''X'',-180,180,.00000"
    "005),MDSYS.SDO_DIM_ELEMENT(''Y'',-90,90,.00000005)),NULL) ' ; "
    "COMMIT; END;"
    IMP-00003: ORACLE error 980 encountered
    ORA-00980: synonym translation is no longer valid
    ORA-06512: at line 2
    IMP-00088: Problem importing metadata for index CITIES. Index creation will be skipped
    I have discovered that the following view does not exist in the db:
    USER_SDO_GEOM_METADATA
    Help would be appreciated.
    -Peter

    Try connecting to the database as mdsys.
    Look for a table called sdo_geom_metadata_table, and if it is there see if there
    is anything in it. If there isn't anything in it, or it isn't there, try executing:
    prvtgmd.plb from ORACLE_HOME/md/admin. It looks like the
    views might not have been created correctly.
    Dan

  • Mapviewer demo v good - are you willing share the cartographic design?

    This mapviewer demo is good and has good cartographic design at most levels http://elocation.oracle.com/elocation/ajax/
    We are building a Mapviewer applications with the same base map data in Australia. Rather than re-inventing the wheel would the custodians of this web app (Oracle?) be prepared to share the cartographic design elements used here so that we (and I suspect many others) could utilise these to more quickly get their Mapviewer app up and running and looking good?
    I think copies of user_sdo_themes and user sdomaps that are particular to this app would suffice - if there is a chance that these could be made available it would be very much appreciated.
    Thank you.

    We will be staging the current eLocation style and themes up on our MapViewer OTN page shortly.
    I will post a point here once we stage them.
    thanks
    Steve
    if you need them sooner email me.

  • Mapviewer-demo: a empty map view

    Hi,
    I imported the Mapviewer demo in a new schema,
    and deployed the Mapviewer on stand alone OC4J.
    I can start and configure the Mapviewer how described in the guide
    without errors but the created JPG is a empty blue picture.
    What can be wrong ?
    Thanks
    Friedhold

    Yes I'm getting the title in the blue empty map view.
    Here is request/response message from the Mapviewer:
    xml_request=<?xml version="1.0" standalone="yes" ?>
    <map_request
    title="Check"
    basemap="demo_map"
    datasource="mvdemo"
    width="400"
    height="360"
    format="GIF_URL" >
    <center size="2.5">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates>
    -122.0, 38.0
    </coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    </map_request>
    xml_response=<?xml version="1.0" encoding="UTF-8"?>
    <map_response>
    <map_image>
    <map_content url="http://localhost:8888/mapviewer/images/omsmap2.gif?refresh=2902113945287192759" />
    <box srsName="default">
    <coordinates>
    -123.38888888888889,36.75 -120.61111111111111,39.25 </coordinates>
    </box>
    <WMTException version="1.0.0" error_code="SUCCESS">
    </WMTException>
    </map_image>
    </map_response>
    What can I do ?
    Regards Friedhold

  • I cannot reach /mapviewer/ url, but I can reach /mapviewer/demos/ etc

    Hello,
    This is the first time I have deployed mapviewer.ear to WebLogic instead of deploying the stand-alone Mapviewer.
    I followed Section 1.4.1.1 of the Mapviewer Guide. When I access http://localhhost:7001/mapviewer I get forwarded to http://localhost:7001/mapviewer/faces/home.jspx and then I get an exception:
    java.lang.UnsupportedOperationException
         at javax.faces.application.Application.getResourceHandler(Application.java:287)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:588)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:352)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3288)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
         at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1512)
         at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    However, I can access http://localhost:7001/mapviewer/demos, etc. Also, the "old index page" http://localhost:7001/mapviewer/oldindex.html also works.
    Can you help?

    Add this weblogic-application.xml in mapviewer.ear/META-INF/ folder and redeploy mapviewer
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-application xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-application"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd
    http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd">
    <wls:prefer-application-packages>
    <package-name>javax.faces.*</package-name>
    <package-name>javax.faces.application.*</package-name>
    <package-name>javax.faces.component.*</package-name>
    <package-name>javax.faces.context.*</package-name>
    <package-name>javax.faces.convert.*</package-name>
    <package-name>javax.faces.el.*</package-name>
    <package-name>javax.faces.event.*</package-name>
    <package-name>javax.faces.lifecycle.*</package-name>
    <package-name>javax.faces.model.*</package-name>
    <package-name>javax.faces.render.*</package-name>
    <package-name>javax.faces.validator.*</package-name>
    <package-name>javax.faces.webapp.*</package-name>
    </wls:prefer-application-packages>
    </wls:weblogic-application>

Maybe you are looking for

  • Returning one row in  a view(only)

    Is there any function that I can use to return just one row from a query? I tryed the old LIMIT TO from rdb, but its useless... I´m using a Oracle8

  • MSI guys ,PLEASE fix lack of BASS in megastick 256

    I´d really appreciate if you can correct this or give us an editable equalizer in the next firmware update. I really like the player and the only problem is its poor bass. Thanks mita

  • About boot camp with multiple hard drives.

    Hi folks. I've just ordered my new 27" iMac. It has the 256GB SSD and i'm wondering about using boot camp on the system. I understand that OSX will come installed on the SSD, what I was wondering however, is that if I would be able to use boot camp t

  • Itunes will not display the home screen apps

    when  I connect the usb cable to my Ipad and into my laptop, and connect with itunes  it will show everything But the home screen apps,  what could be causing this to happen

  • How to transfer data between the different states in "state machine"?

    I want to transfer some data from one state to another. I tried the tunnel, but it can't work since it's the case structure. Does "state machince" support data transfer? Or any other methods I can do? Thank you.