tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Reche Martinez" <dre...@novasoft.es>
Subject Re: Tomcat/Java compiler error
Date Thu, 29 May 2003 07:13:26 GMT
Yeeeeeahhhh !!!

It's Right !! Thank you very much.

But why in older versions was not necessary and now is mandatory?

----- Original Message -----
From: "Shapira, Yoav" <Yoav.Shapira@mpi.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Wednesday, May 28, 2003 6:27 PM
Subject: RE: Tomcat/Java compiler error



Howdy,
UserBean needs to be in a package.  See
http://tomcatfaq.sourceforge.net/classnotfound.html

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: David Reche Martinez [mailto:dreche@novasoft.es]
>Sent: Wednesday, May 28, 2003 12:12 PM
>To: tomcat-user@jakarta.apache.org
>Subject: Tomcat/Java compiler error
>
>Hi all,
>
>I have tomcat-4.1.24 and I'm trying to test a very simple jsp that use a
>JavaBean:
>
>** -- HolaMundo.jsp
><%@ page language="java"  %>
><%@ page import="UserBean" %>
>
><jsp:useBean id="usr" scope="page" class="UserBean">
>  <jsp:setProperty name="usr" property="login"    value="pepe" />
>  <jsp:setProperty name="usr" property="password" value="epep" />
></jsp:useBean>
>
>  <head>
>    <title>&iexcl;Hola Mundo!</title>
>  </head>
>  <body>
>    <h1>&iexcl;Hola <jsp:getProperty name="usr" property="login" />!</h1>
>  </body>
></html>
>
>I follow the directory hierarchy that is explained in the helps docs
>(WEB-INF/classes) but when I try to execute the jsp through the navigator I
>have this error:
>
>org.apache.jasper.JasperException: No se puede compilar la clase para JSP
>
>An error occurred at line: -1 in the jsp file: null
>
>Generated servlet error:
>    [javac] Since fork is true, ignoring compiler setting.
>    [javac] Compiling 1 source file
>    [javac] Since fork is true, ignoring compiler setting.
>    [javac]
>/usr/local/tomcat-
>4.1.24/work/Standalone/localhost/prueba/prueba1_jsp.java:8
>: '.' expected
>    [javac] import UserBean;
>    [javac]                   ^
>    [javac] 1 error
>
>Can anybody help me?
>
>Thank you
>
>David Reche Martínez
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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