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:10:54 GMT
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.java
>:
>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(JspServl
>e
>t.java:188)
>
>	at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381
>)
>
>	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(Applic
>a
>tionFilterChain.java:247)
>
>	at 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
>t
>erChain.java:193)
>
>	at 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
>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(StandardContextVal
>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:23
>4
>7)
>
>	at 
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
>a
>:180)
>
>	at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
>a
>va:566)
>
>	at 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
>a
>lve.java:170)
>
>	at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
>a
>va:564)
>
>	at 
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
>a
>:170)
>
>	at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
>a
>va:564)
>
>	at 
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46
>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(StandardEngineValve
>.
>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.java
>:
>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



Mime
View raw message