PDA

View Full Version : JasperException


bgould
15th December 2007, 10:49 PM
After upgrading a server from Tomcat 4.1 to Tomcat 5.5, and Java 1.4.1 to Java 1.5.14, JSpell fails to work:

org.apache.jasper.JasperException: Exception in JSP: /JSpell.jsp:57

54: pageContext.forward(JSpellHTMLTools.getProxy(reque st)+"?errorPanel=1024");
55: }
56: }
57: String errorString=JSpellHTMLTools.getErrors(request,dire ctEdit,confirmAfterLearn,confirmAfterReplace,suppl ementalDictionary,language);
58: if(errorString==null) {
59: drawPanel=false;
60: %>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:451)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet .java:803)


root cause

java.lang.RuntimeException: Parser not created. Dictionary has not been properly initialized.
com.wallstreetwise.app.jspell.domain.JSpellParser. dictionaryChanged(JSpellParser.java:93)
com.wallstreetwise.app.jspell.domain.JSpellParser. setDictionary(JSpellParser.java:66)
com.wallstreetwise.app.jspell.domain.JSpellParser.<init>(JSpellParser.java:109)

staff
19th December 2007, 12:43 AM
I suspect that you need to set the dictionary directory in your web.xml file.