From owner-freebsd-java Thu Mar 8 13:15:33 2001 Delivered-To: freebsd-java@freebsd.org Received: from www.kpi.com.au (www.kpi.com.au [203.39.132.210]) by hub.freebsd.org (Postfix) with ESMTP id 663C337B71A for ; Thu, 8 Mar 2001 13:15:27 -0800 (PST) (envelope-from shevlandj@kpi.com.au) Received: from BLACKHAWK (pA21.hbt.southcom.com.au [203.60.23.34]) by www.kpi.com.au (8.9.3/8.9.3) with SMTP id IAA26377; Fri, 9 Mar 2001 08:14:31 +1100 (EST) (envelope-from shevlandj@kpi.com.au) From: "Joe Shevland" To: "Drew Lister" , "Sean Kelly" , Subject: RE: Trying to Create a simple Bean Date: Fri, 9 Mar 2001 08:17:24 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <9FD1AD5A8A0EB94B8B41ABC47563ED4B3B67@exchange1.crossoft.com> Importance: Normal Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org i) Tomcat works fine under BSD, there's no specific port for = Apache/Tomcat or anything like that though I don't believe. I'm using a = bundle of Apache/mod_ssl/Tomcat (and PostgreSQL for the db of course) = which is proving very stable. ii) JServ (and Tomcat and all JSP's engines AFAIK) will compile a page = into a servlet and use the servlet until such time as the JSP is = modified again, so you're test page has been compiled and the engine = will use this. To make totally sure I know things are refreshed in a dev = environment, I usually stop Tomcat, clear the work directory and = restart. Tomcat in one of its later versions may support dynamic registering and = unregistering of webapps and/or servlets on the fly, not sure but would = be a nice feature. Cheers, Joe -----Original Message----- From: Drew Lister [mailto:dlister@crossoft.com] Sent: Friday, March 09, 2001 5:33 AM To: Joe Shevland; Sean Kelly; freebsd-java@FreeBSD.ORG Subject: RE: Trying to Create a simple Bean I got my simple Bean to work. Thanks to Sean and Joe for their help on = this issue! Two other questions though. Hopefully these aren't too elementary. =20 1. Is there a Tomcat installation for BSD? 2. I was working with a page.jsp and I keep getting a "Internal Server = Error", even after I remove the page. Does JServ have some kind of = caching? Thanks, Drew Lister -----Original Message-----=20 From: Joe Shevland=20 Sent: Wed 3/7/2001 6:56 PM=20 To: Drew Lister; Sean Kelly; freebsd-java@FreeBSD.ORG=20 Cc:=20 Subject: RE: Trying to Create a simple Bean 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 /WEB-INF/classes or JAR's into /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----- From: Sean Kelly Sent: Wed 3/7/2001 12:10 PM To: Drew Lister; freebsd-java@FreeBSD.ORG Cc: 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