Re: changes in jsp included file dont refreshed

2001-06-28 Thread Jeff Waugh

That is correct. When you '%@ include' a file it is included at translation
time. The server is allowed to notice that included files have been changed,
but most do not (tomcat does not).

If you 'jsp:include' the file it will be included at request time so
changes will
be apparent immediately. You can't 'jsp:include' files containing code
though.

You will probably need to keep touching the master jsp file.

-Jeff

- Original Message -
From: Pablo Lillia [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 28, 2001 10:05 AM
Subject: changes in jsp included file dont refreshed


 Hi,

 I need some help.

 When I had changed a jsp file included in other file, the changes don't
 view in the resulting file, except when  I touched the master jsp file
 (where is the %@include ... %).

 Thanxs

 PD1: I'm using tomcat 3.2.2
 PD2: Tomcat rocks!






Re: changes in jsp included file dont refreshed

2001-06-28 Thread Jeff Waugh

Perhaps I am misunderstanding something that I read in
'Core Servlets and JavaServer Pages' by Marty Hall.

The jsp:include action includes files at the time of the client
 request and thus does not require you to update the main file
 when an included file changes. On the other hand, the page
 has already been translated into a servlet by request time, so
 the included files cannot contain JSP.

No, that makes perfect sense. A compiled page can 'jsp:include'
a file containing text or html, but there is no way that it can
execute code contained in that file.

You can however 'jsp:include' a url that is itself a jsp page,
but that is not an included file, but rather a seperately compiled
and executing servlet.


- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 28, 2001 10:52 AM
Subject: AW: changes in jsp included file dont refreshed


That's not right, of course those pages can contain code.

The code must be syntactically independend from the
including page. (You can't share variables or methods
across the pages).

 -Ursprüngliche Nachricht-
 Von: Jeff Waugh [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 28. Juni 2001 16:45
 An: [EMAIL PROTECTED]
 Betreff: Re: changes in jsp included file dont refreshed
snip/
 You can't 'jsp:include' files  containing code though.
snip/





Re: how to determine if tomcat is running

2001-06-24 Thread Jeff Waugh

If tomcat is running it will be listening on the ports specified in the
Connectors in server.xml.

These will show up as listening in netstat, can be queried with lsof
or fuser. Even that is no guarantee that it is tomcat listening, but
it would be fairly trivial to retrieve a test page via a perl script
to verify if it is tomcat or not.

HTH,
-Jeff

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Thomas Fischer [EMAIL PROTECTED]
Sent: Sunday, June 24, 2001 8:10 AM
Subject: Re: how to determine if tomcat is running


 thanks for your response, but this method is not working on all unix
 systems because some of them only show .../java as result of the ps
 command (even with the options you mentioned).

 does anybody know anything else how i can be sure if tomcat is running
 or not???

 thanks,

 thomas.

 Am Samstag, 23. Juni 2001 um 20:17 schrieb Jeff Kilbride:

  You should have a java process running
  'org.apache.tomcat.startup.Tomcat'
  when Tomcat is running. For example, when I run the 'ps' command I see
  the
  following:
 
  /usr/local/java/IBMJava2-13/jre/bin/exe/java -Xms64M -Xmx128M
 -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
 -Dtomcat.home=/usr/local/java/jakarta-tomcat-3.2.2
 org.apache.tomcat.startup.Tomcat
 
  This is all on one line, of course, and I have to use 'ps awx
  --cols=250'
  (Linux) in order to see the entire command line.
 
  Hope this helps.
 
  Thanks,
  --jeff
 
  - Original Message -
  From: Thomas Fischer [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, June 23, 2001 10:34 AM
  Subject: how to determine if tomcat is running
 
 
  i'm writing a script (on a unix-system) which should do different tasks
  wether tomcat is running or not. to do so the script has to figure out
  the status of tomcat. most daemons use .pid-files or anything similar.
  but i found nothing for tomcat.
 
  i've looked all through the documentation but found nothing about the
  runtime status of tomcat. how can i find out if tomcat is already
  running?
 
  thanks for any responses,
 
  thomas.
 
 





Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Jeff Waugh

Sorry, I hadn't read your error message closely enough.

'No suitable driver' usually means a problem with the database
URL to which you are trying to connect.

That should look something like:

db = DriverManager.getConnection("jdbc:postgresql://hostname/dbname",
"username", "password");

Try playing with that.

-Jeff

- Original Message -
From: "Ryszard Lach" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 7:20 AM
Subject: Re: Problem with Postgresql JDBC driver


 On Mon, Jun 18, 2001 at 07:21:21AM -0400, Jeff Waugh wrote:
  Try Class.forName("org.postgresql.Driver")...

 Doesn't work too.

 R.

 --
 ** Internet Designers S.A., ul. Przedmiejska 6--10, 54-201 Wrocaw **
  tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/





Re: Should we do moderation on this mailinglist??

2001-06-05 Thread Jeff Waugh

Unfortunately, we are dealing with 'people' here.
It is a shame that there is not a 'filter' to eliminate
'stupid' people, but as hard as I've tried, I just can't
program it. If someone else can, please make it an
Opensource project

But, then again, we would probably get 'stupid' people
contributing, so those filters would be invalidated.

Man, it looks like we're screwed.

As an example, *I* use a bicycle as my primary
means of transportation, and have had similar
ideas about 'people' who drive cars.
I decided *I* was screwed quite some time ago.

Delete is a wonderful thing!!!

(If only it was as effective on motorists)

(Hmmm, probably 98% of the people reading this
are motorists...)

(Sorry, but if the shoe (wheel) fits...)

-Jeff


- Original Message -
From: Martin van den Bemt [EMAIL PROTECTED]
To: jakarta-tomcat-user [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, June 05, 2001 4:18 PM
Subject: Should we do moderation on this mailinglist??


 Hi to everybody who is actually trying to get some information on this
 mailing list, or to help others,


 The 2 weeks I've been a member here, just trying to get new ideas and help
 others out with tomcat issues, I would say, were pretty horrible. about
50%
 of the mail is actually rubbish (which means double mails, requests for
 unsuscribing and other SPAM. This can have a couple of couses :
 irritated mode on
 - Most people cannot read
 - Most people cannot think logically
 - Most people should not be able to subscribe to this list
 - Most people shouldn't wast other people's time, so they still want to
help
 people.
 irritated mode off
 solution mode on
 - members with no active e-mail address should be deleted right away
(who
 has the rights to do that?), so people don't resend messages again. (I
 mailed the owner of the mailinglist, but haven't had a reply yet..)
 - Don't allow misuse of the mailinglist anymore : block those senders
 immidiately from the mailinglist (that's what they want it seems) == are
 there any facilities for that.
 - Don't reply to misuse of the mailinglist
 - Off topic messages can be nicely redirected to the appropiate area.
 - Let everyone state clearly what they are using (rh 7.1, windows 2000,
 which version of tomcat, etc). A lot of replies are pretty useless if they
 have another version of the product. Also the probability that the correct
 people (the people actually using tomcat on a rh7.1 box, will reply..)
 - Send a rules e-mail to subscribers.
 - Send stuff that's not interesting (like someone suggested in the list
 today), directly to the sender of the mail. (If I have made a commercial
 solution for a problem or question, I mail to peoples private e-mail
 address, as an example..)

 The common goal should be :

 Users helping users!!

 Just trying to get some improvement here.. I think a lot of people are
 currently giving up on this list and that's not good for tomcat (at least
 that's what I think)

 Mvgr,
 Martin van den Bemt







Re: autostarting apache/tomcat

2001-05-29 Thread Jeff Waugh

Your key file is encrypted.

Use openssl to create an unencryted key:

openssl rsa -in server.key -out run.key

Change your httpd.conf to use run.key as your SSLCertificateKeyFile.

HTH,
-Jeff

- Original Message - 
From: Tim O'Neil [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 29, 2001 1:23 PM
Subject: autostarting apache/tomcat


 Does anyone know if I can write a shell script
 (to put in rc.d of course) that will add the
 password to an ssl-enabled apache/tomcat setup?
 
 




Re: Connector

2001-05-28 Thread Jeff Waugh

Yes.

- Original Message -
From: Andrea Mari [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 28, 2001 8:44 AM
Subject: Connector


 Hi,

 I've a simple question. If I use Tomcat 3.2.1 with Apache, can I disable
the
 http connector on port 8080 without any problems?

 I'm not sure.

 Thanks
 Andrea






Re: openbsd and mod_jk.so build problem

2001-05-26 Thread Jeff Waugh

These constants are defined in /usr/include/dlfcn.h (or something included
from there).
They are also defined in $APACHE_HOME/include/os.h

You definitely need them to build a shared library.

-Jeff

- Original Message -
From: Joan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 26, 2001 7:34 PM
Subject: Re: openbsd and mod_jk.so build problem


 Well, I made a symlink of these files to /usr/include and tried to build
 again as described in the previous mail but the result was the same...
 Thank you Jack but it isn't the solution with my environment.

 Do you think I can do this with JDK 1.3.1rc2?
 what is the command you used with apxs?
 Is you mod_jk.so working on a openbsd platform?

 Or is anyone another idea?

 Le Samedi 26 Mai 2001 18:17, vous avez écrit :
  I had the same problem with JDK1.3.1rc2... It's looking for jni.h and
  jni_md.h.  I put them in /usr/include and the problem went away.
 
  Hope it helps,
 
  Jack
 
  joan wrote:
   hey,
   I tried to build mod_jk.so on openbsd but I failed...
   My environment is as follows:
 * OpenBSD 2.8 Current/ i386
 * JDK 1.1.8 (built from ports)
 * Tomcat 3.2.1
  
   I used from
   /usr/local/jakarta/jakarta-tomcat-3.2.1-src/src/native/apache1.3
  
   root@localhost#/usr/sbin/apxs -c -I/usr/local/jdk1.1.8/include
 
 -I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/lib/apache/include
   -I../jk mod_jk.c ../jk/*.c
  
   and the output was:
   cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
   -I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
   -I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
   -I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c mod_jk.c
   cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
   -I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
   -I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
   -I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c
../jk/jk_ajp12_worker.c
   cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
   -I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
   -I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
   -I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c ../jk/jk_ajp13.c
   cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
   -I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
   -I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
   -I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c
../jk/jk_ajp13_worker.c
   cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
   -I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
   -I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
   -I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c ../jk/jk_connect.c
   cc -O2 -DDEV_RANDOM=/dev/arandom -DMOD_SSL=206106 -DEAPI -DUSE_EXPAT
   -I../li b/expat-lite -fPIC -DSHARED_MODULE -I/usr/lib/apache/include
   -I/usr/local/jd k1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd
   -I/usr/lib/apache/inclu de -I../jk -DFREEBSD  -c ../jk/jk_jni_worker.c
   ../jk/jk_jni_worker.c:764: warning:
   #warning ---
   ../jk/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS!
SUPPORT
   FOR JAVA 2 FEATURES DISABLED
   ../jk/jk_jni_worker.c:766: warning:
   #warning ---
   ../jk/jk_jni_worker.c: In function `load_jvm_dll':
   ../jk/jk_jni_worker.c:724: `RTLD_NOW' undeclared (first use in this
   function)
   ../jk/jk_jni_worker.c:724: (Each undeclared identifier is reported
only
   once ../jk/jk_jni_worker.c:724: for each function it appears in.)
   ../jk/jk_jni_worker.c:724: `RTLD_GLOBAL' undeclared (first use in this
   function)
   apxs:Break: Command failed with rc=65536
   root@localhost#
  
   I searched all the mailing list but I did not found the solution...
   Tue, 06 Feb 2001,Tobias Oberstein wrote a similar message but no good
   response was replied...
  
   On Freebsd 4.3 Released I've successfully built a working mod_jk.so.
   The shell script with tomcat-3.2.1 is buggy on freebsd but works well
on
   linux.
   So I used the apxs command that fails for openbsd and that is
described
   at the beginning of the message
  
   So, is there anyone who succesfully built mod_jk.so on openbsd?
   Please help me...
  
   Thanks





Re: trusted application

2001-05-07 Thread Jeff Waugh

In $TOMCAT_HOME/conf/server.xml

Context path=/admin
 docBase=webapps/admin
 crossContext=true
 debug=0
 reloadable=true
 trusted=true 
/Context

-Jeff

- Original Message - 
From: Erik Hellman [EMAIL PROTECTED]
To: Tomcat-User@Jakarta. Apache. Org [EMAIL PROTECTED]
Sent: Monday, May 07, 2001 7:19 AM
Subject: trusted application


 I get the following error when accessing the /admin pages and trying to
 view all contexts:
 
 Error: 500
 Location: /admin/contextAdmin/contextAdmin.jsp
 You must mark the administration application as trusted
 
 How and where do i do this?
 
 // Erik