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

Similar 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 - 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>

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

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

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

  • 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

  • Unable to install mapviewer demo's

    I have installed the mvqs10_1_2_0_2 quickstart version of mapviewer from technet and am trying to install the demo's. The import fails due to a lack of the mdsys schema. We have an enterprise edition license of the database server but not the extra spatial option. From what I read we should be able to use the Locator resources for free.
    What appears to be happening is we do not have the required objects for Locator in the database (e.g. mdsys schema).
    We have updated to 10.1.0.4 database using the migration tool to migrate from an 8.1.7 database. It appears that using the migration tool rather than creating a new 10G database seems to have missed adding the required objects for Locator.
    How can I install the resources needed for locator? Using dbca I can install spatial but we have not licensed spatial. Is there a way to just install Locator? -quinn

    Hi,
    Locator is free, but it is part of the interMedia option.
    You should check your install to see if interMedia is installed or not.
    If not, you can use DBCA to install interMedia.
    siva

  • MapViewer Demo Returns Blank Maps

    I am installing the MapViewer for the first time. I imported mvdemo.dmp after creating the mvdemo user with:
    SQL> grant connect, resource to mvdemo identified by mvdemo;
    Then import from command line with:
    imp mvdemo/mvdemo file=mvdemo.dmp full=y ignore=y
    no errors
    Then executing sql as mvdemo with :
    SQL> @mvdemo.sql
    The mapviewer runs the demo and connect to the db as it should. There are base maps, themes, styles etc viewable from the submits.
    The image returned however is just a blue tile.
    Any ideas where I missed a step?
    Thanks

    Here is the console output
    E:\j2sdk1.4.2_10\bin\javaw.exe -jar E:\JDeveloper1012\j2ee\home\admin.jar ormi://150.125.27.238:23891 admin **** -updateConfig
    05/12/08 19:02:55 ApplicationServer: appName = bc4j
    05/12/08 19:02:55 ApplicationServer: appName = current-workspace-app
    Ready message received from Oc4jNotifier.
    05/12/08 19:02:55 Auto-deploying file:/E:/JDeveloper1012/jdev/mywork/WebMap/ViewController/public_html/ (New server version detected)...
    Embedded OC4J startup time: 1512 ms.
    Target URL -- http://150.125.27.238:8988/WebMap-ViewController-context-root/webmap.jsp
    Dec 8, 2005 7:02:57 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    Dec 8, 2005 7:02:57 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    Dec 8, 2005 7:02:57 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='view.ApplicationResources', returnNull=true
    05/12/08 19:02:57 created a new MapViewer handle.
    from the embedded oc4j in jdeveloper. The is the Map Image generated in the browser is just a Blue tile with the title, no base map. The JSP is below:
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/spatial/mvtaglib.tld" prefix="mapviewer"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>untitled</title>
    </head>
    <body>
    <DIV align="center">
    <P>My Web Map</P>
    <P>
    <mapviewer:init url="http://vciwnorclmt.cipcpub.local/mapviewer/omserver" datasource="mvdemo" id="mvHandle"/>
    </P>
    </DIV>
    <mapviewer:setParam antialiasing="true" basemap="demo_map" centerX="-122.4" centerY="37.8" height="450" size="10" title="My Web Map" width="600"/>
    <mapviewer:run/>
    <DIV align="center">
    <img src="<mapviewer:getMapURL />"/>
    </DIV>
    </body>
    </html>

  • Sample MapViewer demo

    Hi,
    Need to show a customer demo on Mapviewer, do any1 hav sample mv dump file with sql and jsp.

    Hi,
    here you can download the demo data set http://www.oracle.com/technology/software/products/mapviewer/index.html
    if you want i downloaded this set i can send you
    mail me on [email protected]
    Kabeer

  • Mapviewer demo errors

    We have Oracle 10g DB and AS and are trying to get the Mapviewer deployed with the demo.
    the error we get when listing datasources, themes etc is
    java.lang.NullPointerException: UserManager was null     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.RuntimeSecurityRole.<init>(RuntimeSecurityRole.java:30)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpApplication.isUserInRole(HttpApplication.java:7034)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.EvermindHttpServletRequest.isUserInRole(EvermindHttpServletRequest.java:3507)     
    at oracle.lbs.mapserver.oms.doPost(oms.java:294)     
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     
    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.AJPRequestHandler.run(AJPRequestHandler.java:208)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)     
    at java.lang.Thread.run(Thread.java:534)
    any help would be useful
    Marco

    Hi Marco,
    did you configure a Secure Administrator User for OracleAS MapViewer? If not, take a look at some notes on chapter 1 of the documentation.
    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
    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>

Maybe you are looking for

  • MSS General Data iView

    Hi To all, I'm implementing MSS 60.1.5 <b>(No WebDynpro)</b> I have a problem with GeneraData iView (com.sap.pct.hcm.eeprofilegeneraldata.default) It's a JSP and it utilize the RFC HRWPC_RFC_EP_READ_GENERALDATA The problem is that the iView do not sh

  • Reg: Excluding one day from the daily schedule process chain

    Hi All, I have a process chain scheduled daily except Sunday i.e. from Monday to Saturday. Now i want to exclude Saturday from the daily scheduling. Any idea how we can do that. Early response will be highly appreciated. Best regards

  • V5.2 Admin-Server fails to start HP-UX 11i

    Hi, I'am installing on HP-UX 11i and everything works fine except of the Admin server. Executing the "start-admin" results in: $ ./start-admin SunONE-WebServer-Enterprise/6.0SP3 B05/14/2003 18:28 failure: server terminated (signal 10) (Interrupted sy

  • Connecting to Version Cue CS4 via Bridge?

    This is the set up; Windows 2008 Server:  Running Version Cue CS4,  no other software related to adobe products is installed, other than Version Cue, and any assets necessary for Version Cue to run. Client Work Stations running Windows 7 Ultimate, wi

  • Download for mod_plsql?

    Am I missing something? I want to set up Oracle HTTP server, but already have an Apache2 installation (part of ZendCore) All I think I need is the mod_plsql - where can I find this? One other thing, I downloaded the DBA Toolbar, what is the point? Yo