Mapviewer in JDeveloper
Good day!
I have successfully deployed the mapviewer in my pc using extended oc4j. My next task is to develop a program using JDeveloper with mapviewer. I followed the step-by-step instruction in this tutorial : http://www.oracle.com/technology/products/jdev/howtos/10g/map/mv_jdev_howto.htm.
My problem is when I ran my program I got these error messages.
Project: C:\JDev9051\jdev\mywork\WebMap\ViewController\ViewController.jpr
C:\JDev9051\jdev\mywork\WebMap\ViewController\public_html\webmap.jsp
Error(10,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(10,190): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(10,102): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(10,28): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
Error(10,40): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
Error(11,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(11,198): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(11,106): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(12,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(12,188): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(12,101): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(13,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
Error(13,200): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
Error(13,107): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
-- what am I missing? any ideas?
Thanks.
Hi,
It is ok, that you can see it in JSP Tag Libraries window. MapViewer.class is in the jdev_home.
To succesfully build your project with MapViewer Tag Lib do the following:
A). Check libraries
1. Tools -> Manage Libraries -> Libraries Window
2. In User Libraries section you should see MapViewer library entry (for example, Oracle MapViewer) which points to the mvclient.jar
3. If there is no MapViewer library, then create it
B). Check tag lib
4. Switch to the JSP Tag Libraries window
5. Double click on mapviewer entry
6. If tag is not associated with MapViewer library (from section A), then associate it. You should see in the 'Libraries (separated by sime-columns)' MapViewer library name (from section A)
7. Close Manage Libraries window with OK
C). Final step - check your project
8. Click on your project in Applications Navigator
9. With right click choose Project Properties
10. Then, go to Libraries section
11. If there is no MapViewer library name from section A in Selected Libraries section, add it
D). Finally, rebuild must be succesfull
Regards,
Andrejus
Similar Messages
-
Calling Mapviewer from Jdeveloper
Hello,
I am trying to call MapViewer from Jdeveloper. I have already used map builder to access my map, but when I try to call MapViewer I got an error message.
My Code is as follows:
MapViewer mv = new MapViewer("http://******:8888");
mv.setDataSourceName("MVDEMO");
mv.setBaseMapName("CUSTOMER_MAP");
mv.setMapTitle(" ");
mv.setImageFormat(MapViewer.FORMAT_PNG_URL);
mv.setDeviceSize(
new Dimension(256, 256)
mv.setCenterAndScale( 0, 0, 25000000);
mv.setMapRequestSRID(new Integer(8307));
mv.run();
The error message i get is:
cannot find error code
Server response is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en,us">
<HEAD>
<TITLE>Welcome to Oracle Containers for J2EE 10g (10.1.3.1.0)</TITLE>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<link rel="stylesheet" href="ohs_images/portals.css">
</HEAD>
<body bgcolor="#FFFFFF" link="#663300" vlink="#996633" alink="#FF6600" text="#000000">
<span style="font-size: 1pt;"><img src="ohs_images/space.gif" alt="Skip tabs" height=1 width=1 align="right" border=0></span>
<!-- tabs -->
<a name="tabs"></a>
<table summary="" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="2" valign="bottom" class="OraLightHeaderSub"><img alt="Oracle Application Server logo" src="ohs_images/9iAShome_banner_2.gif" width="338" height="90"></td>
<td align="right">
<table summary="" align=right border=0 cellpadding=0 cellspacing=0>
<tr>
<td width=60 align="center" valign="bottom"> </td>
<td valign=bottom width=60 align="center"> </td>
</tr>
<tr align=center valign="top">
<td width=60 align="center"> </td>
<td width=60 align="center"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right" valign="bottom">
<table summary="" border=0 cellpadding=0 cellspacing=0 height=22>
<tbody>
<tr>
<td align=right noWrap width=16><img alt="selected tab:" height=22 src="tab_files/asytlse.gif" width=14></td>
<td background="tab_files/blue-content.gif" class=OraNav1Selected width="75">Welcome</td>
<td align=right noWrap width=12><img alt="" src="tab_files/blue-end.gif"></td>
<!--<td background="tab_files/green-content.gif" noWrap width="97"> </td>-->
<td align=right noWrap width=12> </td>
<td align=right noWrap width=12> </td>
<td noWrap width=15> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<!-- blue banner -->
<table summary="" border=0 cellpadding=0 cellspacing=0 width="100%">
<tbody>
<tr valign="top">
<td height=24>
<table summary="" border=0 cellpadding=0 cellspacing=0 width="100%">
<tbody>
<tr>
<td bgcolor="#336699" noWrap valign=bottom align="left" width="50"> </td>
<td background="tab_files/asysrtb.gif" height=30 noWrap valign="top"><img alt="" border=0 height=30 src="tab_files/asysrt.gif" width=40></td>
<td background="ohs_images/rhshadow.gif" height=30 noWrap valign="top" width=10 align="left">
<img alt="" border=0 height=30 src="tab_files/asylrhs.gif" width=8></td>
</tr>
<tr>
<td background="tab_files/asylttb.gif" noWrap
valign="top" align="left" width="50" height="16"> </td>
<td noWrap valign="top" width="600" height="16"><img alt="" border=0 height=16 src="tab_files/asysrb.gif" width=40></td>
<td align=left valign="top" width=10 height="16"><img alt="" height=1 src="ohs_images/space.gif" width=1></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<a name="portlets"></a>
<span style="font-size: 1pt;">
<img src="ohs_images/space.gif" alt="This page contains the following topics:" border=0>
<img src="ohs_images/space.gif" alt="Overview" height=1 width=1 border=0>
<img src="ohs_images/space.gif" alt="Documentation" height=1 width=1 border=0>
<img src="ohs_images/space.gif" alt="Quick Tour" height=1 width=1 border=0>
<img src="ohs_images/space.gif" alt="Release Notes" height=1 width=1 border=0>
<img src="ohs_images/space.gif" alt="Oracle Enterprise Manager" height=1 width=1 border=0>
<img src="ohs_images/space.gif" alt="New Features" height=1 width=1 border=0>
</span>
<!-- main layout table -->
<div align="left">
<table summary="" width="100%" border="0" cellspacing="0" cellpadding="4" height="426">
<tr valign="top">
<!-- left column -->
<td>
<div align="left"><img alt="Welcome to Oracle Containers for J2EE" src="ohs_images/welcome_CJ2EE_1.gif" width="347" height="60"><br>
<br>
<br>
</div>
<a name="grid"></a>
<table summary="" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="OraHeader" height="25" width="25%">Overview</td>
<td class="OraGlobalButtonText" height="25" width="75%">
<div align="right"></div></td>
<td class="OraGlobalButtonText" colspan="6" width="0%">
<div align="right"></div>
</td>
</tr>
<tr>
<td height="1" bgcolor="#CCCC99" colspan="2"><img alt="" src="ohs_images/bisspace.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="142" class="OraInstructionText" width="30%">
<p align="center"><img alt="" src="ohs_images/art3.gif" width="150" height="200"></p>
</td>
<td height="142" class="OraInstructionText" width="70%">
<p>
Oracle Containers for J2EE 10g (10.1.3.1.0) is the core
J2EE runtime component of Oracle Application Server.</p>
<p>The key values of this release are: </p>
<ul>
<li> J2EE 1.4 compatible with additional support for the final EJB 3.0 specification, including JPA 1.0 API</li>
<li>Extensive Web Services capabilties with support for JAX-RPC,
WS-I, WS-Security, WS-Reliability</li>
<li>Industry leading Object-Relational persistence solution with
Oracle TopLink</li>
<li>Standards based management and deployment support with Enterprise
Manager Application Server Control </li>
<li>Enterprise performance and scalability</li>
</ul>
</td>
</tr>
</table>
<a name="doc"></a>
<table summary="doc" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="OraHeader" height="25" width="69%">Documentation</td>
<td class="OraGlobalButtonText" height="25" width="31%">
<div align="right"></div></td>
<td class="OraGlobalButtonText" colspan="6" width="0%">
<div align="right"></div>
</td>
</tr>
<tr>
<td height="1" bgcolor="#CCCC99" colspan="2"><img alt="" src="ohs_images/bisspace.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="142" class="OraInstructionText" >
<p> </p>
<p>The Configuration and Administration Guide is included within this distribution. <br>It can be be accessed from here (requires Adobe Acrobat reader).</p>
<p>The full documentation set is available from Oracle Technology Network at http://www.oracle.com/technology/documentation and contains:</p>
<ul>
<li>Configuration and Administration guide to help with management of the server</li>
<li>Deployment guide to help with deployment operations</li>
<li>Development guides to support the development of J2EE applications
using JSP, Servlet, and EJB technologies</li>
<li>Development guides to support the development and deployment of Web Services</li>
<li>Security and Services guides which describe the standard
services available such as JNDI and JMS and the comprehensive
security infrastructure</li>
</ul>
</td>
</tr>
</table>
<br>
<a name="tour"></a>
</td>
<!-- column spacer -->
<td class="OraInstructionText" rowspan="2" width="12"> </td>
<!-- right column -->
<td valign="top" width="228" align="left">
<table summary="" bgcolor="#f7f7e7" border=0 cellpadding=0 cellspacing=0 width=218>
<tbody>
<tr>
<td colspan=3 valign="top"><img alt="" border=0 height=14 src="tab_files/upperbox.gif" width=218></td>
</tr>
<tr>
<td bgcolor="#cccc99"><img alt="" border=0 src="tab_files/asybase.gif" width=1></td>
<td valign="top"> <a name="new"></a>
<table summary="" border=0 cellpadding=0 cellspacing=0 width=216>
<tbody>
<tr>
<td valign="middle" colspan="3"><span class=tab3heading> <img alt="" src="ohs_images/logon_cctitle.gif" width="18" height="18"> <span class="OraHeaderSubSub">
OC4J Management</span></span><br>
<table summary="" align=center border=0 cellpadding=0 cellspacing=0
width="90%">
<tbody>
<tr>
<td bgcolor="#cccc99"><img alt="" height=1 src="tab_files/asybase.gif"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
<td class=OraPortletBodyText>
<p>OC4J is managed from a browser using Application Server Control.</p>
<p>Launch Application Server Control</p>
</td>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
</tr>
</tbody>
</table>
</td>
<td align=left bgcolor="#cccc99" width=1><img alt="" border=0 src="tab_files/asybase.gif" width=1> </td>
</tr>
<tr>
<td colspan=3 valign="top" height="2"><img alt="" border=0 height=13 src="tab_files/lowerbox.gif" width=218></td>
</tr>
</tbody>
</table>
<br>
<table summary="" bgcolor="#f7f7e7" border=0 cellpadding=0 cellspacing=0 width=218>
<tbody>
<tr>
<td colspan=3 valign="top"><img alt="" border=0 height=14 src="tab_files/upperbox.gif" width=218></td>
</tr>
<tr>
<td bgcolor="#cccc99"><img alt="" border=0 src="tab_files/asybase.gif" width=1></td>
<td valign="top">
<a name="relnotes"></a>
<table summary="" border=0 cellpadding=0 cellspacing=0 width=216>
<tbody>
<tr>
<td colspan="3"><span class=tab3heading> <img alt="" src="ohs_images/tree_document.gif" width="16" height="16"> <span class="OraHeaderSubSub"><b>OTN
and Release Notes</b><span class="OraPortletBodyText"></span></span></span><br>
<table summary="" align=center border=0 cellpadding=0 cellspacing=0
width="90%">
<tbody>
<tr>
<td bgcolor="#cccc99"><img alt="" height=1 src="tab_files/asybase.gif"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
<td class=OraPortletBodyText><p><span class="OraPortletBodyText">Check the OC4J
page on OTN for the latest information,
technical notes and how-to examples.</span></p>
<p><span class="OraPortletBodyText">Read
the latest Release Notes on Oracle Technology
Network for important information about Oracle Containers for J2EE 10g (10.1.3.1.0)</span><br>
</p></td>
<td class=OraPortletBodyText width="10">
<p> </p></td>
</tr>
</tbody>
</table>
</td>
<!--width of the bottom - 2 pixel for border - width of the arrow -->
<td align=left bgcolor="#cccc99" width=1><img alt="" border=0 src="tab_files/asybase.gif" width=1>
</td>
</tr>
<tr>
<td colspan=3 valign="top" height="2"><img alt="" border=0 height=13 src="tab_files/lowerbox.gif" width=218></td>
</tr>
</tbody>
</table>
<br>
<table summary="" bgcolor="#f7f7e7" border=0 cellpadding=0 cellspacing=0 width=218>
<tbody>
<tr>
<td colspan=3 valign="top"><img alt="" border=0 height=14 src="tab_files/upperbox.gif" width=218></td>
</tr>
<tr>
<td bgcolor="#cccc99"><img alt="" border=0 src="tab_files/asybase.gif" width=1></td>
<td valign="top"> <a name="new"></a>
<table summary="" border=0 cellpadding=0 cellspacing=0 width=216>
<tbody>
<tr>
<td valign="middle" colspan="3"><span class=tab3heading> <img alt="" src="ohs_images/relatedapps_cctitle.gif" width="18" height="18"> <span class="OraHeaderSubSub">Quick
Check</span></span><br>
<table summary="" align=center border=0 cellpadding=0 cellspacing=0
width="90%">
<tbody>
<tr>
<td bgcolor="#cccc99"><img alt="" height=1 src="tab_files/asybase.gif"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
<td class=OraPortletBodyText>
<p>Click on the links below to perform a quick check
of your installation:</p>
<ul>
<li>JSP Test Page</li>
<li>Servlet Test Page<br>
</li>
</ul> </td>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
</tr>
</tbody>
</table>
</td>
<td align=left bgcolor="#cccc99" width=1><img alt="" border=0 src="tab_files/asybase.gif" width=1> </td>
</tr>
<tr>
<td colspan=3 valign="top" height="2"><img alt="" border=0 height=13 src="tab_files/lowerbox.gif" width=218></td>
</tr>
</tbody>
</table>
<br>
<table summary="" bgcolor="#f7f7e7" border=0 cellpadding=0 cellspacing=0 width=218>
<tbody>
<tr>
<td colspan=3 valign="top"><img alt="" border=0 height=14 src="tab_files/upperbox.gif" width=218></td>
</tr>
<tr>
<td bgcolor="#cccc99"><img alt="" border=0 src="tab_files/asybase.gif" width=1></td>
<td valign="top"> <a name="new"></a>
<table summary="" border=0 cellpadding=0 cellspacing=0 width=216>
<tbody>
<tr>
<td valign="middle" colspan="3"><span class=tab3heading> <img alt="" src="ohs_images/relatedapps_cctitle.gif" width="18" height="18"> <span class="OraHeaderSubSub">Community
Forums</span></span><br>
<table summary="" align=center border=0 cellpadding=0 cellspacing=0
width="90%">
<tbody>
<tr>
<td bgcolor="#cccc99"><img alt="" height=1 src="tab_files/asybase.gif"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
<td class=OraPortletBodyText>
<p>Collaborate with other users of Oracle Containers
for J2EE by visiting theOC4J on OTN.<br>
</p>
</td>
<td class=OraPortletBodyText width="10">
<p> </p>
</td>
</tr>
</tbody>
</table>
</td>
<td align=left bgcolor="#cccc99" width=1><img alt="" border=0 src="tab_files/asybase.gif" width=1> </td>
</tr>
<tr>
<td colspan=3 valign="top" height="2"><img alt="" border=0 height=13 src="tab_files/lowerbox.gif" width=218></td>
</tr>
</tbody>
</table> <br>
</td>
</tr>
</table>
</div>
<div align="left"> </div>
<div align="left">
<table summary="" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="604"> </td>
<td rowspan="2" valign="bottom" width="12"><img alt="" src="ohs_images/slieghright.gif" width="12" height="15"></td>
</tr>
<tr>
<td bgcolor="#CCCC99" height="1"><img alt="" src="ohs_images/bisspace.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="5"><img alt="" src="ohs_images/bisspace.gif" width="1" height="1"></td>
</tr>
<tr>
<td align="left" class="OraInstructionText"> </td>
</tr>
</table>
<table summary="" width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td>
<table summary="" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align=center colspan=2 class="OraInstructionText"> </td>
</tr>
<tr>
<td class="OraCopyright">Copyright © 2005 Oracle.
All Rights Reserved.</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</BODY></HTML>
Exception in thread "main" java.lang.Exception: MapViewer cannot process your map request. Check MapViewer log for details.
at oracle.lbs.mapclient.MapViewer.processImgURL(MapViewer.java:6962)
at oracle.lbs.mapclient.MapViewer.run(MapViewer.java:6391)
at project1.JDBCVersion.main(JDBCVersion.java:80)
Thanks,
MThanks,
I think so, Could you please let me know how I can check if the deployment is done correctly?
Also is MapViewer mv = new MapViewer("http://localhost:8888") a correct declaration?
Thanks,
M
Edited by: 834943 on Feb 18, 2011 9:16 AM -
How to use a standalone mapviewer in JDeveloper
Hello everybody,
I want to use a standalone MapViewer (deployed in a standalone OC4J from MapViewer Quick Start) in JDeveloper.
How can i do it?First of all thanks a lot for your interest !
What i want to do is to create a jsp page which will use the JSP tag library of Mapviewer.
The problem appears when i try to run a jsp page in JDeveloper which contain (for example) the init tag.
To be speceific i try to do what is described in the following link with the difference that i use a standalone mapviewer
http://www.oracle.com/technology/products/jdev/howtos/10g/map/mv_jdev_howto.htm
Thanks in advance! -
Hi,
Is it possible to display SVG format map generated by MapViewer through Jdeveloper / embedded oc4j?
Thanks,
ShoutongMaybe this sample can help:
http://andrejusb-samples.blogspot.com/2007/01/jdevadf-sample-spatially-enabled-adf.html -
It seems mapproxy servlet does not work in 11.1.1.2
Dear Masters,
I used mapproxy?rtarget= to access mapviewer in JDeveloper 11.1.1.1 and everything was OK but when I switched to 11.1.1.2 mapproxy servlet does not return anything.
Is there any changes about mapproxy servlet?
Regards.Hi,
in my web.xml file I see
<servlet-mapping>
<servlet-name>MapProxyServlet</servlet-name>
<url-pattern>/mapproxy/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
Frank -
Retrieve part of the dataset, not the entire set
Hi all.
Am currently conducting a research project regarding location based services using Oracle and Java. I have got some datasets for the map of adams county in the US. Currently working with Mapviewer and JDeveloper. I have created a datasource in mapviewer to retrieve the data from the database. but now when i get the image of the map it displays the entire map of the county. i also have a user location function where the user types in their lat/long location and it centers the map to that location.
But what if at every user request instead of loading the entire data i only want to retrieve a small amount of data around the user's location? is that possible in mapviewer? Any help would be greatly appreciated.
AvinashHi Avinash,
You can define a MapViewer request with a query window and then just the data inside this query window will be selected. For example, the following map request has the <center> tag, that defines the center and the map size (height).
<?xml version="1.0" standalone="yes"?>
<map_request
<center size="5">
<geoFeature>
<geometricProperty typeName="center">
<Point>
<coordinates>-90.0,32.0</coordinates>
</Point>
</geometricProperty>
</geoFeature>
</center>
</map_request>On MapViewer's Users Guide you will find some other examples. You can also develop programs using the java API which has methods to set your request window (such as setCenterAndSize and others).
Joao -
How to use mapviewer extension for jdevelop?
I am working on the mapviewer. But my problem is that I can not connect mapviewer, or I can not start mapviewer using the embedded oc4j by jdeveloper. In mapviewer faq I read that:
"How do I view the mapping metadata through JDeveloper's Connections Navigator?
We have developed an Oracle JDeveloper extension that lets you browse the available list of styles, themes and basemaps defined in a datasource through JDeveloper's Connections Navigator. To do this, you will first need to download the mvconnection.jar file from OTN's MapViewer site. This jar contains the code that defines a MapViewer connection type for JDeveloper. To install, simply drop this jar file to the JDeveloper extension directory, normally $JDEV_HOME/jdev/lib/ext. Then restart JDeveloper, and you are all set.
But when I restart jdeveloper, I got the message:
"H:\Programme\jdev\jdev\lib\ext\mvpalette.jar!\META-INF\jdev-ext.xml
Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvpalette.jar!/META-INF/jdev-ext.xml<Line 105, Column 18>: XSD-2021: (Error) Element not completed: 'jsplibrary'
H:\Programme\jdev\jdev\lib\ext\mvconnection.jar!\META-INF\jdev-ext.xml
Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvconnection.jar!/META-INF/jdev-ext.xml<Line 25, Column 20>: XSD-2034: (Error) Element 'description' not expected.
Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvconnection.jar!/META-INF/jdev-ext.xml<Line 26, Column 13>: XSD-2034: (Error) Element 'help' not expected.
I use Jdeveloper 10g. Have you ever met the same problem?
Thanks in advanceThe Map Viewer extension is still not available for JDeveloper 10g. It works with JDeveloper 9.
The Mapping group is currently working on an upgrade. -
Error in Running map from Jdeveloper Weblogic -MAPVIEWER-05523--06036
Hi,
I have deployed Mapviewer.ear on an integrated weblogic server and loaded mvdemo sample dataset into my db, and made required changes in map_data_source in mapViewerConfig.xml.
Now, I am able to run all the demo apps and tutorial. However, when I run the map code(basic map) in a jspx from Jdeveloper, I am getting the below error in a pop-up in the browser.
"[MVGlobalVariables.getMapCacheConfig]*MAPVIEWER-05523*:Cannot process response from MapViewer server.(MVDEMO.DEMO_MAP:MAPVIEWER-06036: MapTileServer is not read. Please try again later.)"
In the log, error is "<CacheInstanceConfig> <loadCacheStorageDef> Invalid cache root directory:/scrtach/mvdemomaps\. Cache root directory will be set to default root directory."
I am using Jdeveloper version 11.1.1.4.
What could be the issue, esp when demos are running successfully on the same server.Ok, so the error comes cause the application is trying to get the tile layer from the server while the Mapviewer server is not ready.
So make sure you run your application once mapviewer server is up and running.
Now, for the problem that you get a blank page it is propably a javascript error as mapviewer gives no errors.
I have made a mistake in the previous post in the HTML section of my code. Give it a try now.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>testMap1</title>
<script language="Javascript" type="text/javascript" src="/mapviewer/fsmc/jslib/oraclemaps.js"> </script>
<script type="text/javascript">
var basemap1 = new MVMapTileLayer("mvdemo.demo_map");
function showMap()
//maybe formating is taking away the plus symbols. just make sure the base url is formatted correctly
var baseURL = "http://" + document.location.host + "/mapviewer";
var mapCenterLon = -122.45;
var mapCenterLat = 37.6706;
var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
var mapZoom = 5;
var mapview = new MVMapView(document.getElementById("map"), baseURL);
mapview.addMapTileLayer(basemap1);
mapview.setCenter(mpoint);
mapview.setZoomLevel(mapZoom);
mapview.addNavigationPanel("EAST");
mapview.display();
</script>
</head>
<body onload="showMap()">
<div id="map"
</div>
</body>
</html>
if you still get a blank page. Try using firefox with firebug and see what errors rise up in firebug. You should be able to find out what goes wrong with javascript.
Edited by: P.T on 17 Μαϊ 2011 5:11 πμ
Edited by: P.T on 17 Μαϊ 2011 5:15 πμ
Edited by: P.T on 17 Μαϊ 2011 5:15 πμ -
Mapviewer demo mapinit.jsp with svg doesn't work with jdeveloper
hi ng,
i tried the source code for the svg-sample in jdeveloper and first of all jdeveloper dislikes the line "<embed id="map" src="<%= mv.getGeneratedMapImageURL() %>...". after "embed" a green line is to be seen.
When i start the sample the map looks okay, but when i want to hide a theme (or zoom), i get the internet_explorer-message "error on the page".
"themeVisibleArray[idx]='false';" goes right but the next line occurs the error: "map.window.hideTheme(theme) ;"
map is not known at this place, it seems to me.
who can help (please)?
greetings
thomashi,
i still have a problem. i can work on an existing svg-map but not on a just generated svg-map. zoomin2 works.
here's the code:
<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/spatial/mvtaglib.tld" prefix="mapviewer"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.net.*"%>
<%@ page import="java.util.*"%>
<%@ page import="oracle.lbs.mapclient.*"%>
<%@ page import="oracle.lbs.mapcommon.MapResponse"%>
<%@ page import="java.awt.Dimension"%>
<%
String sizeStr = request.getParameter("initsize") ;
String scaleStr = request.getParameter("scale") ;
String cxStr = request.getParameter("centerX") ;
String cyStr = request.getParameter("centerY") ;
String baseMap = request.getParameter("basemap");
String _width = request.getParameter("width") ;
String _height = request.getParameter("height") ;
String _infoon = request.getParameter("infoon") ;
String action = request.getParameter("action");
boolean infoon = false;
boolean recenter = false ;
boolean zoomin = false ;
boolean zoomin2 = false ;
int width = 600 ;
int height = 400 ;
if(_width!=null && _height!=null)
try
width = Integer.parseInt(_width) ;
catch(Exception e){}
try
height = Integer.parseInt(_height) ;
catch(Exception e){}
if(baseMap==null) baseMap = "demo_map";
double size = 0.2 ;
try
size = Double.parseDouble(sizeStr) ;
catch(Exception e){}
double scale = 2 ;
try
scale = Double.parseDouble(scaleStr) ;
catch(Exception e){}
double cx = -122.2615 ;
try
cx = Double.parseDouble(cxStr) ;
catch(Exception e){}
double cy = 37.5266 ;
try
cy = Double.parseDouble(cyStr) ;
catch(Exception e){}
String dataSrc = request.getParameter("datasrc");
boolean newSession = false;
// retrieve mapviewer client handle from session
MapViewer mv = (MapViewer) session.getAttribute("mvhandle");
boolean sessionExpired = false ;
if(mv==null || request.getParameter("initflag")!=null)
if(request.getParameter("initflag")==null)
sessionExpired = true ;
else
//initializes MapViewer bean instance
newSession = true;
String mvURL = request.getParameter("mvurl");
// create a new mapviewer client handle
mv = new MapViewer(mvURL);
mv.setDataSourceName(dataSrc);
mv.setImageFormat(MapResponse.FORMAT_SVGZ_URL);
/* the javascript function svgClicked will be called when the svg map
is clicked. svgClicked is defined in this page, it recenters or zoomins
the map. */
mv.setSVGOnClick("svgClicked") ;
/* initial themes (from an existing base map) */
mv.addThemesFromBaseMap(baseMap);
mv.setSVGZoomLevels(3);
/* disable the builtin navigation bar */
mv.setShowSVGNavBar(false) ;
mv.setMapTitle(" MAP TITLE ");
mv.setMapLegend(
"<legend bgstyle=\"fill:#ffffff;stroke:#ff0000\" profile=\"MEDIUM\" position=\"SOUTH_EAST\">"+
" <column>"+
" <entry text=\"Map Legend\" is_title=\"true\" />"+
" <entry style=\"M.CITY HALL 3\" text=\"cities\" />"+
" <entry style=\"M.CITY HALL 4\" text=\"big cities\" />"+
" <entry style=\"L.PH\" text=\"interstate highway\" />"+
" </column></legend>");
mv.setDeviceSize(new Dimension(width, height));
session.setAttribute("mvhandle", mv); // keep client handle in the session
String themes[] = new String[0] ;
if(!sessionExpired)
themes = mv.getThemeNames() ;
mv.setCenter(cx, cy);
mv.setSize(size);
mv.setSVGZoomRatio(scale) ;
mv.setSVGShowInfo(infoon);
String[] checkedThemes = request.getParameterValues("_mthemev_");
if(checkedThemes!=null && checkedThemes.length>0)
Hashtable checked = new Hashtable(30) ;
for(int i=0; i<checkedThemes.length; i++)
checked.put(checkedThemes, checkedThemes[i]) ;
for(int i=0; i<themes.length; i++)
if(checked.get(themes[i])!=null)
mv.setThemeVisibleInSVG(themes[i], true);
else
mv.setThemeVisibleInSVG(themes[i], false) ;
mv.run() ;
%>
<html>
<head>
<title>untitled</title>
<%-- <embed id="map" name="map" src="<%= mv.getGeneratedMapImageURL() %>" width="<%= width %>" height="<%= height %>"></embed> --%>
<%-- src="images/omsmap3_56.svgz" --%>
<%-- src="<%= mv.getGeneratedMapImageURL() %>" --%>
<%-- <object name="map" data="images/test_svg.svgz" type="image/svg+xml" width="800" height="600" standby="Warte noch ein Weilchen..."> --%>
<%-- </object> --%>
<script type="text/javascript">
var mapSize = <%= size %> ;
var scale = <%= scale %> ;
var width=<%= width%> ;
var height=<%= height%> ;
var rcx = <%= cx %> ;
var rcy = <%= cy %> ;
var cx = <%= width/2%> ;
var cy = <%= height/2%> ;
var disabled = true ;
// var themeVisibleArray = ...
var info = <%= infoon %> ;
var legend = false ;
var clickZoomin = <%= zoomin %> ;
var clickRecenter = <%= recenter %> ;
function zoomin()
map.window.setZoomRatio(1.1);
function zoomin2()
map2.window.setZoomRatio(1.1);
</script>
</head>
<body>
<P>
<form method="GET" action="test2.jsp">
<P>Name:
<input type="text" size="60" name="name" value="<%= mv.getGeneratedMapImageURL() %>"/>
<input type="text" size="60" name="datasrc" value="<%= request.getParameter("datasrc") %>"/>
<input type="text" size="60" name="basemap" value="<%= request.getParameter("basemap") %>"/>
<input type="text" size="60" name="centerX" value="<%= request.getParameter("centerX") %>"/>
<input type="text" size="60" name="centerY" value="<%= request.getParameter("centerY") %>"/>
<input type="text" size="60" name="initsize" value="<%= request.getParameter("initsize") %>"/>
<input type="text" size="60" name="width" value="<%= request.getParameter("width") %>"/>
<input type="text" size="60" name="height" value="<%= request.getParameter("height") %>"/>
<input type="text" size="60" name="type" value="<%= request.getParameter("type") %>"/>
</P>
<P>
<input type="SUBMIT" value="Submit"/>
</P>
</form>
</P>
<table>
<tr>
<td colspan="2">
<I>URL</I>[<B><%=mv.getGeneratedMapImageURL()%></B>]
</td>
</tr>
</table>
<%-- images/test_svg.svgz --%>
<embed src="<%= mv.getGeneratedMapImageURL() %>" name="map" id="map" width="500" height="500" type="image/svg+xml" />
<embed src="images/test_svg.svgz" name="map2" id="map2" width="500" height="500" type="image/svg+xml" />
<%-- <embed id="map" src="<%= mv.getGeneratedMapImageURL() %>" width="<%= width %>" height="<%= height %>"></embed> --%>
<FORM name="form" action="test2.jsp" method="GET" >
<input type="radio" name="action" value="zoomin" <%= zoomin?"checked":"" %> onclick="zoomin()" ><B>Zoom In</B>
<input type="radio" name="action2" value="zoomin2" <%= zoomin2?"checked":"" %> onclick="zoomin2()" ><B>Zoom In2</B>
<input type="hidden" name="width" value="<%=width%>"/>
<input type="hidden" name="height" value="<%=height%>"/>
<input type="hidden" id="cx" name="centerX" value=""/>
<input type="hidden" id="cy" name="centerY" value=""/>
<input type="hidden" id="size" name="initsize" value=""/>
<input type="hidden" id="scale" name="scale" value=""/>
<input type="hidden" id="infoon" name="infoon" value="<%=(infoon?"yes":"no")%>" />
</FORM>
<br>
<P>
</P>
</body>
</html> -
MapViewer / Jdeveloper 10g / Installation
Hi,
Just beginning to explore MapViewer and I'm wondering if the embedded OC4J container in Jdeveloper will support exploring MapViewer capabilities, or do I have to install a separate OC4J container to begin.
Thanks,
MarieIt'll work in the embedded OC4J. There are some specific setup steps you have to do. I don't recall them. They were discussed in an earlier post on this discussion forum.
-
Mapviewer Configuration on Jdeveloper
Hi,
I have downloaded Mapviewer kit (mapviewer_11ea1.zip) from OTN site. I am trying to develop new web application to render map data stored on oracle spatial using JDeveloper. For now question is where i have to add this mapviewe.ear file into Jdevelpor to get MapViewer bean that is to import oracle.lbs.mapclient.MapViewer. I ma using JDeveloper version 10.1.3
Thanks,
SujnanHi,
I have followed the following steps to develop new mapviewer application.
1) First I downloaded mapviewer_11ea1.zip from otn site.
2) Extracted above file to get mapviewer.ear.
3) Then again i extracted mapviewer.ear file. Now i got the following jar files
adf-faces-api.jar
adf-faces-impl.jar
adfshare.jar
chartbuilder.jar
classgen.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
jsf-api.jar
jsf-impl.jar
jstl.jar
lbs.jar
mapcache.jar
mapviewer.jar
mvclient.jar
mvconsole.jar
mvmbeans.jar
sdoapi.jar
sdogr.jar
sdonm.jar
sdoutl.jar
sdovis.jar
standard.jar
wmsfilter.jar
4) Then I added these files into my application library.[By right clicking ViewController->Project properties->Library]
5) Copied mapViewerConfig.xml into WEB_INF\conf directory
6) In mapViewerConfig.xml file i have changed the "save_images_at" and "map_data_source" tag
Now my application is working fine
But if I remove this mapViewerConfig.xml then my application would not works. It will throw the excption for mapViewer.addThemesFromBaseMap(strBaseMap); saying that Theme list is not found.
Is these steps are right to develop real time application on oracle spatial and mapviewer?
Thanks,
Sujnan -
MapViewer JDeveloper embedded OC4J installation error
Hi,
I downloaded all latest mapviewer.ear and latest OC4J.
Followed MapviewerUG installation instructions
After starting OC4J
using the url http://localhost:8888/mapviewer/
works well and the demos like jview also works well
using the url http://localhost:8888/mapviewer/omserver
however, generates the following error
<?xml version="1.0" encoding="UTF-8" ?>
<oms_error>Message:[oms] empty or null xml map request string. Sat Apr 02 14:40:14 IST 2005 Severity: 0 Description: at oracle.lbs.mapserver.oms.getXMLDocument(oms.java:852) at oracle.lbs.mapserver.oms.doPost(oms.java:302) at oracle.lbs.mapserver.oms.doGet(oms.java:234) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534)</oms_error>
I also downloaded the latest JDeveloper 10G and JDeveloper extensions and follwed the instructions in the How To Document
How To Build Dynamic Maps Using JDeveloper 10g and Oracle Application Server MapViewer
An Oracle JDeveloper How To Document
Justin Lokitz
October 2004
I have no compilation errors but I am not able to view the density map. I am getting the Internal Server Error 500 instead.
Can anyone please guide me through this.
Thomas JosephHi Joao
Thanks for tip on the log file.
I have the data loaded.
Evrything works fine when I use Mapviewer with OC4J and try the jview demo.
I am however not able to get the example 'How to build Dynamic Maps' running using JDeveloper using the embeded OC4J server.
The jsp source is as follows
<%@ 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>MapViewer WebMap</P>
<P>
<mapviewer:init url="http://localhost:8888/mapviewer/omserver" datasource="mvdemo" id="mvHandle"/>
</P>
</DIV>
<DIV align="center">
<mapviewer:setParam antialiasing="true" basemap="density_map" centerX="-122.4" centerY="37.8" height="450" size="10" title="MyWebMap" width="600"/>
<mapviewer:run/>
</DIV>
<img src="<mapviewer:getMapURL />"/>
</body>
</html>
There are no comilation errors
When I run the code I get 500 Internal Server Error.
The Application2-oc4j-app.log generated is as follows
05/04/05 20:04:11 Started
05/04/05 20:05:14 Application2-ViewController-webapp: JDevOJSP: init
05/04/05 20:05:14 Application2-ViewController-webapp: action: init
05/04/05 20:05:16 Application2-ViewController-webapp: 9.0.4.0.0 Started
05/04/05 20:05:28 Application2-ViewController-webapp: Servlet error
javax.servlet.jsp.JspException: Connection refused: connect
at oracle.lbs.mapclient.taglib.MapViewerRunTag.doStartTag(MapViewerRunTag.java:123)
at webmap.jspService(webmap.jsp:17)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
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 (9.0.4.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Please put me on the track. I am not able to figure out what is going wrong.
Regards
Thomas Joseph -
About how to build dynamic maps using jdeveloper 10g and mapviewer
i follow the guidance (about how to build dynamic maps using jdeveloper 10g and oracle application server mapviewer) to write a jsp file,but error take palce ,i get information "Project: D:\jdev1012\jdev\mywork\WebMap\ViewController\ViewController.jpr
D:\jdev1012\jdev\mywork\WebMap\ViewController\public_html\WebMap.jsp
Error(12,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(12,190): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(12,102): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
Error(12,28): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
Error(12,40): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
Error(13,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(13,198): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(13,106): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
Error(14,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(14,188): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(14,101): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
Error(15,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
Error(15,200): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
Error(15,107): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found"
can you help?
greetingsI found a lot of information in document 133682.1 on metalink.
step by step example how to deploy a JSP business component application. -
Ann: New MapViewer Extensions for JDeveloper 10g
We are pleased to annouce the availability of a new MapViewer extension kit for JDeveloper 10g (9.0.5.1 or later versions).
Please download the kit from the following MapViewer page:
http://otn.oracle.com/software/products/mapviewer/index.html
Thanks
LJYes currently the extension is strictly a top-level browsing tool with no mapping metadata drill down/editing capabilities.
Those features are being planned for the next major release of this extension kit, as part of our major effort to rewrite the map definition tool. there is however no ETA yet. -
Hi,
I'm using mapviewer and svg samples. But I can't work any svg with Embedded OC4J Server. When I work svgmap.jsp in my project, I get a empty map. But if I deploy this project to Standalone OC4J then svg is working. How can I solve this prolem? İs there any idea?
Sorry for my english.
Thanks
OğuzhanHi,
I'm using mapviewer and svg samples. But I can't work any svg with Embedded OC4J Server. When I work svgmap.jsp in my project, I get a empty map. But if I deploy this project to Standalone OC4J then svg is working. How can I solve this prolem? İs there any idea?
Sorry for my english.
Thanks
Oğuzhan
Maybe you are looking for
-
IMac G3 will not recognize USB upon startup?
The iMac G3 seems to be fine hardware wise, however, it will not accept any input upon startup and I cannot boot from a CD. I have tried booting whole holding down the C key, tried booting into options, open firmware, etc. All with no luck, it just c
-
Hi I am using code on linux system where i go to next line by write.next(); than it shows non printable character by which next line is not generated.It is working fine with windows we can get jar for this at http://datafile.sourceforge.net/. kindly
-
Hi all, we have a problem with display of fax attachments in the view FaxDispLrg, instead in the view FaxPreview they are displayed properly. The table is always empty: i try to debug it but i can't find the problem. Has anyone ever encountered this
-
I have an old iPod Classic, 5th generation with video 30 GB. I sync via a pc. Since syncing it three days ago, the songs will only play the first three minutes and five seconds. Then it moves on to the next song or if it's the last song, it goes back
-
Can't Importing iPhoto '11 (version 9) into Aperture 3
I have Aperture 3 and iPhoto '09. My father recently upgraded to iPhoto '11. I've successfully imported iPhoto '09 libraries in the past. But now my father has iPhoto '11 and gave me a small iPhoto library to import into my Aperture 3 collection (2 e