[opencms-dev] openCMS installation exception?
Mike Bachrynowski
mikeb at tableau.co.uk
Wed Oct 27 16:11:56 CEST 2004
Assuming Windows:-
In development I have installed Apache as a service but I like to choose
which Tomcat JK2 connects to. But I usually test on Tomcat standalone
first. For the Tomcat side of the Apache/Tomcat on my Windows XP
workstation. I set up variants of the following:-
-----------------
startup.bat
-----------------
rem STARTUP.bat Tomcat start - 29 October 2003
c:
cd \progs\jakarta-tomcat-5.0.19
set JAVA_HOME=\java\j2sdk1.4.2_02
set JSEE_HOME=\java\j2eesdk1.4_beta2
set CATALINA_HOME=\progs\jakarta-tomcat-5.0.19
set CATALINA_OPTS=-Dfile.encoding=ISO-8859-1
rem Start Tomcat
bin\startup
-------------------
shutdown.bat
-------------------
rem SHUTDOWN.bat Tomcat shutdown - 29 October 2003
c:
cd \progs\jakarta-tomcat-5.0.19
set JAVA_HOME=\java\j2sdk1.4.2_02
set JSEE_HOME=\java\j2eesdk1.4_beta2
set CATALINA_HOME=\progs\jakarta-tomcat-5.0.19
set CATALINA_OPTS=-Dfile.encoding=ISO-8859-1
rem Shutdown Tomcat
bin\shutdown
---------------------
I think the -Dfile.encoding is now fixed to be UTF-8 and so I don't
think I need the CATALINA_OPTS overide any more.
I dropped opencms.war in %CATALINE_HOME%/webapps started Tomcat then
connected to http://localhost:8080/opencms/setup/. ... All fine.
The OpenCMS "install.html" instructions has worked for me on various
Windows servers and various versions of mySQL and Tomcat.
I would check that your Windows environment variables; echo %PATH%; echo
%CLASSPATH% are set OK.
You do need administrator privileges for this work.
Regards
Mike
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Steve
Sent: 27 October 2004 14:46
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] openCMS installation exception?
>From first inspection it looks like you haven't set a JAVA_HOME
environment variable on your system to point to the base directory of
where you installed java. This means that when Tomcat wants to compile
your jsp into a servlet it can't find the java compiler (javac) to do
the job.
Steve,
REDPlanet Technologies Ltd,
Salters House, Salters Lane Ind. Est., Sedgefield, Stockton-on-Tees,
TS21 3EE
www.redplanetuk.com
Tel +44 (1740) 625222
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Gaworski,
Priemyslaw S
Sent: 27 October 2004 14:39
To: opencms-dev at opencms.org
Subject: [opencms-dev] openCMS installation exception?
Dear OpenCms and Java specialists,
I tried installation of OpenCMS 5.0 on two PC. I got the Java, I got the
Tomcat 5.0 and I have SQL.
The last part of unzipping the opencms.war also worked fine ...except
when one wants to proceed with the last part by accessing
http://localhost:8080/opencms/ocsetup/
<BLOCKED::http://localhost:8080/opencms/ocsetup/>
here is what happens ... and that's there regardless of reinstalling
Java, reinstalling Tomcat.
Now, the only thing I did not try yet is to uninstall MySQL ... which I
had on my machine before the rest of it.
General advice, I think the server installation is not detail enough and
while I am sure it works on new box, my two old boxes that had different
versions of Java and Tomcat before plus other things do not seem to like
it.
I explored already Zope and Mango and tell you that if it was not
because at work I was assigned to make the webcam work, I would toss it
in the corner and never look at it again.
Here is the mistake I get,
I would appreciate a lot any help anyone can give me with this
Thanks,
Shamick Gaworski
Lexington, Ky
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(DefaultErrorHa
ndler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.ja
va: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.ja
va:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va: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.getCompil
er(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.ja
va:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va: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.28 logs.
________________________________
Apache Tomcat/5.0.28
More information about the opencms-dev
mailing list