tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luke Vanderfluit <l...@chipcity.com.au>
Subject jsp:usebean how to?
Date Sat, 13 Sep 2003 15:22:33 GMT
Hi,

I'm using tomcat 4.1.27.

I'm trying to get a jsp page to call a bean.

Is there something I need to enter in web.xml or server.xml?

I have tried the examples that come with tomcat, namely the date.jsp
example.
When I move the JspCalendar.class file that it calls to a different
directory and modify the date.jsp file to call it from that directory,
it doesn't work.
Why is that?


I have a jsp file: /TC/webapps/tutorialbeans/loginPage.jsp
it calls a bean: /TC/webapps/tutorialbeans/WEB-INF/classes/LoginBean
I have stripped it down to the minimum. 

When I load my jsp file into the browser I get the following error:

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

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
Project base dir set to: /usr/local/tomcat/jakarta-tomcat-4.1.27
Detected Java version: 1.4 in: /usr/local/j2sdk1.4.2/jre
Detected OS: Linux
    [javac] studentMenuPage_jsp.java added as studentMenuPage_jsp.class doesn't exist.
    [javac] Compiling 1 source file
    [javac] Using modern compiler
    [javac] Compilation arguments:
    [javac] '-classpath'
    [javac] '/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/bin/bootstrap.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/webapps/tutorialbeans/WEB-INF/classes:/usr/local/tomcat/jakarta-tomcat-4.1.27/shared/classes:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/classes:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/endorsed/xercesImpl.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/endorsed/xmlParserAPIs.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/servlet.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/mail.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/commons-logging-api.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/commons-collections.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jdbc2_0-stdext.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/commons-pool.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jasper-compiler.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/naming-factory.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jndi.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/activation.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jasper-runtime.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/naming-resources.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/naming-common.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/commons-dbcp.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/ant.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jta.jar'
    [javac] '-sourcepath'
    [javac] '/usr/local/tomcat/jakarta-tomcat-4.1.27/work/Standalone/localhost/tutorialbeans'
    [javac] '-encoding'
    [javac] 'UTF8'
    [javac] '-g'
    [javac] 
    [javac] The ' characters around the executable and arguments are
    [javac] not part of the command.
    [javac] File to be compiled:
    [javac]     /usr/local/tomcat/jakarta-tomcat-4.1.27/work/Standalone/localhost/tutorialbeans/studentMenuPage_jsp.java

/usr/local/tomcat/jakarta-tomcat-4.1.27/work/Standalone/localhost/tutorialbeans/studentMenuPage_jsp.java:7:
'.' expected
import LoginBean;
                ^
1 error
#########################################

Can someone help out?
thanks,
kind regards,
Luke

-- 
====================================
"when my computer smiles, I'm happy"
===============================.~ ~,
Luke Vanderfluit               |'/']
Mobile: 0421 276 282            \~/`


Mime
View raw message