[mapguide-users] HTTP Status 500 running ajaxviewersample.jsp
Gianfranco
magnitudo9 at email.it
Sun Jun 8 09:37:49 EDT 2008
Hi, I have compiled LinuxApt with tomcat support, but when I try the java
example http://127.0.0.1:8008/mapguide/javaviewersample/ajaxviewersample.jsp
I have this result:
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 23 in the jsp file:
/javaviewersample/utilityfunctions.jsp
MgException cannot be resolved to a type
20: <%@ page import="javax.servlet.http.*" %>
21: <%@ page import="org.osgeo.mapguide.*" %>
22: <%!
23: void InitializeWebTier() throws MgException
24: {
25: String realpath = getServletContext().getRealPath("/");
26: // Initialize web tier with the site configuration file. The config
An error occurred at line: 29 in the jsp file:
/javaviewersample/utilityfunctions.jsp
MapGuideJavaApi cannot be resolved
26: // Initialize web tier with the site configuration file. The config
27: // file should be in the same folder as this script.
28: String configPath = realpath + "webconfig.ini";
29: MapGuideJavaApi.MgInitializeWebTier( configPath );
30: }
31:
32: String GetQueryXmlTemplatePath()
An error occurred at line: 52 in the jsp file:
/javaviewersample/utilityfunctions.jsp
MgLayer cannot be resolved to a type
49:
50: // Searches the map for a layer with the specified name.
51:
52: MgLayer GetLayerByName(MgMap map, String layerName) throws MgException
53: {
54: MgLayer layer = null;
55: for (int i = 0; i < map.GetLayers().GetCount(); i++)
An error occurred at line: 52 in the jsp file:
/javaviewersample/utilityfunctions.jsp
MgMap cannot be resolved to a type
49:
50: // Searches the map for a layer with the specified name.
51:
52: MgLayer GetLayerByName(MgMap map, String layerName) throws MgException
53: {
54: MgLayer layer = null;
55: for (int i = 0; i < map.GetLayers().GetCount(); i++)
An error occurred at line: 52 in the jsp file:
/javaviewersample/utilityfunctions.jsp
MgException cannot be resolved to a type
49:
50: // Searches the map for a layer with the specified name.
51:
52: MgLayer GetLayerByName(MgMap map, String layerName) throws MgException
53: {
54: MgLayer layer = null;
55: for (int i = 0; i < map.GetLayers().GetCount(); i++)
An error occurred at line: 54 in the jsp file:
/javaviewersample/utilityfunctions.jsp
MgLayer cannot be resolved to a type
51:
52: MgLayer GetLayerByName(MgMap map, String layerName) throws MgException
53: {
54: MgLayer layer = null;
55: for (int i = 0; i < map.GetLayers().GetCount(); i++)
56: {
57: MgLayer nextLayer = (MgLayer) map.GetLayers().GetItem(i);
An error occurred at line: 57 in the jsp file:
/javaviewersample/utilityfunctions.jsp
MgLayer cannot be resolved to a type
54: MgLayer layer = null;
55: for (int i = 0; i < map.GetLayers().GetCount(); i++)
56: {
57: MgLayer nextLayer = (MgLayer) map.GetLayers().GetItem(i);
58: if (nextLayer.GetName().equals(layerName))
59: {
60: layer = nextLayer;
An error occurred at line: 57 in the jsp file:
/javaviewersample/utilityfunctions.jsp
MgLayer cannot be resolved to a type
54: MgLayer layer = null;
55: for (int i = 0; i < map.GetLayers().GetCount(); i++)
56: {
57: MgLayer nextLayer = (MgLayer) map.GetLayers().GetItem(i);
58: if (nextLayer.GetName().equals(layerName))
59: {
60: layer = nextLayer;
An error occurred at line: 67 in the jsp file:
/javaviewersample/utilityfunctions.jsp
MgByteReader cannot be resolved to a type
64: return layer;
65: }
66:
67: void OutputReaderContent(ServletResponse response, MgByteReader
byteReader) throws MgException, Exception
68: {
69: ByteArrayOutputStream bos = new ByteArrayOutputStream();
70:
An error occurred at line: 67 in the jsp file:
/javaviewersample/utilityfunctions.jsp
MgException cannot be resolved to a type
64: return layer;
65: }
66:
67: void OutputReaderContent(ServletResponse response, MgByteReader
byteReader) throws MgException, Exception
68: {
69: ByteArrayOutputStream bos = new ByteArrayOutputStream();
70:
An error occurred at line: 33 in the jsp file:
/javaviewersample/ajaxviewersample.jsp
MgUserInformation cannot be resolved to a type
30:
31: InitializeWebTier();
32:
33: MgUserInformation userInfo = new MgUserInformation("Anonymous", "");
34: MgSite site = new MgSite();
35:
36: site.Open(userInfo);
An error occurred at line: 33 in the jsp file:
/javaviewersample/ajaxviewersample.jsp
MgUserInformation cannot be resolved to a type
30:
31: InitializeWebTier();
32:
33: MgUserInformation userInfo = new MgUserInformation("Anonymous", "");
34: MgSite site = new MgSite();
35:
36: site.Open(userInfo);
An error occurred at line: 34 in the jsp file:
/javaviewersample/ajaxviewersample.jsp
MgSite cannot be resolved to a type
31: InitializeWebTier();
32:
33: MgUserInformation userInfo = new MgUserInformation("Anonymous", "");
34: MgSite site = new MgSite();
35:
36: site.Open(userInfo);
37:
An error occurred at line: 34 in the jsp file:
/javaviewersample/ajaxviewersample.jsp
MgSite cannot be resolved to a type
31: InitializeWebTier();
32:
33: MgUserInformation userInfo = new MgUserInformation("Anonymous", "");
34: MgSite site = new MgSite();
35:
36: site.Open(userInfo);
37:
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.14 logs.
Can you help me? Many thanks
--
View this message in context: http://www.nabble.com/HTTP-Status-500-running-ajaxviewersample.jsp-tp17718856p17718856.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list