tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sekhmet" <sekhmet.sel...@netvisao.pt>
Subject RE: Configuration Error?
Date Mon, 04 Aug 2003 07:26:45 GMT
??? Maybe...
But do I have to import my own classes? If so what is the purpose of
having the Bean code separated from the JSP code?

Pedro Honório Silva
pmhsilva@netvisao.pt


-----Original Message-----
From: Kwok Peng Tuck [mailto:pengtuck@makmal.net] 
Sent: segunda-feira, 4 de Agosto de 2003 8:25
To: Tomcat Users List
Subject: Re: Configuration Error?


Also did you import your classes in the <@page import > directive ? I 
only see a java.lang, could be the source of the problem.

Sekhmet wrote:

>Yes, but they are in WEB-INF/classes/mybeans (MYBEANS is the package
>name) and I still get the same error...
>
>Pedro Honório Silva
>pmhsilva@netvisao.pt
>
>
>-----Original Message-----
>From: Kwok Peng Tuck [mailto:pengtuck@makmal.net]
>Sent: segunda-feira, 4 de Agosto de 2003 8:15
>To: Tomcat Users List
>Subject: Re: Configuration Error?
>
>
>Pedro, unjar-ed classes go under  WEB-INF/classes/{SOME PACKAGENAME},
>jar files
>go under WEB-INF/lib
>
>Your java beans will never be found if they just reside under WEB-INF .
>
>Pedro Silva wrote:
>
>  
>
>>I am really having a bad time using Apache Tomcat for the first 
>>time...
>>    
>>
>
>  
>
>>But I won't give up... Just need help... I have a JSP page that works
>>with a javabean (a simple test page), just look at the code:
>>
>><%@ page contentType="text/html; charset=iso-8859-1" language="java"
>>import="java.sql.*" errorPage="" %> <html>
>>   <head>
>>       <jsp:useBean class="mybeans.lineBean" id="bean=" scope="page"
>>    
>>
>/>
>  
>
>>       <title>Using JavaBeans</title>
>>       <meta http-equiv="Content-Type" content="text/html;
>>charset=iso-8859-1">
>>   </head>
>>
>>   <body>
>>
>>       <%= bean0.stars(20) %>
>>       Welcome to JavaBeans!
>>       <%= bean0.doubleLine(30) %>
>>
>>   </body>
>></html>
>>
>>When I try this page I get the following error:
>>
>>type Exception report
>>
>>message Internal Server Error
>>
>>description The server encountered an internal error (Internal Server
>>Error) that prevented it from fulfilling this request.
>>
>>exception
>>
>>org.apache.jasper.JasperException: Unsupported encoding:
>>
>>	at
>>org.apache.jasper.compiler.ParserController.getReader(ParserController
.
>>j
>>ava:440)
>>
>>	at 
>>org.apache.jasper.compiler.ParserController.parse(ParserController.jav
>>a
>>:
>>209)
>>
>>	at
>>org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
>>
>>	at
>>org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
>>
>>	at
>>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary
(
>>J
>>spServlet.java:176)
>>
>>	at
>>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServ
l
>>e
>>t.java:188)
>>
>>	at 
>>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:38
>>1
>>)
>>
>>	at
>>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
>>
>>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>
>>	at
>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
c
>>a
>>tionFilterChain.java:247)
>>
>>	at
>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
l
>>t
>>erChain.java:193)
>>
>>	at
>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
l
>>v
>>e.java:243)
>>
>>	at
>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
j
>>a
>>va:566)
>>
>>	at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:
>>4
>>72)
>>
>>	at
>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>>
>>	at
>>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
l
>>v
>>e.java:190)
>>
>>	at
>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
j
>>a
>>va:566)
>>
>>	at
>>org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.
j
>>a
>>va:246)
>>
>>	at
>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
j
>>a
>>va:564)
>>
>>	at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:
>>4
>>72)
>>
>>	at
>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>>
>>	at
>>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2
3
>>4
>>7)
>>
>>	at
>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
v
>>a
>>:180)
>>
>>	at
>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
j
>>a
>>va:566)
>>
>>	at
>>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcher
V
>>a
>>lve.java:170)
>>
>>	at
>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
j
>>a
>>va:564)
>>
>>	at
>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
v
>>a
>>:170)
>>
>>	at
>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
j
>>a
>>va:564)
>>
>>	at
>>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:4
6
>>8
>>)
>>
>>	at
>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
j
>>a
>>va:564)
>>
>>	at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:
>>4
>>72)
>>
>>	at
>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>>
>>	at
>>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
e
>>.
>>java:174)
>>
>>	at
>>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
j
>>a
>>va:566)
>>
>>	at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:
>>4
>>72)
>>
>>	at
>>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>>
>>	at
>>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor
.
>>j
>>ava:1027)
>>
>>	at 
>>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.jav
>>a
>>:
>>1125)
>>
>>	at java.lang.Thread.run(Thread.java:536)
>>
>>
>>
>>I have this page on Tomcat/ROOT/ directory and the class at
>>Tomcat/ROOT/WEB-INF/mybeans.
>>
>>Do I have anything misconfigured? I'm busting my head off since
>>yesterday over this...
>>
>>Can anyone help me? Thankx!
>>
>>
>>Pedro Honório Silva
>>pmhsilva@netvisao.pt
>>
>>
>> 
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>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
>
>
>
>
>  
>


---------------------------------------------------------------------
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