chopped text inputs

2001-04-11 Thread teh j

hi there
I am having a small problem with form handling and
JSP. 
Currently, I have a JSP form that submits data to a
Bean while it is error validated. 

IF there is an error, the values taht are ok are
replaced in an error handling form while erroneous
data is cleared and the user is asked to re enter
data.
However, if I entered a sentence (say 'this is me')
into a text input box (not a text area), the replaced
value in the error handling page only contains the
first word of what i originally entered. CAn anybody
help me out with this? Should I use a textarea for
this or can a text type input box be used?
Or is it something else?

thanks
Jason

_
http://movies.yahoo.com.au - Yahoo! Movies
- Now showing: Dude Where's My Car, The Wedding Planner, Traffic..



RE: Instantiating Beans on Tomcat

2001-04-11 Thread Jim Cheesman

At 02:01 AM 4/11/2001, you wrote:
Hmm...then I'm not sure what's going on...so is there a package statement in
InfoBean?


In my experience if the bean is not in a package (i.e. not in the top-level 
package) the bean won't work.


As for a setting in tomcat, I don't think you have to set anything to get a
bean to instantiate. I wonder if it has anything to do with Jann mentioned.
I've always put my jsp's in /webapps/mycontext and my beans in
/webapps/mycontext/WEB-INF/classes/package_path and not had any problems
with instantiation.

I've tried both and not had any problems, either.


Also, check your case on the jsp directive. I noticed you've got
jsp:useBean.../, and if you copied/pasted that into your original message,
then you've got that part correct. However, in one I was trying to do, I
thought I had the case correct, but I actually had jsp:usebean/ and
that was why I couldn't get it to instantiate.


That's familiar! Spent a whole afternoon tracking that one down ;( Couldn't 
tomcat throw an error/exception instead of simply accepting this tag?




--

   *   Jim Cheesman   *
 Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   Personal: [EMAIL PROTECTED] (34) 606 770 244
  Practice safe eating -- always use condiments.
















RE: Instantiating Beans on Tomcat

2001-04-11 Thread Mark Johnson

Have you tried to use the build script, and build.xml? This will prepare
your webapps directory properly, put the class files in the correct
(expected) place, and you don't need to screw around with the CLASSPATH.
Makes life simpler: after the preparation outlined below, you just
execute "# ./build" from your app development directory after making any
changes. Craig McC., bless his heart, described this in some doc that
comes with Tomcat (I seem to recall).

Eg,
0. # export TOMCAT_HOME=/path_to_tomcat
1. # cd /home/brandon
2. # mkdir test
3. # cd test
4. # mkdir src lib etc web
5. # mkdir src/mypackage
6. # cp InfoBean.java src/mypackage/.
7. # cp build .
8. # cp build.xml .
9. now edit the appropriate lines in build.xml to read:
project name="test" default="compile" basedir="."
property name="app.name" value="test" /
property name="deploy.home" value="${tomcat.home}/webapps/${app.name}"
/
10. now edit your jsp file:
jsp:useBean id="sessionBean" scope="session" class="mypackage.InfoBean"
/
11. # ./build
12. # cd $TOMCAT_HOME/bin
13. # ./startup.sh







Re: Tomcat on Win2k

2001-04-11 Thread Nico den Boer

What I've done is;
- followed steps of uguide\tomcat_ug.html (env. variables)
- followed all steps of tomcat-iis-howto.html
That means 1 is done, 2 not yet.

First I'll replace the JVM to 1.3.1Beta
Then do what's in NT-Service-howto.html

One thing is not clear to me; the doc says:
3 Install jk_nt_service by running it with the -i flag.
4 Start tomcat as a service.

Do I need to add these lines to autoexec.bat or only type it once in "start
button/execute" ?
(don't know what happens when the computer is restarted or when it's running
multiple sessions)

Nico

- Original Message -
From: Randy Layman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 9:39 PM
Subject: RE: Tomcat on Win2k



No.  If you want to run Tomcat out-of process with IIS as a service
you need to:
1.  Install Tomcat to work with IIS (which it seems that you have
accomplished)
2.  Install it as a service (which it also seems that you have
accomplished)

And remember to now use JDK 1.3.0.  Since you seem to have most
everything working fine, you simply need to change the JVM you are using to
either 1.2.x or 1.3.1Beta and then modify the wrapper.properties and
workers.properties to point to the correct JVM.

If I understand your problem correctly, your problem is a bug in the
JVM, everything else is working fine, so replacing the JVM should solve
everything.

Randy





Session Invalidation

2001-04-11 Thread Lakshmeenarayana G G



hi..
I want to capture the event when my user logsoff or 
click the 'x' button in the top-right corner of browser window.
How can i do some finalising jobs..like 
writingto log file about the log off events.
Please help...
i would really appreciate if i get detailed answers 
for this.

Thanks for the time.

Regards.

L G GoundalkarIntertec Communications Pvt 
LtdINDIA


Connection Pooling

2001-04-11 Thread Lakshmeenarayana G G



Hi...
I am creating the object of Connection pool manager 
in my Start up JSP.
The pool manager object is in Application 
scope.
I want to access the pool manager and get one 
connection object from one of my Bean used in the JSP.
How can i access the application scopre object from 
my Bean.
Is it possible.?

Please help...
Thanks in advance.

Regards.

L G GoundalkarIntertec Communications Pvt 
LtdINDIA


tomcat installation problem in win98

2001-04-11 Thread karthik rajan

hello
i have installed tomcat3.2.1 in win 98
i have set the path tomcat and java still i'm facing the problem
i'm facing problem in startup saying bad command or filename
my project has held up please reply in detail.i'm waiting
karthik

[EMAIL PROTECTED]




Re: Welcome File : index.html

2001-04-11 Thread m . exler

On Tue, 10 Apr 2001 08:08:45 PDT you wrote:

 I have tried this by changing contents of welcome-file tag of file web.xml
 still it didn't work..
 

IIRC(!?), conf/web.xml isn't used any more ...
only context-specific web.xml will be read, 
server-wide config is in conf/server.xml

test: try to produce a syntax error in conf/web.xml

-mex




Re: tomcat installation problem in win98

2001-04-11 Thread John Clark L. Naldoza

Hi,


Would you mind being a little bit more specific?  Perhaps you could post
the exact startup command being used and the exact error output...;-)


Cheers,


John Clark

karthik rajan wrote:
 
 hello
 i have installed tomcat3.2.1 in win 98
 i have set the path tomcat and java still i'm facing the problem
 i'm facing problem in startup saying bad command or filename
 my project has held up please reply in detail.i'm waiting
 karthik
 
 [EMAIL PROTECTED]

-- 
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \  /_Cable Modem Network Management System _\  / /)))
 ( \_/ / NEC Telecom Software Phils., Inc.  \ \_/ )
  \   /  \   /
   \_/  phone: (+63 32) 233-9142 loc. 3112\_/
   /   /  cellphone: (+63 919) 399-4742 \   \
  /   / email: [EMAIL PROTECTED]\   \



RE: Welcome File : index.html

2001-04-11 Thread Hunor Nam

Hi.
I have a similar problem... 
My app. has many folders and I do not want to put an index file in each
of them...
Especially that it has more sub app.'s so I would need different index
files for different folders... it would be nasty to put one in each of
them and after that, if something changes to change all the files... I
would like to have some kind of redirection set to some folder levels
(so everything beneath them to call its own index...)
Problem nr 2 is: how can I restrict folder browsing
Thanx
Hades
-Original Message-
From: Ed Robbins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 10, 2001 3:03 PM
To: [EMAIL PROTECTED]
Subject: Re: Welcome File : index.html


Joar Vatnaland wrote:
 
 How did you change the welcome-file,
 did you just append an
 
 welcome-filesample.html/welcome-file
 
 after the other entries?  My guess is that it goes through the list
 and starts with the first file it finds.  So if an index.jsp or
index.html
 still exists in your directory, then that will still be the starting
file.
 Either remove the index file from the directory, or place your entry
ahead
 of any other wellcome-file entry.
 
Joar is right, if there is a list it will go through the list until it
finds the first match.  Also, make sure you have the welcome-file tag
within a welcome-file-list tag, so it should look like the following:

welcome-file-list
  welcome-filewelcome.html/welcome-file
  welcome-fileindex.html/welcome-file
  welcome-filehome.html/welcome-file
welcome-file-list

Don't forget that each web app has it's own web.xml file and you want to
put it in the appropriate file.

Ed

 Joar
 
 -Original Message-
 From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
 Sent: 10 April 2001 16:09
 To: [EMAIL PROTECTED]
 Subject: Welcome File : index.html
 
 Hello can i change welcome file index.html to
 my sample.html
 
 I have tried this by changing contents of welcome-file tag of file
web.xml
 still it didn't work..
 
 please let me know the way...
 
 Thanx in advance
 
 regards
 sunil
 
 _
 Get LifeTime Free email Visit  --- http://www.nagpurcity.net



migrating php to tomcat ?.. help

2001-04-11 Thread niraj

hi all

here is a site in php www.goodlookingindia.com
we would like to migrate to jsp/servlet  for better performance

please let  me know it wheter to migrate to tomcat or not

is tomcat is best for jsp/servlet adon engine or any other servlet engine in
market better then tomcat?

your help/reviews will be apriciated

thanks in advance




Re: jsp + servletbean (problem 2)

2001-04-11 Thread Anne-Marie Ternes

Hi,

I solved my little problem described below, thanks to some messages I found
here!

Three things I got wrong:
- The "B" in "useBean" has to be a capital B...  (arrrgghh)
- The bean classname as well as the file name has to begin with a capital
letter, i.e. DatabaseAccess.java, and class DatabaseAccess
- I've got to put a page import statement into my JSP file:
%@ page import = "DatabaseAccess" %

Now this works!

am

Anne-Marie Ternes wrote:

 Hi again,

 I've written a small JSP here, which calls a simple servletbean through
 jsp:usebean tags. The aim is only to play around with the getProperty
 and SetProperty things, and to get jsp and servlet to work together.

 When I try to access the jsp, I get a strange 500 Error.

 This is what I have done.
 - I have added a context to server.xml:
 Context path="/javaapps"
  docBase="/oas/oashome/apps/javaapps"
  crossContext="true"
  debug="0"
  reloadable="true" 
 /Context
 - I have added the following to my copied-and-cut tomcat-apache file:
 Alias /javaapps "/oas/oashome/apps/javaapps"
 Directory "/oas/oashome/apps/javaapps"
 Options Indexes FollowSymLinks
 /Directory
 ApJServMount /javaapps/servlet /javaapps
 Location "/javaapps/WEB-INF/"
 AllowOverride None
 deny from all
 /Location
 Location "/javaapps/META-INF/"
 AllowOverride None
 deny from all
 /Location

 -The directory structure:
 Under /oas/oashome/apps/javaapps, I've got a subdirectory "jsp" where my
 "jsp" file is, I've got a subdirectory WEB-INF/classes where my bean is
 located.

 - Both subdirectories are in my profile CLASSPATH, and I checked that
 Tomcat also considers them to be in his classpath

 If it can help you, I can post you the exact error the browser gives me,
 as well as my small JSP and my also small bean. But I didn't know if I
 should post them inline or as attachments?

 I'd be glad if someone could give me a hint on what I'm doing wrong...

 Thanx,

 Anne-Marie

 P.S. "No-bean" JSPs and servlets work fine.
 --
 =
 Anne-Marie Ternes

 Informaticien diplm

 Centre Informatique de l'Etat
 B.P. 
 L-1011 Luxembourg

 Tl: 49 925 642
 E-Mail: [EMAIL PROTECTED]
 =

--
=
Anne-Marie Ternes

Informaticien diplm

Centre Informatique de l'Etat
B.P. 
L-1011 Luxembourg

Tl: 49 925 642
E-Mail: [EMAIL PROTECTED]
=





Re: Session Invalidation

2001-04-11 Thread Kris Gonzalez

i am unsure if there is a way to do this in pure java, but here's a
javascript solution:

place a javascript function in a universal server-side-include (if you
have a header.jsp which standardizes the header for your page, this is a
perfect place)...then, trigger your function to be called with an
"onUnload=" listener in your page's body tag...have your function post
to servlet or jsp which performs your logoff routines...

this is the same trick that porn sites have used for years to lock you
into their site, and though it's not a perfect solution in that
javascript can be turned off, it's likely that most users will have
javascript enabled and will not object as the entire process should be
invisible to them

hope this helps!
-kg


 Lakshmeenarayana G G wrote:
 
 hi..
 I want to capture the event when my user logsoff or click the 'x'
 button in the top-right corner of browser window.
 How can i do some finalising jobs..like writing to log file about the
 log off events.
 Please help...
 i would really appreciate if i get detailed answers for this.
 
 Thanks for the time.
 
 Regards.
 
 L G Goundalkar
 Intertec Communications Pvt Ltd
 INDIA



RE: Error whilst integrating tomcat with apache via mod_jk

2001-04-11 Thread Kieron Wilkinson


Oh I forgot to say:
Solaris 8, apache 1.3.19, tomcat 3.2.1

-Original Message-
From: Kieron Wilkinson [mailto:[EMAIL PROTECTED]]
Sent: 10 April 2001 5:34 PM
To: '[EMAIL PROTECTED]'
Subject: Error whilst integrating tomcat with apache via mod_jk



Hi, I am trying to intergrate Tomcat with Apache, I compile mod_jk and put
the resulting mod_jk.so file in the apache/libexec dir, but when I startup
Apache I get this:

 apachectl start
Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/mod_jk.so: symbol map_put: referenced symbol not
found
/usr/local/apache/bin/apachectl start: httpd could not be started

Any ideas?

Thanks in advance for any help!

Kieron



Re: Connection Pooling

2001-04-11 Thread Anand Raman

i guess all u will have to do is

servlet.getAttribute("attr-name");

cast this down to ur ConnectionPool object and call the appropriate
method to get the connection..

hope this helps
Anand
On Wed, Apr 11, 2001 at 01:07:20PM +0100, Lakshmeenarayana G G wrote:
Hi...
I am creating the object of Connection pool manager in my Start up JSP.
The pool manager object is in Application scope.
I want to access the pool manager and get one connection object from one of my Bean 
used in the JSP.
How can i access the application scopre object from my Bean.
Is it possible.?

Please help...
Thanks in advance.

Regards.

L G Goundalkar
Intertec Communications Pvt Ltd
INDIA



RE: Error whilst integrating tomcat with apache via mod_jk

2001-04-11 Thread Kieron Wilkinson


Thanks anyway. I fixed it.

I eventually got it going with:

/usr/local/my-apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk
-I/usr/java/include -I/usr/java/include/solaris -lposix4  -c *.c ../jk/*.c

instead of:

apxs -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -o
mod_jk.so -lposix4 -c *.c

I guess the -I../jk doesn't copy the object files in at linking time. Doh.
Perhaps the mod_jk HOWTO page should be changed(?) - I have seen quite a few
people with similar problems...

Kieron

-Original Message-
From: Kieron Wilkinson [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 9:23 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Error whilst integrating tomcat with apache via mod_jk



Oh I forgot to say:
Solaris 8, apache 1.3.19, tomcat 3.2.1

-Original Message-
From: Kieron Wilkinson [mailto:[EMAIL PROTECTED]]
Sent: 10 April 2001 5:34 PM
To: '[EMAIL PROTECTED]'
Subject: Error whilst integrating tomcat with apache via mod_jk



Hi, I am trying to intergrate Tomcat with Apache, I compile mod_jk and put
the resulting mod_jk.so file in the apache/libexec dir, but when I startup
Apache I get this:

 apachectl start
Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/mod_jk.so: symbol map_put: referenced symbol not
found
/usr/local/apache/bin/apachectl start: httpd could not be started

Any ideas?

Thanks in advance for any help!

Kieron



Re: I couldn't get SOAP to work with Tomcat via IIS

2001-04-11 Thread Stuart Thomson

This was a known bug in Apache SOAP. The latest nightly build has a fix
for this.

Mauricio Peschard wrote:
 
 Hi!
 
 I'm trying to call a servlet with SOAP over Tomcat via the IIS redirector
 (isapi_redirect.dll) but I always got a SOAP Exception (SOAPException =
 SOAP-ENV:Protocol, Unsupported response content type "text/html")
 
 I just followed the steps to configure the IIS redirector to work with
 Tomcat (
 http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm
 l ), and I tested calling the /examples directory via IIS with success.
 
 Then I configure the "soap" context (/soap/*=ajp12) in
 uriworkermap.propeties, and I modify the java client to access the rpcrouter
 via IIS and I always got the SOAPException.
 
 If I access the servlet directly with Tomcat it works just fine. I'm using
 the Exchange servlet and java client test examples provided by
 http://www-106.ibm.com/developerworks/library/ws-peer2/?dwzone=ws
 
 My configuration consists of:
 - Tomcat 3.2.1
 - Xerces 1.3.0
 - JavaBeans Activation Framework 1.0.1
 - JavaMail 1.2
 - Soap 2.1
 
 After finishing the installation I deployed the Exchange.java servlet and
 test it successfully (Tomcat) with the java client example of the above web
 page.
 
 Any advice from or link where I can configure SOAP with Tomcat via IIS will
 be greatly appreciated.
 
 Thanks in advance,
 
 Mauricio Peschard



shutdown.sh problem

2001-04-11 Thread Shun-Luoi Daniel Fong

Hi,
I'm trying to shutdown Tomcat using
$TOMCAT_HOME/bin/shutdown.sh

but when I type that i get the following message:

Using classpath: 
/usr/java/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/java/jakarta-tomcat-3.2.1/lib/jasper.jar:/usr/java/jakarta-tomcat-3.2.1/lib/jaxp.jar:/usr/java/jakarta-tomcat-3.2.1/lib/parser.jar:/usr/java/jakarta-tomcat-3.2.1/lib/servlet.jar:/usr/java/jakarta-tomcat-3.2.1/lib/test:/usr/java/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/java/jdk1.3/lib/tools.jar:/usr/java/jakarta-tomcat-3.2.1/lib/servlet.jar:.
Stop tomcat
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:323)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:136)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:123)
at java.net.Socket.init(Socket.java:273)
at java.net.Socket.init(Socket.java:100)
at org.apache.tomcat.task.StopTomcat.execute(StopTomcat.java:104)
at org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:267)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:174)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


I've never had problems shutting it down before. Can someone tell why it
would be refusing the Connection and how I can go about fixing it. 
I apologize if I am asking a question that is easily fixed. If you need
more info from me, let me know.

I'm using Tomcat 3.2.1 on linux

Thanks,
Luoi

-- 
D. Shun-Luoi Fong
821 Melrose Avenue
Iowa City, IA 52246
email: [EMAIL PROTECTED]

---
Colossions 2:8 See to it that no one takes you captive through philosophy
or empty deception, according to the traditions of men, according to the
elementary principles of the world, rather than according to Christ.
---




IIS redirect

2001-04-11 Thread Faisal Mehtab Hussain

Hello,

I have installed tomcat-3.2.1 (release) in my NT machine, I have defined all
the possible setting that the document defined for Tomcat IIS how to?,
Tomcat running fine with its given servlets and jsp examples as
http://localhost:8080/examples/jsp/index.html, but when I try to access it
through IIS it doesn't work. The following error occurs in IIS log file.

127.0.0.1, -, 4/11/01, 11:58:31, W3SVC1, DEV-01, 127.0.0.1, 10, 342, 0, 500,
126, GET, /jakarta/isapi_redirect.dll, -,
127.0.0.1, -, 4/11/01, 11:58:33, W3SVC1, DEV-01, 127.0.0.1, 0, 342, 0, 500,
126, GET, /jakarta/isapi_redirect.dll, -,
127.0.0.1, -, 4/11/01, 11:58:33, W3SVC1, DEV-01, 127.0.0.1, 10, 342, 0, 500,
126, GET, /jakarta/isapi_redirect.dll, -,

Please, help me to solve this problem.

Regards,
Faisal Mehtab Hussain
Internet Programmer
OgerTel Internet Services
Tel: (966-1) 465-0300 Ext.(138)
Fax: (966-1) 464-5200
Email: [EMAIL PROTECTED]




Re: Tomcat on Win2k

2001-04-11 Thread Nico den Boer

I have replace the JVM with 1.3.1Beta and installed the NT service.
It works fine now.

Thank you all very much for the assistence 

Nico

- Original Message - 
From: Nico den Boer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 9:31 AM
Subject: Re: Tomcat on Win2k


What I've done is;
- followed steps of uguide\tomcat_ug.html (env. variables)
- followed all steps of tomcat-iis-howto.html
That means 1 is done, 2 not yet.

First I'll replace the JVM to 1.3.1Beta
Then do what's in NT-Service-howto.html

One thing is not clear to me; the doc says:
3 Install jk_nt_service by running it with the -i flag.
4 Start tomcat as a service.

Do I need to add these lines to autoexec.bat or only type it once in "start
button/execute" ?
(don't know what happens when the computer is restarted or when it's running
multiple sessions)

Nico





RE: shutdown.sh problem

2001-04-11 Thread Benoit Jacquemont

Hi,

It looks like the Ajp12connector isn't working. You should check the
server.xml to see if the connector is properly define. The Ajp12 connector
is needed to shutdown tomcat.

Benoit

 Hi,
 I'm trying to shutdown Tomcat using
 $TOMCAT_HOME/bin/shutdown.sh

 but when I type that i get the following message:

 Using classpath:
 /usr/java/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/java/jakarta-t
 omcat-3.2.1/lib/jasper.jar:/usr/java/jakarta-tomcat-3.2.1/lib/
 jaxp.jar:/usr/java/jakarta-tomcat-3.2.1/lib/parser.jar:/usr/ja
 va/jakarta-tomcat-3.2.1/lib/servlet.jar:/usr/java/jakarta-tomc
 at-3.2.1/lib/test:/usr/java/jakarta-tomcat-3.2.1/lib/webserver
 .jar:/usr/java/jdk1.3/lib/tools.jar:/usr/java/jakarta-tomcat-3
 .2.1/lib/servlet.jar:.
 Stop tomcat
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at
 java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:323)
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:136)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:123)
 at java.net.Socket.init(Socket.java:273)
 at java.net.Socket.init(Socket.java:100)
 at
 org.apache.tomcat.task.StopTomcat.execute(StopTomcat.java:104)
 at
 org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:267)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:174)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)


 I've never had problems shutting it down before. Can someone
 tell why it
 would be refusing the Connection and how I can go about fixing it.
 I apologize if I am asking a question that is easily fixed.
 If you need
 more info from me, let me know.

 I'm using Tomcat 3.2.1 on linux

 Thanks,
 Luoi

 --
 D. Shun-Luoi Fong
 821 Melrose Avenue
 Iowa City, IA 52246
 email: [EMAIL PROTECTED]

 ---
 Colossions 2:8 See to it that no one takes you captive
 through philosophy
 or empty deception, according to the traditions of men,
 according to the
 elementary principles of the world, rather than according to Christ.
 ---




RE: shutdown.sh problem

2001-04-11 Thread Shun-Luoi Daniel Fong

Well, I checked the server.xml and the Ajp12 connector is properly
defined(I hadn't touched it since I installed Tomcat). 

Previous to trying to shutdown Tomcat, I had tried to access a .jsp that
used a JavaBean that tried to connect to a mysql database. However I got a
message that the database driver couldn't be found. After that I was
playing with the location/permissions of the database driver, and then
when I tried to shutdown Tomcat, I got this error. 

Any other ideas? Or is there another way that I can cleanly shutdown
Tomcat so that I can use startup.sh to start it up again?

Thanks,
Luoi

On Wed, 11 Apr 2001, Benoit Jacquemont wrote:

 Hi,
 
 It looks like the Ajp12connector isn't working. You should check the
 server.xml to see if the connector is properly define. The Ajp12 connector
 is needed to shutdown tomcat.
 
 Benoit
 
  Hi,
  I'm trying to shutdown Tomcat using
  $TOMCAT_HOME/bin/shutdown.sh
 
  but when I type that i get the following message:
 
  Using classpath:
  /usr/java/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/java/jakarta-t
  omcat-3.2.1/lib/jasper.jar:/usr/java/jakarta-tomcat-3.2.1/lib/
  jaxp.jar:/usr/java/jakarta-tomcat-3.2.1/lib/parser.jar:/usr/ja
  va/jakarta-tomcat-3.2.1/lib/servlet.jar:/usr/java/jakarta-tomc
  at-3.2.1/lib/test:/usr/java/jakarta-tomcat-3.2.1/lib/webserver
  .jar:/usr/java/jdk1.3/lib/tools.jar:/usr/java/jakarta-tomcat-3
  .2.1/lib/servlet.jar:.
  Stop tomcat
  java.net.ConnectException: Connection refused
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at
  java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:323)
  at
  java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:136)
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:123)
  at java.net.Socket.init(Socket.java:273)
  at java.net.Socket.init(Socket.java:100)
  at
  org.apache.tomcat.task.StopTomcat.execute(StopTomcat.java:104)
  at
  org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:267)
  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:174)
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
 
 
  I've never had problems shutting it down before. Can someone
  tell why it
  would be refusing the Connection and how I can go about fixing it.
  I apologize if I am asking a question that is easily fixed.
  If you need
  more info from me, let me know.
 
  I'm using Tomcat 3.2.1 on linux
 
  Thanks,
  Luoi
 
  --
  D. Shun-Luoi Fong
  821 Melrose Avenue
  Iowa City, IA 52246
  email: [EMAIL PROTECTED]
 
  ---
  Colossions 2:8 See to it that no one takes you captive
  through philosophy
  or empty deception, according to the traditions of men,
  according to the
  elementary principles of the world, rather than according to Christ.
  ---
 
 

-- 
D. Shun-Luoi Fong
821 Melrose Avenue
Iowa City, IA 52246
email: [EMAIL PROTECTED]

---
Colossions 2:8 See to it that no one takes you captive through philosophy
or empty deception, according to the traditions of men, according to the
elementary principles of the world, rather than according to Christ.
---




Re: shutdown.sh problem

2001-04-11 Thread Julian Payne

Are you sure that your Tomcat server is still running? Calling shutdown
twice will produce this message because the message comes from the fact that
Tomcat is not listening on the socket that is used to shut down Tomcat. If
your tomcat is still running then kill it by hand as it would appear to be
in a state where it is no longer responding.

Thanks,

Julian

- Original Message -
From: "Shun-Luoi Daniel Fong" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 11:30 AM
Subject: RE: shutdown.sh problem


 Well, I checked the server.xml and the Ajp12 connector is properly
 defined(I hadn't touched it since I installed Tomcat).

 Previous to trying to shutdown Tomcat, I had tried to access a .jsp that
 used a JavaBean that tried to connect to a mysql database. However I got a
 message that the database driver couldn't be found. After that I was
 playing with the location/permissions of the database driver, and then
 when I tried to shutdown Tomcat, I got this error.

 Any other ideas? Or is there another way that I can cleanly shutdown
 Tomcat so that I can use startup.sh to start it up again?

 Thanks,
 Luoi

 On Wed, 11 Apr 2001, Benoit Jacquemont wrote:

  Hi,
 
  It looks like the Ajp12connector isn't working. You should check the
  server.xml to see if the connector is properly define. The Ajp12
connector
  is needed to shutdown tomcat.
 
  Benoit
 
   Hi,
   I'm trying to shutdown Tomcat using
   $TOMCAT_HOME/bin/shutdown.sh
  
   but when I type that i get the following message:
  
   Using classpath:
   /usr/java/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/java/jakarta-t
   omcat-3.2.1/lib/jasper.jar:/usr/java/jakarta-tomcat-3.2.1/lib/
   jaxp.jar:/usr/java/jakarta-tomcat-3.2.1/lib/parser.jar:/usr/ja
   va/jakarta-tomcat-3.2.1/lib/servlet.jar:/usr/java/jakarta-tomc
   at-3.2.1/lib/test:/usr/java/jakarta-tomcat-3.2.1/lib/webserver
   .jar:/usr/java/jdk1.3/lib/tools.jar:/usr/java/jakarta-tomcat-3
   .2.1/lib/servlet.jar:.
   Stop tomcat
   java.net.ConnectException: Connection refused
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at
   java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:323)
   at
   java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:136)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:123)
   at java.net.Socket.init(Socket.java:273)
   at java.net.Socket.init(Socket.java:100)
   at
   org.apache.tomcat.task.StopTomcat.execute(StopTomcat.java:104)
   at
   org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:267)
   at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:174)
   at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
  
  
   I've never had problems shutting it down before. Can someone
   tell why it
   would be refusing the Connection and how I can go about fixing it.
   I apologize if I am asking a question that is easily fixed.
   If you need
   more info from me, let me know.
  
   I'm using Tomcat 3.2.1 on linux
  
   Thanks,
   Luoi
  
   --
   D. Shun-Luoi Fong
   821 Melrose Avenue
   Iowa City, IA 52246
   email: [EMAIL PROTECTED]
  
   ---
   Colossions 2:8 See to it that no one takes you captive
   through philosophy
   or empty deception, according to the traditions of men,
   according to the
   elementary principles of the world, rather than according to Christ.
   ---
 
 

 --
 D. Shun-Luoi Fong
 821 Melrose Avenue
 Iowa City, IA 52246
 email: [EMAIL PROTECTED]

 ---
 Colossions 2:8 See to it that no one takes you captive through philosophy
 or empty deception, according to the traditions of men, according to the
 elementary principles of the world, rather than according to Christ.
 ---






ShowSource in examples throws exception

2001-04-11 Thread Emil S. Petkov

I have installed Tomcat 3.2.1 with the default configuration files -- still did not 
care to make changes. Then connected to the examples page -- everything fine, examples 
work.

However, showing the source of a jsp page using sourse.jsp does not work and throws 
JspTagException.
In
$TOMCAT_HOME/webapps/examples/WEB-INF/classes/examples/ShowSource.java
the following code does that:

...
public int doEndTag() throws JspException {
if ((jspFile.indexOf( ".." ) = 0) ||
(jspFile.toUpperCase().indexOf("/WEB-INF/") != 0) ||
(jspFile.toUpperCase().indexOf("/META-INF/") != 0))
throw new JspTagException("Invalid JSP file " + jspFile);
...

As far as I can recall the 2nd and the 3rd conditions were added for security reasons. 
However, as I read them, they mean that the jsp file path SHOULD begin with 
"/WEB-INF/" or "/META-INF/". Is it really what they meant? Shouldn't the access to 
WEB-INF and META-INF be denied (i.e. in the above confitions '= 0' or ' != -1', or at 
least "= 0") -- at least this is what the apache conf chunk does. Well -- we have for 
the numguess example an URL of 
http://localhost:8080/examples/jsp/source.jsp?/jsp/num/numguess.jsp -- i.e. it does 
not meet the condition and throws exception.

It is not clear to me what does an absolute path mean when calling a method from a jsp.

(Bellow is what I get if somebody cares to read it)

Thanx in advance for any assistance.

Best regards,
Emil S. Petkov


Error: 500
Location: /examples/jsp/source.jsp
Internal Servlet Error:

javax.servlet.ServletException: Invalid JSP file /jsp/num/numguess.jsp
 at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
 at 
jsp._0002fjsp_0002fsource_0002ejspsource_jsp_1._jspService(_0002fjsp_0002fsource_0002ejspsource_jsp_1.java:89)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

Root cause: 
javax.servlet.jsp.JspTagException: Invalid JSP file /jsp/num/numguess.jsp
 at examples.ShowSource.doEndTag(ShowSource.java:26)
 at 
jsp._0002fjsp_0002fsource_0002ejspsource_jsp_1._jspService(_0002fjsp_0002fsource_0002ejspsource_jsp_1.java:76)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)






open source full-text-search-engines

2001-04-11 Thread Sebastian Schulz

hi,

i am looking for an open source
full text search engine like glimpse,
but more platform-independent
(it have to run under NT 4.0).

any suggestions / recommendations?

thanks in advance!

bAs T




404, 500, etc redirects

2001-04-11 Thread Carlos Pita

Hi!
I have a simple question: is there a configuration directive that says
Tomcat to redirect 404, 500, etc error codes to a customized output page
(like the Apache's ErrorDocument directive). I'm using Tomcat 3.2.1 with
Apache 1.3.12, and although I could sucesfully configure Apache to do this,
requests which pass through to Tomcat don't have the desired behaviour.

Thank you in advance,
Carlos





RE: open source full-text-search-engines

2001-04-11 Thread Eric Hartmann

Hi,

Look at lucene and netseeker in sourceforge (www.sourceforge.net) they
are java opensource full text search engine.

Eric

-Original Message-
From: Sebastian Schulz [mailto:[EMAIL PROTECTED]] 
Sent: mercredi 11 avril 2001 11:52
To: [EMAIL PROTECTED]
Subject: open source full-text-search-engines


hi,

i am looking for an open source
full text search engine like glimpse,
but more platform-independent
(it have to run under NT 4.0).

any suggestions / recommendations?

thanks in advance!

bAs T





running servlet!!!

2001-04-11 Thread shitiz mathur

hi,
i have just downloaded tomcat3.2.1.1 and installed it. its running.

i have shifted all my servlet .class files in(i.e. the 'respective_directories' 
contain my servlets'  .class files)

webapps\examples\Myintra\respective_directories.

 also i have set a context in server.xml in the name "/myintra" and mapped it to the 
directory Myintra as shown below
Context path="/myintra" 
docBase="webapps/examples/Myintra" 
crossContext="false"
debug="0" 
reloadable="true"
defaultSessionTimeOut="30"
/Context


this is necessary for my project tree structure. what do i do next to get my servlets 
running and error 404 is being reported.please help me out.

shitiz



_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com







Re: Redirecting 404,500, etc.

2001-04-11 Thread Stéphane BAUDET

Hello,

In your web.xml, you should add the error-page tag.
For example:

error-page
 error-code404error-code/
 location/404.htmllocation/
/error-page

This is well explain in the Java Servlet Specification , in the
Deployment desciptor section.
(see www.javasoft.com)


Carlos Pita a crit :
 
 Hi!
 I have a simple question: is there a configuration directive that says
 Tomcat to redirect 404, 500, etc error codes to a customized output page
 (like the Apache's ErrorDocument directive). I'm using Tomcat 3.2.1 with
 Apache 1.3.12, and although I could sucesfully configure Apache to do this,
 requests which pass through to Tomcat don't have the desired behaviour.
 
 Thank you in advance,
 Carlos

-- 
Cordialement,


Stphane BAUDET

_
GL Trade
48, rue Notre Dame des Victoires - 75002 Paris
Tel : 01 53 40 43 12 (interne 1312)
Fax : 01 53 40 01 40
Email : [EMAIL PROTECTED]
_



Re: open source full-text-search-engines

2001-04-11 Thread Oldeboershuis, Simon

Hi Sebastian,

have a look at the Lucene Search Engine 
http://www.lucene.com/  
http://sourceforge.net/projects/lucene/

simon



mod_jk directives

2001-04-11 Thread LM

Hi all:
I'm using Jserv 1.1 under solaris2.6 and NT4.0

Now I'm testing tomcat 3.2.1, and my first tests are O.K.
I'm using mod_jk for tests with apache web server
but I can't find (in tomcat documentation and in Jakarta FAQ) a complete

list of mod_jk directives (only a few JkWorkersFile,
JkLogFile,...,JkMount)
that I can find in the mod_jk-howto.html file.

Where can I find a complete list of mod_jk directives ?

Thansk in advance
L.M.




RE: JDBCReamls Still freeze after 24 hours wokrs

2001-04-11 Thread Kaneda K

So know i have some strange reaction.
Firstly i have a double Identification asked
  - 1 through the basic form (windowed)
  - 1 through the html form (which is the one I set up)

After a night use, I have really strange reaction :
  Firstly I have connection refused, then I try again later and manage to 
be authentify.
I try again, I log out and retry, and this time I got

Error: 500
Location: /capimmo/my/index.jsp
Internal Servlet Error:
java.lang.NullPointerException
  at 
org.gjt.mm.mysql.PreparedStatement.executeQuery(PreparedStatement.java:251)
  at org.apache.tomcat.modules.aaa.JDBCRealm.checkPassword(JDBCRealm.java:278)
  at org.apache.tomcat.modules.aaa.JDBCRealm.authenticate(JDBCRealm.java:441)
  at org.apache.tomcat.core.Request.getRemoteUser(Request.java:476)
  at 
org.apache.tomcat.modules.aaa.AccessInterceptor.authorize(AccessInterceptor.java:313)
  at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:773)
  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:701)
  at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:143)
  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:424)
  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:497)
  at java.lang.Thread.run(Thread.java:484)

So I have no real answer yet.
Still using

Tomcat  : jakarta-tomcat-3.3-m2
Mysql   : Mysql Ver 11.12 Distrib 3.23.32
JDBC driver : mm.mysql-2.0.4-bin.jar.
OS  : Red Hat Linux release 6.2 (Zoot)
   Kernel 2.2.14-5.0 on an i686
java: java version "1.3.0"
   Java(TM) 2 Runtime Environment, Standard Edition (build 
1.3.0)
   Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)


yours sincerely,





Re: File Not Found errors

2001-04-11 Thread Tew Chiz Sheng



Hi guys,
My "404: File Not Found" error occurs whenever I 
tried to upload a new version of jsp. After a new version is uploaded, quite 
often, but not always, the *.jsp file cannot be found.

I have to restart Apache, restarting Tomcat is not 
enough. My servlets do not have this problem though. My Tomcat is 
v3.2 running on Linux.

Any clue? Thanks in 
advance.


RE: JDBCReamls Still freeze after 24 hours wokrs

2001-04-11 Thread Ignacio J. Ortega

I think this was a problem introduced by me, when trying to solve the
FORM auht with no cookies, i will sendyou a recently made set of jar for
TC3.3..( when the CVS update got done, it's slow today ) ..

Sorry.., 

It's a problem to be able to reproduce the problem early.., and not evry
24 hours. 

i will continue trying to help you...

Saludos ,
Ignacio J. Ortega


 -Mensaje original-
 De: Kaneda K [mailto:[EMAIL PROTECTED]]
 Enviado el: mircoles 11 de abril de 2001 12:30
 Para: [EMAIL PROTECTED]
 Asunto: RE: JDBCReamls Still freeze after 24 hours wokrs
 
 
 So know i have some strange reaction.
 Firstly i have a double Identification asked
   - 1 through the basic form (windowed)
   - 1 through the html form (which is the one I set up)
 
 After a night use, I have really strange reaction :
   Firstly I have connection refused, then I try again later 
 and manage to 
 be authentify.
 I try again, I log out and retry, and this time I got
 
 Error: 500
 Location: /capimmo/my/index.jsp
 Internal Servlet Error:
 java.lang.NullPointerException
   at 
 org.gjt.mm.mysql.PreparedStatement.executeQuery(PreparedStatem
ent.java:251)
   at 
 org.apache.tomcat.modules.aaa.JDBCRealm.checkPassword(JDBCReal
 m.java:278)
   at 
 org.apache.tomcat.modules.aaa.JDBCRealm.authenticate(JDBCRealm
 .java:441)
   at org.apache.tomcat.core.Request.getRemoteUser(Request.java:476)
   at 
 org.apache.tomcat.modules.aaa.AccessInterceptor.authorize(Acce
ssInterceptor.java:313)
   at 
 org.apache.tomcat.core.ContextManager.internalService(ContextM
anager.java:773)
   at 
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:701)
   at 
 org.apache.tomcat.modules.server.Http10Interceptor.processConn
 ection(Http10Interceptor.java:143)
   at 
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
 nt.java:424)
   at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:497)
   at java.lang.Thread.run(Thread.java:484)
 
 So I have no real answer yet.
 Still using
 
 Tomcat  : jakarta-tomcat-3.3-m2
 Mysql   : Mysql Ver 11.12 Distrib 3.23.32
 JDBC driver : mm.mysql-2.0.4-bin.jar.
 OS  : Red Hat Linux release 6.2 (Zoot)
Kernel 2.2.14-5.0 on an i686
 java: java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard 
 Edition (build 
 1.3.0)
Java HotSpot(TM) Client VM (build 1.3.0, 
 mixed mode)
 
 
 yours sincerely,
 
 



Re: Problem with Ant + JAVA_HOME

2001-04-11 Thread Dieter Plank

Hi,

I guess Ant is a little bit lazy. Had the same problem. Set the classpath
manually just before installing. Hope it works for you either.

cu.

   o,,,o
  ( 'o' )
  
 (''')(''') __

 Interpersonal Computing GmbH
 Dieter Plank
 Fachinformatiker - Anwendungsentwicklung (IHK)
 -Entwicklung-
 Augustenstrasse 20 - 22
 80333 Muenchen

  Tel: ++49 89 219975-0

 Web: http://www.ipc.de Mail: [EMAIL PROTECTED]
- Original Message -
From: "Hunter Hillegas" [EMAIL PROTECTED]
To: "Tomcat User List" [EMAIL PROTECTED]
Sent: Tuesday, April 10, 2001 8:31 PM
Subject: Problem with Ant + JAVA_HOME


 I have JAVA_HOME set to /usr/local/jdk1.3 which is where my JDK is.

 I just installed Tomcat 3.2.1 on a new development server and builds are
 failing saying they can't find the compiler and telling me to set
JAVA_HOME.

 It is set (confirmed with printenv) and so I'm at a bit of a loss...

 Any ideas?

 Thanks,
 Hunter





open source full text engine

2001-04-11 Thread Sebastian Schulz

hi,

i am looking for an open source
full text search engine like glimpse,
but more platform-independent
(it have to run under NT 4.0).

any suggestions / recommendations?

thanks in advance!

bAs T




help to configure apache with tomcat

2001-04-11 Thread Caroline Boonen

Hello,

Is there some people can help me to configure Tomcat with apache?

Thanks in advance

--
Caroline BOONEN



Re: help to configure apache with tomcat

2001-04-11 Thread Hajo Eichler

Hi!

 Which OS?

On linux i can help!

CU 
 Hajo
- Original Message - 
From: "Caroline Boonen" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 2:46 PM
Subject: help to configure apache with tomcat


 Hello,
 
 Is there some people can help me to configure Tomcat with apache?
 
 Thanks in advance
 
 --
 Caroline BOONEN
 




work directory

2001-04-11 Thread Michael Klimkin

Hi!

Do you know is it possible to change the names of the directories under the
work directory?

They look like localhost_8080 ant etc. 

Thank you

Michael



SNMP agent

2001-04-11 Thread christophe dore

Hi,

Does anybody know if there is a SNMP agent that can be plugged in tomcat
? I would like to grab status infos such as number of sessions average
resposne time, 

Regards,


-- 
Christophe Dor
Project Manager
Audientia
+33 (0)1.46.22 94 57 (office - direct)
+33 (0)1.46.22.40.00 (office - std) 
+33(0)1. 46.22.33.04 (fax) 
12 rue Le Chtelier-75017 Paris - France
http: //www.audientia.com 
---
The information transmitted is intended only for the person to whom or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or other
use
of, or taking of any action in reliance upon, this information by
persons or
entities other than the intended recipient is prohibited.If you received
this in error, please contact the sender by e-mail reply and delete and
destroy all copies of the material.



Re: Connection Pooling

2001-04-11 Thread Mark Diggory

Shouldn't you be able to access the bean by setting the jsp:bean  tags 
scope attribute to application? This is pretty basic tutorial stuff on the 
Sun site.


At 01:07 PM 4/11/01 +0100, you wrote:
Hi...
I am creating the object of Connection pool manager in my Start up JSP.
The pool manager object is in Application scope.
I want to access the pool manager and get one connection object from one 
of my Bean used in the JSP.
How can i access the application scopre object from my Bean.
Is it possible.?

Please help...
Thanks in advance.

Regards.

L G Goundalkar
Intertec Communications Pvt Ltd
INDIA




Tomcat at Windows 2000

2001-04-11 Thread Daniel de Almeida Alvares

Hi,
I am trying to run Jakarta at Windows 2000, but I am having my jakarta
window closed as soon as it starts !!!
What kind of problem is that ?
at Win98 I wasnt having any problem and it was working well 
Can anybody helps me ???

Regards
Daniel

Daniel Alvares
Santos - SP - Brazil




RE: File Not Found errors

2001-04-11 Thread Ron Pitts



Tew,

I've 
heard that apache module (mod_jk) will keep a handle to tomcat, so restarting 
tomcat will not always work. 


  -Original Message-From: Tew Chiz Sheng 
  [mailto:[EMAIL PROTECTED]]Sent: 11 April 2001 
  11:58To: [EMAIL PROTECTED]Subject: Re: File 
  Not Found errors
  Hi guys,
  My "404: File Not Found" error occurs whenever I 
  tried to upload a new version of jsp. After a new version is uploaded, quite 
  often, but not always, the *.jsp file cannot be found.
  
  I have to restart Apache, restarting Tomcat is 
  not enough. My servlets do not have this problem though. My Tomcat 
  is v3.2 running on Linux.
  
  Any clue? Thanks in 
advance.


RE: Tomcat at Windows 2000

2001-04-11 Thread Randy Layman


Instead of running startup.bat, try running tomcat.bat run - this
will start Tomcat in the same DOS prompts as its launched from.  You problem
is most likely one of two things:
1.  Something is already using the ports Tomcat is trying to use
(8080 and 8007).  Microsoft has included netstat with 2000 so that you can
tell what addresses are in use
2.  Something with the JVM/jar files is wrong and Tomcat can't find
one of its critical JARs (this would include having two XML parsers for
Tomcat 3.2).

In either case, the error message will tell you what the problem is
and the solution should be straight forward.

Randy


 -Original Message-
 From: Daniel de Almeida Alvares [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 9:16 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat at Windows 2000
 
 
 Hi,
 I am trying to run Jakarta at Windows 2000, but I am having my jakarta
 window closed as soon as it starts !!!
 What kind of problem is that ?
 at Win98 I wasnt having any problem and it was working well 
 Can anybody helps me ???
 
 Regards
 Daniel
 
 Daniel Alvares
 Santos - SP - Brazil
 



Re: Tomcat at Windows 2000

2001-04-11 Thread Daniel de Almeida Alvares

But I can run JSWDK's startserver command with no problems  it s using
8080 port.
[]
Daniel
___
Daniel de Almeida Alvares
Santos - SP - Brasil
[EMAIL PROTECTED]

- Original Message -
From: "Randy Layman" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 9:54 AM
Subject: RE: Tomcat at Windows 2000



Instead of running startup.bat, try running tomcat.bat run - this
will start Tomcat in the same DOS prompts as its launched from.  You problem
is most likely one of two things:
1.  Something is already using the ports Tomcat is trying to use
(8080 and 8007).  Microsoft has included netstat with 2000 so that you can
tell what addresses are in use
2.  Something with the JVM/jar files is wrong and Tomcat can't find
one of its critical JARs (this would include having two XML parsers for
Tomcat 3.2).

In either case, the error message will tell you what the problem is
and the solution should be straight forward.

Randy


 -Original Message-
 From: Daniel de Almeida Alvares [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 9:16 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat at Windows 2000


 Hi,
 I am trying to run Jakarta at Windows 2000, but I am having my jakarta
 window closed as soon as it starts !!!
 What kind of problem is that ?
 at Win98 I wasnt having any problem and it was working well 
 Can anybody helps me ???

 Regards
 Daniel

 Daniel Alvares
 Santos - SP - Brazil





RE: Tomcat at Windows 2000

2001-04-11 Thread Randy Layman


The server.xml file that you have is misconfigured - the class name
is org.request.SimpleMapper1.  (Anyone know why the server.xml configuration
on recent downloads is wrong?)

Randy

 -Original Message-
 From: Daniel de Almeida Alvares [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 9:26 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Tomcat at Windows 2000
 
 
 Ok... thanks !!!
 I did that and had this:
 
 C:\jakarta-tomcat\bintomcat run
 Including all jars in c:\jakarta-tomcat\lib in your CLASSPATH.
 
 Using CLASSPATH: c:\jakarta-tomcat\classes;c:\jakarta-tomcat\lib\ant
 rta-tomcat\lib\jasper.jar;c:\jakarta-tomcat\lib\jaxp.jar;c:\jakarta-
 arser.jar;c:\jakarta-tomcat\lib\servlet.jar;c:\jakarta-tomcat\lib\we
 .;c:\jdk13\lib;c:\jdk13\lib\tools.jar;c:\jswdk101\lib\servlet.jar;c:
 omp.jar;c:\jdk13\lib\tools.jar
 
 ERROR reading c:\jakarta-tomcat\conf\server.xml
 At Line 48 /Server/ContextManager/RequestInterceptor/ className=org.
 t.request.SimpleMapper debug=0
 
 FATAL: configuration error
 java.lang.ClassNotFoundException: org.apache.tomcat.request.SimpleMa
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188
 at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at org.apache.tomcat.util.xml.ObjectCreate.start(XmlMapper.j
 at org.apache.tomcat.util.xml.XmlMapper.matchStart(XmlMapper
 at org.apache.tomcat.util.xml.XmlMapper.startElement(XmlMapp
 at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
 at com.sun.xml.parser.Parser.content(Parser.java:1499)
 at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
 at com.sun.xml.parser.Parser.content(Parser.java:1499)
 at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
 at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
 at com.sun.xml.parser.Parser.parse(Parser.java:284)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)
 at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.ja
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
 
 
 
 
 any sugestions  (yesterday I spent all morning and didnt find a
 solution !!)
 
 Regards
 Daniel
 ___
 Daniel Alvares
 Santos - SP - Brasil
 [EMAIL PROTECTED]
 
 
 - Original Message -
 From: "Benot Jacquemont" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; "'Daniel de Almeida Alvares'"
 [EMAIL PROTECTED]
 Sent: Wednesday, April 11, 2001 10:24 AM
 Subject: RE: Tomcat at Windows 2000
 
 
  I use Tomcat on W2K Pro, and it works fine. Anyway, the 
 reason why your
  window closes, is because an error occurs. You should try to open a
 command
  line window, go to the TOMCAT_HOME\bin directory and try tomcat run
 instead
  of startup. You will see the error.
 
  Benot
   Hi,
   I am trying to run Jakarta at Windows 2000, but I am 
 having my jakarta
   window closed as soon as it starts !!!
   What kind of problem is that ?
   at Win98 I wasnt having any problem and it was working well 
   Can anybody helps me ???
  
   Regards
   Daniel
  
   Daniel Alvares
   Santos - SP - Brazil
 
 



Unsubscribe?

2001-04-11 Thread Gottwald, Oliver

I have issued numerous request at from the tomcat web site to be
unsubscribed.
I have issued numerous request via the email group list.  Sorry for the
clutter.
Can some one please handle removing me from the tomcat-user mailing list.




Re: files included in httpd.conf (problem 1)

2001-04-11 Thread Anne-Marie Ternes

Hi all,

the problem with my config files seems now to be solved. So now in
httpd.conf I no more include the jserv.conf file. The problem with the
SecretKey thing was solved by copying tomcat-apache.conf to
my-tomcat-apache.conf, ant taking the LoadModule first line out of it. So I
now include only the my-tomcat-apache.conf file in httpd.conf.

I tried to comment out the LoadModule line in tomcat.conf, hoping that it
wouldn't be generated into the tomcat-apache file, but it still does. So
there seems still to remain some fumbling around with my own
tomcat-apache.conf file.

Now, also the redirection from Apache to Tomcat for servlets and JSP works
fine.

Anne-Marie

Saurabh Shukla wrote:

 in your tomcat-apache.conf check the entry for ApJservSecretKey.

 tomcat-apache.conf is generated by tomcat, so a better way is to save
 tomcat-apache.conf with a different name and include it in your
 httpd.conf(apache's configuration file).

 -Original Message-
 From: Anne-Marie Ternes [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 10, 2001 6:30 PM
 To: Tomcat Mailing List
 Subject: files included in httpd.conf (problem 1)

 Hi,

 I've got a small problem here concerning which files I have to include
 in the httpd.conf file.
 I thought that the jserv.conf file didn't need to be included any longer
 in httpd.conf. So I only included the tomcat-apache.conf file. If I do
 that, Tomcat starts up allright, but Apache gives me this error during
 startup:

 
 You must specify a secret key, or disable this feature.
 To disable, add "ApJServSecretKey DISABLED" to your Apache configuration
 file.
 To use, add "ApJServSecretKey {filename}" where filename is document
 with more or less random contents, and perhaps a few kb in length.
 The Apache JServ documentation explains this in more detail.
 /oas/oashome/Apache/Apache/bin/httpdsctl start: httpd could not be
 started
 

 This, although there is a correct line ApJServSecretKey DISABLED in my
 tomcat-apache.conf.

 What do I miss here?

 Then I tried to include both jserv.conf and tomcat-apache.conf, but then
 I get an error of ApJServ directives being defined several times. What I
 did was to copy the tomcat-apache.conf file, cut out its ApJServ
 directives and include that file in httpd.conf. There's no errors
 anymore, but I'm still not sure if Apache really hands servlets and JSP
 over to Tomcat.

 I'm still able to call servlets through the Apache URL (), JSPs thru
 Apache don't work anymore. On Tomcat (8080), servlets and JSP work also.

 But I thought that, for example, a servlet called through the standard
 Apache URL should automatically be handed over to Tomcat, which doesn't
 seem to be the case.
 How can I find out if the servlet I see in my browser was handled by
 Tomcat or Apache?

 Thank you to anybody helping me on these configuration issues!

 Anne-Marie
 --
 =
 Anne-Marie Ternes

 Informaticien diplm

 Centre Informatique de l'Etat
 B.P. 
 L-1011 Luxembourg

 Tl: 49 925 642
 E-Mail: [EMAIL PROTECTED]
 =

--
=
Anne-Marie Ternes

Informaticien diplm

Centre Informatique de l'Etat
B.P. 
L-1011 Luxembourg

Tl: 49 925 642
E-Mail: [EMAIL PROTECTED]
=





RE: Unsubscribe?

2001-04-11 Thread Randy Layman


From the initial signup configmration message:

You can start a subscription for an alternate address,
for example "[EMAIL PROTECTED]", just add a hyphen and your
address (with '=' instead of '@') after the command word:
[EMAIL PROTECTED]

To stop subscription for this address, mail:
[EMAIL PROTECTED]

In both cases, I'll send a confirmation message to that address. When
you receive it, simply reply to it to complete your subscription.

If despite following these instructions, you do not get the
desired results, please contact my owner at
[EMAIL PROTECTED] Please be patient, my owner is a
lot slower than I am ;-)

end copy

So, have you:
1.  Unsubsribed by trying tomcat-user-unsubscribe-GottwO=nuveen.com?
2.  Checked mail headers of your messages to make sure that you are
subscribed as [EMAIL PROTECTED], or are you subscribed as a diffent address?
3.  Sent email to tomcat-user-owner and been patient for an answer?



 -Original Message-
 From: Gottwald, Oliver [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 9:40 AM
 To: [EMAIL PROTECTED]
 Subject: Unsubscribe?
 
 
 I have issued numerous request at from the tomcat web site to be
 unsubscribed.
 I have issued numerous request via the email group list.  
 Sorry for the
 clutter.
 Can some one please handle removing me from the tomcat-user 
 mailing list.
 



Re: Tomcat at Windows 2000

2001-04-11 Thread Daniel de Almeida Alvares

I changed thatbut now I am having


FATAL: configuration error
java.lang.ClassNotFoundException: org.apache.tomcat.request.SecurityCheck

and dont have this class (SecurityCheck) here 

[]
Daniel


- Original Message -
From: "Randy Layman" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 10:04 AM
Subject: RE: Tomcat at Windows 2000



The server.xml file that you have is misconfigured - the class name
is org.request.SimpleMapper1.  (Anyone know why the server.xml configuration
on recent downloads is wrong?)

Randy

 -Original Message-
 From: Daniel de Almeida Alvares [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 9:26 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Tomcat at Windows 2000


 Ok... thanks !!!
 I did that and had this:

 C:\jakarta-tomcat\bintomcat run
 Including all jars in c:\jakarta-tomcat\lib in your CLASSPATH.

 Using CLASSPATH: c:\jakarta-tomcat\classes;c:\jakarta-tomcat\lib\ant
 rta-tomcat\lib\jasper.jar;c:\jakarta-tomcat\lib\jaxp.jar;c:\jakarta-
 arser.jar;c:\jakarta-tomcat\lib\servlet.jar;c:\jakarta-tomcat\lib\we
 .;c:\jdk13\lib;c:\jdk13\lib\tools.jar;c:\jswdk101\lib\servlet.jar;c:
 omp.jar;c:\jdk13\lib\tools.jar

 ERROR reading c:\jakarta-tomcat\conf\server.xml
 At Line 48 /Server/ContextManager/RequestInterceptor/ className=org.
 t.request.SimpleMapper debug=0

 FATAL: configuration error
 java.lang.ClassNotFoundException: org.apache.tomcat.request.SimpleMa
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188
 at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at org.apache.tomcat.util.xml.ObjectCreate.start(XmlMapper.j
 at org.apache.tomcat.util.xml.XmlMapper.matchStart(XmlMapper
 at org.apache.tomcat.util.xml.XmlMapper.startElement(XmlMapp
 at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
 at com.sun.xml.parser.Parser.content(Parser.java:1499)
 at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
 at com.sun.xml.parser.Parser.content(Parser.java:1499)
 at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
 at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
 at com.sun.xml.parser.Parser.parse(Parser.java:284)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)
 at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.ja
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)




 any sugestions  (yesterday I spent all morning and didnt find a
 solution !!)

 Regards
 Daniel
 ___
 Daniel Alvares
 Santos - SP - Brasil
 [EMAIL PROTECTED]


 - Original Message -
 From: "Benot Jacquemont" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; "'Daniel de Almeida Alvares'"
 [EMAIL PROTECTED]
 Sent: Wednesday, April 11, 2001 10:24 AM
 Subject: RE: Tomcat at Windows 2000


  I use Tomcat on W2K Pro, and it works fine. Anyway, the
 reason why your
  window closes, is because an error occurs. You should try to open a
 command
  line window, go to the TOMCAT_HOME\bin directory and try tomcat run
 instead
  of startup. You will see the error.
 
  Benot
   Hi,
   I am trying to run Jakarta at Windows 2000, but I am
 having my jakarta
   window closed as soon as it starts !!!
   What kind of problem is that ?
   at Win98 I wasnt having any problem and it was working well 
   Can anybody helps me ???
  
   Regards
   Daniel
  
   Daniel Alvares
   Santos - SP - Brazil
 






[ANS] RE: virtual hosts on different ports

2001-04-11 Thread davea

Bill,

  What you stated is what I'm trying to do. I have a single server, in which I need to 
utiltize ports 8601 and 443.  But, I want each port to examine a certain 'context'.  
Right now I'm manily concerned about 8601 for our developemt team.
Here is my entry from the server.xml and httpsd.conf file.  But, when I try to connect 
to the pages I receive a 404 error and in the jasper log file I notice TOMCAT is 
trying to excute the code from $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes directory.  
Can you give me a clue on what I'm doing wrong.

 Thanks a bunch.

server.xml

Host Name="140.229.33.200:8601"
Context path="/paxAIP"
 docBase="/tecnet/WWW/NetScape/Alpha/paxAIP"
 crossContext="true"
 reloadable="true"
 trusted="false"
 debug="0"/
/Host

httpsd

#  General setup for the virtual host
DocumentRoot "/tecnet/WWW/NetScape/Alpha"
ServerName tecnet1.jcte.jcs.mil
ServerAdmin [EMAIL PROTECTED]
ErrorLog logs/tecnet8601_error_log
TransferLog logs/tecnet8601_access_log
SetEnvIf Request_URI wwwAuthenticatedEntrance.cgi$ login
CustomLog logs/agent_log loginagent env=login
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

Dave


 From [EMAIL PROTECTED]  Tue Apr 
10 14:50:35 2001
 Received: from otto.nawcad.navy.mil (otto-internal.nawcad.navy.mil [192.58.199.212])
   by tecnet1.jcte.jcs.mil (8.9.3/8.9.3) with ESMTP id OAA19625
   for [EMAIL PROTECTED]; Tue, 10 Apr 2001 14:50:34 -0400 (EDT)
 Received: by otto.nawcad.navy.mil; id OAA20256; Tue, 10 Apr 2001 14:50:34 -0400 (EDT)
 Received: from unknown(64.208.42.41) by otto.nawcad.navy.mil via smap (V4.2)
   id xma019868; Tue, 10 Apr 01 14:50:27 -0400
 Received: (qmail 45293 invoked by uid 500); 10 Apr 2001 18:49:36 -
 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
 Precedence: bulk
 Reply-To: [EMAIL PROTECTED]
 list-help: mailto:[EMAIL PROTECTED]
 list-unsubscribe: mailto:[EMAIL PROTECTED]
 list-post: mailto:[EMAIL PROTECTED]
 Delivered-To: mailing list [EMAIL PROTECTED]
 Received: (qmail 45276 invoked from network); 10 Apr 2001 18:49:36 -
 Received: from unknown (HELO jnm-main.pictureiq.com) (63.127.69.253)
   by h31.sny.collab.net with SMTP; 10 Apr 2001 18:49:36 -
 Received: from ecto1 (jnm0-215 [192.168.0.215]) by jnm-main.pictureiq.com with SMTP 
(Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
   id HMS1GX6X; Tue, 10 Apr 2001 11:54:00 -0700
 From: "William Wishon" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: virtual hosts on different ports
 Date: Tue, 10 Apr 2001 11:48:33 -0700
 Keywords: MailingLists
 Message-ID: [EMAIL PROTECTED]
 MIME-Version: 1.0
 Content-Type: text/plain;
   charset="iso-8859-1"
 Content-Transfer-Encoding: 7bit
 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: B9D7EB6E06F0D1119AA800A0C9C74B4A2731C7@STR_CONNECT2
 Importance: Normal
 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
 
 You can configure tomcat to listen on multiple ports, but you cannot
 restrict particular contexts to particular ports.  If you setup tomcat to
 listen on ports 8080 and 8082 then all of your contexts become available on
 both ports.  Using virtual hosts you can restrict particular contexts to
 particular virtual hosts, but all virtual hosts are available on all ports.
 
 That's what I found when I did some research and code archeology a little
 while ago. I wanted to separate two contexts by restricting the first
 context to the first port, and assigning the second context to the second
 port.
 
 -Bill
 
  -Original Message-
  From: Chris Andreou [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, April 10, 2001 11:30 AM
  To: '[EMAIL PROTECTED]'
  Subject: RE: virtual hosts on different ports
 
 
  you can create different contexts that listen on different ports
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, April 10, 2001 1:22 PM
  To: [EMAIL PROTECTED]
  Subject: virtual hosts on different ports
 
 
  Hi,
 
   Can I configure TOMCAT virutal hosts on different ports, not ip
  addresses?
  I seen this question asked in the archives but there was no responses.
 
  Dave
 





Automatic URL-Encoding (sessionID)

2001-04-11 Thread Martin Lilienthal

Hi,

is it possible to configure tomcat, that sessionIDs are automatically
encoded into _every_ URL in JSPs without doing
%=response.encodeURL("/context/page.jsp")%?



Thanks in advance


Martin Lilienthal




Re: please advise me here

2001-04-11 Thread Anne-Marie Ternes

Hi,

try changing "ID" to "Id". The thing is that following JavaBeans specification,
only the first letter of the variable has to be capitalized.
For example:
If your bean has a variable "question", the setter method will be "setQuestion",
the getter method will be "getQuestion", i.e. the first letter of your variable
"question" is turned into a capital letter

So, following the same rules, if your variable is "id", the set and get methods
must be "setId" and "getId".

HTH

Anne-Marie

Ying Sun wrote:

 Hi all,
 I happened to a strange problems.
 The command prompt window display every bean id and question as expected from
 database.
 but the jsp:getProperty name="faq" property="ID"
jsp:getProperty name="faq" property="question" doesn't work,
 it suppose look like
 id   question
 1what's this
 2   what's that

 but now it look like
 id
 0
 0

 and also the bean property is id,why we need to put ID in jsp:getProperty
 name="faq" property="ID" .

 thank you all in advance

 %@ page import="com.taglib.wdjsp.faqtool.*"
 errorPage="error.jsp" %
 jsp:useBean id="faq" class="com.taglib.wdjsp.faqtool.FaqBean"/
 %
   FaqBean[] faqs = (FaqBean[])request.getAttribute("faqs");
 %
 html
 headtitleUpdate Menu/title/head
 form name="menu" action="/webdev/servlet/FaqAdminServlet" method="post"
 table border="1" align="center"trtd
 table bgcolor="tan" border="1" align="center" cellpadding="10"
 cellspacing="0"
 trth colspan="2"FAQ Administration: Update Menu/th/tr
 %
 for (int i=0; i  faqs.length; i++) {
   faq = faqs[i];
 %
 % System.out.println(faq.getID()); %
 % System.out.println(faq.getQuestion()); %
 tr
 tdinput type="radio" name="id" value="jsp:getProperty name="faq"
 property="ID"/"
 jsp:getProperty name="faq" property="ID"//td
 tdjsp:getProperty name="faq" property="question"//td
 /tr
 % } %
 trtd colspan=2 align="center"
 input type="submit" value="Abort Updating"
 input type="submit" value="Update Selected FAQ"
 onClick="document.menu.cmd.value='update'"
 /td/tr
 /table
 /td/tr/table
 input type="hidden" name="cmd" value="abort"
 /form
 /html

 package com.taglib.wdjsp.faqtool;

 import java.util.Date;

 public class FaqBean {
   private int id;
   private String question;
   private String answer;
   private Date lastModified;

   public FaqBean() {
 this.id = 0;
 this.question = "";
 this.answer = "";
 this.lastModified = new Date();
   }

   public void setQuestion(String question) {
 this.question = question;
 this.lastModified = new Date();
   }

   public String getQuestion() {
 return this.question;
   }

   public void setAnswer(String answer) {
 this.answer = answer;
 this.lastModified = new Date();
   }

   public String getAnswer() {
 return this.answer;
   }

   public void setID(int id) {
 this.id = id;
   }

   public int getID() {
 return this.id;
   }

   public Date getLastModified() {
 return this.lastModified;
   }

   public void setLastModified(Date modified) {
 this.lastModified = modified;
   }

   public String toString() {
 return "[" + id + "] " + "Q: " + question + "; A: " +
   answer + "\n";
   }
 }

--
=
Anne-Marie Ternes

Informaticien diplm

Centre Informatique de l'Etat
B.P. 
L-1011 Luxembourg

Tl: 49 925 642
E-Mail: [EMAIL PROTECTED]
=





Servlet registration

2001-04-11 Thread Zsolt Horvath



Hi !

How could I register my own servlets into TomCat 
??

I put them into the 
%TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory. AfterI create a 
web.xml file in the %TOMCAT_HOME%/webapps/myapp directory. The web.xml file 
contains this:

!DOCTYPE web-app PUBLIC "-//Sun Microsystems, 
Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app

 display-name Web 
Application/display-name

 
servlet 
servlet-nameServlet1/servlet-name 
servlet-classServlet1/servlet-class 
/servlet

 
servlet-mapping 
servlet-nameServlet1/servlet-name 
url-pattern/Servlet1/url-pattern 
/servlet-mapping

/web-app

And I restarted the tomcat, but it doesn`t work ! 
What`s wrong? 
Please help for me: [EMAIL PROTECTED]



Apache, SSL and TOMCAT

2001-04-11 Thread davea

Hi,

 I'm confused and can't find any good documentation dealing with TOMCAT,SSL and
Apache.  I'm using a 128 bit SSL key from Verisign with my Apache web server.
I noticed in the TOMCAT's server.xml file a series of steps to be completed if
I need SSL support.  I don't understand step 1 and 3. I'm new at this so please
forgive me.  But what is JSSE and where do I added it to the CLASSPATH.  If I'm
intergrating TOMCAT with Apache why do I generate key as outlined in Step 3.

Dave




SSL IIS

2001-04-11 Thread Roberto Ratti

Dear,
I'm developing a web application using tomcat as a servlet engine, and IIS
as a web server. I even want to use SSL for my application. How should I
configure tomcat?
Thanks in advance,
Roberto

-
Roberto Ratti
TXT e-solutions S.p.A.
Via Frigia, 27 - 20126 Milano - ITALY
Phone: +39 2 25771.230
Fax: +39 2 2578994
e-mail: [EMAIL PROTECTED]
Web: http://www.txt.it
ICQ #104796434




AW: Automatic URL-Encoding (sessionID)

2001-04-11 Thread Ralph Einfeldt

It is not possible and it's a quite difficult topic

excerpt from a earlier post of mine:

Even if it is possible to automagically encode the url's,
I wouldn't do it.
 
You would have to parse your output after it is generated
and before you really send it to the requesting client.
 
The parsing has to be quite flexible to recognise links
to external sites and links that don't go back to the 
server.

Links to external sites shouldn't include the session id. 
(That would open the door to steal the session).
There are several ways to code URL's in a way that it 
is hard to say which site will be the target. Just two
examples:
1:
base href="some.server.domain"a href="/some/image.gif"/a
2:
script
  someServer = 'someServer';
  someFunction() {
return someServer + '/some/image.gif';
  }
/script
a href="javasript:someFunction()"

You have to prevent the encoding on any link like 
a href="javasript:history.go(-2)

So this leads to quite some effort in development (or
organisation, if you try to come around this by enforcing
apropriate policies for your web developers) and
performance penalties. And I bet: you will never be shure
if there isn't a whole anywhere.

 -Ursprngliche Nachricht-
 Von: Martin Lilienthal [mailto:[EMAIL PROTECTED]]
 Gesendet: Sonntag, 11. Mrz 2001 16:21
 An: [EMAIL PROTECTED]
 Betreff: Automatic URL-Encoding (sessionID)
 
 
 Hi,
 
 is it possible to configure tomcat, that sessionIDs are automatically
 encoded into _every_ URL in JSPs without doing
 %=response.encodeURL("/context/page.jsp")%?
 
 
 
 Thanks in advance
 
 
 Martin Lilienthal
 
 



Re: please advise me here

2001-04-11 Thread Ying Sun

thank you very much.
I tried to change getID to getId,setID to setId and also the change ID to id in jsp
file,it still act same.But if I change jsp:getProperty name="faq" property="id" to

%= faq.getId()  %.It work.
so I wonder where's the problem.


Anne-Marie Ternes wrote:

 Hi,

 try changing "ID" to "Id". The thing is that following JavaBeans specification,
 only the first letter of the variable has to be capitalized.
 For example:
 If your bean has a variable "question", the setter method will be "setQuestion",
 the getter method will be "getQuestion", i.e. the first letter of your variable
 "question" is turned into a capital letter

 So, following the same rules, if your variable is "id", the set and get methods
 must be "setId" and "getId".

 HTH

 Anne-Marie

 Ying Sun wrote:

  Hi all,
  I happened to a strange problems.
  The command prompt window display every bean id and question as expected from
  database.
  but the jsp:getProperty name="faq" property="ID"
 jsp:getProperty name="faq" property="question" doesn't work,
  it suppose look like
  id   question
  1what's this
  2   what's that
 
  but now it look like
  id
  0
  0
 
  and also the bean property is id,why we need to put ID in jsp:getProperty
  name="faq" property="ID" .
 
  thank you all in advance
 
  %@ page import="com.taglib.wdjsp.faqtool.*"
  errorPage="error.jsp" %
  jsp:useBean id="faq" class="com.taglib.wdjsp.faqtool.FaqBean"/
  %
FaqBean[] faqs = (FaqBean[])request.getAttribute("faqs");
  %
  html
  headtitleUpdate Menu/title/head
  form name="menu" action="/webdev/servlet/FaqAdminServlet" method="post"
  table border="1" align="center"trtd
  table bgcolor="tan" border="1" align="center" cellpadding="10"
  cellspacing="0"
  trth colspan="2"FAQ Administration: Update Menu/th/tr
  %
  for (int i=0; i  faqs.length; i++) {
faq = faqs[i];
  %
  % System.out.println(faq.getID()); %
  % System.out.println(faq.getQuestion()); %
  tr
  tdinput type="radio" name="id" value="jsp:getProperty name="faq"
  property="ID"/"
  jsp:getProperty name="faq" property="ID"//td
  tdjsp:getProperty name="faq" property="question"//td
  /tr
  % } %
  trtd colspan=2 align="center"
  input type="submit" value="Abort Updating"
  input type="submit" value="Update Selected FAQ"
  onClick="document.menu.cmd.value='update'"
  /td/tr
  /table
  /td/tr/table
  input type="hidden" name="cmd" value="abort"
  /form
  /html
 
  package com.taglib.wdjsp.faqtool;
 
  import java.util.Date;
 
  public class FaqBean {
private int id;
private String question;
private String answer;
private Date lastModified;
 
public FaqBean() {
  this.id = 0;
  this.question = "";
  this.answer = "";
  this.lastModified = new Date();
}
 
public void setQuestion(String question) {
  this.question = question;
  this.lastModified = new Date();
}
 
public String getQuestion() {
  return this.question;
}
 
public void setAnswer(String answer) {
  this.answer = answer;
  this.lastModified = new Date();
}
 
public String getAnswer() {
  return this.answer;
}
 
public void setID(int id) {
  this.id = id;
}
 
public int getID() {
  return this.id;
}
 
public Date getLastModified() {
  return this.lastModified;
}
 
public void setLastModified(Date modified) {
  this.lastModified = modified;
}
 
public String toString() {
  return "[" + id + "] " + "Q: " + question + "; A: " +
answer + "\n";
}
  }

 --
 =
 Anne-Marie Ternes

 Informaticien diplm

 Centre Informatique de l'Etat
 B.P. 
 L-1011 Luxembourg

 Tl: 49 925 642
 E-Mail: [EMAIL PROTECTED]
 =




Re: SSL IIS

2001-04-11 Thread Lyle H. Ward

Roberto,

I asked this general question late last week and didn't get and responses.
I've just started setting up my workstation to try it. My best guess is that
Tomcat will have to be run "in process" with IIS. There's a how to for
setting up in process on IIS. I'd prefer a separate process for Tomcat. Will
post my problems when they arrive.

Lyle


At 04:32 PM 4/11/2001 +0200, you wrote:
Dear,
I'm developing a web application using tomcat as a servlet engine, and IIS
as a web server. I even want to use SSL for my application. How should I
configure tomcat?
Thanks in advance,
Roberto

-
Roberto Ratti
TXT e-solutions S.p.A.
Via Frigia, 27 - 20126 Milano - ITALY
Phone: +39 2 25771.230
Fax: +39 2 2578994
e-mail: [EMAIL PROTECTED]
Web: http://www.txt.it
ICQ #104796434







RE: Apache, SSL and TOMCAT

2001-04-11 Thread Michael Klimkin


Try to use
http://www.ccl.net/cca/software/UNIX/apache/solaris-t3.2b5/README.shtml

It really helps me

Michael

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 6:28 PM
To: [EMAIL PROTECTED]
Subject: Apache, SSL and TOMCAT


Hi,

 I'm confused and can't find any good documentation dealing with TOMCAT,SSL
and
Apache.  I'm using a 128 bit SSL key from Verisign with my Apache web
server.
I noticed in the TOMCAT's server.xml file a series of steps to be completed
if
I need SSL support.  I don't understand step 1 and 3. I'm new at this so
please
forgive me.  But what is JSSE and where do I added it to the CLASSPATH.  If
I'm
intergrating TOMCAT with Apache why do I generate key as outlined in Step 3.

Dave



Re: open source full-text-search-engines

2001-04-11 Thread Brian Elliott

Sebastian Schulz wrote:
 i am looking for an open source
 full text search engine like glimpse,
 but more platform-independent
 (it have to run under NT 4.0).

I heard (but have not confirmed this) that the latest version of mySQL
has this.

Brian
-- 
Brian Elliott
President  CTO
Unplugged Systems
[EMAIL PROTECTED]
http://www.unpluggedsystems.com
719.339.1204 (cell)
719.487.1437 (office)



Servlet registration

2001-04-11 Thread Zsolt Horvath

Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app

display-name Web Application/display-name

servlet
  servlet-nameServlet1/servlet-name
  servlet-classServlet1/servlet-class
/servlet

servlet-mapping
  servlet-nameServlet1/servlet-name
  url-pattern/Servlet1/url-pattern
/servlet-mapping

/web-app

And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]




Re: servlet start-up

2001-04-11 Thread Rui M . Silva Seabra

On Tue, Apr 10, 2001 at 02:41:12PM -0400, Michael Wentzel wrote:
  On Tue, Apr 10, 2001 at 05:13:05PM +1000, Warren Crossing wrote:
   the load-on-startup child element of servlet in web.xml is 
  documented and
   specified in the j2ee servlet stuff things..
  Well, tomcat tells me it loads the servlets, but they still 
  are only loaded when I hit them, thus getting an Apache 
  Internal Server Error untill tomcat has them all properly "heated".
  load-on-startup doesn't solve that problem :(
 It may be of importance to note that the load-on-startup param
 just instantiates the servlet(calls the init method of the servlet)
 and does not make any requests to any of the services(doPost, doGet, 
 etc...).  And also note that there is an instance created for each
 servlet mapping you have configured plus the default 
 webapps/myapp/servlets/MyServlet.

I know that, but I had hopes that it would sove those "engine heating" problems that 
are pushing us towards an ugly alternative (jrun) against my will.

Hugs,
rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?



RE: tomcat installation problem in win98

2001-04-11 Thread Mike Campbell
Title: RE: tomcat installation problem in win98





Try modifying startup.bat to call tomcat.bat directly rather than just tomcat.



 -Original Message-
 From: karthik rajan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 3:38 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat installation problem in win98
 
 
 hello
 i have installed tomcat3.2.1 in win 98
 i have set the path tomcat and java still i'm facing the problem
 i'm facing problem in startup saying bad command or filename
 my project has held up please reply in detail.i'm waiting
 karthik
 
 [EMAIL PROTECTED]
 





Password list formbased login

2001-04-11 Thread hische



Hi,

Would it be possible to use FORM based login and still provide for the
functionality "Save this password in your password list" which is offered by the
browser itself when using BASIC login?
I would really appreciate any suggestions/links to a solution that would not
compromise security.

Thanks,

Wilko Hische





RE: Servlet registration

2001-04-11 Thread Ron Pitts


Zsolt,

Your missing some stuff 

webapps/myapp/WEB-INF/classes - store servlets/jsp in here 
 
put your web.xml in 
webapps/mysql/WEB-INF/


-Original Message-
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app

display-name Web Application/display-name

servlet
  servlet-nameServlet1/servlet-name
  servlet-classServlet1/servlet-class
/servlet

servlet-mapping
  servlet-nameServlet1/servlet-name
  url-pattern/Servlet1/url-pattern
/servlet-mapping

/web-app

And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]





AW: Use of Apache proxy module to connect to Tomcat

2001-04-11 Thread Reto Burkhalter

Hi

   ...
   LoadModule etc..
   LoadModule proxy_module /path/to/apache/library/libproxy.so
   LoadModule etc..
   ...
 
   VirtualHost www.bigcorp.com
   ProxyVia On
   ProxyPass /myapp http://orion.private.bigcorp.com:9876/
   ProxyPassReverse /myapp http://orion.private.bigcorp.com:9876/
   ...
   /VirtualHost
 
 
 Is this possible for Tomcat too? Pros and cons?

It seems to work for me. I redirect /jsp and /servlet to the tomcat port
(8080).

Drawback: I have to use absolute paths in page redirections..


-Reto



installing tomcat

2001-04-11 Thread GoldenDawn Fan

Hi, I am having problem installing tomcat. I set the
TOMCAT_HOME to c:\tomcat and and JAVA_HOME to
c:\jdk1.2.1. But how do I "add the Java interpreter to
your PATH environment variable"? Any help would be
much appreciated.
Thanks in advance. 



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Please help me decide if I should use tomcat over jserv for a major site

2001-04-11 Thread Gareth Coltman

Hi,

I am trying to architect a site for a major client, moving from a Microsoft
to a Java platform. I have been using Tomcat / Turbine for developing small
internal applications for some time, and have been very impressed with the
setup.

This client however gets a lot of hits, and have up two 200 concurrent
users.  They are unconvinced that Tomcat is really up to production
standard.  I have trawled lots of mailing lists and seen conflicting views -
some people say that it is a solid product, but the Jakarta project imply
that only release 4 will be production ready. Personally I have never had
any problems, but have never had used it on such a scale.

The other major question I have is whether to run Tomcat as standalone, or
with Apache - we will need load balancing, so I assume I have to run it with
Apache. However, this statement by the jakarta group worries me:

"While the code for Tomcat 4.0 running in standalone mode is
considered to
be near production quality, the web connector to run behind Apache
is still
alpha quality code, with limited functionality.  It is likely that
there will be
interim updates of the web connector software in between beta
releases of the
entire Tomat 4.0 package."

The alternative of course is JServ, and I am fairly sure that this will work
OK with Turbine.

Is there anybody out there how can help me convince my client to use Tomcat?
;)

Gareth Coltman




RE: installing tomcat

2001-04-11 Thread Michael Klimkin

You should add to the PATH variable string %JAVA_HOME%\bin

-Original Message-
From: GoldenDawn Fan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 7:28 PM
To: [EMAIL PROTECTED]
Subject: installing tomcat


Hi, I am having problem installing tomcat. I set the
TOMCAT_HOME to c:\tomcat and and JAVA_HOME to
c:\jdk1.2.1. But how do I "add the Java interpreter to
your PATH environment variable"? Any help would be
much appreciated.
Thanks in advance. 



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: tomcat installation problem in win98

2001-04-11 Thread RameshBabu R Muthuvel

Hai

see the attachment. If it still doesn't work do mail to me

ramesh

[EMAIL PROTECTED]


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Apache , Tomcat , mySQL - Installation Instruction  for Windows O/S

Step 1

1) Download the   apache_1.3.19.zip  file (currently available final 
version) of Apache Binaries from http://www.apache.org/dist

2) Download the  jakarta-tomcat-3.2.1.zip  file (currently available final 
version) of Tomcat Binaries from 
http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/

3)  Download the  ApacheModuleJServ.zip   file  from  
http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/win32/i386/


4) Download the suitable version of mySQL binaries from 
http://www.mysql.com/downloads/mysql-3.23.html

5) Download the  poolman-1.4.1.zip file from 
http://poolman.sourceforge.net/PoolMan/download.shtml
(if you wish to go in for connection pooling)


Step 2

I) Apache Installation

1) Uncompress the apache_1.3.19.zip file in a directory like c:\ (windows by 
default will install apache in c:\Program Files\Apache Group\Apache

2) Accept the defaults and follow the installation instructions

3) You got to edit the c:\Program Files\Apache Group\Apache\conf\httpd.conf

4) Open the httpd.conf file in your favorite editor say, notepad

5) Look for "ServerType StandAlone" under the Section 1: Global Environment.

6) Insert the line:  "ServerName localhost" below it and save the file.

7)  Try the configuration out by starting Apache (from the start menu) and 
navigating to http://localhost/ in your browser.  If you see the Apache web 
server page, then your installation is successful.

8)  Stop Apache (again using Stop menu)




II) Tomcat Installation

1) Uncompress the download into some sensible place , like  c:\Program 
Files\Apache Group\jakarta-tomcat-3.2.1

2) Go to Start  Settings  Control Panel  System  System Properties  and 
select the "Environment"  tab.

3) Under "User Variables for Administrator",  type the following:

Variable:  JAVA_HOME
Value   :  c:\jdk1.3(give your correct JDK path)

4) Similarly enter the following:

Variable:  ANT_HOME
Value   :  c:\program files\apache group\jakarta-tomcat3.2.1


Variable:  TOMCAT_HOME
Value   :  c:\program files\apache group\jakarta-tomcat3.2.1

(give your correct path, if your installation directory / path is different)

5) Run the "startup.bat" batch file found in the jakarta-tomcat-3.2.1\bin 
directory.  If the DOS window starts and then closes immediately,  try  " 
tomcat run" from the same command window.

6) Tomcat should normally start.

7)  If still your tomcat doesn't start, try adding c:\jdk1.3 in the classpath 
for  "system variables" under the environment tab ofSystem Properties. 
(Refer step 2).

8)  If still the problem persists, try shutting down the system for changes 
to be registered.  Restart the computer and repeat step 5.  Now Tomcat 
should normally start. (This has worked for me)

9) Test the result by going to http://localhost:8080/  in your browser and 
run some examples.

10) Run the  "shutdown.bat" from the same directory (refer step 5).





III) Installing  mod_jserv


1) Uncompress the download in some sensible place.

2) Copy the "ApacheModuleJServ.dll"  file into the Apache modules directory 
( in our case c:\program files\apache group\apache\modules directory)

3) Start tomcat and keep it running

4) Edit the "httpd.conf" file ( in our case available in c:\progam 
files\apache group\apache\conf directory)

5) Add the following line to the end,

Include "c:\Program Files\Apache 
Group\jakarta-tomcat-3.2.1\conf\tomcat-apache.conf"

(use the correct path in your installation)

6) Save the file and stop Tomcat


IV) Testing out final configuration


1) Start Tomcat  (from c:\program files\apache 
group\jakarta-tomcat-3.2.1\bin  directory)

2) Start Apache (from start menu)

3) Check if  Apache is working  (by going to http://localhost/)

4) Go to http://localhost/examples/jsp  and try out the examples.


V) Setting up your web application

1)  We should add a web application declaration in the "server.xml" 
configuration file, available under c:\program files\apache 
group\jakarta-tomcat-3.2.1\conf   directory.

2)  Open this file in text editor and add the following lines

Context path="/examples"
 docBase="webapps/miami"
 crossContext="false"
 debug="0"
 reloadable="true" 
/Context

(in the above example,  "miami" is my webapplication folder name, substitute 
your folder name here).




--
Share your experiences with : [EMAIL PROTECTED]





RE: Servlet registration

2001-04-11 Thread Chris Andreou

I have the same problem. 

I have put my servlets under the WEB-INF/classes: 

For example:
directory structure 
WEB-INF/classes/examples.SimpleServlet

web.xml file

  servlet
 servlet-nameSimpleServlet/servlet-name
 servlet-classexamples.SimpleServlet/servlet-class 
  /servlet
  
  
   servlet-mapping
  servlet-name
  SimpleServlet
  /servlet-name
  url-pattern
  /simple
  /url-pattern
  /servlet-mapping


httpd.conf:
JkMount /*.jsp ajp12
JkMount /servelt/* ajp12 


I am able to see the servlet using a complete path
http://trw02/servlet/examples.SimpleExample 

but not using the names in web.xml 

Based on the documentation and examples I am doing right. Please any
suggestions are welcome

Thanks in advance

Chris


-Original Message-
From: Ron Pitts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 9:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Servlet registration



Zsolt,

Your missing some stuff 

webapps/myapp/WEB-INF/classes - store servlets/jsp in here 
 
put your web.xml in 
webapps/mysql/WEB-INF/


-Original Message-
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app

display-name Web Application/display-name

servlet
  servlet-nameServlet1/servlet-name
  servlet-classServlet1/servlet-class
/servlet

servlet-mapping
  servlet-nameServlet1/servlet-name
  url-pattern/Servlet1/url-pattern
/servlet-mapping

/web-app

And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]




RE: Servlet registration

2001-04-11 Thread Julien, Timothy

The whitespace in your servlet-mapping in your web.xml could be leading to
the failure you see.
try:
servlet-mapping
  servlet-nameSimpleServlet/servlet-name
  url-pattern/simple/url-pattern
/servlet-mapping

what URL are you attempting to hit from your browser?

Tim Julien
HP middleware

-Original Message-
From: Chris Andreou [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


I have the same problem. 

I have put my servlets under the WEB-INF/classes: 

For example:
directory structure 
WEB-INF/classes/examples.SimpleServlet

web.xml file

  servlet
 servlet-nameSimpleServlet/servlet-name
 servlet-classexamples.SimpleServlet/servlet-class 
  /servlet
  
  
   servlet-mapping
  servlet-name
  SimpleServlet
  /servlet-name
  url-pattern
  /simple
  /url-pattern
  /servlet-mapping


httpd.conf:
JkMount /*.jsp ajp12
JkMount /servelt/* ajp12 


I am able to see the servlet using a complete path
http://trw02/servlet/examples.SimpleExample 

but not using the names in web.xml 

Based on the documentation and examples I am doing right. Please any
suggestions are welcome

Thanks in advance

Chris


-Original Message-
From: Ron Pitts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 9:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Servlet registration



Zsolt,

Your missing some stuff 

webapps/myapp/WEB-INF/classes - store servlets/jsp in here 
 
put your web.xml in 
webapps/mysql/WEB-INF/


-Original Message-
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app

display-name Web Application/display-name

servlet
  servlet-nameServlet1/servlet-name
  servlet-classServlet1/servlet-class
/servlet

servlet-mapping
  servlet-nameServlet1/servlet-name
  url-pattern/Servlet1/url-pattern
/servlet-mapping

/web-app

And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]



RE: files included in httpd.conf (problem 1)

2001-04-11 Thread Shen, Theresa

Hi Anne-Marie,

Your email indicated that you are doing similar things with Apache-Tomcat as
I am except I am using mod_jk instead of mod_jserv. 
My *.jsp files were in tomcat/webapps/../, what do I need to change in
Apache for it to pick up the request and send the servlet requests to
Tomcat?
I have the httpd.conf include the "c:\tomcat\conf\mod_jk.conf-Apache-auto
which is a copy of mod_jk.conf-auto and in there I Jkmount servelt requests
to my load balancing worker..

Any help from you will be great appreciated..

Thanks

-Original Message-
From: Anne-Marie Ternes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 9:42 AM
To: [EMAIL PROTECTED]
Subject: Re: files included in httpd.conf (problem 1)


Hi all,

the problem with my config files seems now to be solved. So now in
httpd.conf I no more include the jserv.conf file. The problem with the
SecretKey thing was solved by copying tomcat-apache.conf to
my-tomcat-apache.conf, ant taking the LoadModule first line out of it. So I
now include only the my-tomcat-apache.conf file in httpd.conf.

I tried to comment out the LoadModule line in tomcat.conf, hoping that it
wouldn't be generated into the tomcat-apache file, but it still does. So
there seems still to remain some fumbling around with my own
tomcat-apache.conf file.

Now, also the redirection from Apache to Tomcat for servlets and JSP works
fine.

Anne-Marie

Saurabh Shukla wrote:

 in your tomcat-apache.conf check the entry for ApJservSecretKey.

 tomcat-apache.conf is generated by tomcat, so a better way is to save
 tomcat-apache.conf with a different name and include it in your
 httpd.conf(apache's configuration file).

 -Original Message-
 From: Anne-Marie Ternes [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 10, 2001 6:30 PM
 To: Tomcat Mailing List
 Subject: files included in httpd.conf (problem 1)

 Hi,

 I've got a small problem here concerning which files I have to include
 in the httpd.conf file.
 I thought that the jserv.conf file didn't need to be included any longer
 in httpd.conf. So I only included the tomcat-apache.conf file. If I do
 that, Tomcat starts up allright, but Apache gives me this error during
 startup:

 
 You must specify a secret key, or disable this feature.
 To disable, add "ApJServSecretKey DISABLED" to your Apache configuration
 file.
 To use, add "ApJServSecretKey {filename}" where filename is document
 with more or less random contents, and perhaps a few kb in length.
 The Apache JServ documentation explains this in more detail.
 /oas/oashome/Apache/Apache/bin/httpdsctl start: httpd could not be
 started
 

 This, although there is a correct line ApJServSecretKey DISABLED in my
 tomcat-apache.conf.

 What do I miss here?

 Then I tried to include both jserv.conf and tomcat-apache.conf, but then
 I get an error of ApJServ directives being defined several times. What I
 did was to copy the tomcat-apache.conf file, cut out its ApJServ
 directives and include that file in httpd.conf. There's no errors
 anymore, but I'm still not sure if Apache really hands servlets and JSP
 over to Tomcat.

 I'm still able to call servlets through the Apache URL (), JSPs thru
 Apache don't work anymore. On Tomcat (8080), servlets and JSP work also.

 But I thought that, for example, a servlet called through the standard
 Apache URL should automatically be handed over to Tomcat, which doesn't
 seem to be the case.
 How can I find out if the servlet I see in my browser was handled by
 Tomcat or Apache?

 Thank you to anybody helping me on these configuration issues!

 Anne-Marie
 --
 =
 Anne-Marie Ternes

 Informaticien diplm

 Centre Informatique de l'Etat
 B.P. 
 L-1011 Luxembourg

 Tl: 49 925 642
 E-Mail: [EMAIL PROTECTED]
 =

--
=
Anne-Marie Ternes

Informaticien diplm

Centre Informatique de l'Etat
B.P. 
L-1011 Luxembourg

Tl: 49 925 642
E-Mail: [EMAIL PROTECTED]
=




Jakarta at Win 2000

2001-04-11 Thread Daniel de Almeida Alvares

Hi all,
The Tomcat is runnig well here at my Win2000 !!!
I want to thank everybody that helped me !!

Does anybody know if there is a way to set if  " work"
directory is gonna be or not deleted when I start/stop the tomcat server  ?

Regards,

[]
Daniel

___
Daniel de Almeida Alvares
Santos - SP - Brasil
[EMAIL PROTECTED]




'jsp:include' tag

2001-04-11 Thread Leon Palermo

Hello all,

Does anyone have problems with the 'jsp:include' tag with tomcat.  I always
get the following error when I try to use it:

Internal Servlet Error:

org.apache.jasper.compiler.CompileException: Welcome.jsp(15,0) Invalid
jsp:include tag
 at org.apache.jasper.compiler.IncludeGenerator.(IncludeGenerator.java:95)
 at
org.apache.jasper.compiler.JspParseEventListener.handleInclude(JspParseEvent
Listener.java:877)
 at
org.apache.jasper.compiler.DelegatingListener.handleInclude(DelegatingListen
er.java:185)
 at org.apache.jasper.compiler.Parser$Include.accept(Parser.java:299)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1070)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1035)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1031)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
 at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:453)
 at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
 at org.apache.tomcat.core.Handler.service(Handler.java:263)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:78
6)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

Here is the code in the jsp:

jsp:include page="/includes/afile.jsp" /

Anyone know what the dealis?

Thanks in advance!

Leon Palermo




RE: Servlet registration

2001-04-11 Thread Chris Andreou

I didn't make a difference.  I am frustrated :( 

my context path definition is 

context path=""
docBase="e:/wwwroot/dgms_dev"
reloadable="true" / 

my Host name is trw02
I am hitting the server by 
http://trw02/servlet/SimpleExample  does not work
http://trw02/servlet/examples.SimpleExample  works
http://trw02/servlet/simple does not work

Chris




-Original Message-
From: Julien, Timothy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 10:48 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


The whitespace in your servlet-mapping in your web.xml could be leading to
the failure you see.
try:
servlet-mapping
  servlet-nameSimpleServlet/servlet-name
  url-pattern/simple/url-pattern
/servlet-mapping

what URL are you attempting to hit from your browser?

Tim Julien
HP middleware

-Original Message-
From: Chris Andreou [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


I have the same problem. 

I have put my servlets under the WEB-INF/classes: 

For example:
directory structure 
WEB-INF/classes/examples.SimpleServlet

web.xml file

  servlet
 servlet-nameSimpleServlet/servlet-name
 servlet-classexamples.SimpleServlet/servlet-class 
  /servlet
  
  
   servlet-mapping
  servlet-name
  SimpleServlet
  /servlet-name
  url-pattern
  /simple
  /url-pattern
  /servlet-mapping


httpd.conf:
JkMount /*.jsp ajp12
JkMount /servelt/* ajp12 


I am able to see the servlet using a complete path
http://trw02/servlet/examples.SimpleExample 

but not using the names in web.xml 

Based on the documentation and examples I am doing right. Please any
suggestions are welcome

Thanks in advance

Chris


-Original Message-
From: Ron Pitts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 9:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Servlet registration



Zsolt,

Your missing some stuff 

webapps/myapp/WEB-INF/classes - store servlets/jsp in here 
 
put your web.xml in 
webapps/mysql/WEB-INF/


-Original Message-
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app

display-name Web Application/display-name

servlet
  servlet-nameServlet1/servlet-name
  servlet-classServlet1/servlet-class
/servlet

servlet-mapping
  servlet-nameServlet1/servlet-name
  url-pattern/Servlet1/url-pattern
/servlet-mapping

/web-app

And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]



RE: 'jsp:include' tag

2001-04-11 Thread Chris Andreou

check the ralative paths.


-Original Message-
From: Leon Palermo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:08 AM
To: [EMAIL PROTECTED]
Subject: 'jsp:include' tag


Hello all,

Does anyone have problems with the 'jsp:include' tag with tomcat.  I always
get the following error when I try to use it:

Internal Servlet Error:

org.apache.jasper.compiler.CompileException: Welcome.jsp(15,0) Invalid
jsp:include tag
 at org.apache.jasper.compiler.IncludeGenerator.(IncludeGenerator.java:95)
 at
org.apache.jasper.compiler.JspParseEventListener.handleInclude(JspParseEvent
Listener.java:877)
 at
org.apache.jasper.compiler.DelegatingListener.handleInclude(DelegatingListen
er.java:185)
 at org.apache.jasper.compiler.Parser$Include.accept(Parser.java:299)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1070)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1035)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1031)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
 at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:453)
 at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
 at org.apache.tomcat.core.Handler.service(Handler.java:263)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:78
6)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

Here is the code in the jsp:

jsp:include page="/includes/afile.jsp" /

Anyone know what the dealis?

Thanks in advance!

Leon Palermo



Re: 'jsp:include' tag

2001-04-11 Thread Martin Mauri

Yes,

Once I had that problem and I worked it out by adding the flush="true"
attribute.

I mean:

jsp:include page="/includes/afile.jsp" flush ="true"/

I think it was a reported bug.

HTH.

Martin



 Hello all,

 Does anyone have problems with the 'jsp:include' tag with tomcat.  I
always
 get the following error when I try to use it:

 Internal Servlet Error:

 org.apache.jasper.compiler.CompileException: Welcome.jsp(15,0) Invalid
 jsp:include tag
  at org.apache.jasper.compiler.IncludeGenerator.(IncludeGenerator.java:95)
  at

org.apache.jasper.compiler.JspParseEventListener.handleInclude(JspParseEvent
 Listener.java:877)
  at

org.apache.jasper.compiler.DelegatingListener.handleInclude(DelegatingListen
 er.java:185)
  at org.apache.jasper.compiler.Parser$Include.accept(Parser.java:299)
  at org.apache.jasper.compiler.Parser.parse(Parser.java:1070)
  at org.apache.jasper.compiler.Parser.parse(Parser.java:1035)
  at org.apache.jasper.compiler.Parser.parse(Parser.java:1031)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:182)
  at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:453)
  at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
 rvlet.java:152)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:164)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
  at org.apache.tomcat.core.Handler.service(Handler.java:263)
  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
  at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:78
 6)
  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
  at

org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
 (Ajp12ConnectionHandler.java:166)
  at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
  at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
  at java.lang.Thread.run(Thread.java:484)

 Here is the code in the jsp:

 jsp:include page="/includes/afile.jsp" /

 Anyone know what the dealis?

 Thanks in advance!

 Leon Palermo




RE: Servlet registration

2001-04-11 Thread Gaël Oberson

try to modify the context definition:

context path="/" docbase...



-Message d'origine-
De : Chris Andreou [mailto:[EMAIL PROTECTED]]
Envoy : mercredi, 11. avril 2001 18:05
 : '[EMAIL PROTECTED]'
Objet : RE: Servlet registration


I didn't make a difference.  I am frustrated


my context path definition is

context path=""
docBase="e:/wwwroot/dgms_dev"
reloadable="true" /

my Host name is trw02
I am hitting the server by
http://trw02/servlet/SimpleExample  does not work
http://trw02/servlet/examples.SimpleExample  works
http://trw02/servlet/simple does not work

Chris




-Original Message-
From: Julien, Timothy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 10:48 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


The whitespace in your servlet-mapping in your web.xml could be leading to
the failure you see.
try:
servlet-mapping
  servlet-nameSimpleServlet/servlet-name
  url-pattern/simple/url-pattern
/servlet-mapping

what URL are you attempting to hit from your browser?

Tim Julien
HP middleware

-Original Message-
From: Chris Andreou [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


I have the same problem.

I have put my servlets under the WEB-INF/classes:

For example:
directory structure
WEB-INF/classes/examples.SimpleServlet

web.xml file

  servlet
 servlet-nameSimpleServlet/servlet-name
 servlet-classexamples.SimpleServlet/servlet-class
  /servlet


   servlet-mapping
  servlet-name
  SimpleServlet
  /servlet-name
  url-pattern
  /simple
  /url-pattern
  /servlet-mapping


httpd.conf:
JkMount /*.jsp ajp12
JkMount /servelt/* ajp12


I am able to see the servlet using a complete path
http://trw02/servlet/examples.SimpleExample

but not using the names in web.xml

Based on the documentation and examples I am doing right. Please any
suggestions are welcome

Thanks in advance

Chris


-Original Message-
From: Ron Pitts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 9:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Servlet registration



Zsolt,

Your missing some stuff

webapps/myapp/WEB-INF/classes - store servlets/jsp in here

put your web.xml in
webapps/mysql/WEB-INF/


-Original Message-
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app

display-name Web Application/display-name

servlet
  servlet-nameServlet1/servlet-name
  servlet-classServlet1/servlet-class
/servlet

servlet-mapping
  servlet-nameServlet1/servlet-name
  url-pattern/Servlet1/url-pattern
/servlet-mapping

/web-app

And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]




Re: Servlet registration

2001-04-11 Thread Jeff Kilbride

Maybe it's a typo, but the first problem I see is that your mappings don't
match the URL's you're trying to pull up. You have:

   servlet
  servlet-nameSimpleServlet/servlet-name
  servlet-classexamples.SimpleServlet/servlet-class
   /servlet

and

 servlet-mapping
   servlet-nameSimpleServlet/servlet-name
   url-pattern/simple/url-pattern
 /servlet-mapping

but you are trying to pull up "SimpleExample" in your URL. I don't see how
"/servlet/examples.SimpleExample" is pulling up if the class name is really
"examples.SimpleServlet". So, one of these is wrong, unless it's a typo.

Thanks,
--jeff

- Original Message -
From: "Chris Andreou" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 9:04 AM
Subject: RE: Servlet registration


 I didn't make a difference.  I am frustrated :(

 my context path definition is

 context path=""
 docBase="e:/wwwroot/dgms_dev"
 reloadable="true" /

 my Host name is trw02
 I am hitting the server by
 http://trw02/servlet/SimpleExample  does not work
 http://trw02/servlet/examples.SimpleExample  works
 http://trw02/servlet/simple does not work

 Chris




 -Original Message-
 From: Julien, Timothy [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 10:48 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Servlet registration


 The whitespace in your servlet-mapping in your web.xml could be leading
to
 the failure you see.
 try:
 servlet-mapping
   servlet-nameSimpleServlet/servlet-name
   url-pattern/simple/url-pattern
 /servlet-mapping

 what URL are you attempting to hit from your browser?

 Tim Julien
 HP middleware

 -Original Message-
 From: Chris Andreou [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 11:37 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Servlet registration


 I have the same problem.

 I have put my servlets under the WEB-INF/classes:

 For example:
 directory structure
 WEB-INF/classes/examples.SimpleServlet

 web.xml file

   servlet
  servlet-nameSimpleServlet/servlet-name
  servlet-classexamples.SimpleServlet/servlet-class
   /servlet


servlet-mapping
   servlet-name
   SimpleServlet
   /servlet-name
   url-pattern
   /simple
   /url-pattern
   /servlet-mapping


 httpd.conf:
 JkMount /*.jsp ajp12
 JkMount /servelt/* ajp12


 I am able to see the servlet using a complete path
 http://trw02/servlet/examples.SimpleExample

 but not using the names in web.xml

 Based on the documentation and examples I am doing right. Please any
 suggestions are welcome

 Thanks in advance

 Chris


 -Original Message-
 From: Ron Pitts [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 9:57 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Servlet registration



 Zsolt,

 Your missing some stuff

 webapps/myapp/WEB-INF/classes - store servlets/jsp in here

 put your web.xml in
 webapps/mysql/WEB-INF/


 -Original Message-
 From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
 Sent: 11 April 2001 15:55
 To: [EMAIL PROTECTED]
 Subject: Servlet registration


 Hi !

 How could I register my own servlets into TomCat ??

 I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
 After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp
directory.
 The web.xml file contains this:

 !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

 web-app

 display-name Web Application/display-name

 servlet
   servlet-nameServlet1/servlet-name
   servlet-classServlet1/servlet-class
 /servlet

 servlet-mapping
   servlet-nameServlet1/servlet-name
   url-pattern/Servlet1/url-pattern
 /servlet-mapping

 /web-app

 And I restarted the tomcat, but it doesn`t work ! What`s wrong?
 Please help for me: [EMAIL PROTECTED]





RE: [ANS] RE: virtual hosts on different ports

2001-04-11 Thread William Wishon

If you reread my first response I say that it isn't possible to restrict one
context to one port and another context to another.  Having said that if you
are ok with both of your contexts being accessible on both ports all you
need to do is declare two Connectors.


Connector className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/
Parameter name="port" value="8080"/
/Connector

Connector className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/
Parameter name="port" value="8082"/
/Connector


Having done this in your server.xml you will now be able to access tomcat on
both ports 8080 and 8082.  Adding some contexts now:

 Context path="/paxAIP"
  docBase="/tecnet/WWW/NetScape/Alpha/paxAIP"
  crossContext="true"
  reloadable="true"
  trusted="false"
  debug="0"/

 Context path="/paxTest"
  docBase="/tecnet/WWW/NetScape/Alpha/paxTest"
  crossContext="true"
  reloadable="true"
  trusted="false"
  debug="0"/

After this you should have access to http://server:8080/paxAIP
http://server:8080/paxTest http://server:8082/paxAIP
http://server:8082/paxTest.

There are no Host directives necessary.  But if you did want to first wrap
the contexts in Host directives you could do:

Host Name="server_one"
...paxAIP context
/Host

Host Name="server_two"
...paxTest context
/Host

Now you can access http://server_one:8080/paxAIP
http://server_one:8082/paxAIP http://server_two:8080/paxTest
http://server_two:8082/paxTest but you will not have access to
http://server_one:8080/paxTest http://server_one:8082/paxTest
http://server_two:8080/paxAIP http://server_two:8082/paxTest.


Hope that helps.

-Bill

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 11, 2001 7:00 AM
 To: [EMAIL PROTECTED]
 Subject: [ANS] RE: virtual hosts on different ports


 Bill,

   What you stated is what I'm trying to do. I have a single
 server, in which I need to utiltize ports 8601 and 443.  But, I
 want each port to examine a certain 'context'.  Right now I'm
 manily concerned about 8601 for our developemt team.
 Here is my entry from the server.xml and httpsd.conf file.  But,
 when I try to connect to the pages I receive a 404 error and in
 the jasper log file I notice TOMCAT is trying to excute the code
 from $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes directory.  Can
 you give me a clue on what I'm doing wrong.

  Thanks a bunch.

 server.xml

 Host Name="140.229.33.200:8601"
 Context path="/paxAIP"
  docBase="/tecnet/WWW/NetScape/Alpha/paxAIP"
  crossContext="true"
  reloadable="true"
  trusted="false"
  debug="0"/
 /Host

 httpsd

 #  General setup for the virtual host
 DocumentRoot "/tecnet/WWW/NetScape/Alpha"
 ServerName tecnet1.jcte.jcs.mil
 ServerAdmin [EMAIL PROTECTED]
 ErrorLog logs/tecnet8601_error_log
 TransferLog logs/tecnet8601_access_log
 SetEnvIf Request_URI wwwAuthenticatedEntrance.cgi$ login
 CustomLog logs/agent_log loginagent env=login
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13

 Dave


  From
 [EMAIL PROTECTED]
 .org  Tue Apr 10 14:50:35 2001
  Received: from otto.nawcad.navy.mil
 (otto-internal.nawcad.navy.mil [192.58.199.212])
  by tecnet1.jcte.jcs.mil (8.9.3/8.9.3) with ESMTP id OAA19625
  for [EMAIL PROTECTED]; Tue, 10 Apr 2001 14:50:34
 -0400 (EDT)
  Received: by otto.nawcad.navy.mil; id OAA20256; Tue, 10 Apr
 2001 14:50:34 -0400 (EDT)
  Received: from unknown(64.208.42.41) by otto.nawcad.navy.mil
 via smap (V4.2)
  id xma019868; Tue, 10 Apr 01 14:50:27 -0400
  Received: (qmail 45293 invoked by uid 500); 10 Apr 2001 18:49:36 -
  Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
  Precedence: bulk
  Reply-To: [EMAIL PROTECTED]
  list-help: mailto:[EMAIL PROTECTED]
  list-unsubscribe: mailto:[EMAIL PROTECTED]
  list-post: mailto:[EMAIL PROTECTED]
  Delivered-To: mailing list [EMAIL PROTECTED]
  Received: (qmail 45276 invoked from network); 10 Apr 2001 18:49:36 -
  Received: from unknown (HELO jnm-main.pictureiq.com) (63.127.69.253)
by h31.sny.collab.net with SMTP; 10 Apr 2001 18:49:36 -
  Received: from ecto1 (jnm0-215 [192.168.0.215]) by
 jnm-main.pictureiq.com with SMTP (Microsoft Exchange Internet
 Mail Service Version 5.5.2653.13)
  id HMS1GX6X; Tue, 10 Apr 2001 11:54:00 -0700
  From: "William Wishon" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: RE: virtual hosts on different ports
  Date: Tue, 10 Apr 2001 11:48:33 -0700
  Keywords: MailingLists
  Message-ID: [EMAIL PROTECTED]
  MIME-Version: 1.0
  Content-Type: text/plain;
  charset="iso-8859-1"
  

Access to web.xml

2001-04-11 Thread amit

Hi,

I'm running a site based on JSP , using tomcat 3.2.1 and Apache 1.3.12 on
Windows.
With this reference


(1)
During run time , can  a JSP page from *same* web application context
can read web.xml file of my web application (which will be located at
TOMCAT_HOME\webapps\myapp\web-inf\web.xml) ?

(2)
During run time , can  a Java application (running on the same machine)
class can read web.xml file of my web application (which will be located at
TOMCAT_HOME\webapps\myapp\web-inf\web.xml) ?

TIA
Regards,
-Amit.




Re: Apache, SSL and TOMCAT

2001-04-11 Thread Mark Johnson

I found very useful doc for the installation (if you plan to use
apache+mod_ssl+OpenSSL) at http://modssl.org. Having compiled and
configured apache+mod_ssl+OpenSSL, I recall it was fairly
straightforward to then get Tomcat working with it, using Tomcat's
configuration doc.




Strange problem with images with Tomcat 4 b1

2001-04-11 Thread dhay



Hi everyone.

I have just moved to Tomcat 4, beta1, from 3.2.1 to obtain reloading of my class
files.

I am running into strange activity with my images, however.  When I first view a
page, I do not see any.  BUT, if I click on a link and then hit the back button,
the images are there!  Have I missed something setting up 4?

Images are in my Webapps\myapp\images directory, and I access them in my jsp
pages using \images\myimage.gif

Many thanks,

Dave






Changing Contact info....

2001-04-11 Thread Blake Binkley

This E-mail was sent out to all of my contacts that used the old e-mail
addess

List Moderators please change from my old [EMAIL PROTECTED] e-mail address

Thank you...

Blake Binkley
667 Woodward St.
San Marcos, CA 92069
Home: (760) 744-9086
Cell: (760) 705-1066
E-Mail: [EMAIL PROTECTED]
CAM#: 200010001
ICQ: 752498
AIM: blakebinkley1
MSIM: blakebinkley
Yahoo: blakebinkley


BEGIN:VCARD
VERSION:2.1
N:Binkley;Blake
FN:Blake Binkley
TITLE:Contractor
NOTE;ENCODING=QUOTED-PRINTABLE:ICQ:	752498 - Home =0D=0A	729805 - Work=0D=0AYahoo:	blakebinkley=0D=0AAOLIM:=
 blakebinkley1=0D=0AMSIM:  blakebinkley
TEL;HOME;VOICE:(760) 510-2635
TEL;CELL;VOICE:(760) 505-6591
ADR;WORK:;;P.O. Box 460232;Escondido;CA;92046-0232;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:P.O. Box 460232=0D=0AEscondido, CA 92046-0232=0D=0AUnited States of America
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010411T172219Z
END:VCARD



Re: Changing Contact info....

2001-04-11 Thread Tim O'Neil

So does this mean that crank calls, emails, and
even possibly buying a new fishing boat with your
life is an option? I can't wait to start my new
life as Blake...

At 10:37 AM 4/11/2001 -0700, you wrote:
This E-mail was sent out to all of my contacts that used the old e-mail
addess

List Moderators please change from my old [EMAIL PROTECTED] e-mail address

Thank you...

Blake Binkley
667 Woodward St.
San Marcos, CA 92069
Home: (760) 744-9086
Cell: (760) 705-1066
E-Mail: [EMAIL PROTECTED]
CAM#: 200010001
ICQ: 752498
AIM: blakebinkley1
MSIM: blakebinkley
Yahoo: blakebinkley




RE: IIS redirect

2001-04-11 Thread k won

thank you very much.  This solved my problem as well!



From: GASNIER Lise [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: IIS redirect
Date: Wed, 11 Apr 2001 11:15:59 +0200

Hello,
Did you insert the full path to isapi_redirect in the lists of dlls in the
registry:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters?
If you did so, that's the origin of your problem: you don't have to insert
the full path but the path up until the directory containing
isapi_redirect.dll
Hope it will help
Bye
Lise

  -Message d'origine-
  De: Faisal Mehtab Hussain [SMTP:[EMAIL PROTECTED]]
  Date:   mercredi 11 avril 2001 11:08
  À:  [EMAIL PROTECTED]
  Objet:  IIS redirect
 
  Hello,
 
  I have installed tomcat-3.2.1 (release) in my NT machine, I have defined
  all
  the possible setting that the document defined for Tomcat IIS how to?,
  Tomcat running fine with its given servlets and jsp examples as
  http://localhost:8080/examples/jsp/index.html, but when I try to access 
it
  through IIS it doesn't work. The following error occurs in IIS log file.
 
  127.0.0.1, -, 4/11/01, 11:58:31, W3SVC1, DEV-01, 127.0.0.1, 10, 342, 0,
  500,
  126, GET, /jakarta/isapi_redirect.dll, -,
  127.0.0.1, -, 4/11/01, 11:58:33, W3SVC1, DEV-01, 127.0.0.1, 0, 342, 0,
  500,
  126, GET, /jakarta/isapi_redirect.dll, -,
  127.0.0.1, -, 4/11/01, 11:58:33, W3SVC1, DEV-01, 127.0.0.1, 10, 342, 0,
  500,
  126, GET, /jakarta/isapi_redirect.dll, -,
 
  Please, help me to solve this problem.
 
  Regards,
  Faisal Mehtab Hussain
  Internet Programmer
  OgerTel Internet Services
  Tel: (966-1) 465-0300 Ext.(138)
  Fax: (966-1) 464-5200
  Email: [EMAIL PROTECTED]

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




workers not working

2001-04-11 Thread Faine, Mark


I have sucessfully installed tomcat, cocoon, and mod_jk, except that when I
try to start apache it will not start.

The apache logs show:

[Wed Apr 11 12:08:41 2001] [emerg] (2)No such file or directory: Error while
opening the workers

Looks like it could be a typeO or something but I don't know where to look,
any clues?

-Mark



classpath question

2001-04-11 Thread Chris Bailey

[System: Linux, Tomcat 3.2.1, Apache 1.3.19, mod_jk]

I have a web app that uses several jar files.  I have these in a lib
directory that has a symlink in my WEB-INF dir.  However, they don't
seem to get picked up.  It only seems to work if I put them in
TOMCAT_HOME/lib.  Do I need to do some other configuration?

-- 
Chris Bailey[EMAIL PROTECTED]
Wego Systemshttp://www.wego.com




RE: /examples/servlet

2001-04-11 Thread kamesh jayachandran

Hai,
Finally I fixed this problem,by commenting out the Alias directive for
each Context in the auto generated tomcat-apache.conf file and adding one
more line like "ApJServMount /examples /root" above the already existing
ApJServMount line for each Context("ApJServMount /example/servlet
/examples ").
Everything is working fine.
But what is /root mean?
Thanks all for ur kind replies
kamesh jayachandran
 On Wed, 11 Apr 2001
[EMAIL PROTECTED] wrote:

 
 
 Kamesh,
 I wouldn't know how to get mod_jk.so for linux. If you're using modjserv then
 you're in luck because the user guidelines are for mod_jserv only. Have you been
 to:
 http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.html
 
 Scroll down a third of the way to the part that says:
 "Setting Tomcat to Cooperate with the Apache Web Server"
 
 Good luck,
 suha.
 
 
 
 
 
 Kamesh J [EMAIL PROTECTED] on 04/11/2001 12:17:32 AM
 
 To:   Suha Yacoub/IL/ONE@BANCONE
 cc:
 Subject:  RE: /examples/servlet
 
 
 
 Hai,
 Thanks for responding.I am using mod_jserv.As I am not successful with
 mod_jk.so.I am getting garbled and invalid DSO module error repeatedly.So
 using only mod_jserv.so
 If possible send me the mod_jk.so for linux on intel.
 
 Thanks again
 kamesh jayachandran
 
  --
  From:   [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]]
  Sent:   Wednesday, April 11, 2001 1:07 AM
  To: [EMAIL PROTECTED]
  Subject: Re: /examples/servlet
 
 
 
  Hello Kamesh,
  Did you specify your java home directory and your jakarta home directory
  in the
  workers.properties file?
  I'll email you if I think of something else, or feel free to email me.
  take care,
  suha.
 
 
 
 
 
  kamesh jayachandran [EMAIL PROTECTED] on 04/10/2001 11:45:26 PM
 
  Please respond to [EMAIL PROTECTED]
 
  To:   Suha Yacoub/IL/ONE@BANCONE
  cc:   [EMAIL PROTECTED]
  Subject:  Re: /examples/servlet
 
 
 
  Hai,
  Even after commenting out the HTTP port part in server.xml I am getting
  the 404 file not found error.can u send ur server.xml and
  tomcat-apache.conf files.
  Thanks again
  kamesh jayacahnadran
  On Tue, 10 Apr 2001 [EMAIL PROTECTED] wrote:
 
 
  
  
   Kamesh,
   We had the same problem. In the server.xml file comment out the HTTP
  port part
   that tells tomcat to use port 8080. Make sure that ajp12 is talking to
  apache
   via port 8007. This should be in the server.xml file also.
   Hope this helps.
  
  
  
  
  
   Kamesh J [EMAIL PROTECTED] on 04/10/2001 02:15:17 AM
  
   Please respond to [EMAIL PROTECTED]
  
   To:   "'[EMAIL PROTECTED]'"
  [EMAIL PROTECTED]
   cc:(bcc: Suha Yacoub/IL/ONE)
   Subject:  /examples/servlet
  
  
  
   when the request is coming for URL
   http://localhost:8080/examples/servlet/HelloWorldExample,Tomcat responds
   without any problem.
   But when the request is coming for URL
   http://localhost/examples/servlet/HelloWorldExample apache is taking
  charge
   and gives file not found error.
   I have ApJservMount /examples/servlet /examples in tomcat-apache.conf
  file
   and including it in httpd.conf file
  
   I have RHL6.2,Tomcat3.2.1,apache 1.3.12
   waiting eagerly for ur reply
   kamesh jayachandran
  
  
  
  
  
  
  
  
 
  --
  "Think of it this way: threads are like salt, not like
   pasta. You like salt, I like salt, we all like salt. But we
   eat more pasta."
   - Larry McVoy
 
 
 
 
 
 
 
 
 
 
 

-- 
"I want you guys to look at your computer screen, imagining the worst
 monster you can (the cacodeamon from Quake will do, just make him hairier
 and bigger and more MEAN), and think of me. Think of me like I am when I
 see a patch which isn't a pure bug-fix.

 If you're whimpering just _thinking_ about sending me a new feature,
 you're in the right mindframe. Keep that mindframe."
- Linus Torvalds




Re: classpath question

2001-04-11 Thread Kenneth Westelinck

No.

From: Chris Bailey [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: classpath question
Date: 11 Apr 2001 11:00:00 -0700

[System: Linux, Tomcat 3.2.1, Apache 1.3.19, mod_jk]

I have a web app that uses several jar files.  I have these in a lib
directory that has a symlink in my WEB-INF dir.  However, they don't
seem to get picked up.  It only seems to work if I put them in
TOMCAT_HOME/lib.  Do I need to do some other configuration?

--
Chris Bailey[EMAIL PROTECTED]
Wego Systemshttp://www.wego.com


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




RE: /examples/servlet

2001-04-11 Thread Tim O'Neil

At 11:33 PM 4/11/2001 -0400, you wrote:
  I wouldn't know how to get mod_jk.so for linux. If you're using 
 modjserv then
  you're in luck because the user guidelines are for mod_jserv only.

Actually, there are complete instructions for using
mod_jk on the sun site, and you can get the so right
'ere:
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i386/





Servlet deployment

2001-04-11 Thread Harkishin Nachnani

Hi all:
For a customer demo, I had written a small servlet and deployed it on Java
Web Server 2.0.
But we have an evaluation version of Java Web Server so we have to
re-install it every 30/45 days.
So I just thought of switching over to Tomcat.
Basically, I just have a couple of html and gif files, 1 webcallback.class
(servlet) and Libm2w32.dll (since servlet uses native methods)

I have successfully installed Tomcat 3.2.1 and the sample jsps work fine.
Can anyone tell me where I should place all the files (.html, .gif, .class,
.dll) of my application ??? Do I need to change the server.xml and add a new
context path ???
Can someone kindly tell me the easiest and fastest way to get the servlet
working since its just a demo machine ???

Thanks
Harry

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 2:04 PM
To: [EMAIL PROTECTED]
Subject: RE: /examples/servlet


At 11:33 PM 4/11/2001 -0400, you wrote:
  I wouldn't know how to get mod_jk.so for linux. If you're using 
 modjserv then
  you're in luck because the user guidelines are for mod_jserv only.

Actually, there are complete instructions for using
mod_jk on the sun site, and you can get the so right
'ere:
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i38
6/




tomcat HANDLER THREAD PROBLEM

2001-04-11 Thread Georges Boutros

hi,

i'm using tomcat with apache on RedHat 7.0

i'm using a WebPerformance software to test my webpage with multiple users
(100 users)

in the beginning it all works good but after about 15 minutes of stress test
i start getting this error with tomcat .
***
HANDLER THREAD PROBLEM: java.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.tomcat.service.connector.AJP12ResponseAdapter.sendStatus(Ajp12Con
nectionHandler.java:439)
at
org.apache.tomcat.service.http.HttpResponseAdapter.endHeaders(HttpResponseAd
apter.java(Compiled Code))
at
org.apache.tomcat.core.BufferedServletOutputStream.sendHeaders(BufferedServl
etOutputStream.java:127)
at
org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServl
etOutputStream.java(Compiled Code))
at
org.apache.tomcat.core.ResponseImpl.finish(ResponseImpl.java(Compiled Code))
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:158)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java(Com
piled Code))
***

Does anyone know what may have caused this error and is there anyway to fix
it ?

thanks
Georges




RE: Servlet deployment

2001-04-11 Thread Chris Andreou

http://java.sun.com/docs/books/tutorial/servlets/servletrunner/tomcat-start.
html


-Original Message-
From: Harkishin Nachnani [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 1:15 PM
To: [EMAIL PROTECTED]
Subject: Servlet deployment


Hi all:
For a customer demo, I had written a small servlet and deployed it on Java
Web Server 2.0.
But we have an evaluation version of Java Web Server so we have to
re-install it every 30/45 days.
So I just thought of switching over to Tomcat.
Basically, I just have a couple of html and gif files, 1 webcallback.class
(servlet) and Libm2w32.dll (since servlet uses native methods)

I have successfully installed Tomcat 3.2.1 and the sample jsps work fine.
Can anyone tell me where I should place all the files (.html, .gif, .class,
.dll) of my application ??? Do I need to change the server.xml and add a new
context path ???
Can someone kindly tell me the easiest and fastest way to get the servlet
working since its just a demo machine ???

Thanks
Harry

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 2:04 PM
To: [EMAIL PROTECTED]
Subject: RE: /examples/servlet


At 11:33 PM 4/11/2001 -0400, you wrote:
  I wouldn't know how to get mod_jk.so for linux. If you're using 
 modjserv then
  you're in luck because the user guidelines are for mod_jserv only.

Actually, there are complete instructions for using
mod_jk on the sun site, and you can get the so right
'ere:
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i38
6/



=== files missing ... ? ====

2001-04-11 Thread Pedro Henrique Ponchio

Hello,

Im trying to compile the source code of Tomcat, but I receive some
errors. What have I have to do to make it? I known that are some files
mising like moo.jar e dev.jar ... I already compile and install the
apache, mod_ssl, servletapi, ant, jaxp, etc, etc ... here the build.sh
file:

#! /bin/sh

# $Id: build.sh,v 1.11 2000/05/01 15:46:47 craigmcc Exp $

if [ -z "$JAVA_HOME" ]
then
JAVACMD=`which java`
if [ -z "$JAVACMD" ]
then
echo "Cannot find JAVA. Please set your PATH."
exit 1
fi
JAVA_BINDIR=`dirname $JAVACMD`
JAVA_HOME=$JAVA_BINDIR/..
fi

if [ "$ANT_OPTS" = "" ] ; then
  ANT_OPTS=""
fi

JAVACMD=$JAVA_HOME/bin/java $ANT_OPTS

cp=../jakarta-ant/lib/ant.jar:../jakarta-servletapi/lib/servlet.jar:../j
akarta-tools/moo.jar:../build/tomcat/class
es:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dev.jar

$JAVACMD -classpath $cp:$CLASSPATH org.apache.tools.ant.Main "$@"





 ---  and here the error message that I receive:






[javac] Compiling 5 source files to
/usr/local/tomcat_3.2.1/build/tomcat/classes
[javac]
/usr/local/tomcat_3.2.1/jakarta-tomcat-3.2.1-src/src/share/org/apache/ja
sper/compiler/JspCompiler.java:136: Method
getClassName(java.lang.String) not found in class
org.apache.jasper.compiler.ClassName.
[javac] realClassName = ClassName.getClassName(
getClassFileName() );
[javac]   ^
[javac]
/usr/local/tomcat_3.2.1/jakarta-tomcat-3.2.1-src/src/share/org/apache/ja
sper/compiler/JspCompiler.java:137: Exception
org.apache.jasper.JasperException is never thrown in the body of the
corresponding try statement.
[javac] } catch( JasperException ex) {
[javac]   ^
[javac]
/usr/local/tomcat_3.2.1/jakarta-tomcat-3.2.1-src/src/share/org/apache/ja
sper/compiler/JspParseEventListener.java:867: Wrong number of arguments
in constructor.
[javac] = new GeneratorWrapper(new
ForwardGenerator(start, attrs, param),
[javac]^
[javac]
/usr/local/tomcat_3.2.1/jakarta-tomcat-3.2.1-src/src/share/org/apache/ja
sper/compiler/JspParseEventListener.java:877: Wrong number of arguments
in constructor.
[javac] = new GeneratorWrapper(new
IncludeGenerator(start, attrs, param),
[javac]^
[javac]
/usr/local/tomcat_3.2.1/jakarta-tomcat-3.2.1-src/src/share/org/apache/ja
sper/JspC.java:367: Method compile() not found in class
org.apache.jasper.compiler.CommandLineCompiler.
[javac] clc.compile();
[javac]^
[javac]
/usr/local/tomcat_3.2.1/jakarta-tomcat-3.2.1-src/src/share/org/apache/ja
sper/servlet/JspServlet.java:462: Method compile() not found in class
org.apache.jasper.compiler.Compiler.
[javac] outDated = compiler.compile();
[javac]^
[javac]
/usr/local/tomcat_3.2.1/jakarta-tomcat-3.2.1-src/src/share/org/apache/ja
sper/servlet/JspServlet.java:467: Method compile() not found in class
org.apache.jasper.compiler.Compiler.
[javac] outDated = compiler.compile();
[javac]^
[javac]
/usr/local/tomcat_3.2.1/jakarta-tomcat-3.2.1-src/src/share/org/apache/ja
sper/servlet/JspServlet.java:471: Exception
java.io.FileNotFoundException is never thrown in the body of the
corresponding try statement.
[javac] } catch (FileNotFoundException ex) {
[javac]   ^
[javac]
/usr/local/tomcat_3.2.1/jakarta-tomcat-3.2.1-src/src/share/org/apache/ja
sper/servlet/JspServlet.java:473: Exception
org.apache.jasper.JasperException is never thrown in the body of the
corresponding try statement.
[javac] } catch (JasperException ex) {
[javac]   ^
[javac]
/usr/local/tomcat_3.2.1/jakarta-tomcat-3.2.1-src/src/share/org/apache/to
mcat/request/JspInterceptor.java:205: Method compile() not found in
class org.apache.jasper.compiler.Compiler.
[javac] compiler.compile();
[javac] ^
[javac] Note:
/usr/local/tomcat_3.2.1/jakarta-tomcat-3.2.1-src/src/share/org/apache/to
mcat/request/JspInterceptor.java uses or overrides a deprecated API.
Recompile with "-deprecation" for details.
[javac] 10 errors, 1 warning

BUILD FAILED

/usr/local/tomcat_3.2.1/jakarta-tomcat-3.2.1-src/build.xml:94: Compile
failed, messages should have been provided.

Total time: 4 seconds



CAN ANYONE HELP-ME??

Thanks a lot 4 all!!

Pedro



apology for Changing Contact Info...

2001-04-11 Thread Blake Binkley

I apologize I sent an e-mail out to my contact list which aparently also
contained this e-mail address and everyone received it.. sorry for any
confusion this may have caused...


Blake Binkley
667 Woodward St.
San Marcos, CA 92069
Home: (760) 744-9086
Cell: (760) 705-1066
E-Mail: [EMAIL PROTECTED]
CAM#: 200010001
ICQ: 752498
AIM: blakebinkley1
MSIM: blakebinkley
Yahoo: blakebinkley


BEGIN:VCARD
VERSION:2.1
N:Binkley;Blake
FN:Blake Binkley
TITLE:Contractor
NOTE;ENCODING=QUOTED-PRINTABLE:ICQ:	752498 - Home =0D=0A	729805 - Work=0D=0AYahoo:	blakebinkley=0D=0AAOLIM:=
 blakebinkley1=0D=0AMSIM:  blakebinkley
TEL;HOME;VOICE:(760) 510-2635
TEL;CELL;VOICE:(760) 505-6591
ADR;WORK:;;P.O. Box 460232;Escondido;CA;92046-0232;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:P.O. Box 460232=0D=0AEscondido, CA 92046-0232=0D=0AUnited States of America
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010411T172219Z
END:VCARD



Using JNDI with Tomcat 3.2

2001-04-11 Thread Manish

Hi All,

What are the necessary steps needed to use JNDI with abovesaid Tomcat.

Thanks and Regards

-- 
Manish Poddar




RE: Fed up to the back teeth with tomcat !!!

2001-04-11 Thread Faine, Mark

I understand your frustration, the lack of verbose/clear error messages in
the logs is a big problem I am having too.

-Mark


-Original Message-
From: Andy C [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 2:12 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Fed up to the back teeth with tomcat !!!


I am fed up to the back teeth with Tomcat under Apache.  I'm trying to run
a 24/7 web page servinbg around 20,000 .jsp pages a day and I'v ehad
to reset the damn server 3 times today already.

It keeps falling over
with absolutly no error  *** log messages at all.  I am at my wits end,
not
to mention my poor users who have had to put up with this service for the
past month.  I am totaly lost now as to where to look for solutions

So can someone please recomend a good webserver that will run .jsp and
servlets pages and integrates well with a SQL server ?  I used to
run Java Webserver 2.0 would going back to that help ?

Andy C
Editor R2 Project
http://www.r2-dvd.org
(lets hopr you don't see a 500 internal error message.)



  1   2   >