PDA

View Full Version : JSpell HTML v2.0 and Tomcat 5.0.27


cerapier
10th December 2007, 05:46 PM
Greetings,

We've been using JSpellHTML for some time now. Recently, due to hardware failue, we had to switch platforms and now are seeing an "Unable to compile class" error when trying to use the software.

The prior platform was JServ on Solaris 8.
The new platform is Windows Server 2003 and Tomcat 5.0.27.

The WAR file (jspellhtml.war) appeared to have installed fine, but when the spell check functionality is called for, the following error appears:

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
C:\Java\Tomcat 5.0\work\Catalina\localhost\jspellhtml\org\apache\ jsp\JSpell_jsp.java:6: '.' expected
import JSpellHTMLTools;
^
1 error



org.apache.jasper.compiler.DefaultErrorHandler.jav acError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass( Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:472)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:451)
org.apache.jasper.compiler.Compiler.compile(Compil er.java:439)
org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)

Any help in what can be done to resolve this are greatly appreciated.

-Cal

staff
4th January 2008, 05:07 PM
The easiest way to fix this is to upgrade to the newest version, although it will require some minor changes to your web pages to upgrade. Without going into technical arcana, the reason for the problem is that the Java server vendors changed their minds (between 2002 and now) about how classes and packages would be referenced by the server. The most recent version of JSpell uses a system that will work in old and new app servers.