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)

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 OC4J problem

    I installed OC4J, Mapviewer and the mapviewer demo
    Now some Mapviewer demos and examles work, I can connect to the database, but I cannot start any OC4J-jsp or Mapviewer-jsp demo.
    Selecting a jsp demo (i.e. •     jview.jsp A simple no hassle spatial data viewer) in the internet explorer I get the message:
    The page cannot be displayed
    There is a problem with the page you are trying to reach and it cannot be displayed.
    The OC4J process reports the following error:
    04/09/22 11:50:46 IOException in compile: CreateProcess: javac.exe -J-Xmx1024m -
    classpath oc4j.jar;D:\oc4j\j2ee\home\lib/ejb.jar;D:\oc4j\j2ee\home\lib/servlet.j
    ar;D:\oc4j\j2ee\home\lib/ojsp.jar;D:\oc4j\j2ee\home\lib/jndi.jar;D:\oc4j\j2ee\ho
    me\lib/jdbc.jar;D:\oc4j\j2ee\home\iiop.jar;D:\oc4j\j2ee\home\iiop_gen_bin.jar;D:
    \oc4j\j2ee\home\lib/jms.jar;D:\oc4j\j2ee\home\lib/jta.jar;D:\oc4j\j2ee\home\lib/
    jmxri.jar;D:\oc4j\j2ee\home\lib/javax77.jar;D:\oc4j\j2ee\home\lib/javax88.jar;D:
    \oc4j\j2ee\home\../../opmn/lib/ons.jar;D:\oc4j\j2ee\home\../../opmn/lib/optic.ja
    r;D:\oc4j\j2ee\home\../../lib/dms.jar;D:\oc4j\j2ee\home\../../dms/lib/dms.jar;D:
    \oc4j\j2ee\home\lib/connector.jar;D:\oc4j\j2ee\home\lib/cos.jar;D:\oc4j\j2ee\hom
    e\lib/jsse.jar;D:\oc4j\j2ee\home\../../oracle/lib/jsse.jar;D:\oc4j\j2ee\home\lib
    /jnet.jar;D:\oc4j\j2ee\home\lib/jcert.jar;D:\oc4j\j2ee\home\lib/activation.jar;D
    :\oc4j\j2ee\home\lib/mail.jar;D:\oc4j\j2ee\home\../../javavm/lib/jasper.zip;D:\o
    c4j\j2ee\home\../../lib/xmlparserv2.jar;D:\oc4j\j2ee\home\../../oracle/lib/xmlpa
    rserv2.jar;D:\oc4j\j2ee\ho?
    Has anybody an idea what is wrong?
    The operating system is Windows 2000, German version.
    The OC4J is the latest version (dowloaded last week),
    the database is Oracle 10g, 10.1.0.2 enterprise edition.

    this is definately caused by using the wrong java program. Please check the following:
    1. Are you using Java 1.4 or higher? to check, do 'java -version' from command line.
    2. Are you using the java executable located directly under a J2SDK's bin folder? If you are using any jre (Java Runtime Environment) java executable, OC4J wont be able to run the JSP pages.
    Also dont use the java that comes with your oracle database, as that is also a JRE only program. Instead, download the full j2sdk 1.4.2 from Sun.
    LJ

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

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

  • Running the demos problem...

    Hi guys!
    I'm a newbee in the Mapviewer forum and unfortunately I've a problem with running the mvdemo demos. I've ofc dployed mapviewer in the OC4J, imported the dmp file into scott schema, configured the mapviewer data source...but everytime I'd like to run a demo i receive the unpleasant warning = "No base map MV_DEMO.DEMO_MAP found...". I don't really know where to seek for the solution, because the Mapbuilder is able to see these Base Map ;/ Please help...
    With regards,
    PsmakR

    Similar problem here. I'm running: Windoze Server 2003 , Ver1033p5_B080908, OAS 10.1.3.1. The sever is a static IP. My admin console can't see my cached maps. I can see them in mapbuilder fine so I know the database is up. I know the user_sdo_cached_maps is configured, the data is there and the schema is set up. I have the datasource configured in my mapViewerConfig.xml and I have tried to manually create a datasource.
    When I do it manually I get ...
    ...so I log in to OAS and do a good faith restart of mapviewer so I can test it one more time and fill in the error message, which was MAPVIEWER 0000011 or something, and boom there are my tile layers.
    I have no idea what I did. I swear I've restarted mapviewer several times during this process and have no idea why now my tiles are there.
    This morning I changed my logging level and did a save & restart option from the mapviewer console but only when I bounced the application server did these finally show up.
    One thing that did happen to me during set up was my default tilecache path didn't exist. Perhaps that was the problem? I doubt just turning on loging would "fix" anything. Is restarting the application container for mapserver different than "save & restart" from the mapviewer management console?
    Anyhow I'm happy to have tiled maps working :)

  • File Upload demo problem

    Hi!, i have a problem with the File Upload Demo when it calls this line:
    hDirectoryObject := JFile.new(directory);
    and the error is: error 6508 "PL/SQL: could not find program unit being called"
    That's ok, but anybody knows why should the program couldnt find the routine ?
    And just one more thing...where can i look for JFile method description ??
    Thanks a lot :) !!
    Cristian.

    Is this 9i or 6i?
    JFile is an imported wrapper for a Java Class - it should be in the Demo form already - you could try a compile all on the file just in case.

  • MapViewer metadata problem - accessing spatial data in a different schema.

    I have a MapViewer application that uses data from three different schemas.
    1. Dynamic Themes come from schema A.
    2. Static Themes come from schema B.
    3. A newly added static theme in B whose data comes from schema C.
    The mapviewer datasource points to schema B where the static themes, data and metadata are defined while the dynamic themes have their own datasource specified as part of addJDBCTheme(...).
    To get the newly added map to work I've had to add a view in schema B that points to C instead of referencing directly the table and I've had to add the metadata twice, once for schema B and once for schema C.
    If I put the metadata in just one of the two schemas I get the following errors.
    08/11/21 13:58:57 ERROR [oracle.sdovis.ThemeTable] cannot find entry in ALL_SDO_GEOM_METADATA table for theme: AMBITOS_REST
    08/11/21 13:58:57 ERROR [oracle.sdovis.ThemeTable] java.sql.SQLException: Invalid column index
    OR
    08/11/21 13:53:39 ERROR [oracle.sdovis.theme.pgtp] java.sql.SQLException: ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA view
    It's not a big deal but I'd like to know if anyone else has has similar problems.
    Saludos,
    Lew.
    Edited by: Lew2 on Nov 21, 2008 6:42 AM

    Hi Lew,
    if you are using a recent version (10.1.3.1 or later) there is no need to use a view and to create the metadata in both schemas.
    You need to grant selection on tables between the schemas.
    You can try the following. Assume you have the MVDEMO schema (from MapViewer kit) and SCOTT schema.
    1) grant select on MVDEMO Counties table to SCOTT
    SQL> grant select on counties to scott;
    2) Now you are ready to create a predefined theme in schema SCOTT using the MVDEMO Counties table.
    - Open MapBuilder and loads the SCOTT schema.
    - On the Data navigator (bottom left tree), go to Geometry tables and you should see the MVDEMO node and the COUNTIES node inside it.
    - Start a wizard to create a geometry theme based on this Counties table.
    - At the end you should see that the base table name is MVDEMO.COUNTIES. Therefore MapViewer will use the metadata in MVDEMO schema and there is no need to replicate it in SCOTT schema.
    Joao

  • Photo Gallery Demo Problem

    I'm trying to understand the Photo Gallery demo so I can
    replicate the function for use on various sites. I've copied the
    html, xml, javascript and some of the photo file elements to my
    hard drive. I initially modified the file structures to something
    more of my liking, but had some problems with the links. I've since
    mimicked the structures so I can reduce the initial errors, but I
    am stumped at the var dsGallery and var dsPhotos statements that
    dynamically link to the China, Paris and Egypt photo databases. In
    the original dynamic definition, DreamWeaver only parses the
    dsGalleries XML definition, not defining the dsGallery and dsPhoto
    nodes. I wasn't too concerned about that given the variable nature,
    but nothing except the pull-down menu and controls displayed in the
    browser. DreamWeaver shows correct parsing of the dsGalleries XML,
    dsGallery and dsPhoto nodes only when I eliminate the dynamic
    linking and set it to one of the static links (Egypt). This fails
    in the browser to link to the data, giving a display that shows the
    correct number of empty thumbnail frames but without the displayed
    photos, no Spry effects, and no large photo display. I'm sure I
    have multiple reference errors, but I don't see them. Any ideas?
    Initial Photo Demo page:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <!-- Copyright (c) 2006. Adobe Systems Incorporated. All
    rights reserved. -->
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=ISO-8859-1" />
    <title>Gallery</title>
    <link rel="stylesheet" type="text/css"
    href="../css/screen.css">
    <script type="text/javascript"
    src="../SpryAssets/xpath.js"></script>
    <script type="text/javascript"
    src="../SpryAssets/SpryData.js"></script>
    <script type="text/javascript"
    src="../SpryAssets/SpryEffects.js"></script>
    <script type="text/javascript">
    var dsGalleries = new
    Spry.Data.XMLDataSet("galleries/galleries.xml",
    "galleries/gallery");
    var dsGallery = new
    Spry.Data.XMLDataSet("galleries/{dsGalleries::@base}{dsGalleries::@file}",
    "gallery");
    var dsPhotos = new
    Spry.Data.XMLDataSet("galleries/{dsGalleries::@base}{dsGalleries::@file}",
    "gallery/photos/photo");
    </script>
    <script src="../SpryAssets/gallery.js"
    type="text/javascript"></script>
    </head>
    <body id="gallery">
    <noscript><h1>This page requires JavaScript.
    Please enable JavaScript in your browser and reload this
    page.</h1></noscript>
    <div id="wrap">
    <h1 id="albumName"
    spry:region="dsGallery">{sitename}</h1>
    <div id="previews">
    <div id="galleries" spry:region="dsGalleries">
    <label for="gallerySelect">View:</label>
    <select spry:repeatchildren="dsGalleries"
    id="gallerySelect"
    onchange="dsGalleries.setCurrentRowNumber(this.selectedIndex);">
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
    selected="selected">{sitename}</option>
    <option spry:if="{ds_RowNumber} !=
    {ds_CurrentRowNumber}">{sitename}</option>
    </select>
    </div>
    <div id="controls">
    <ul id="transport">
    <li><a href="#" onclick="StopSlideShow();
    AdvanceToNextImage(true);"
    title="Previous">Previous</a></li>
    <li class="pausebtn"><a href="#" onclick="if
    (gSlideShowOn) StopSlideShow(); else StartSlideShow();"
    title="Play/Pause" id="playLabel">Play</a></li>
    <li><a href="#" onclick="StopSlideShow();
    AdvanceToNextImage();" title="Next">Next</a></li>
    </ul>
    </div>
    <div id="thumbnails" spry:region="dsPhotos dsGalleries
    dsGallery">
    <div spry:repeat="dsPhotos"
    onclick="HandleThumbnailClick('{ds_RowID}');"
    onmouseover="GrowThumbnail(this.getElementsByTagName('img')[0],
    '{@thumbwidth}', '{@thumbheight}');"
    onmouseout="ShrinkThumbnail(this.getElementsByTagName('img')[0]);">
    <img id="tn{ds_RowID}" alt="thumbnail for {@thumbpath}"
    src="galleries/{dsGalleries::@base}{dsGallery::thumbnail/@base}{@thumbpath}"
    width="24" height="24" style="left: 0px; right: 0px;" />
    </div>
    <p class="ClearAll"></p>
    </div>
    </div>
    <div id="picture">
    <div id="mainImageOutline" style="width: 0px; height:
    0px;"><img id="mainImage" alt="main image" /></div>
    </div>
    <p class="clear"></p>
    </div>
    </body>
    </html>
    Fixed reference version:
    <head>
    var dsGalleries = new
    Spry.Data.XMLDataSet("Graphics/galleries/galleries.xml",
    "galleries/gallery");
    var dsGallery = new
    Spry.Data.XMLDataSet("Graphics/galleries/egypt/Egyptphotos.xml",
    "gallery");
    var dsPhotos = new
    Spry.Data.XMLDataSet("Graphics/galleries/egypt/Egyptphotos.xml",
    "gallery/photos/photo");
    </script>
    Supporting files galleries.xml and Egyptphotos.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <galleries>
    <gallery base="Graphics/galleries/egypt/"
    file="Egyptphotos.xml">
    <sitename>Egypt</sitename>
    <photographer>Don Booth</photographer>
    <contactinfo>
    http://www.adobe.com</contactinfo>
    <email>[email protected]</email>
    <security><![CDATA[]]> </security>
    </gallery>
    ... duplicate China and Paris declarations
    </gallery>
    </galleries>
    <?xml version="1.0" encoding="UTF-8"?>
    <gallery
    base = ""
    background = "#FFFFFF"
    banner = "#F0F0F0"
    text = "#000000"
    link = "#0000FF"
    alink = "#FF0000"
    vlink = "#800080"
    date = "1/10/2006">
    <sitename>Egypt Gallery</sitename>
    <photographer>Don Booth</photographer>
    <contactinfo>
    http://www.adobe.com</contactinfo>
    <email>[email protected]</email>
    <security><![CDATA[]]> </security>
    <banner font = "Arial" fontsize = "3" color =
    "#F0F0F0"> </banner>
    <thumbnail base
    ="../../gallery/galleries/egypt/thumbnails/" font = "Arial"
    fontsize = "4" color = "#F0F0F0" border = "0" rows = "3" col =
    "5"> </thumbnail>
    <large base ="../../gallery/galleries/egypt/images/" font
    = "Arial" fontsize = "3" color = "#F0F0F0" border = "0">
    </large>
    <photos id = "images">
    <photo
    path = "egypt_01.jpg"
    width = "350"
    height = "262"
    thumbpath = "egypt_01.jpg"
    thumbwidth = "75"
    thumbheight = "56">
    </photo>
    </photos>
    </gallery>

    Please delete this posting. I've found the full original
    information in the v1.6 pre-release information and will compare to
    that baseline.

  • Mapviewer performance problem using image format FORMAT_RAW_COMPRESSED

    I am using the MapViewer.FORMAT_RAW_COMPRESSED map image in my (java) map application because some features must be clickable and as far as I can work out, this is the only way to achieve this in a Java client. On my local system, running the map server in an oc4j container, this works about as fast as using FORMAT_GIF_URL and loading the image from this url. There also doesn't seem to be much difference in memory and cpu usage.
    When I direct the request to a map server running on a remote Application Server the rendering time grows exponentially. The same maprequest using FORMAT_GIF_URL runs as fast as it does in my local OC4J container. The problem seems to be in "packing time" in RealWorker:
    Remote AS:
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 99ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 5560ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 142605ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 148264ms
    Local OC4J:
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 540ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 2490ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 120ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 3150
    The test server is smaller than my local system and more applications are running on the AS, generating the map takes all the available memory and cpu, but the difference between the time it takes generating a GIF image and generating a Java image of almost a factor 50 is puzzling.
    What could cause this enormous difference? Any idea's about how we can analyze or solve this? What could RealWorker be doing in this packing time? Any hints would be greatly appreciated.
    Many thanks,
    Ida

    Thanks for the replies!
    1. Which AS version are you using? -> 10.1.2
    2. Just as a test, if you restart AS (if possible) do you still get the same values? -> yes, we restarted the AS and the results are the same.
    The server is indeed running low in memory. It is a 512MB machine, just big enough to run the AS. The production server will have some more, but not very much. Could I estimate how much extra memory it will need to keep a good performance when generating maps with live features? And maybe I'm wrong, but shouldn't the extra load for the java image only be on the client, since that's where the image is made? On the server it's just the image data, isn't it?
    I tried removing the basemap, but that reduces the loading time just with a few seconds. The live themes are jdbc themes and result in only some 20 to 30 geofeatures. Removing them from the request so only an empty image with a title is retrieved still takes about 117 seconds. Reducing the device size does reduce the loading time, so it does seem to have something to do with the amount of pixels in the image space, not with the data. Could it be that in the "packing" of the image something happens that takes a lot of memory, related to the amount of pixels?
    In my situation it would be handy if the live features were also returned when the image format is not set to FORMAT_RAW_COMPRESSED, it is also possible to draw shapes onto an existing image and this would bypass the memory problems.
    Thanks for any further help.
    Ida

  • 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

  • How do i remove an iCloud account from a previous owner on my macbook

    PLEASE HELP.  I bought a used Macbook Air for my wife and it has the previous owner's iCloud information.  When I try to remove it, it requires his passwork which I obviously do not know.  I've tried resetting his password in hopes that it would emai

  • How can I embed a HTML document onto my webpage?

    What I am trying to do: I am trying to make an image that has links to urls from different parts of the image. What I have done so far: I have built a photoshop image to embed on my webpage, following the instructions offered by many online forums, b

  • Photoshop CC 2014 won't open Bridge properly

    I have just installed Photoshop CC 2014. Now, when I pick 'Open in Bridge' from the File Menu it just brings up the Creative CC installer. It asks if I want to use the current version of Bridge or upgrade. Selecting the current version does nothing.

  • File adapter module enhancement error

    Hello All, We have a EDI scenario where data for 110 is to be transfered to SAP. Here customer is not able to ahead with seeburger hence decided to develope a adapter module. We have done that  and started testing . While testing we are getting a err

  • PAL format on quick time

    A newbie question. I just got a DVD from France and is in PAL format, I am trying to play it on my laptop and the DVD is getting rejected (without being able to play it). I thought that it does not matter if it is PAL or NTSC the computers can play e