tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Selina Korain <selina_kor...@yahoo.de>
Subject Problem porting WebApp from JRun to Tomcat
Date Sat, 24 May 2003 00:27:45 GMT
I tried unsuccessfully to port an application, thats
running fine with JRun, to Tomcat. I copied all jsp
files to CATALINA_HOME\webapps\root\ and put the
relevant classes into
CATALINA_HOME\webapps\root\WEB-INF\classes .

Now when I try to access any of the related jsp files
I get errors like this:

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

An error occurred at line: 19 in the jsp file:
/main.jsp

Generated servlet error:
    [javac] Compiling 1 source file

D:\EasyPHP\Tomcat
4.1\work\Standalone\localhost\_\main_jsp.java:76:
cannot resolve symbol
symbol  : class WebgameModel  
location: class org.apache.jsp.main_jsp
	WebgameModel Model = (WebgameModel)
session.getAttribute ("WGModel");
        ^



An error occurred at line: 19 in the jsp file:
/main.jsp

Generated servlet error:
D:\EasyPHP\Tomcat
4.1\work\Standalone\localhost\_\main_jsp.java:76:
cannot resolve symbol
symbol  : class WebgameModel  
location: class org.apache.jsp.main_jsp
	WebgameModel Model = (WebgameModel)
session.getAttribute ("WGModel");
                              ^



An error occurred at line: 19 in the jsp file:
/main.jsp

Generated servlet error:
D:\EasyPHP\Tomcat
4.1\work\Standalone\localhost\_\main_jsp.java:80:
cannot resolve symbol
symbol  : class Account  
location: class org.apache.jsp.main_jsp
		Account aktAccount = Model.getAccount();
                ^



An error occurred at line: 135 in the jsp file:
/anzeigen.jsp

Generated servlet error:
D:\EasyPHP\Tomcat
4.1\work\Standalone\localhost\_\main_jsp.java:1413:
cannot resolve symbol
symbol  : class Charakter  
location: class org.apache.jsp.main_jsp
												Charakter aktChar = (Charakter)
charList.get(index);
                                                      
                                         ^



An error occurred at line: 135 in the jsp file:
/anzeigen.jsp

Generated servlet error:
D:\EasyPHP\Tomcat
4.1\work\Standalone\localhost\_\main_jsp.java:1413:
cannot resolve symbol
symbol  : class Charakter  
location: class org.apache.jsp.main_jsp
												Charakter aktChar = (Charakter)
charList.get(index);
                                                      
                                                      
       ^



An error occurred at line: 10 in the jsp file:
/charakter2.jsp

Generated servlet error:
D:\EasyPHP\Tomcat
4.1\work\Standalone\localhost\_\main_jsp.java:1596:
cannot resolve symbol
symbol  : class CharakterDatabase  
location: class org.apache.jsp.main_jsp
	CharakterDatabase cdb = new CharakterDatabase();	
        ^



An error occurred at line: 10 in the jsp file:
/charakter2.jsp

Generated servlet error:
D:\EasyPHP\Tomcat
4.1\work\Standalone\localhost\_\main_jsp.java:1596:
cannot resolve symbol
symbol  : class CharakterDatabase  
location: class org.apache.jsp.main_jsp
	CharakterDatabase cdb = new CharakterDatabase();	
                                    ^



An error occurred at line: 10 in the jsp file:
/charakter2.jsp

Generated servlet error:
D:\EasyPHP\Tomcat
4.1\work\Standalone\localhost\_\main_jsp.java:1597:
cannot resolve symbol
symbol  : class Charakter  
location: class org.apache.jsp.main_jsp
	Charakter aktChar = cdb.getCharByID(1);//((String)
request.getSession().getAttribute("Benutzername"));	
        ^
8 errors


	at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
	at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
	at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
	at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
	at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
	at java.lang.Thread.run(Thread.java:536)

This is what shows up in the Window where Tomcat is
running:

Compile failed; see the compiler error output for
details.
        at
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
        at
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
        at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:308)
        at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
        at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
.java:474)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:184)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:260)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2415)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:172)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

        at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
3)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:432)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:386)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:534)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:530)
        at java.lang.Thread.run(Thread.java:536)

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message