Re: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-11 Thread Jerry Ford
Denise: I have just got my Apache 1.3.27/Tomcat 4.1.12 connection to work. Answers to your questions are yes, and yes. You need a connector between them, and mod_jk.so is one such connector. However, I had a devil of a time locating any connector on the apache.org website, and I never was

Re: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-11 Thread Jerry Ford
BTW, the configuration lines that go in httpd.conf for webapp are entirely different than what is required for mod_jk. They serve the same function, but they are entirely different connectors. It will take some reading to make the transition. Jerry Jerry Ford wrote: Denise: I have just

Re: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-11 Thread Jerry Ford
? Jerry Turner, John wrote: Mod_webapp is deprecated, and has some fairly serious limitations. JK/JK2 is the better choice if you are concerned with future growth. If you're having problems, perhaps my HOWTOs will help: http://www.johnturner.com/howto John -Original Message- From: Jerry

Re: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-11 Thread Jerry Ford
put up a dummy page and had a link to one of the example JSP that came with Tomcat. The link worked Ok, and the servlet ran fine. Thanks again! Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Wednesday

Re: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-13 Thread Jerry Ford
-Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 11, 2002 3:15 PM To: Tomcat Users List Subject: Re: Connecting Tomcat 4.1.12 with Apache 1.3 Denise: I have just got my Apache 1.3.27/Tomcat 4.1.12 connection to work. Answers to your questions are yes, and yes

Re: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-13 Thread Jerry Ford
: On Fri, 2002-12-13 at 12:16, Jerry Ford wrote: John: I added the listener statements to server.xml. mod_jk.conf shows Location entries for each of the webapps, and there is a JkMount entry for the servlets (including my HelloWorld entry). mod_jk.log is empty. Do you see that mod_jk

Re: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-13 Thread Jerry Ford
-Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Friday, December 13, 2002 1:17 PM To: Tomcat Users List Subject: Re: Connecting Tomcat 4.1.12 with Apache 1.3 John: I took your advice from yesterday, replaced mod_webapp.so with mod_jk.so and now jsps and servlets don't work

Re: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-13 Thread Jerry Ford
visit. I must have clicked it from this computer, even though I didn't download it---not only for Solaris, but also wrong Apache. Jerry Jerry Ford wrote: Denise: I have Red Hat 7.1. I didn't have a problem unzipping it; but when I tried to compile, it failed the first time, then compiled

[off-topic] Re: jsps and servlets don't work

2002-12-18 Thread Jerry Ford
/*** * * Caution: LONG Rant Warning :) * **/ Turner, John wrote: I don't think they are poorly documented at all. Just the HOWTOs written by myself and others on this list alone provide comprehensive documentation. John:

Re: How do you get a C:\ prompt in Windows XP?

2002-12-18 Thread Jerry Ford
enter cd c:\ Ronin Quigley wrote: Thanks for your tips. When I type C:\ I get the following message 'C:\' is not recognised as an internal or external command, operable program or batch file. Any other suggestions? Rocket - Original Message - From: Turner, John [EMAIL PROTECTED]

Re: Tomcat Documentation WAS: jsps and servlets don't work

2002-12-19 Thread Jerry Ford
Rasputin wrote: * Joseph Shraibman [EMAIL PROTECTED] [1233 03:33]: Jerry Ford wrote: With all due respect and recognition to the enormous efforts you personally appear to have put into making Tomcat accessible, the documentation is neither comprehensive nor adequate, for either

Re: Configuring mod_jk - Again!

2002-12-20 Thread Jerry Ford
Denise: I'm probably going to offend somebody with my suggestion, but... As much trouble as you are having making mod_jk work (and I was having the same trouble until I got interupted and had to put Tomcat aside momentarily), you might consider shifting gears temporarily. Try mod_webapp.so.

another mod_jk attempt failing

2002-12-20 Thread Jerry Ford
When I try to build mod_jk from the source contained in jakarta-tomcat-connectors-4.1.12-src.tar, the process breaks before it gets started. I am following the instructions on John Turner's how-to page, but when I run the configure script, it breaks at ltconfig---I get an error message that

mod_jk...again

2002-12-21 Thread Jerry Ford
When I try to build mod_jk from the source contained in jakarta-tomcat-connectors-4.1.12-src.tar, the process breaks before it gets started. I am following the instructions on John Turner's how-to page, but when I run the configure script, it breaks at ltconfig---I get an error message that

Still trying to make mod_jk work, need help

2002-12-21 Thread Jerry Ford
I am not able to build mod_jk from source, because the configure script breaks on ltconfg, as noted in a previous e-mail. So I took a compiled binary from a link on John Turner's how-to page and installed that. His link says its for tomcat 4.0, and I'm using 4.1.12, but John said previously

progress, but still no mod_jk

2002-12-21 Thread Jerry Ford
Okay, I removed the nested comments from server.xml and tomcat now starts up. http://localhost works http://localhost:8080 works (including servlets and jsps) ...but now http://localhost/examples/servlets produces a Not Found error (previously, was giving me the servlets index.html, but no

Re: Configuring mod_jk - Again! [getting desperate]

2002-12-21 Thread Jerry Ford
Denise: You shouldn't have to open up port 8009 to the ouside world; that's for internal communication between Tomcat and Apache. Users outside the firewall still come in through port 80. Jerry Denise Mangano wrote: Hi all :) So this is where I stand. I added all appropriate (I think)

Re: progress, but still no mod_jk

2002-12-22 Thread Jerry Ford
: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 21, 2002 8:50 PM To: tomcat-user Subject: progress, but still no mod_jk Okay, I removed the nested comments from server.xml and tomcat now starts up. http://localhost works http://localhost:8080 works (including servlets and jsps

Re: Configuring mod_jk - Again! [getting desperate]

2002-12-22 Thread Jerry Ford
could be what I am doing wrong... I'd appreciate it if you can possibly compare setups with me to see if I am missing anything. Thanks! Denise -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 21, 2002 9:05 PM To: Tomcat Users List Subject: Re

javax.servlet does not exist?

2002-12-22 Thread Jerry Ford
I am trying to get a working mod_jk.so and have not been able to pull it off. I am trying once more to build it from the files obtained in jakarta-tomcat-connectors-4.1.12.tar but when I run ant in the jk directory, the build fails because javac cannot find javax.servlet.http. JAVA_HOME

Re: javax.servlet does not exist?

2002-12-22 Thread Jerry Ford
Sorry, one additional fine point---I know javax is available because in addition to my HelloWorld servlet, I also successfully compiled a servlet that uses the JavaMail API. Jerry Jerry Ford wrote: I am trying to get a working mod_jk.so and have not been able to pull it off. I am trying

Re: javax.servlet does not exist?

2002-12-22 Thread Jerry Ford
Well, ah, oopsI seem to have shuffled things around since building my test servlets, I have added a CLASSPATH pointing to servlets.jar in $CATALINA_HOME/common/lib and all is well. For this step, at least. Ant builds. Jerry Jerry Ford wrote: Sorry, one additional fine point---I know

more progress, but still no mod_jk

2002-12-22 Thread Jerry Ford
I am back to being able to open my webapps in Apache without a port 8080 specification: http://localhost opens Apache's intro page http://localhost:8080 opens Tomcat's intro page, and servlets are available and functional http://localhost/examples/servlets (no port number) opens the servlets

Re: Configuring mod_jk - Again! [getting desperate]

2002-12-22 Thread Jerry Ford
Denise: Once Apache starts up, it runs as user nobody, not root. Jerry Denise Mangano wrote: Bill, As of right now starting from my tomcat folder down, permissions are 774 (rwx owner and group, r other). The only variant is that my webapps folder (including everything in it) has 775 (rwx

Re: progress, but still no mod_jk

2002-12-22 Thread Jerry Ford
that it is guessing based on the defaults. To make it go away, simply set: Server Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=libexec/mod_jk.so / ... Jerry Ford [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: mod_jk...again

2002-12-23 Thread Jerry Ford
and that was because of a stupid typo on my part. Sincerely, Pantek Incorporated Justin L. Spies URI: http://www.pantek.com Ph 440.519.1802 Fax 440.248.5274 Cell 440.336.3317 -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 8:57 PM To: Tomcat Users List

Re: RES: Mod_jk - won't execute jsp or servlets

2002-12-23 Thread Jerry Ford
Denise: Yes, please :) I am still in the sinking boat.---Apache works fine by itself, Tomcat works fine by itself (example servlets all work, as well as my own HelloWorld), but Apache-Tomcat through mod_jk does not work. At the moment, I can't even display the HTML pages in the examples.

mod_jk---still trying, getting closer

2002-12-24 Thread Jerry Ford
Thanks to some examples of working configs provided by several people here, I am making progress in getting Apache 1.3.27 and Tomcat 4.1.12 to work together through mod_jk, but it still isn't working yet. Tomcat and Apache run fine independently: http://localhost opens Apache's index.html

Re: mod_jk---still trying, getting closer

2002-12-24 Thread Jerry Ford
: http://www.pantek.com Ph 440.519.1802 Fax 440.248.5274 Cell 440.336.3317 -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 12:42 PM To: tomcat-user Subject: mod_jk---still trying, getting closer Thanks to some examples of working configs

Re: mod_jk---still trying, getting closer

2002-12-24 Thread Jerry Ford
...conf/ drwxrwxr-x..jk/ -rw-rw-r-x.workers.properties there is no jakarta-tomcat-4.12.12-LE-jdk14 mentioned which implies there is a mismatch of names -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Tuesday

Re: mod_jk---still trying, getting closer

2002-12-24 Thread Jerry Ford
error_log says error while opening the workers, jk will not work. And sure enough, no servlets through Apache. Jerry Milt Epstein wrote: On Tue, 24 Dec 2002, Jerry Ford wrote: Ooops, sorry, I was using shorthand in showing the directory gtree; actual name of the directory is the full jakarta

Re: mod_jk---still trying, getting closer

2002-12-25 Thread Jerry Ford
.. Denise -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 24, 2002 4:31 PM To: Tomcat Users List Subject: Re: mod_jk---still trying, getting closer Yes, good idea about the symbolic links. I have done now so---sym links for both apache

Re: mod_jk---still trying, getting closer

2002-12-25 Thread Jerry Ford
/some.jsp Are those what you are trying? John -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 25, 2002 6:22 PM To: Tomcat Users List Subject: Re: mod_jk---still trying, getting closer Denise: Other than path names, the major differences between your

Re: mod_jk---still trying, getting closer

2002-12-26 Thread Jerry Ford
Yes. Same results. PELOQUIN,JEFFREY (HP-Boise,ex1) wrote: Your http.conf shows that apache is running as nobody have you tried changing that so it runs as the owner of the apache and tomcat directory structure? -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent

Re: mod_jk---still trying, getting closer

2002-12-26 Thread Jerry Ford
in sever.xml. But if I don't use those, what do I use? I'm beginning to think mod_webapp.so is looking like my only hope of getting Tomcat and Apache to work together. Jerry Jerry Milt Epstein wrote: On Wed, 25 Dec 2002, Jerry Ford wrote: John: Sorry, I had changed ajp13 to worker1

Re: mod_jk---still trying, getting closer

2002-12-26 Thread Jerry Ford
/opt_apps/hpapache2/conf/workers.properties JkLogFile /opt_apps/hpapache2/logs/mod_jk.log JkLogLevel info if that does not work try moving the files local to the apache conf and log directories Jeff -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Thursday, December

Re: mod_jk---still trying, getting closer

2002-12-26 Thread Jerry Ford
mod_jk.so Justin L. Spies wrote: Jerry, Just to clarify, are you using the mod_jk.so or mod_jk2.so? Sincerely, Pantek Incorporated Justin L. Spies URI: http://www.pantek.com Ph 440.519.1802 Fax 440.248.5274 Cell 440.336.3317 -Original Message- From: Jerry Ford [mailto:[EMAIL

Yes!!! It works!!! (was: Re: mod_jk---still trying, getting closer)

2002-12-26 Thread Jerry Ford
, that would be a big help. Sincerely, Pantek Incorporated Justin L. Spies URI: http://www.pantek.com Ph 440.519.1802 Fax 440.248.5274 Cell 440.336.3317 -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 2:00 PM To: Tomcat Users List Subject: Re

How I got mod_jk running (Was: Re: Yes!!! It works!!!)

2002-12-27 Thread Jerry Ford
anyone else out there had good experience setting up the Apache auto configuration? Sincerely, Pantek Incorporated Justin L. Spies URI: http://www.pantek.com Ph 440.519.1802 Fax 440.248.5274 Cell 440.336.3317 -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent

Re: Tomcat Ant custom taks

2002-12-30 Thread Jerry Ford
I believe there is an O'Reilly book on using Ant. Gee Jee wrote: Hi, I've been sort of using the Tomcat library for Ant custom tasks. I got some of it to work by using the information on the Tomcat website. However, I did not find a consise overview of this library. Is this available

Re: Apache 2+Tomcat 4.1.12: how to disable the Coyote HTTP connector?

2003-01-02 Thread Jerry Ford
Looks like you conmmented out the wrong connector. The one you have removed is identified as the one for port 8009, which is the one Apache uses. Restore that connector and comment out the one that is identified as for port 8080. Jerry Manuel González Castro wrote: Hi, I'm running Apache

Re: [OT]JSP defense - can you point me in the right direction

2003-02-05 Thread Jerry Ford
Found this by searching Google : http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-Overview.html Denise Mangano wrote: Hi all :) I'm not sure if this is technically off topic, but just in case I threw in the [OT]... I have a dilemma at hand. I have a team that wishes to

Re: localhost works, www does not; why?

2003-12-17 Thread Jerry Ford
Thanks. Problem has been solved. In httpd.conf, the Tomcat configs were enclosed in a virtual host block. When I removed the VirtualHost ... /VirtualHost tags, the problem went away and it now works correctly. BTW, I also observed the changing URL; that, too, has gone away. Jerry Adam

Re: mod_jk only usable from localhost

2003-12-18 Thread Jerry Ford
Jeremy: I just solved the exact same problem on my setup (Apache 1.3.27 - Tomcat 4.1.27 via mod_jk). In my case, it was because I had enclosed the Tomcat config statements in httpd.conf in a virtual host block. I forget why I had done that, but I had asked a lot of questions on this forum

Re: MOD_JK2 and MOD_JK on SuSE

2003-12-24 Thread Jerry Ford
Hari: To remove mod_jk2, just delete mod_jk2.so from your apache/libexec directory and delete the references to it from your Apache config (httpd.conf). As for tomcat continuing to listen, that's because you have a mod_jk2 connector defined in tomcat's server.xml. Just because tomcat is

Re: MOD_JK2 and MOD_JK on SuSE

2003-12-26 Thread Jerry Ford
do you still have the Coyote connector defined in the tomcat server.xml? Hari Om wrote: Thanks Jerry I tried to delete the MOD_JK2.SO from my APACHE/MODULESA Directory...but still my CATALINA.OUT files hsows reference of it wonder why. From: Jerry Ford [EMAIL PROTECTED] Reply

Re: MOD_JK2 and MOD_JK on SuSE

2003-12-26 Thread Jerry Ford
acceptCount=10 debug=0/ Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / THANKS! HARI OM From: Jerry Ford [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: [EMAIL PROTECTED

admin app is forbidden

2003-12-26 Thread Jerry Ford
I have Tomcat 4.1.27 running with Apache 1.3.27, using mod_jk, on a Linux box (Red Hat 9.0, but custom-installed Apache and Tomcat in /usr/local). I am able to run Tomcat's example servlets, as well as my own custom servlets (installed as a webapp), and the Manager webapp, but when I try to

Re: admin app is forbidden

2003-12-27 Thread Jerry Ford
Yes, both admin and manager roles are defined in tomcat-users.xml. The manager app uses the same auth mechanism, doesn't it? But manager works, and admin doesn't. Jerry [EMAIL PROTECTED] wrote: Jerry Ford wrote: I have Tomcat 4.1.27 running with Apache 1.3.27, using mod_jk, on a Linux box

Re: Context docBase + linux

2003-12-28 Thread Jerry Ford
Algirdas: Maybe this will help: http://www.katzenjammer.us/~jford/apache/tomcat/webapps.pdf Jerry Algirdas M. wrote: Hello, I've created user /home/webapptest (with WEB-INF/classes, etc.) for java web applications and added in server.xml line Context docBase=/home/webapptest path=/w...

Re: MOD_JK (Apache+Tomcat)

2003-12-29 Thread Jerry Ford
Hari: You're trying to do too much too soon. Get the Apache - Tomcat connection through mod_jk to work before you try to get your own webapp to work. Use the Tomcat example servlets to verify that mod_jk is correctly installed and functional. If you can run the servlets through Apache

servlet gets smtp relay denied error

2003-12-29 Thread Jerry Ford
I have written a JavaMail servlet to mail documents at user request. (User selects a document from the web page and enters an email address; when the Mail it now button is clicked, the servlet is called and the document sent as an attachment to an email message.) The servlet is deployed as a

Re: servlet gets smtp relay denied error

2003-12-30 Thread Jerry Ford
Thanks for the ideas, all are welcome :) See answers to your questions inline: Doug Parsons wrote: When I invoke it from a browser on the same network as the server, it works as expected. An email is sent to the specified address, with the attachment. But when I invoke it from a browser outside

Re: servlet gets smtp relay denied error

2003-12-30 Thread Jerry Ford
Doug Parsons wrote: Now for a real stretch, does your server have a public or private IP assigned or both? If both, then consider that the request is being associated with the public IP when attached from outside and the private when from inside. If TC is using the public IP in the request to the

Re: MOD_JK (Apache+Tomcat)

2003-12-30 Thread Jerry Ford
Here's how I did it: http://www.katzenjammer.us/~jford/apache/tomcat/connectors/mod_jk_setup.shtml Not exactly your setup (I use Apache 1.3.27 and Red Hat 9.0) but maybe it will help. Jerry HARI OM wrote: any update on this? - Original Message - From: HARI OM [EMAIL PROTECTED]

webapp works through Apache, not Tomcat directly

2004-01-06 Thread Jerry Ford
I have a webapp deployed in Tomcat 4.1.27 which I am able to reach through Apache 1/3/27 (via mod_jk; sorry, didn't build it myself, obtained it as a binary and don't know version---how can I tell?) but cannot reach it by going directly to Tomcat. Tomcat is configured to listen directly on

Re: webapp works through Apache, not Tomcat directly

2004-01-06 Thread Jerry Ford
are world readable: drwxr-xr-x Jerry -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 1:44 PM To: Tomcat Users List Subject: webapp works through Apache, not Tomcat directly I have a webapp deployed in Tomcat 4.1.27 which I am able to reach through

Re: webapp works through Apache, not Tomcat directly

2004-01-06 Thread Jerry Ford
works fine when the request comes through Apache. It's still Tomcat that runs it and its servlet. Jerry Daniel Gibby wrote: Maybe you are using a symbolic link and tomcat 4 doesn't follow them by default because of performance. Daniel Gibby Jerry Ford wrote: I have a webapp deployed

Re: Newbie needing help in deploying servlet

2004-01-06 Thread Jerry Ford
David: Try this; In your server.xml, add this context to the Host element: Context path=/testapp docBase=/webapps/testapp reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger

Re: Newbie needing help in deploying servlet

2004-01-06 Thread Jerry Ford
Perhaps I mispoke about prevserving servlet in the URL; instead of replacing the asterisk in my sample web.xml, add servlet to it: /servlet/* Jerry Jerry Ford wrote: David: Try this; In your server.xml, add this context to the Host element: Context path=/testapp docBase=/webapps/testapp

Re: webapp works through Apache, not Tomcat directly

2004-01-06 Thread Jerry Ford
works through Apache, not Tomcat directly Date: Tue, 06 Jan 2004 12:55:34 -0800 Maybe you are using a symbolic link and tomcat 4 doesn't follow them by default because of performance. Daniel Gibby Jerry Ford wrote: I have a webapp deployed in Tomcat 4.1.27 which I am able to reach through Apache 1

Re: webapp works through Apache, not Tomcat directly

2004-01-06 Thread Jerry Ford
link and tomcat 4 doesn't follow them by default because of performance. Daniel Gibby Jerry Ford wrote: I have a webapp deployed in Tomcat 4.1.27 which I am able to reach through Apache 1/3/27 (via mod_jk; sorry, didn't build it myself, obtained it as a binary and don't know version---how

Re: RTFM

2004-01-14 Thread Jerry Ford
Okay, from this detailed description---which sounds to me like it should work---here's my SWAG (silly wild-ass guess): After your response.sendRedirect() in the servlett, do you, um, well, include an explicit return statement? Jerry Jerald Powel wrote: OK, what I am trying to do is simple

Re: Really DUMB question...

2004-01-29 Thread Jerry Ford
Robert: They're *from* anybody who posts to the list. Filter on messages where to and cc include tomcat-user. Jerry Robert Keddie wrote: Im trying to make rules for the emails form this list and I looked at headers... Which dang address are these emails coming from?! Thanks. Robert Keddie

writing a file from a servlet

2004-02-01 Thread Jerry Ford
From a servlet implemented in tomcat/webapps/myWebapp/WEB-INF/classes/my/package/myWebapp.class, I am trying to write a config file to the directory myWebapp/conf. The conf directory does exist; and there are no permissions issues---I can write the file to the conf directory from the servlet

writing a file from a servlet

2004-02-01 Thread Jerry Ford
I want to write a config file from a servlet implemented in /usr/local/webserver/tomcat/webapps/myWebapp/WEB-INF/classes/my/package/myWebapp.class, to a myWebapp/conf directory. The directory exists, and there are no permissions issues---I can write the config file if I hardcode a full path

writing a file from a servlet

2004-02-01 Thread Jerry Ford
I want to write a config file from a servlet implemented in /usr/local/webserver/tomcat/webapps/myWebapp/WEB-INF/classes/my/package/myWebapp.class, to a myWebapp/conf directory. The directory exists, and there are no permissions issues---I can write the config file if I hardcode a full path

writing a file from a servlet

2004-02-01 Thread Jerry Ford
From a servlet implemented in tomcat/webapps/myWebapp/WEB-INF/classes/my/package/myWebapp.class, I am trying to write a config file to the directory myWebapp/conf. The conf directory does exist; and there are no permissions issues---I can write the file to the conf directory from the servlet if

writing a file from a servlet

2004-02-01 Thread Jerry Ford
From a servlet implemented in tomcat/webapps/myWebapp/WEB-INF/classes/my/package/myWebapp.class, I am trying to write a config file to the directory myWebapp/conf. The conf directory does exist; and there are no permissions issues---I can write the file to the conf directory from the servlet

writing a file from a servlet

2004-02-01 Thread Jerry Ford
From a servlet implemented in tomcat/webapps/myWebapp/WEB-INF/classes/my/package/myWebapp.class, I am trying to write a config file to the directory myWebapp/conf. The conf directory does exist; and there are no permissions issues---I can write the file to the conf directory from the servlet if

Re: $JAVA_HOME error

2004-02-04 Thread Jerry Ford
Tony: Try it with just the startup.sh command, without the leading sh. Jerry Tony Sutton wrote: Hi there, I'm new to using jakart. I'm trying to get jakart v4.1.29 to run under Mandrake 9.1 I have downloaded and installed JRE from Sun, version 1.4.2_03. The installation went well. Here's

Re: writing a file from a servlet

2004-02-04 Thread Jerry Ford
Daniel: Great, got it, it works. Thanks. Jerry Daniel wrote: Hi Jerry, You can use: servletContext.getRealPath(/path_relative_to_webapp_root/); Regards, Daniel On Sun, 1 Feb 2004, Jerry Ford wrote: I want to write a config file from a servlet implemented in /usr/local/webserver/tomcat

Re: System.out.println, Where art thou?

2004-02-06 Thread Jerry Ford
System.out.println text should be going to the file catalina.out in tomcat's logs directory, if you haven't changed any of the default logging configurations. At least, that's where they go in my 4.1.27 setup. Jerry John B. Moore wrote: Moved up to Tomcat 4.1.18 (from 3.x) and I've seemed to

Re: javax.mail

2004-02-11 Thread Jerry Ford
Just a guess here, but have you tried using a fully qualified domain name for the host, as mysmtphost.mydomain.com? Jerry Duncan Smith wrote: Hi, sorry if this is the wrong mailing list but I think most people here are Java programmers so: I am using javax.mail to send a mail to myself if a

Re: javax.mail

2004-02-11 Thread Jerry Ford
Just a guess here, but have you tried using a fully qualified domain name for the host, as mysmtphost.mydomain.com? Jerry Duncan Smith wrote: Hi, sorry if this is the wrong mailing list but I think most people here are Java programmers so: I am using javax.mail to send a mail to myself if a

Re: javax.mail

2004-02-11 Thread Jerry Ford
Just a guess here, but have you tried using a fully qualified domain name for the host, as mysmtphost.mydomain.com? Jerry Duncan Smith wrote: Hi, sorry if this is the wrong mailing list but I think most people here are Java programmers so: I am using javax.mail to send a mail to myself if a

jsp deployment

2004-02-12 Thread Jerry Ford
The webapp I am writing has until today used html pages, JavaScript, and servlets, but no jsp files. Now I want to add one, so I placed the file open.jsp in the webapp's root directory (where the html files are). I thought that's all I needed to do, but Tomcat chokes when the jsp is

Re: jsp deployment

2004-02-12 Thread Jerry Ford
Permissions on the .jsp file are identical to permissions on all of the html, javascript, and servlet class files in the webapp, all of which work: -rw--r--r-- owner/group is jford:user (which is the uid under which tomcat was started). And I know it will serve .jsp's, the Tomcat example

Re: jsp deployment

2004-02-13 Thread Jerry Ford
a restart if it still fails, check your configs for an entry that might be blocking or redirecting the request. Just a novice throwing out ideas. Doug Parsons www.parsonstechnical.com - Original Message - From: Jerry Ford [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday

Re: jsp deployment

2004-02-13 Thread Jerry Ford
directory as the jsp. thanks. Jerry Thomas Tang wrote: Hi all, Do the logs give any indication as to where Tomcat is looking for the jsp files? A 404 error does not sound like a permissions problem. It sounds like a context setting might be off somewhere. Thomas Jerry Ford [EMAIL PROTECTED

Re: jsp deployment

2004-02-13 Thread Jerry Ford
. Jerry BAO RuiXian wrote: Jerry Ford wrote: Good suggestions, but, no, didn't work. There are no config issues preventing Tomcat from serving files from my webapp---html and servlets all work. And I know Tomcat is serving jsp files correctly; Tomcat's default examples work. Have you

Re: jsp deployment

2004-02-13 Thread Jerry Ford
(javac)? --- Jerry Ford [EMAIL PROTECTED] wrote: Logs show class-not-found exception for open.jsp. Which brings me back to my original question---what do I need to configure to let Tomcat know about this jsp? It already knows where my webapp is and is able to serve my servlets just fine

Re: jsp deployment

2004-02-13 Thread Jerry Ford
/servlet-class /servlet servlet-mapping servlet-nameinvoker/servlet-name url-pattern/*/url-pattern /servlet-mapping /web-app Thomas Tang wrote: Cut and paste your context settings. Thomas Jerry Ford [EMAIL PROTECTED] 02/13/2004 11:33 AM Please respond to Tomcat Users

Re: jsp deployment

2004-02-13 Thread Jerry Ford
window): /context /context But the active server.xml does not have two of them, only one. Jerry Bill Haake wrote: You have the EBook context nested inside the default (ROOT). -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:50 AM

Re: jsp deployment

2004-02-13 Thread Jerry Ford
deployment You have the EBook context nested inside the default (ROOT). -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:50 AM To: Tomcat Users List Subject: Re: jsp deployment from server.xml (minus realm, user database resource and a couple

Re: jsp deployment

2004-02-14 Thread Jerry Ford
---http://localhost:8080/examples/jsp Jerry BAO RuiXian wrote: Jerry Ford wrote: Sorry, that's a cut-and-paste error that does not appear in the real server.xml. Only one /context end tag; the root context is closed before the EBook context begins: context... / The configuration seems okay

Re: jsp deployment

2004-02-14 Thread Jerry Ford
BAO RuiXian wrote: Jerry Ford wrote: Tomcat manager shows EBook is running. And, when I request it through Apache, Tomcat does serve it up. When I request it through port 8080, Tomcat says it's not available: I suggest for now you forget running via Apache totally, Agreed. since

Re: jsp deployment

2004-02-14 Thread Jerry Ford
Yes, I agree, Apache is an unnecessary complication for the moment and I am focused now on getting things to work through port 8080. But Tomcat does serve up pages when I run the app through Apache---for one thing, the error messages are Tomcat-generated, not Apache, and for another, the

Re: jsp deployment

2004-02-14 Thread Jerry Ford
except directory name. I don't get it. Now I need to get it to work under the name EBook, not test. This is really strange. Jerry Jerry Ford wrote: BAO RuiXian wrote: Jerry Ford wrote: Tomcat manager shows EBook is running. And, when I request it through Apache, Tomcat does serve it up

Re: jsp deployment-- Clarification of Invoker

2004-02-15 Thread Jerry Ford
for all who helped. Jerry Parsons Technical Services wrote: My understanding of invoker and my attempt to explain invoker and mapping. Please correct any error I have made. Jerry Ford wrote: I don't fully understand the invoker servlet myself, but here's what I think I know: The invoker

Re: jsp files won't run outside of example directories.

2004-02-17 Thread Jerry Ford
David: I just fought my way through this same problem. Solved it this weekend, with help from this forum. Search for messages posted here last week with jsp deployment in the subject for details. Short answer for me: don't use Tomcat's invoker servlet. Even though the invoker is

Re: Disable Directory Listing for Specific Apps.

2004-02-20 Thread Jerry Ford
Ben: The proverbial $.02 of opinion: If the customer owns the directory, then doesn't the customer also own the decision to allow files in it to be listed? Seems like it is an easier documentation problem to explain how to prevent listings (include an index.html file in your directory if you

Re: Tomcat error-page not working (was: RE: Tomcat and checked vs. unchecked exceptions)

2004-02-25 Thread Jerry Ford
Wendy: Here's your problem: location/WEB-INF/jsp/exceptions/ServletException.jsp/location JSPs can't be run from inside the WEB-INF directory. Try moving your jsp/exceptions directory up one level. Jerry Wendy Smoak wrote: From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Try