This page last changed on Dec 10, 2004 by barinek.

For user and developer to post the problems when they encounter.

1. Problem starting the GeoServer.
After i put the _war file in the tomcat webapp folder, i use my broswer to open the following url: http://localhost:8080/geoserver/wfs/GetCapabilities

And it appears a XML file.

Then when i try to locate: http://localhost:8080/geoserver/

It comes out some errors:
------------------------------------------------------------------------------
HTTP Status 500 -

--------------------------------------------------------------------------------

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
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.

-------------------------------------------------------------------------------------------------------------

It says that i haven't define JAVA_HOME, then i go to check it:

C:\Documents and Settings\installer>echo %JAVA_HOME%
C:\j2sdk1.4.2_05

It is correctly defined already.

Do any one know how to solve this problem??

-by Marcelo

-------------------------------------------------------------------------------------------------------------

I get the below exception using the demo server...

as an output format for this server. Please consult the Capabilities document
56797 WARNING org.vfny.geoserver.servlets.AbstractService - service exception
while executing request: org.vfny.geoserver.requests.wms.GetMapRequest@8845df8b

cause: image/png is not recognized as an output format for this server. Please c
onsult the Capabilities document

and ideas?

For those who recieve the Error 500 "Unable to compile class for JSP", it is most likely caused by your machine unable to find the compiler (javac).

From the cmd prompt, type

"set %path%;C:\path\to\j2sdk1.4.2\bin"

Then in the same cmd window, browse to your geoserver start.jar and type

"java -jar start.jar"

Wait for jetty to load and then try visiting

http://localhost:8080/geoserver/

You should now be able to compile geoserver. Note: Using set is only temporary, limited to that cmd prompt window. Id highly suggest that if this solves your problem, that you add the j2sdk bin to your system environment variables to make it a more permanent solution. Good luck,

Posted by chris.tweedie@dli.wa.gov.au at Jul 21, 2005 23:18

Hi, I just did an SVN co:
------------
Path: .
URL: svn://svn.codehaus.org/geoserver/scm/trunk/geoserver
Repository UUID: ef1d6e69-97e5-0310-af46-8a06194da32a
Revision: 3936
Node Kind: directory
Schedule: normal
Last Changed Author: magne
Last Changed Rev: 3936
Last Changed Date: 2005-11-20 17:56:15 -0500 (Sun, 20 Nov 2005)
Properties Last Updated: 2005-11-20 22:25:31 -0500 (Sun, 20 Nov 2005)
---------------

I imported the project into Eclipse 3.1 (using JDK 1.5), and there is a problem:

Package: org.vfny.geoserver.wms.responses
Class: DefaultRasterLegendProducer.java
Line: 209
Style2D style2d = styleFactory.createStyle(sampleFeature,
symbolizer, scaleRange);
Error: The type javax.media.jai.util.Range cannot be resolved. It is indirectly referenced from required class files.

Any recommendation?

Posted by davisford at Nov 20, 2005 23:02

Answer to my own question: I did not realize that you include the jai library "jai-core-1.1.3-alpha.jar" in the lib dir. However, you somehow don't include it in the Eclipse project - so I manually added it in Java Build Path, and things are good now.

Posted by davisford at Nov 20, 2005 23:39

If you can submit a patch to include it in the .classpath file we'd be happy to add it. I don't use eclipse so I can't test - it probably didn't come up before since our eclipse developers likely already had it installed.

Posted by cholmes at Nov 21, 2005 09:01

Hi Chris, if there is a patch process, I'd be happy to do it. I'm sure there must be a wiki page on how to do so?

Posted by davisford at Nov 21, 2005 10:02

Hmmm... I should make a page that's more 'how to provide a patch'. The best we've got right now is: http://docs.codehaus.org/display/GEOSDOC/Reporting+Bugs

Basically just make an issue in JIRA, and attach your patch there. Assign against the next release, and it'll get taken care of. Rolled in if easy, assigned for later if not.

Chris

Posted by cholmes at Dec 05, 2005 06:34

I have problem to compile geoserver with a java 6??

WHY????

Pleas help!!!!!!!

Posted by neofx8080 at Sep 18, 2007 15:41
Document generated by Confluence on May 14, 2014 22:59