Date: Thu, 8 Mar 2001 10:56:52 +1100 From: "Joe Shevland" <shevlandj@kpi.com.au> To: "Drew Lister" <dlister@crossoft.com>, "Sean Kelly" <kelly@ad1440.net>, <freebsd-java@FreeBSD.ORG> Subject: RE: Trying to Create a simple Bean Message-ID: <NKEFKGEPLECBEFCCIDDJEEKOCCAA.shevlandj@kpi.com.au> In-Reply-To: <9FD1AD5A8A0EB94B8B41ABC47563ED4B3B5C@exchange1.crossoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Drew, JServ cannot find the class file for your DiceBean class. Its been a while since I've used JServ (Tomcat is a much better alternative). If DiceBean is not associated with a package (e.g. no package com.foo.bar in Java source) then it should be fine to compile DiceBean.class and then place a reference to its directory or JAR file in (I think) jserv.properties as this is where the CLASSPATH is set up. I would keep your class files for a particular web app in both i) a structured package format and ii) a JAR file, just for namespace cleanliness. Tomcat makes things a lot easier in terms of class loading too, you can just whompf all your class files into <WA>/WEB-INF/classes or JAR's into <WA>/WEB-INF/lib. Regards, Joe -----Original Message----- From: Drew Lister [mailto:owner-freebsd-java@FreeBSD.ORG]On Behalf Of = Drew Lister Sent: Thursday, March 08, 2001 4:56 AM To: Sean Kelly; freebsd-java@FreeBSD.ORG Subject: RE: Trying to Create a simple Bean When I put the line in : <%@page import=3D"DiceBean" %> I get this error /usr/local/www/gnujsp/jsp__pants_2ejsp.java:6: Class DiceBean not found = in import. import DiceBean; ^ 1 error Should DiceBean be part of a package? I was just referencing it as one = class. The CLASSPATH of the webserver (Apache.conf) does include the location = of DiceBean. Should you store all classes that you create in another directory = besides the home directory of the www pages? Thanks, Drew Lister -----Original Message-----=20 From: Sean Kelly=20 Sent: Wed 3/7/2001 12:10 PM=20 To: Drew Lister; freebsd-java@FreeBSD.ORG=20 Cc:=20 Subject: Re: Trying to Create a simple Bean > DiceBean time =3D (DiceBean) Do you have the package for DiceBean imported in your <%@ page ... %> declaration? Is the class definition for DiceBean available to GNU JSP? In other words, does the CLASSPATH of the web server include the location of DiceBean? --k To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NKEFKGEPLECBEFCCIDDJEEKOCCAA.shevlandj>