Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 39153 invoked from network); 29 Sep 2004 18:44:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Sep 2004 18:44:37 -0000 Received: (qmail 35716 invoked by uid 500); 29 Sep 2004 18:42:39 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 35596 invoked by uid 500); 29 Sep 2004 18:42:38 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 35476 invoked by uid 99); 29 Sep 2004 18:42:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [207.155.252.75] (HELO valiant.xo.com) (207.155.252.75) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 29 Sep 2004 11:42:36 -0700 Received: from [192.168.0.103] (67.107.112.238.ptr.us.xo.net [67.107.112.238]) by valiant.xo.com id OAA15550; Wed, 29 Sep 2004 14:42:33 -0400 (EDT) [ConcentricHost SMTP Relay 1.17] Errors-To: Subject: Re: Problem whit this message cannot resolve symbol From: Ben Souther To: Tomcat Users List In-Reply-To: References: Content-Type: text/plain; charset=UTF-8 Organization: F.W. Davison & Co, Inc. Message-Id: <1096483352.15892.63.camel@bsouther> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 29 Sep 2004 14:42:33 -0400 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Tomcat sets it's own classpath. You add your classes by placing them in the specified directories. This should get you started: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html This page has the specifics on classloading: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html On Wed, 2004-09-29 at 14:29, f-gil@insa-tachi-s.com.mx wrote: > Hi i´m begginer in Tomcat and Java and i´ve a problem. > I try run a JSP , but the next error appear, some one know the reasons? > The JSP use a simple class, when i run the example by shell (only for > test) all it´s OK, but when the JSP call the Class i get the Error. > My classPath it´s ok, i´ve review it. > Thanks. > ype 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: 3 in the jsp file: /Example.jsp > > Generated servlet error: > [javac] Compiling 1 source file > > /opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/Mysql-conn/org/apache/jsp/Example_jsp.java:55: > cannot resolve symbol > symbol : class clsDisplayHtml > location: class org.apache.jsp.Example_jsp > clsDisplayHtml m_ClsDisplayHTML = new > clsDisplayHtml(m_StrAppName, m_StrWebMEmail, m_StrWebMName, > m_StrPageTitle); > ^ > > > > An error occurred at line: 3 in the jsp file: /Example.jsp > > Generated servlet error: > /opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/Mysql-conn/org/apache/jsp/Example_jsp.java:55: > cannot resolve symbol > symbol : class clsDisplayHtml > location: class org.apache.jsp.Example_jsp > clsDisplayHtml m_ClsDisplayHTML = new > clsDisplayHtml(m_StrAppName, m_StrWebMEmail, m_StrWebMName, > m_StrPageTitle); > ^ > > > > An error occurred at line: 3 in the jsp file: /Example.jsp > > Generated servlet error: > /opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/Mysql-conn/org/apache/jsp/Example_jsp.java:60: > cannot resolve symbol > symbol : class clsReadProps > location: class org.apache.jsp.Example_jsp > clsReadProps m_ClsProperties = new > clsReadProps("mysql.properties"); > ^ > > > > An error occurred at line: 3 in the jsp file: /Example.jsp > > Generated servlet error: > /opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/Mysql-conn/org/apache/jsp/Example_jsp.java:60: > cannot resolve symbol > symbol : class clsReadProps > location: class org.apache.jsp.Example_jsp > clsReadProps m_ClsProperties = new > clsReadProps("mysql.properties"); > ^ > > > > An error occurred at line: 3 in the jsp file: /Example.jsp > > Generated servlet error: > /opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/Mysql-conn/org/apache/jsp/Example_jsp.java:65: > cannot resolve symbol > symbol : class clsDbBean > location: class org.apache.jsp.Example_jsp > clsDbBean m_ClsDataBase = new clsDbBean(m_StrDriver, > m_StrUrl, m_StrUser, m_StrPass); > ^ > > > > An error occurred at line: 3 in the jsp file: /Example.jsp > > Generated servlet error: > /opt/jakarta-tomcat-5.0.19/work/Catalina/localhost/Mysql-conn/org/apache/jsp/Example_jsp.java:65: > cannot resolve symbol > symbol : class clsDbBean > location: class org.apache.jsp.Example_jsp > clsDbBean m_ClsDataBase = new clsDbBean(m_StrDriver, > m_StrUrl, m_StrUser, m_StrPass); > ^ > 6 errors > > > > org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127) > > org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351) > org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:458) > org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) > > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:553) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) > javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > > note The full stack trace of the root cause is available in the Tomcat > logs. > > Apache Tomcat/5.0.19 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org