RE: Error 200?

2002-02-07 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On 
 Behalf Of Gary Lawrence Murphy
 Sent: Wednesday, February 06, 2002 5:48 PM
 To: Tomcat Users
 Subject: Error 200?
 
 
 
 I have a client who wrote a bunch of JSP pages that all return a
 tomcat Error 200 in the middle of the headers; because the error
 message is wrapped in blank lines, the message terminates the HTTP
 headers causing itself and any subsequent headers to be printed on
 the html page.
 
 I search the archives and Google for this error and while I found
 no information about a potential cause, I did see many JSP pages
 which inadvertently got themselves indexed with this message as
 their very first line ;)
 
 What is Error 200?
 

Headers cant contain blank llines, and I have no idea what your client
wanted with that Error 200. Tomcat uses HTTP status codes and
200 is OK (no error)

 -- 
 Gary Lawrence Murphy [EMAIL PROTECTED] TeleDynamics Communications Inc
 Business Innovations Through Open Source Systems: http://www.teledyn.com
 Computers are useless.  They can only give you answers.(Pablo Picasso)
 
 

Anton.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Verisign CSR generation for Tomcat

2002-02-07 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: Garske, Tom [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 06, 2002 9:13 PM
 To: [EMAIL PROTECTED]
 Subject: Verisign CSR generation for Tomcat
 
 
 
 I've been trying to locate any documentation on how generate an 
 SSL certificate(CSR)that can be submitted to Verisign via tomcat, 
 however I've been unsuccessful in doing so.  The link below, only 
 shows how to create a keystore and this obviously cannot be 
 submitted to a CA. If someone could forward any links or examples 
 on how to do this, or if it's even possible, it would be much appreciated.
 http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-ssl-howto.html
 
 Thank you
 

Looks like you need:

keytool -certreq -alias tomcat -file request.txt

Request certificate with content of request.txt from VeriSign


keytool -import -alias verisign -file CACert_from_Verisign

keytool -import -trustcacerts -alias tomcat -file cert_from_request


BTW, it looks like TC HttpConnector doesn't work with certificate chains,
or maybe I'm doing something wrong. I'm still investigating.

 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




how to prevent hitting back button and re-executing code?

2002-02-07 Thread C Cayetano
All,

Problem:
I've got a name.jsp page which has a form to get lastname, firstname,
address, etc.
On submit the form is sent to a servlet for adding into the database
(primary key field is an incremental record ID)
Once processed the servlet redirects to a confirmation.jsp page
Now if the the user hits the back button, which pops a 'retry' dialog box,
and the user hits retry button, the whole add process is executed again and
the same lastname, firstname, address, etc. is entered into the database,
basically creating duplicate records.

Is there a way to prevent this?

Thanks


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Re: how to prevent hitting back button and re-executing code?

2002-02-07 Thread Richard P

Pass value either in a hidden form field or appended
to the URL like submitID=SOMERANDOMID.

Upon processing the form, first check to see if
SOMERANDOMID has already been saved to a
cookie/session variable.  If yes, error message This
form has already been submitted.  otherwise, save
SOMERANDOMID to the session or in a cookie.

I like to leave a submit_it_again_anyways link for
power users.

--- C Cayetano [EMAIL PROTECTED] wrote:
 All,
 
 Problem:
 I've got a name.jsp page which has a form to get
 lastname, firstname,
 address, etc.
 On submit the form is sent to a servlet for adding
 into the database
 (primary key field is an incremental record ID)
 Once processed the servlet redirects to a
 confirmation.jsp page
 Now if the the user hits the back button, which pops
 a 'retry' dialog box,
 and the user hits retry button, the whole add
 process is executed again and
 the same lastname, firstname, address, etc. is
 entered into the database,
 basically creating duplicate records.
 
 Is there a way to prevent this?
 
 Thanks
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: how to prevent hitting back button and re-executing code?

2002-02-07 Thread Ramanujam Muralidharan


hi,
  use request.getHeader(REFERER) which identifies the page which calls ur page. if 
the referer is confirmation page on nothing do not do anything . in addition u could 
also have a hidden variable called mode which identifiews what action u want to do . 

regards
murali 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: how to prevent hitting back button and re-executing code?

2002-02-07 Thread Ralph Einfeldt
The only ways I know is to do this:
- implement this on your own
  store some information in the page that enables you to
  decide whether the request has been resubmittet and act
  acordingly.
- use a framework that does this for you.
  (AFAIK struts does this)
- Remove the toolbar with the back button with javascript. (That way 
  will not work for all cases, as some browser have a back button
  in a context menu that can't be diabled with javascript, and more 
  important some users disable javascript)

 -Ursprungliche Nachricht-
 Von: C Cayetano [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 7. Februar 2002 09:58
 An: Tomcat Users List
 Betreff: how to prevent hitting back button and re-executing code?
 
 
 All,
 
 Problem:
 I've got a name.jsp page which has a form to get lastname, firstname,
 address, etc.
 On submit the form is sent to a servlet for adding into the database
 (primary key field is an incremental record ID)
 Once processed the servlet redirects to a confirmation.jsp page
 Now if the the user hits the back button, which pops a 
 'retry' dialog box,
 and the user hits retry button, the whole add process is 
 executed again and
 the same lastname, firstname, address, etc. is entered into 
 the database,
 basically creating duplicate records.
 
 Is there a way to prevent this?
 
 Thanks
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


RE: Init method of servlet called twice?

2002-02-07 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: Donie Kelly [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 06, 2002 9:42 PM
 To: 'Tomcat Users List'
 Subject: Init method of servlet called twice?
 
 
 Hi all
 
 Can anybody tell me why the init method can be called twice in a 
 servlet. I
 am loading the servlet on startup and init is first called there.
 
 The first request to the servlet then calls the same init method again?
 Please help. I cannot init twice.
 

This topic was discussed about a week ago, and Craig gave perfect and clear
answer (as always). Try mail archives.
As far as I remember init() can be called multiple times if:
1. TC4 and servlet implements SingleThreadModel
2. servlet is called by invoker (something like http://myhost/servlets/myServlet)
3. init() throws exception (that I don't remember exactly)

 Thanks
 Donie
 

Anton

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AJP Connector

2002-02-07 Thread Tom

Anyone ever got this error or know what it is causing it?

[Ajp13] bad read: -103

Which I found in the stdout.txt log file.

I am using the ISAPI redirect dll for IIS.




SOS!!!

2002-02-07 Thread Odo
Dear Tomcat Gurus.

Please give me hints for following situation.
I am got stuck for long long time.
First I wanna to process @ include URLs.

Like: http:[EMAIL PROTECTED]

When I let Apache to work alone :
following index.html

html
body
script language="JavaScript"
document.write("The URL is"+document.URL);
/script
/body
/html

gives the result I wanted : The URL is http:[EMAIL PROTECTED]

But as I'd like to process this URL with java servlet,
the above index.html in the Apache+Tomcat4

gives the only : The URL is http://test.myserver.com


Any hints and solutions?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


protect websites with jaas

2002-02-07 Thread juraj Lenharcik

Hello,

I have build an application with an authentication with a NT Domain. I have
some authorization aspects, too. That means, not every authenticated user
has the rights to do some actions. 

I have port this application to a webapp. The authentication part works
fine. The user has to input his name and password an will be authenticate or
not. But with the authorization part I have some problems. 

What is the best way to protect some sites with Jaas. I mean the user1 has
the right to run some jsp`s, but user2 has this right not. 

On the application site I do this grants in the policy like:

grant codebase file:./MyTest.jar, Principal NTPrincipal user1{
permission java.util.PropertyPermission user.dir, read;
permission java.util.PropertyPermission user.home, read;
permission java.util.PropertyPermission java.home, read; 
permission java.io.FilePermission foo.txt, read; 
};

But has anyone an idea, or has it implemented for websites. I am not sure
what the best concept is. I think the server should take some work on this,
so that I can grant it like:

server.accessFantasyPermissionhtdocs/jsp1, read; 
permission 

Is it possible to do something like this? 

Thank you
Juraj



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Is Apache -warp- Tomcat a Myth?

2002-02-07 Thread Ken Corey

Hi All,

I'm having such a huge amount of trouble with this, I'm hoping someone can 
suggest something.  It just doesn't make sense...it's like software 
engineering...I was 90% of the way there in 1 hour, but the final 10% has 
taken me another 12 hours, and it still doesn't work!

I've got a Linux 2.2.19 box (pre glibc-2.2, so prebuilds depending on 
glibc-2.2 won't work).

I'm running Apache 1.3.20, and Tomcat 4.0.1, jdk 1.3.0.

I've compiled my own warp connector module, and set everything up as per the 
sun web page here: http://dcb.sun.com/practices/howtos/tomcat_apache.jsp 
which I thought was going to provide everything I needed.

My httpd.conf file has: 

LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp js1.atomic-interactive.com:8008
WebAppDeploy sample warpConnection /sample/

I went through the development process as outlined on the tomcat site, so 
now, I've got a lovely little project directory (hello world, of course), a 
web.xml that specifies the servlet.  The project is called 'sample'.

(NOTE: 213.165.155.8 as shown below *is* js1.atomic-interactive.com shown 
above. I could see no difference in my tests one way or another, as I don't 
have virtual hosts turned on in Apache.)

So, after a deploy and a tomcat restart, my tomcat application can now be 
seen:
http://213.165.155.8:8080/sample

The index.html page is pulled up, and when the link is clicked it takes the 
user to the servlet served up by Tomcat.
http://213.165.155.8:8080/sample/hello

Now, let's try this on Apache 1.3.20:
http://213.165.155.8:5080/sample

Nothing is shown in Tomcat's logs, and so apache tries to offer the 
index.html, which of course doesn't exist as far as Apache is concerned.

http://213.165.155.8:5080/sample/

tomcat 'sees' this one, judging by the logs:
2002-02-07 09:40:48 WarpEngine[js1.atomic-interactive.com]: Mapping request
2002-02-07 09:40:48 WarpHost[js1.atomic-interactive.com]: Mapping request for 
Host
2002-02-07 09:40:48 StandardContext[/sample]: Mapping contextPath='/sample' 
with requestURI='/sample/' and relativeURI='/'
2002-02-07 09:40:48 StandardContext[/sample]: Decoded relativeURI='/'
2002-02-07 09:40:48 StandardContext[/sample]:   Trying exact match
2002-02-07 09:40:48 StandardContext[/sample]:  Mapped to servlet 'default' 
with servlet path '/' and path info 'null' and update=true
2002-02-07 09:40:48 default: DefaultServlet.serveResource:  Serving resource 
'/' headers and data

However, tomcat apparently denies any knowlege, so Apache tries to load the 
index.html file, which still doesn't exist:
http://213.165.155.8:5080/sample/index.html

Strangely, though, the servlet still does exist:
http://213.165.155.8:5080/sample/hello

So what gives?

-Ken

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




WG: protect websites with jaas

2002-02-07 Thread juraj Lenharcik


 Hello,
 
 I have build an application with an authentication with a NT Domain. I
 have some authorization aspects, too. That means, not every authenticated
 user has the rights to do some actions. 
 
 I have port this application to a webapp. The authentication part works
 fine. The user has to input his name and password an will be authenticate
 or not. But with the authorization part I have some problems. 
 
 What is the best way to protect some sites with Jaas. I mean the user1 has
 the right to run some jsp`s, but user2 has this right not. 
 
 On the application site I do this grants in the policy like:
 
 grant codebase file:./MyTest.jar, Principal NTPrincipal user1{
 permission java.util.PropertyPermission user.dir, read;
 permission java.util.PropertyPermission user.home, read;
 permission java.util.PropertyPermission java.home, read; 
 permission java.io.FilePermission foo.txt, read; 
 };
 
 But has anyone an idea, or has it implemented for websites. I am not sure
 what the best concept is. I think the server should take some work on
 this, so that I can grant it like:
 
 server.accessFantasyPermissionhtdocs/jsp1, read; 
 permission 
 
 Is it possible to do something like this? 
 
 Thank you
 Juraj
 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Recognising updated servlet class files

2002-02-07 Thread Hammonds Nicholas


Hello there,

I am running Tomcat 4.0.  I have a problem at the moment in that when I
update a servlet class file the only way I can get the browser to display
the updated version is to shutdown and restart tomcat.  I am using Internet
Explorer 5.50.  I have tried holding down the ctrl and also the shift key
whilst clicking on  the refresh button in the browser as I understand that
should force IE to look for an updated version.  Have any of you experienced
similar problems and if so how did you resolve them.

Cheers

Nic



RE: How to start Tomcat 4.0 in debug mode

2002-02-07 Thread Ilya Khandamirov

In your catalina.bat/catalina.sh file. Locate the doStart label, then
insert your line after the %_STARTJAVA% word.

Ilya


-Original Message-
From: Nagender Taalla [mailto:[EMAIL PROTECTED]] 
Sent: Mittwoch, 6. Februar 2002 23:10
To: Tomcat Users List
Subject: How to start Tomcat 4.0 in debug mode


Hi,

I am using an external debugger and need to have tomcat running its JVM
with these parameters :

-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=
y,suspend=n,address=5000

where do I set these parameters for the JVM that tomcat starts with.

Nagender Taalla
1bigthink
7361 Calhoun Place
Suite 302
Rockville, Maryland 20855
Phone 301.251.8570 (x) 211
Fax 301.251.8573

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Recognising updated servlet class files

2002-02-07 Thread WIPPERT,MAX (HP-Germany,ex1)

Hi Nic,

at first make sure that your servlet class has really been reloaded.

I had similar problems (and sometimes still have when using the
back/forward/refresh button), the browser did not really reload the servlet.
Now I use the following commands in my servlets.

res.setContentType(text/html);
res.setHeader(Pragma,no-cache); // pragma to
no-cache, similar use a meta Tag with pragma=no-cache
res.setHeader(Expires,-1); // -1 (or 0... not sure about
this) lets the webpage be expired, the broser should
   // look for a newer version of
the webpage now
res.setHeader(Cache-Control,no-cache); // tells the
browser not to cache this page
PrintWriter out = res.getWriter();

Unfortunatly this does not always work out well, especially when the
backbutton is used. Netcscape is more correct in this case...

If you are interested in having a closer look on what data is submitted, use
the TCPTunnelGUI.
Its availible at http://xml.apache.org/soap/index.html in soap-bin-2.2.zip
Quite a usefull tool.

Best regards,
Max Wippert




-Original Message-
From: Hammonds Nicholas [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 7. Februar 2002 12:10
To: 'Tomcat Users List'
Subject: Recognising updated servlet class files



Hello there,

I am running Tomcat 4.0.  I have a problem at the moment in that when I
update a servlet class file the only way I can get the browser to display
the updated version is to shutdown and restart tomcat.  I am using Internet
Explorer 5.50.  I have tried holding down the ctrl and also the shift key
whilst clicking on  the refresh button in the browser as I understand that
should force IE to look for an updated version.  Have any of you experienced
similar problems and if so how did you resolve them.

Cheers

Nic

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Realm with JAAS

2002-02-07 Thread juraj Lenharcik

Hello,

I heard that tomcat supports Realms. Can someone explain me what they do
(links...)? Is it possible to use them with JAAS Authorization? 


thanks
juraj

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Is Apache -warp- Tomcat a Myth?

2002-02-07 Thread Cressatti, Dominique

It's not that hard (always easy when you know how!).

1 question: is port 5080 where apache is listen on?
looking at your httpd.conf it seem your trying to
do something complex before trying the easy standard one.

Have you tried (providing that you have the examples servlets):

WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples

and then point your browser to http://localhost/examples/snoop

Dom


-Original Message-
From: Ken Corey [mailto:[EMAIL PROTECTED]]
Sent: 07 February 2002 10:18
To: Tomcat Users List
Subject: Is Apache -warp- Tomcat a Myth?


Hi All,

I'm having such a huge amount of trouble with this, I'm hoping someone can 
suggest something.  It just doesn't make sense...it's like software 
engineering...I was 90% of the way there in 1 hour, but the final 10% has 
taken me another 12 hours, and it still doesn't work!

I've got a Linux 2.2.19 box (pre glibc-2.2, so prebuilds depending on 
glibc-2.2 won't work).

I'm running Apache 1.3.20, and Tomcat 4.0.1, jdk 1.3.0.

I've compiled my own warp connector module, and set everything up as per the 
sun web page here: http://dcb.sun.com/practices/howtos/tomcat_apache.jsp 
which I thought was going to provide everything I needed.

My httpd.conf file has: 

LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp js1.atomic-interactive.com:8008
WebAppDeploy sample warpConnection /sample/

I went through the development process as outlined on the tomcat site, so 
now, I've got a lovely little project directory (hello world, of course), a 
web.xml that specifies the servlet.  The project is called 'sample'.

(NOTE: 213.165.155.8 as shown below *is* js1.atomic-interactive.com shown 
above. I could see no difference in my tests one way or another, as I don't 
have virtual hosts turned on in Apache.)

So, after a deploy and a tomcat restart, my tomcat application can now be 
seen:
http://213.165.155.8:8080/sample

The index.html page is pulled up, and when the link is clicked it takes the 
user to the servlet served up by Tomcat.
http://213.165.155.8:8080/sample/hello

Now, let's try this on Apache 1.3.20:
http://213.165.155.8:5080/sample

Nothing is shown in Tomcat's logs, and so apache tries to offer the 
index.html, which of course doesn't exist as far as Apache is concerned.

http://213.165.155.8:5080/sample/

tomcat 'sees' this one, judging by the logs:
2002-02-07 09:40:48 WarpEngine[js1.atomic-interactive.com]: Mapping request
2002-02-07 09:40:48 WarpHost[js1.atomic-interactive.com]: Mapping request for 
Host
2002-02-07 09:40:48 StandardContext[/sample]: Mapping contextPath='/sample' 
with requestURI='/sample/' and relativeURI='/'
2002-02-07 09:40:48 StandardContext[/sample]: Decoded relativeURI='/'
2002-02-07 09:40:48 StandardContext[/sample]:   Trying exact match
2002-02-07 09:40:48 StandardContext[/sample]:  Mapped to servlet 'default' 
with servlet path '/' and path info 'null' and update=true
2002-02-07 09:40:48 default: DefaultServlet.serveResource:  Serving resource 
'/' headers and data

However, tomcat apparently denies any knowlege, so Apache tries to load the 
index.html file, which still doesn't exist:
http://213.165.155.8:5080/sample/index.html

Strangely, though, the servlet still does exist:
http://213.165.155.8:5080/sample/hello

So what gives?

-Ken

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Is Apache -warp- Tomcat a Myth?

2002-02-07 Thread Ken Corey

Hi Dominique, thanks for the quick response.

In my explorations, the example webapp had changed...so I reloaded the 
distribution's example webapp.

Apache is on 5080, and tomcat is on 8080.

The problem I'm trying (in a clumsy way) to describe is that both the html 
and servlets work for a web app served out by Tomcat, but Apache will only 
serve out the servlets (and dir listings and .gif files), but not the .html.

This means that webapps as provided for by 2.2 and 2.3 wouldn't work through 
Apache, it seems...

-Ken

On Thursday 07 February 2002 11:33, Cressatti, Dominique wrote:
 It's not that hard (always easy when you know how!).

 1 question: is port 5080 where apache is listen on?
 looking at your httpd.conf it seem your trying to
 do something complex before trying the easy standard one.

 Have you tried (providing that you have the examples servlets):

 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy examples warpConnection /examples

 and then point your browser to http://localhost/examples/snoop

 Dom


 -Original Message-
 From: Ken Corey [mailto:[EMAIL PROTECTED]]
 Sent: 07 February 2002 10:18
 To: Tomcat Users List
 Subject: Is Apache -warp- Tomcat a Myth?


 Hi All,

 I'm having such a huge amount of trouble with this, I'm hoping someone can
 suggest something.  It just doesn't make sense...it's like software
 engineering...I was 90% of the way there in 1 hour, but the final 10% has
 taken me another 12 hours, and it still doesn't work!

 I've got a Linux 2.2.19 box (pre glibc-2.2, so prebuilds depending on
 glibc-2.2 won't work).

 I'm running Apache 1.3.20, and Tomcat 4.0.1, jdk 1.3.0.

 I've compiled my own warp connector module, and set everything up as per
 the sun web page here:
 http://dcb.sun.com/practices/howtos/tomcat_apache.jsp which I thought was
 going to provide everything I needed.

 My httpd.conf file has:

 LoadModule webapp_module libexec/mod_webapp.so
 WebAppConnection warpConnection warp js1.atomic-interactive.com:8008
 WebAppDeploy sample warpConnection /sample/

 I went through the development process as outlined on the tomcat site, so
 now, I've got a lovely little project directory (hello world, of course), a
 web.xml that specifies the servlet.  The project is called 'sample'.

 (NOTE: 213.165.155.8 as shown below *is* js1.atomic-interactive.com shown
 above. I could see no difference in my tests one way or another, as I don't
 have virtual hosts turned on in Apache.)

 So, after a deploy and a tomcat restart, my tomcat application can now be
 seen:
 http://213.165.155.8:8080/sample

 The index.html page is pulled up, and when the link is clicked it takes the
 user to the servlet served up by Tomcat.
 http://213.165.155.8:8080/sample/hello

 Now, let's try this on Apache 1.3.20:
 http://213.165.155.8:5080/sample

 Nothing is shown in Tomcat's logs, and so apache tries to offer the
 index.html, which of course doesn't exist as far as Apache is concerned.

 http://213.165.155.8:5080/sample/

 tomcat 'sees' this one, judging by the logs:
 2002-02-07 09:40:48 WarpEngine[js1.atomic-interactive.com]: Mapping request
 2002-02-07 09:40:48 WarpHost[js1.atomic-interactive.com]: Mapping request
 for Host
 2002-02-07 09:40:48 StandardContext[/sample]: Mapping contextPath='/sample'
 with requestURI='/sample/' and relativeURI='/'
 2002-02-07 09:40:48 StandardContext[/sample]: Decoded relativeURI='/'
 2002-02-07 09:40:48 StandardContext[/sample]:   Trying exact match
 2002-02-07 09:40:48 StandardContext[/sample]:  Mapped to servlet 'default'
 with servlet path '/' and path info 'null' and update=true
 2002-02-07 09:40:48 default: DefaultServlet.serveResource:  Serving
 resource '/' headers and data

 However, tomcat apparently denies any knowlege, so Apache tries to load the
 index.html file, which still doesn't exist:
 http://213.165.155.8:5080/sample/index.html

 Strangely, though, the servlet still does exist:
 http://213.165.155.8:5080/sample/hello

 So what gives?

 -Ken

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Split Thread with 2 browsers

2002-02-07 Thread Oto Buchta

Dne t 13. prosinec 2001 15:18 Alistair Hopkins napsal(a):
 IE specific:

 If you open a new window of IE from the old one (hyperlink, FILE  NEW 
 WINDOW) then it shares session cookies

 If you open a new IE session by command from the OS (Start menu, desktop
 shortcut) it doesn't share them.

 Q.: can you launch a new window by putting in a hyperling to (eg) 'IEXPLORE
 http://yoursite/yourpage'? Nasty!

There are three stupid things here:

1)By your Start menu you started new PROGRAM, not only new WINDOW!
2)You assume that MSIE is in the path and the name of the program is IEXPLORE
3)You assume the user uses MSIE
4)You assume the user uses Windows
-- 
Oto 'tapik' Buchta

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat doesn't work with IIS (repost)

2002-02-07 Thread Scott Adamson



I'm trying to setup Tomcat 4.0 to work with IIS 5.0 
on Windows 2000. As follows :

Software -
 Installed jdk1.3.1_01 to 
d:\jdk1.3.1_01\
 Installed Tomcat 4.01 to 
d:\Apache Tomcat 4.0\
 Installed isapi_redirect.dll to 
d:\Apache Tomcat 4.0\bin\ This came from the 3.2.3 distribution as 
it is not included in 4

IIS -
 Added 'jakarta' virtual 
directory to the default web site
 Added isapi_redirect as an isapi 
filter under the computer name, succesfully loaded
 Added an application extension 
for .jsp pointing to isapi_redirect.dll

Tomcat - 
 Uncommented ajp13 stuff from 
server.xml
 Added 

 ## worker.tomcat_home should 
point to the location where you# installed tomcat. This is where you have 
your conf, webapps and lib# 
directories.#worker.tomcat_home=D:\Apache Tomcat 4.0

## worker.java_home should point to your Java 
installation. Normally# you should have a bin and lib directories beneath 
it.#worker.java_home=D:\jdk1.3.1_01


 to 
worker.properties

 Changed uriworkermap.properties 
to 


Default worker to be used through our 
mappings#default.worker=ajp13

## Sites to be redirected to 
Tomcat#

/example=$(default.worker)/example/*=$(default.worker)

 Added 
/conf/jk/wrapper.properties

wrapper.tomcat_home=d:\Apache Tomcat 
4.0wrapper.java_home=d:\jdk1.3.1_01

 See the attached screenshot of 
my registry

 
Nothing works execept from port 8080, I have 
checked isapi_redirect.log, it gets the following entry for every request 
(returns a 404 error) -

[Thu Feb 07 11:25:28 2002] [jk_isapi_plugin.c 
(555)]: HttpFilterProc started[Thu Feb 07 11:25:28 2002] 
[jk_isapi_plugin.c (600)]: In HttpFilterProc Virtual Host redirection of 
/localhost/examples/jsp/index.html[Thu Feb 07 11:25:28 2002] 
[jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker[Thu 
Feb 07 11:25:28 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI 
'/localhost/examples/jsp/index.html'[Thu Feb 07 11:25:28 2002] 
[jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done 
without a match[Thu Feb 07 11:25:28 2002] [jk_isapi_plugin.c (606)]: 
In HttpFilterProc test Default redirection of /examples/jsp/index.html[Thu 
Feb 07 11:25:28 2002] [jk_uri_worker_map.c (351)]: Into 
jk_uri_worker_map_t::map_uri_to_worker[Thu Feb 07 11:25:28 2002] 
[jk_uri_worker_map.c (368)]: Attempting to map URI 
'/examples/jsp/index.html'[Thu Feb 07 11:25:28 2002] 
[jk_uri_worker_map.c (456)]: jk_uri_worker_map_t::map_uri_to_worker, done 
without a match[Thu Feb 07 11:25:28 2002] [jk_isapi_plugin.c (638)]: 
HttpFilterProc [/examples/jsp/index.html] is not a servlet url[Thu Feb 07 
11:25:28 2002] [jk_isapi_plugin.c (647)]: HttpFilterProc check if 
[/examples/jsp/index.html] is points to the web-inf directory
I don't get anything in the IIS log.

Can anyone see whats going on here ? or think of 
anything that I have forgotten to do ?





scottsReg.gif
Description: GIF image

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Tomcat 3.3 and logging per host

2002-02-07 Thread Renato

Hi all,

Does anybody know if Tomcat 3.3 has the Logger configuration in 
Catalina ? I want to do logging per Host/Context. I tested with Catalina 
and it worked fine, but with Tomcat 3.3 I tried with LogSetter and it 
didn't work. 

Any hints ?

Thanks
Renato.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat doesn't work with IIS (repost)

2002-02-07 Thread Pavel Brun

Hi Scott,
I just noticed something...the registry entries shouldn't have the \\
between directory names.
Best bet is to replace \\ for \ between the directory names manually
instead of re-merging
because re-merging the registry file won't change anything if the key names
are defined.

Hope this helps!!

Paul
  -Original Message-
  From: Scott Adamson [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 06, 2002 7:27 PM
  To: Tomcat Users List
  Subject: Tomcat doesn't work with IIS (repost)


  I'm trying to setup Tomcat 4.0 to work with IIS 5.0 on Windows 2000. As
follows :

  Software -
  Installed jdk1.3.1_01 to d:\jdk1.3.1_01\
  Installed Tomcat 4.01 to d:\Apache Tomcat 4.0\
  Installed isapi_redirect.dll to d:\Apache Tomcat 4.0\bin\   This came
from the 3.2.3 distribution as it is not included in 4

  IIS -
  Added 'jakarta' virtual directory to the default web site
  Added isapi_redirect as an isapi filter under the computer name,
succesfully loaded
  Added an application extension for .jsp pointing to isapi_redirect.dll

  Tomcat -
  Uncommented ajp13 stuff from server.xml
  Added

  #
  # worker.tomcat_home should point to the location where you
  # installed tomcat. This is where you have your conf, webapps and lib
  # directories.
  #
  worker.tomcat_home=D:\Apache Tomcat 4.0

  #
  # worker.java_home should point to your Java installation. Normally
  # you should have a bin and lib directories beneath it.
  #
  worker.java_home=D:\jdk1.3.1_01



  to worker.properties

  Changed uriworkermap.properties to


   Default worker to be used through our mappings
   #
   default.worker=ajp13

   #
   # Sites to be redirected to Tomcat
   #

   /example=$(default.worker)
   /example/*=$(default.worker)


  Added /conf/jk/wrapper.properties

  wrapper.tomcat_home=d:\Apache Tomcat 4.0
  wrapper.java_home=d:\jdk1.3.1_01


  See the attached screenshot of my registry


  Nothing works execept from port 8080, I have checked isapi_redirect.log,
it gets the following entry for every request (returns a 404 error) -

  [Thu Feb 07 11:25:28 2002]  [jk_isapi_plugin.c (555)]: HttpFilterProc
started
  [Thu Feb 07 11:25:28 2002]  [jk_isapi_plugin.c (600)]: In HttpFilterProc
Virtual Host redirection of /localhost/examples/jsp/index.html
  [Thu Feb 07 11:25:28 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
  [Thu Feb 07 11:25:28 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
URI '/localhost/examples/jsp/index.html'
  [Thu Feb 07 11:25:28 2002]  [jk_uri_worker_map.c (456)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
  [Thu Feb 07 11:25:28 2002]  [jk_isapi_plugin.c (606)]: In HttpFilterProc
test Default redirection of /examples/jsp/index.html
  [Thu Feb 07 11:25:28 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
  [Thu Feb 07 11:25:28 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
URI '/examples/jsp/index.html'
  [Thu Feb 07 11:25:28 2002]  [jk_uri_worker_map.c (456)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
  [Thu Feb 07 11:25:28 2002]  [jk_isapi_plugin.c (638)]: HttpFilterProc
[/examples/jsp/index.html] is not a servlet url
  [Thu Feb 07 11:25:28 2002]  [jk_isapi_plugin.c (647)]: HttpFilterProc
check if [/examples/jsp/index.html] is points to the web-inf directory

  I don't get anything in the IIS log.

  Can anyone see whats going on here ? or think of anything that I have
forgotten to do ?






Reloadable pbs...

2002-02-07 Thread Jean-Luc BEAUDET

Hi everybody,

I'm using SOLARIS 8, apache 1.3.22, tomcat 4.0.1

Tomcat is configured to communicate with Apache via the WARP Connector.

As it is set for devlopement stuff, i want all the changes made in the
WEB_INF/lib or classes
under CATALINA_BASE/webapps to be automatically reloaded.

Below is my server.xml. Where can i put my directive  relodable=true
so that it is effective for the whole ./webapps projects ?


!-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

Connector
className=org.apache.catalina.connector.warp.WarpConnector
   port=8012 minProcessors=5 maxProcessors=75
   enableLookups=true acceptCount=10 debug=0/

!-- Replace localhost with what your Apache ServerName is set
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
name=apache debug=0 appBase=webapps
defaultHost=photosharing.ko.kodak.com

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared
globally --
  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service


Any clues welcome.

Regards.

Jean-Luc B :O)




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




EJB - JSP / Properties

2002-02-07 Thread Loïc Lefèvre

Hi all,
From your point of view, what is the best way to
declare properties to use into a JSP page, for
example if I want to call an EJB from my JSP page
I have to do (and in each JSP page in fact):

Properties props = (Properties)System.getProperties().clone();
props.setProperty( java.naming.factory.initial,
   org.jnp.interfaces.NamingContextFactory );
props.setProperty( java.naming.provider.url, localhost );
props.setProperty( java.naming.factory.url.pkgs,
   org.jboss.naming:org.jnp.interfaces );

InitialContext jndiContext = new InitialContext( props );

Is there any way beautifuler to do that?
In the web.xml file?

Thanks in advance,
Loïc Lefèvre



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Catalina: cannot generate configuration for Apache

2002-02-07 Thread Larry Isaacs

It's under "Milestone Builds" on the Jakarta Binaries page:

http://jakarta.apache.org/site/binindex.html

The direct link is:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2-b2/

and select the "bin" directory for the binaries.

Cheers,
Larry

 -Original Message-
 From: Jarecsni Jnos [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 12:54 AM
 To: Tomcat Users List
 Subject: RE: Catalina: cannot generate configuration for Apache
 
 
 HI,
 
 afaik TC402b is not available for download in binary form, isn't it?
 
 Cheers,
 Jnos
 
 |-Original Message-
 |From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
 |Sent: Thursday, February 07, 2002 3:42 AM
 |To: Tomcat Users List
 |Subject: Re: Catalina: cannot generate configuration for Apache
 |
 |
 | Hi,
 |
 | The Tomcat 4.0.1 documentation at
 | 
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.htm
 l suggest
 |one
 | wanting to integrate TC401 with Apache the following:
 |
 | [...]
 | To generate the global Apache directives (e.g. LoadModule,
 |JkLogFile), you
 | define a Server Listener:
 |
 | Server port="8005" shutdown="SHUTDOWN" debug="0"
 | Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" /
 | [...]
 |
 | But when you actually include this tag and start tomcat, 
 you'll get a
 | ClassNotFoundException. I tried to locate the class in 
 question but in
 |vain.
 | No Jar contained it, and what's more I've found nothing 
 regarding it on
 |the
 | Internet.
 |
 |This documentation is relevant to the latest Tomcat 4.0
 |distribution (that's
 |4.0.2 b2).
 |4.0.2 Final will be released soon.
 |
 |Remy
 |
 |
 |--
 |To unsubscribe:   mailto:[EMAIL PROTECTED]
 |For additional commands: mailto:[EMAIL PROTECTED]
 |Troubles with the list: mailto:[EMAIL PROTECTED]
 |
 |
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: EJB - JSP / Properties

2002-02-07 Thread Ralph Einfeldt

I tend to put as much of java code into beans as sensefull.

In this case I would create a class that encapsulates 
the creation of the context.

Other ways:
- Use an include
- Create and use a tag library

 -Ursprüngliche Nachricht-
 Von: Loïc Lefèvre [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 7. Februar 2002 14:04
 An: Mailing List Tomcat
 Betreff: EJB - JSP / Properties
snip/ 
 Properties props = (Properties)System.getProperties().clone();
 props.setProperty( java.naming.factory.initial,
org.jnp.interfaces.NamingContextFactory );
 props.setProperty( java.naming.provider.url, localhost );
 props.setProperty( java.naming.factory.url.pkgs,
org.jboss.naming:org.jnp.interfaces );
 
 InitialContext jndiContext = new InitialContext( props );
 
 Is there any way beautifuler to do that?
 In the web.xml file?
snip/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat doesn't work with IIS (repost)

2002-02-07 Thread Larry Isaacs

I don't know if it is a typo, but what you show
below has mapped example and examples (plural) is
being requested.

Cheers,
Larry


-Original Message-
From: Scott Adamson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 7:27 PM
To: Tomcat Users List
Subject: Tomcat doesn't work with IIS (repost)


I'm trying to setup Tomcat 4.0 to work with IIS 5.0 on Windows 2000. As follows :

Software -
Installed jdk1.3.1_01 to d:\jdk1.3.1_01\
Installed Tomcat 4.01 to d:\Apache Tomcat 4.0\
Installed isapi_redirect.dll to d:\Apache Tomcat 4.0\bin\   This came from the 
3.2.3 distribution as it is not included in 4

IIS -
Added 'jakarta' virtual directory to the default web site
Added isapi_redirect as an isapi filter under the computer name, succesfully loaded
Added an application extension for .jsp pointing to isapi_redirect.dll

Tomcat - 
Uncommented ajp13 stuff from server.xml
Added 

#
# worker.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
worker.tomcat_home=D:\Apache Tomcat 4.0

#
# worker.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
worker.java_home=D:\jdk1.3.1_01
 


to worker.properties

Changed uriworkermap.properties to 


 Default worker to be used through our mappings
 #
 default.worker=ajp13

 #
 # Sites to be redirected to Tomcat
 #

 /example=$(default.worker)
 /example/*=$(default.worker)


Added /conf/jk/wrapper.properties

wrapper.tomcat_home=d:\Apache Tomcat 4.0
wrapper.java_home=d:\jdk1.3.1_01


See the attached screenshot of my registry


Nothing works execept from port 8080, I have checked isapi_redirect.log, it gets the 
following entry for every request (returns a 404 error) -

[Thu Feb 07 11:25:28 2002]  [jk_isapi_plugin.c (555)]: HttpFilterProc started
[Thu Feb 07 11:25:28 2002]  [jk_isapi_plugin.c (600)]: In HttpFilterProc Virtual Host 
redirection of /localhost/examples/jsp/index.html
[Thu Feb 07 11:25:28 2002]  [jk_uri_worker_map.c (351)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Thu Feb 07 11:25:28 2002]  [jk_uri_worker_map.c (368)]: Attempting to map URI 
'/localhost/examples/jsp/index.html'
[Thu Feb 07 11:25:28 2002]  [jk_uri_worker_map.c (456)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Thu Feb 07 11:25:28 2002]  [jk_isapi_plugin.c (606)]: In HttpFilterProc test Default 
redirection of /examples/jsp/index.html
[Thu Feb 07 11:25:28 2002]  [jk_uri_worker_map.c (351)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Thu Feb 07 11:25:28 2002]  [jk_uri_worker_map.c (368)]: Attempting to map URI 
'/examples/jsp/index.html'
[Thu Feb 07 11:25:28 2002]  [jk_uri_worker_map.c (456)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Thu Feb 07 11:25:28 2002]  [jk_isapi_plugin.c (638)]: HttpFilterProc 
[/examples/jsp/index.html] is not a servlet url
[Thu Feb 07 11:25:28 2002]  [jk_isapi_plugin.c (647)]: HttpFilterProc check if 
[/examples/jsp/index.html] is points to the web-inf directory

I don't get anything in the IIS log.

Can anyone see whats going on here ? or think of anything that I have forgotten to do ?

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3 and logging per host

2002-02-07 Thread Larry Isaacs

Tomcat 3.3 has a single engine which handles all contexts,
some of which may be associated with a host name.  Thus,
there isn't a host object to have its own log.  All
engine logging goes to the tomcat log, i.e. the tc_log
channel.  Logging per context is supported as shown in the
apps-examples.xml file.  

Cheers,
Larry


 -Original Message-
 From: Renato [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 5:29 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.3 and logging per host
 
 
 Hi all,
 
 Does anybody know if Tomcat 3.3 has the Logger configuration in 
 Catalina ? I want to do logging per Host/Context. I tested 
 with Catalina 
 and it worked fine, but with Tomcat 3.3 I tried with LogSetter and it 
 didn't work. 
 
 Any hints ?
 
 Thanks
 Renato.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Switching on UTF-8 Encoding

2002-02-07 Thread Antony Stace
Hi

What do I need to do so that data returned from Tomcat 4 is returned in UTF-8 encoding 
to a requesting browser and
requests received are read as UTF-8.

-- 


Cheers

Tony$B!#(B
-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


RE: Is the Memory Leak bug in mod_jk fixed??

2002-02-07 Thread Larry Isaacs

The mod_jk source for the upcoming Tomcat 3.3.1-beta1 release
shows no changes from the 3.3 release (other than an update
to the build-solaris.sh file).  The only impact of -DEAPI
I can see in the mod_jk source is that jk_module, defined
in mod_jk.c, is bigger.  No behavior is altered.  Thus, you
aren't likely to see anything different, even with Tomcat
3.3.1.

You are welcome to try jakarta-tomcat-connectors to see
if the mod_jk there does any better.

Cheers,
Larry

 -Original Message-
 From: Steve Wong [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 2:35 AM
 To: Tomcat Users List
 Subject: RE: Is the Memory Leak bug in mod_jk fixed??
 
 
 
   Indeed I find that if I compile mod_jk with -DEAPI 
 option, the bug exists there.
   However if I compile it without -DEAPI option, the bug 
 seems fixed.
   That means I can't use mod_ssl in apache and need to 
 implement SSL in tomcat??
 
 Thx. and Regards.
 Steve.
 
 -Original Message-
 From: Steve Wong 
 Sent: Thursday, February 07, 2002 10:49 AM
 To: [EMAIL PROTECTED]
 Subject: Is the Memory Leak bug in mod_jk fixed??
 
 
 
   I am using the most current tomcat3.3a source to build 
 the mod_jk in Solaris8 with -DEAPI option.
   However, I still find that if I use Ajp13 Connection. 
 The allocated memory in tomcat continuously increases.
 
 Thx. and Regards.
 Steve.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Is Apache -warp- Tomcat a Myth?

2002-02-07 Thread John Wadkin

Ken,

You said:

My httpd.conf file has: 

LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp js1.atomic-interactive.com:8008
WebAppDeploy sample warpConnection /sample/

Where? And what about:

AddModule mod_webapp.c

The LoadModule directive must be at the end of the list of other LoadModule
directives *before* the ClearModuleList directive.
The AddModule directive must be at the end of the list of other AddModule
directives.
The WebAppConnection and Deploy directives need to be at the end of
httpd.conf.

That's all I can suggest!

John
 
Quote for the week:
 
Experience is not what happens to a man; it is what a man does with what
happens to him.
 
Aldous Huxley, Texts and Pretexts , (1932) p. 5


-Original Message-
From: Ken Corey [mailto:[EMAIL PROTECTED]]
Sent: 07 February 2002 10:18
To: Tomcat Users List
Subject: Is Apache -warp- Tomcat a Myth?

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




configuration issues in Tomcat Server

2002-02-07 Thread Hari S

Hi, 
If someone has come across these issues with Tomcat
server and have overcome, plese let me know. 

1. After updating JSP/jar files in Tomcat server, do
we need not stop and restart the server?. if i don't,
it hangs. if i restart, i am able to access my pages
from browser. Any solution 

2. How do i set output log directory for my
application in Tomcat server. 

3. How do i increase session time for my application
in Tomcat server? 

I don't face these problems when i run through WebToGo
Server if i use Jdeveloper. 

For more details on this problem, please read the
detaile problem given below
Thanks for your help in advance. 

Thanks 
Hari 
==

HI, 
I face these problems now. 

My environment is Oracle Jdev 3.2.3 for JSP
development. Tomcat4.0.1 as Application server plugged
into IIS webserver and Using oracle 8i as the database


1. Whenever I update my JSP's and Application jar
files, I copy from staging area to the deployment
Tomcat Server application specific directories. The
files are getting copied(overwritten). After that when
i try to access my context/application in Tomcat
server, my browser simply tries to browse and doesn't
bring up the homepage of my application(say
index.jsp). 

I need to stop the tomcat server and restart again.
Then I get it. 

Is there anyone who came across this error and
possibly help me to solve this? 

-
2. In my JSP files, I log the user actions into a text
file in the server. In WebToGo Application server(WTG)
of Oracle, I am able to specify the path of the output
directory. 

But in Tomcat Server, by default the output files are
getting created in C:/Tomcat/bin directory. 

I donno how to set an output directory, where the
files will be written to and set an input directory
from where my custom application properties files will
be read from. 

Can anyone help me in telling in which file and what
attributes, i need to set the input and output
directory path in Tomcat Server? 

Can someone help me in giving suggestions or solutions
for the above problems? 
---

3. I have a JSP (say emplist) which shows all the
employees details with empno, ename, depyno and sal as
the four columns. 

I have a up and down arrow images near the column
names. Upon clicking it, it will call the same page
and sort the column either desc or asc based on the
previous display order. The column on which the Arrow
button displayed is stored in session variable. 

This sorting in JSP perfectly works in JDeveloper and
when i run using WebToGo Server(WTG). But when i
deployed in Tomcat,This sorting doesn't work. 

The page simply stands. and when i go back and front
browsing my other pages of application, i lose the
position of the arrow button and it behaves
unexpectedly by showing up in some other columns. 

is there any reason for this kind of behaviour? 


Thanks a lot in advance. 

Thanks 
Hari 

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




keytool -keygen questions

2002-02-07 Thread chad kellerman

Hello again,

  Ok this may sound like a dumb questions.  But I have been all thru the 
directories and can not find it.

 I am running rad hat linux.  I ran $JAVA_HOME/bin/keytool -keygen -alias tomcat 
-keyalg RSA

 Where did it put the cert and key??  What is it called?  I checked in the normal 
locations and it not there???

THanks for the help,

Chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: keytool -keygen questions

2002-02-07 Thread Jing Wang

Hi, Chad,

I think it will put the .keystore on your home dir on your Linux box.

Julia

-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 9:44 AM
To: [EMAIL PROTECTED]
Subject: keytool -keygen questions


Hello again,

  Ok this may sound like a dumb questions.  But I have been all thru
the directories and can not find it.

 I am running rad hat linux.  I ran $JAVA_HOME/bin/keytool -keygen
-alias tomcat -keyalg RSA

 Where did it put the cert and key??  What is it called?  I checked
in the normal locations and it not there???

THanks for the help,

Chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Can a servlet exit?

2002-02-07 Thread Bo Xu

- Original Message - 
From: Gary Lawrence Murphy [EMAIL PROTECTED]
To: Tomcat Users [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 1:55 AM
Subject: Can a servlet exit?


 
 can a servlet remove itself?  I have a situation where a servlet's
 configuration file may require on-the-fly edits, but the site runs
 dozens of servlets and we don't want to restart tomcat just to
 restart one webapp.  
 
 Long term, we plan to re-write the servlet to include a reload
 function (the proper way to do this), but for now the easiest path
 would seem to be to have the servlet purge itself from the servlet
 container such that it will be completely reloaded on the next
 request.  Is this possible?
[...]


I think one of the ways is use Manager,   good doc for you :-)

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html 


Bo
Feb072002



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: keytool -keygen questions

2002-02-07 Thread Øyvind Vestavik


I don't know about Red hat, but I use unix and win2000
On unix it is in the root directory of your home area, and on Win2000 it
is in the documents and settings directory under your profile.
Sorry I don't know about red hat..

Øyvind

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Thu, 7 Feb 2002, chad kellerman wrote:

 Hello again,

   Ok this may sound like a dumb questions.  But I have been all thru the 
directories and can not find it.

  I am running rad hat linux.  I ran $JAVA_HOME/bin/keytool -keygen -alias tomcat 
-keyalg RSA

  Where did it put the cert and key??  What is it called?  I checked in the 
normal locations and it not there???

 THanks for the help,

 Chad

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Switching on UTF-8 Encoding

2002-02-07 Thread jeff . guttadauro

 You can use %@ page contentType="text/html;charset=UTF-8" % in the JSP or
alternatively include the META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=UTF-8" tag in your HTML.  This will tell the browser to use the UTF-8
Encoding.

Then when getting the requests, you can do a request.setCharacterEncoding
("UTF-8") before getting anything from the request to allow you to read in
parameters as UTF-8.  You could also try just reading in the parameters
without setting that, and then doing param.getBytes("UTF-8").

I've been struggling with some encoding issues for a little while now, but I
have it working, so if you have any other questions, please feel free to email
me and I'll see if I can help.

Good luck,
-Jeff



   

Antony Stace   

s45652001@yaTo: [EMAIL PROTECTED]

hoo.com cc:   

 Subject: Switching on UTF-8 Encoding  

02/07/02   

07:45 AM   

Please 

respond to 

"Tomcat Users  

List"  

   

   





Hi

What do I need to do so that data returned from Tomcat 4 is returned in UTF-8
encoding to a requesting browser and
requests received are read as UTF-8.

--


Cheers

Tony$B!#(B
-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


war file is empty

2002-02-07 Thread Kim, Phillip

Hello.

I'm trying to create a war file for deployment via build.sh dist. The
generated war file contains all the context root level directories
(WEB-INF,src,lib...), but these directories are emtpy.  What am I doing
wrong? Any suggestions?

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: keytool -keygen questions

2002-02-07 Thread Øyvind Vestavik


You can also set the location of your certificate as a parameter to the
keytool command and thereby determine where to place it. But then you must
most likely add this path info to the connector element in server.xml in
order for tomcat to find it (keystore=path Info) Remember to add the
keypass attribute as well. It is all placed in the tomcat docs. I reckon
thats where you read about it?? If so check lower on the page..

Øyvind Vestavik
Øvre Møllenberggt 44b
7014 Trondheim
[EMAIL PROTECTED]
41422911

On Thu, 7 Feb 2002, Øyvind Vestavik wrote:


 I don't know about Red hat, but I use unix and win2000
 On unix it is in the root directory of your home area, and on Win2000 it
 is in the documents and settings directory under your profile.
 Sorry I don't know about red hat..

 Øyvind

 Øyvind Vestavik
 Øvre Møllenberggt 44b
 7014 Trondheim
 [EMAIL PROTECTED]
 41422911

 On Thu, 7 Feb 2002, chad kellerman wrote:

  Hello again,
 
Ok this may sound like a dumb questions.  But I have been all thru the 
directories and can not find it.
 
   I am running rad hat linux.  I ran $JAVA_HOME/bin/keytool -keygen -alias 
tomcat -keyalg RSA
 
   Where did it put the cert and key??  What is it called?  I checked in the 
normal locations and it not there???
 
  THanks for the help,
 
  Chad
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: How to start Tomcat 4.0 in debug mode

2002-02-07 Thread Nagender Taalla

Hi,

Thanks for replying Dave, but I have seen the startup.bat file and it seems
to be calling catalina.bat, so I modified the CATALINA_OPTS in catalina.bat
to be set to
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server
=y,suspend=n,address=5000


rem - Set Up The Runtime
Classpath 

if not %CATALINA_OPTS% ==  goto cool
set CATALINA_OPTS=
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server
=y,suspend=n,address=5000
:cool
set CP=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
if %JSSE_HOME% ==  goto noJsse
set
CP=%CP%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\j
sse.jar
:noJsse
set CLASSPATH=%CP%
echo Using CATALINA_BASE: %CATALINA_BASE%
echo Using CATALINA_HOME: %CATALINA_HOME%
echo Using CLASSPATH: %CLASSPATH%
echo Using JAVA_HOME: %JAVA_HOME%


But there is no difference, Tomcat starts as usual and I am not able to use
the remote debugger at port 5000. When I try to connect to it from the IDE
it says connection refused. I would greatly appreciate any help.

Regards
Nagender Taalla
1bigthink
7361 Calhoun Place
Suite 302
Rockville, Maryland 20855
Phone 301.251.8570 (x) 211
Fax 301.251.8573
- Original Message -
From: Dave Whitla [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, February 06, 2002 6:04 PM
Subject: Re: How to start Tomcat 4.0 in debug mode


 The start script in the bin directory of the binary distribution.

 - Original Message -
 From: Nagender Taalla [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, February 07, 2002 8:09 AM
 Subject: How to start Tomcat 4.0 in debug mode


  Hi,
 
  I am using an external debugger and need to have tomcat running its JVM
 with
  these parameters :
 

 -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,serve
 r=
  y,suspend=n,address=5000
 
  where do I set these parameters for the JVM that tomcat starts with.
 
  Nagender Taalla
  1bigthink
  7361 Calhoun Place
  Suite 302
  Rockville, Maryland 20855
  Phone 301.251.8570 (x) 211
  Fax 301.251.8573
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Error 200?

2002-02-07 Thread Ignacio J. Ortega

 De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En nombre de
 Gary Lawrence Murphy
 Enviado el: miércoles 6 de febrero de 2002 16:48

 I have a client who wrote a bunch of JSP pages that all return a
 tomcat Error 200 in the middle of the headers; because the error
 message is wrapped in blank lines, the message terminates the HTTP
 headers causing itself and any subsequent headers to be printed on
 the html page.


MayBe you are using Tomcat 3.2.X and what you see is related to
http://nagoya.betaversion.org/bugzilla/show_bug.cgi?id=356 ??

In this case upgrading to 3.3 or 4.X, are the way to go..

Saludos ,
Ignacio J. Ortega

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Ajp12 Problems between Zeus and Tomcat-3.2.4

2002-02-07 Thread Ignacio J. Ortega

 De: Zsolt Koppany [mailto:[EMAIL PROTECTED]]
 Enviado el: martes 5 de febrero de 2002 18:43

 our provider uses Zeus (Solaris-2.6) as Server and that sends 
 the requests to 
 tomcat-3.2.4. Obviously there are problems over the Ajp12 
 communication that 

Which communication problems? Ajp12 is a very well tested protocol, and
mod_jserv is almost done in every aspect, so what are your problems
extactly ?


Saludos ,
Ignacio J. Ortega


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: protect websites with jaas

2002-02-07 Thread Mike Jackson

I tried to do something like that.  But I found that with jaas all I got was
the permissions of the user
that was running tomcat.  After reading and playing a bit more I concluded
that I'd need an applet
running on the web client in order to get jaas to work for me.  And with the
restrictions on applets
I decided that wasn't worth it either.

However, I could have misunderstood something or been doing it wrong, but
that's my experience.
You mileage may vary, some assembly required, batteries not included.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

- Original Message -
From: juraj Lenharcik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 2:12 AM
Subject: protect websites with jaas


 Hello,

 I have build an application with an authentication with a NT Domain. I
have
 some authorization aspects, too. That means, not every authenticated user
 has the rights to do some actions.

 I have port this application to a webapp. The authentication part works
 fine. The user has to input his name and password an will be authenticate
or
 not. But with the authorization part I have some problems.

 What is the best way to protect some sites with Jaas. I mean the user1 has
 the right to run some jsp`s, but user2 has this right not.

 On the application site I do this grants in the policy like:

 grant codebase file:./MyTest.jar, Principal NTPrincipal user1{
 permission java.util.PropertyPermission user.dir, read;
 permission java.util.PropertyPermission user.home, read;
 permission java.util.PropertyPermission java.home, read;
 permission java.io.FilePermission foo.txt, read;
 };

 But has anyone an idea, or has it implemented for websites. I am not sure
 what the best concept is. I think the server should take some work on
this,
 so that I can grant it like:

 server.accessFantasyPermissionhtdocs/jsp1, read;
 permission

 Is it possible to do something like this?

 Thank you
 Juraj



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Maximum url length

2002-02-07 Thread Ignacio J. Ortega

 El Mar 05 Feb 2002 20:12, escribiste:
  Hi,
  It's not a good idea. Try changing GET to POST. In case you 
 don't know -
  request uris are often cached, logged, etc, so sending any 
 data, especially
  passwords in them is a suicide or worse.
 
 
 I compound the uri internally in my servlet, encode it and do 
 a POST. In fact 
 tomcat shows me the doPost.

But you are not using the body for POST data you are using the URL to
send data, from a HTML perspective it's easy to send post data, simply
send a form with POST method, and you will be sending a request with an
unbounded body of data to be received by the server.., using URLS for
that is guaranteed to be a problem depending in incontrollable
devices ( like proxies or caches or whatever ) it's possible that some
of this uknown devices have a URL limited size, and thus there will be
clients not being able to use your app..


 The question is: I KNOW that I'm using method POST and I know 
 the generated 
 uri is very long. Have you ever try to send so long uris? How 
 to treat them? 
 Can tomcat be configured to handle longer uris?
 

One alternative solution could be to use Tomcat behind a WebServer .. i
dont know.

But actually the problem is more in the way you are doing things than in
the TC itself..

Saludos ,
Ignacio J. Ortega


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




How to configure tomcat?

2002-02-07 Thread Uma Maheswar

Hi,
I have a web site www.globalleafs.com . I have downlaoded Tomcat4.0 . I have hosted my 
site with Indiaaccess,India. They are using Apache Tomcat 4.0. I wanted to configure 
my tomcat in such a way that, I can see the System.out.println statements? i.e to 
see the console of Apache Tomcat 4.0 of Indiaaccess,Mumbai in my Home PC. Is this 
possible? If so please hlep me.

Uma



apache and tomcat 4.0.1

2002-02-07 Thread Min Wang

Hi:

Whewre can I find information on configure tomcat
4.0.1 with Apache 1.32?

I created my application in the location other than
the default directory.  I modified web.xml and it
works fine under tomcat.  I can call it from
http://localhost:8080/jexe/Hello.  But I can not call
it from apache http://localhost/jexe/Hello.  What I
added following lines into httpd.conf:

WebAppConnection conn  warp  localhost:8008
WebAppDeploy examples  conn  /examples
WebAppDeployjexeconn/jexe

And examples work fine under Apache.

Any one can help?

Thanks.



=
Min Wang
(201)936-9888

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




FW: Question about tomcat.bat

2002-02-07 Thread Michel Bergijk

Tomcat users,

Excuse me for breaking and entering your mailing list. I have a question
about tomcat.bat on Win2000:

 Because I was looking into Soap, I found out setting the CLASSPATH in
 tomcat.bat is not what I expected. I am running Apache with Tomcat and
 Jetspeed on a Win2000 system. I have been playing around with the batch
file
 and added a line with start set right after :cleanup. This created a
new
 window with a listing of my environment variables. I found out the only
 thing in my CLASSPATH was CLASSPATH=c:\Apache\tomcat\lib\tomcat.jar . Is
 that normal, or should there be other jar files in it?

Regards,
Michel Bergijk

-Original Message-
From: Paul Spencer [mailto:[EMAIL PROTECTED]]
Sent: donderdag 7 februari 2002 16:32
To: Jetspeed Users List
Subject: Re: Question about tomcat.bat


Michel,
I am running Cocoon2, Soap, and Jetspeed in one instance of Tomcat 
4.0.1.I have not modified the CLASSPATH during ANY of the 
installations.  The was was true with Tomcat 3.3 running Cocoon2 and 
Jetspeed.   You might want to ask the Tomcat folks.

Paul Spencer


Michel Bergijk wrote:

 Fellow jetspeed users,
 
 Because I was looking into Soap, I found out setting the CLASSPATH in
 tomcat.bat is not what I expected. I am running Apache with Tomcat and
 Jetspeed on a Win2000 system. I have been playing around with the batch
file
 and added a line with start set right after :cleanup. This created a
new
 window with a listing of my environment variables. I found out the only
 thing in my CLASSPATH was CLASSPATH=c:\Apache\tomcat\lib\tomcat.jar . Is
 that normal, or should there be other jar files in it?
 
 With regards,
 
 Michel Bergijk
 ABAP/4 Engineer
 CMG Oost-Nederland B.V.
 Division Trade, Transport  Industry
 Meander 901
 6825 MH Arnhem
 PO Box 7015
 6801 HA Arnhem
 The Netherlands
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Multi-user problem

2002-02-07 Thread Shannon Chen

Member variables are shared by different users coz
only doPost/doGet is called when servlet gets request.
The simultaneous access of the same data by multiple
users...so make sure you have the user sensitive data
declared in doPost/doGet ( also the DB connection !!)




--- [EMAIL PROTECTED] wrote:
 I developed a system for reviewing scanned image
 quality.
 The system worked like a champ during development
 and on launch day.
 The next day, we went from 1 user to 2.
 The system is 100% intolerant of simultaneous
 requests.
 Anytime the second user makes a request before the
 first user's request is fulfilled, output stops and
 both requests are not fulfilled; The system is
 'hung'.  
 Restarting Apache HTTP server resumes normal
 operation.
 The situation is easily reproducable.  Any ideas?
 
 Note: After looking at my pseudo-code at the bottom,
 it may help to know that occasionally when this
 happens, 
 my servlet outputs this error to the Tomcat Console
 window:
 'Login Parameters not found'
 
 Since I'm using post requests, I cannot see the
 parameters, but this error indicates that the
 parameters are 
 incompletely sent or not sent at all when this
 occurs.  
 And it's not just the parameters, but the whole
 request to Tomcat, and maybe its response.
 When login parameters are not sent, the servlet will
 show a bad login page.  It doesn't happen in this
 case.
 
 My best conclusion is that when this NEXTIMAGE
 servlet is run twice at once, it causes Apache to
 stop talking to tomcat properly.
 
 
 
 Apache 1.3 is a service on Windows 2000 running
 Tomcat 4 on the same server, with SQL server 2000
 SP1 on the same server.  
 My system has 2 servlets, AUDREPORT and NEXTIMAGE. 
 AUDREPORT is run once per user at login.  
 NEXTIMAGE is called repeatedly (say 1000 to 3000
 times per workshift per user).
 Database connections are made through ODBC with the
 JDBC:ODBC:DSN bridge using the
 sun.jdbc.odbc.JdbcOdbcDriver driver.  I used a
 SYSTEM DSN.
 If it makes any difference, The machine has MDAC 2.6
 SP1, BDE 5.1, Winzip 8, Pegasus ImagN' 4.0 imaging
 components, 
 a Custom Delphi 6 database app and VNC installed on
 it and is logged in as Administrator.
 
 
 I'm not at home with Apache error log entries, but I
 see a lot of these:
 (of the following, I think packet 6 errors are most
 prevalent):
 Invalid Packet 2 followed by numerous
 'communitcation interrupted' messages, between 1 and
 10 of them, all within one second.
 Invalid Packet 6 followed by numerous
 'communitcation interrupted' messages, between 1 and
 10 of them, all within one second.
 Invalid Packet 200 followed by numerous
 'communitcation interrupted' messages, same as
 above.. 
 forcing termination of child #0 (handle 520)//(
 -- this handle is always 520 and always child #0.)
 
 It's worth noting that NONE of the above errors
 occurred on launch day (when I was sure there was
 only 1 user).
 
 
 
 The users follow this work flow:
 
 1) Enter name/password at Login page (which is plain
 HTML with a form that is directed to servlet
 AUDREPORT.
 
 2) A report is generated, reflecting how many images
 are total, done, and undone.  On the page is a
 submit button which calls servlet NEXTIMAGE.
 
 3) NEXTIMAGE generates a page with an image and some
 checkboxes on a form which is redirected to the
 NEXTIMAGE servlet.  
 So, 99% of the time, all users are accessing the
 same servlet.
 
 4) The loop is broken when the user has viewed the
 last available image, and the users are sent back to
 the login page.
 
 Workers are viewing images from the same pool, and
 obviously both call the same servlet on the same
 server repeatedly.  So, nextimage is the servlet
 that is running when the problem occurs.
 
 
 
 The NEXTIMAGE servlet looks something like this
 pseudo-code:
 public static void login(...){ Tell database user is
 logged in. }
 public static void logout(...) {Tell database user
 is logged out.}
 public static void updateaccesstime(...) {Tell
 Database I made a request}
 public void doPost(HttpServletRequest request,
 HttpServletResponse response) {
 }
 userid=request.getparameter(userid);
 password=request.getparameter(password);
 if lastaccess was too long ago {logout; return;}
 if (userid is present and password is present) {
   if (userid/password is in database) {
 updateaccesstime(userid,password) }
   else { System.err.println('Login Parameters not
 found'); Send badloginpage to client; return;}
 }
 
 
 if (submit_action==logout) logout;
 if (submit_action=get image) {
 Get details about previous image (if any) from
 request.getParameters(...) and update database with
 the info.
 { //Get next image
 Get the name of the next available image and reserve
 it.
 // Generate HTML for Image Evaluation page, placing
 image name in parameters of ActiveX image control
 embedded in the page.
 // This HTML is generated by the following:
 Vector ssi = new Vector();
 ssi.add(Searchfortext1=replacementtext1)
 

RE: Question about tomcat.bat

2002-02-07 Thread Larry Isaacs

It is normal for tomcat.jar to be the only jar on the
CLASSPATH.  Tomcat 3.3 builds a classloader hierarchy
internally during startup.  For details on how to
add classes/jars, see:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_classes

Hope this helps.

Cheers,
Larry

 -Original Message-
 From: Michel Bergijk [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 10:32 AM
 To: [EMAIL PROTECTED]
 Subject: FW: Question about tomcat.bat
 
 
 Tomcat users,
 
 Excuse me for breaking and entering your mailing list. I have 
 a question
 about tomcat.bat on Win2000:
 
  Because I was looking into Soap, I found out setting the 
 CLASSPATH in
  tomcat.bat is not what I expected. I am running Apache with 
 Tomcat and
  Jetspeed on a Win2000 system. I have been playing around 
 with the batch
 file
  and added a line with start set right after :cleanup. 
 This created a
 new
  window with a listing of my environment variables. I found 
 out the only
  thing in my CLASSPATH was 
 CLASSPATH=c:\Apache\tomcat\lib\tomcat.jar . Is
  that normal, or should there be other jar files in it?
 
 Regards,
 Michel Bergijk
 
 -Original Message-
 From: Paul Spencer [mailto:[EMAIL PROTECTED]]
 Sent: donderdag 7 februari 2002 16:32
 To: Jetspeed Users List
 Subject: Re: Question about tomcat.bat
 
 
 Michel,
 I am running Cocoon2, Soap, and Jetspeed in one instance of Tomcat 
 4.0.1.I have not modified the CLASSPATH during ANY of the 
 installations.  The was was true with Tomcat 3.3 running Cocoon2 and 
 Jetspeed.   You might want to ask the Tomcat folks.
 
 Paul Spencer
 
 
 Michel Bergijk wrote:
 
  Fellow jetspeed users,
  
  Because I was looking into Soap, I found out setting the 
 CLASSPATH in
  tomcat.bat is not what I expected. I am running Apache with 
 Tomcat and
  Jetspeed on a Win2000 system. I have been playing around 
 with the batch
 file
  and added a line with start set right after :cleanup. 
 This created a
 new
  window with a listing of my environment variables. I found 
 out the only
  thing in my CLASSPATH was 
 CLASSPATH=c:\Apache\tomcat\lib\tomcat.jar . Is
  that normal, or should there be other jar files in it?
  
  With regards,
  
  Michel Bergijk
  ABAP/4 Engineer
  CMG Oost-Nederland B.V.
  Division Trade, Transport  Industry
  Meander 901
  6825 MH Arnhem
  PO Box 7015
  6801 HA Arnhem
  The Netherlands
  
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Question about tomcat.bat

2002-02-07 Thread Randy Layman


Its normal.  Older versions of Tomcat that used the system classpath
caused enormous headaches on this mailing list because people didn't
understand how it interacted with the other class loaders.

If you want to add jar files to Tomcat either place them in your web
application's lib directory or into the appropriation TOMCAT_HOME\lib
folder.

Randy

 -Original Message-
 From: Michel Bergijk [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 10:32 AM
 To: [EMAIL PROTECTED]
 Subject: FW: Question about tomcat.bat
 
 
 Tomcat users,
 
 Excuse me for breaking and entering your mailing list. I have 
 a question
 about tomcat.bat on Win2000:
 
  Because I was looking into Soap, I found out setting the 
 CLASSPATH in
  tomcat.bat is not what I expected. I am running Apache with 
 Tomcat and
  Jetspeed on a Win2000 system. I have been playing around 
 with the batch
 file
  and added a line with start set right after :cleanup. 
 This created a
 new
  window with a listing of my environment variables. I found 
 out the only
  thing in my CLASSPATH was 
 CLASSPATH=c:\Apache\tomcat\lib\tomcat.jar . Is
  that normal, or should there be other jar files in it?
 
 Regards,
 Michel Bergijk
 
 -Original Message-
 From: Paul Spencer [mailto:[EMAIL PROTECTED]]
 Sent: donderdag 7 februari 2002 16:32
 To: Jetspeed Users List
 Subject: Re: Question about tomcat.bat
 
 
 Michel,
 I am running Cocoon2, Soap, and Jetspeed in one instance of Tomcat 
 4.0.1.I have not modified the CLASSPATH during ANY of the 
 installations.  The was was true with Tomcat 3.3 running Cocoon2 and 
 Jetspeed.   You might want to ask the Tomcat folks.
 
 Paul Spencer
 
 
 Michel Bergijk wrote:
 
  Fellow jetspeed users,
  
  Because I was looking into Soap, I found out setting the 
 CLASSPATH in
  tomcat.bat is not what I expected. I am running Apache with 
 Tomcat and
  Jetspeed on a Win2000 system. I have been playing around 
 with the batch
 file
  and added a line with start set right after :cleanup. 
 This created a
 new
  window with a listing of my environment variables. I found 
 out the only
  thing in my CLASSPATH was 
 CLASSPATH=c:\Apache\tomcat\lib\tomcat.jar . Is
  that normal, or should there be other jar files in it?
  
  With regards,
  
  Michel Bergijk
  ABAP/4 Engineer
  CMG Oost-Nederland B.V.
  Division Trade, Transport  Industry
  Meander 901
  6825 MH Arnhem
  PO Box 7015
  6801 HA Arnhem
  The Netherlands
  
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: protect websites with jaas

2002-02-07 Thread juraj Lenharcik

Hi Mike,

you are right. JAAS with with the Authorization part is not constructed for
j2ee Applications. Authentication works fine, but the Authorizationpart you
have to implement yourself. I am doing something like this, because I didn`t
found any other solution.

I authenticate with JAAS on a JSP (without an Applet). The Authorization
runs like the policy grants, but on xml. On every request I go to an
ActionServlet (struts) witch send a request to an Authorizationservlet. This
servlet checks for the rights for this directory and sends his response back
to the ActionServlet. 
On this result will be the correct forwart taken.
I hope it will be working, because I am on it, now. I hope there will be
soon an non (struts) ;-) solution or something like that.

Juraj  




-Ursprüngliche Nachricht-
Von: Mike Jackson [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 7. Februar 2002 16:27
An: Tomcat Users List
Betreff: Re: protect websites with jaas 


I tried to do something like that.  But I found that with jaas all I got was
the permissions of the user
that was running tomcat.  After reading and playing a bit more I concluded
that I'd need an applet
running on the web client in order to get jaas to work for me.  And with the
restrictions on applets
I decided that wasn't worth it either.

However, I could have misunderstood something or been doing it wrong, but
that's my experience.
You mileage may vary, some assembly required, batteries not included.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

- Original Message -
From: juraj Lenharcik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 2:12 AM
Subject: protect websites with jaas


 Hello,

 I have build an application with an authentication with a NT Domain. I
have
 some authorization aspects, too. That means, not every authenticated user
 has the rights to do some actions.

 I have port this application to a webapp. The authentication part works
 fine. The user has to input his name and password an will be authenticate
or
 not. But with the authorization part I have some problems.

 What is the best way to protect some sites with Jaas. I mean the user1 has
 the right to run some jsp`s, but user2 has this right not.

 On the application site I do this grants in the policy like:

 grant codebase file:./MyTest.jar, Principal NTPrincipal user1{
 permission java.util.PropertyPermission user.dir, read;
 permission java.util.PropertyPermission user.home, read;
 permission java.util.PropertyPermission java.home, read;
 permission java.io.FilePermission foo.txt, read;
 };

 But has anyone an idea, or has it implemented for websites. I am not sure
 what the best concept is. I think the server should take some work on
this,
 so that I can grant it like:

 server.accessFantasyPermissionhtdocs/jsp1, read;
 permission

 Is it possible to do something like this?

 Thank you
 Juraj



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Connected : How to start Tomcat 4.0 in debug mode

2002-02-07 Thread Nagender Taalla

Hi Dave,

I have used an alternate CATALINA_OPTS

-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socke
t,server=y,suspend=n,address=

and it works ... Thanks anyways

Regards,
Nagender Taalla
1bigthink
7361 Calhoun Place
Suite 302
Rockville, Maryland 20855
Phone 301.251.8570 (x) 211
Fax 301.251.8573


- Original Message -
From: Nagender Taalla [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 9:55 AM
Subject: Re: How to start Tomcat 4.0 in debug mode


 Hi,

 Thanks for replying Dave, but I have seen the startup.bat file and it
seems
 to be calling catalina.bat, so I modified the CATALINA_OPTS in
catalina.bat
 to be set to

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server
 =y,suspend=n,address=5000


 rem - Set Up The Runtime
 Classpath 

 if not %CATALINA_OPTS% ==  goto cool
 set CATALINA_OPTS=

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server
 =y,suspend=n,address=5000
 :cool
 set CP=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
 if %JSSE_HOME% ==  goto noJsse
 set

CP=%CP%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\j
 sse.jar
 :noJsse
 set CLASSPATH=%CP%
 echo Using CATALINA_BASE: %CATALINA_BASE%
 echo Using CATALINA_HOME: %CATALINA_HOME%
 echo Using CLASSPATH: %CLASSPATH%
 echo Using JAVA_HOME: %JAVA_HOME%


 But there is no difference, Tomcat starts as usual and I am not able to
use
 the remote debugger at port 5000. When I try to connect to it from the IDE
 it says connection refused. I would greatly appreciate any help.

 Regards
 Nagender Taalla
 1bigthink
 7361 Calhoun Place
 Suite 302
 Rockville, Maryland 20855
 Phone 301.251.8570 (x) 211
 Fax 301.251.8573
 - Original Message -
 From: Dave Whitla [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, February 06, 2002 6:04 PM
 Subject: Re: How to start Tomcat 4.0 in debug mode


  The start script in the bin directory of the binary distribution.
 
  - Original Message -
  From: Nagender Taalla [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, February 07, 2002 8:09 AM
  Subject: How to start Tomcat 4.0 in debug mode
 
 
   Hi,
  
   I am using an external debugger and need to have tomcat running its
JVM
  with
   these parameters :
  
 

 -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,serve
  r=
   y,suspend=n,address=5000
  
   where do I set these parameters for the JVM that tomcat starts with.
  
   Nagender Taalla
   1bigthink
   7361 Calhoun Place
   Suite 302
   Rockville, Maryland 20855
   Phone 301.251.8570 (x) 211
   Fax 301.251.8573
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Verisign CSR generation for Tomcat

2002-02-07 Thread Jason Barr

Hi,

Certs work good in Tomcat, but I dunno to much about chained certs (such as 
Verisign's) so maybe give one of ours a run.

http://www.thawte.com/cgi/server/try.exe

Good results with Tomcat so far, hopefully you shouldn't have problems.  :)

Garske, Tom wrote:

 I've been trying to locate any documentation on how generate an SSL 
certificate(CSR)that can be submitted to Verisign via tomcat, however I've been 
unsuccessful in doing so.  The link below, only shows how to create a keystore and 
this obviously cannot be submitted to a CA. If someone could forward any links or 
examples on how to do this, or if it's even possible, it would be much appreciated.
 http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-ssl-howto.html

 Thank you

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
Jason Barr
Vendor Manager
Thawte Tech Support
www.thawte.com/cgi/support/contents.exe




smime.p7s
Description: S/MIME Cryptographic Signature


Re: keytool -keygen questions

2002-02-07 Thread McLaughlin, Jim

try this:
bash% man keytool
 Hello again,

  Ok this may sound like a dumb questions.  But I have been all thru
  the directories and can not find it.

 I am running rad hat linux.  I ran $JAVA_HOME/bin/keytool -keygen
 -alias tomcat -keyalg RSA

 Where did it put the cert and key??  What is it called?  I checked
 in the normal locations and it not there???

 THanks for the help,

 Chad

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


-- 
Jim McLaughlin
Software Engineer
Stonewater Software
email: [EMAIL PROTECTED]
Phone: 847.864.1060 x107
Fax  : 847.864.1238



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Does Tomcat maintain session values?

2002-02-07 Thread Hari S

Hi,

 I use JSP pages which maintain session values in a
java class using JSP:useBean

My pages work perfectly in other Servers. But in
Tomcat, it doesn't.

problem 1: it loses my session variable values and
displays my pages with their default setting.  worse
is it loses track and displays with previously
navigated page values.

   Is using Hidden fields the only solution in Tomcat?
Can's sessions be maintained  or used in Tomcat
server?

I use Tomcat 4.0.1 server

Problem 2: I guess since it doesn't store session
values, when I press Submit button twice to refresh
the page, It throws me java.lang.illegalStateException
with following message:

How Can I avoid this?
Thanks.

Error message is:
java.lang.IllegalStateException
   at
org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFacade.java:173)
at
org.apache.jsp.orderdetailvalidate$jsp._jspService(orderdetailvalidate$jsp.java:875)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
at java.lang.Thread.run(Thread.java:484)





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Can a servlet exit?

2002-02-07 Thread Craig R. McClanahan



On 7 Feb 2002, Gary Lawrence Murphy wrote:

 Date: 07 Feb 2002 01:55:42 -0500
 From: Gary Lawrence Murphy [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  Gary Lawrence Murphy [EMAIL PROTECTED]
 To: Tomcat Users [EMAIL PROTECTED]
 Subject: Can a servlet exit?


 can a servlet remove itself?

No.  Java provides no means to remove an existing class from a class
loader, once it has been loaded.

  I have a situation where a servlet's
 configuration file may require on-the-fly edits, but the site runs
 dozens of servlets and we don't want to restart tomcat just to
 restart one webapp.

 Long term, we plan to re-write the servlet to include a reload
 function (the proper way to do this), but for now the easiest path
 would seem to be to have the servlet purge itself from the servlet
 container such that it will be completely reloaded on the next
 request.  Is this possible?


The only choice (and the one that Tomcat implements when you reload a
webapp) is to shut down the application, throw away its class loader, and
load things up again.

Craig

 --
 Gary Lawrence Murphy [EMAIL PROTECTED] TeleDynamics Communications Inc
 Business Innovations Through Open Source Systems: http://www.teledyn.com
 Computers are useless.  They can only give you answers.(Pablo Picasso)


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Realm with JAAS

2002-02-07 Thread Craig R. McClanahan



On Thu, 7 Feb 2002, juraj Lenharcik wrote:

 Date: Thu, 7 Feb 2002 12:23:27 +0100
 From: juraj Lenharcik [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: Realm with JAAS

 Hello,

 I heard that tomcat supports Realms. Can someone explain me what they do
 (links...)?

Start up Tomcat and access the following URL:

  http://localhost:8080/tomcat-docs/realm-howto.html

 Is it possible to use them with JAAS Authorization?


There is no support for this in the 4.0.x releases, but in the nightly
builds (and what will eventually become Tomcat 4.1) there is a Realm
implementation that uses JAAS underneath.


 thanks
 juraj


Craig McClanahan


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Switching on UTF-8 Encoding

2002-02-07 Thread Craig R. McClanahan



On Thu, 7 Feb 2002, Antony Stace wrote:

 Date: Thu, 7 Feb 2002 22:45:23 +0900
 From: Antony Stace [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Switching on UTF-8 Encoding

 Hi

 What do I need to do so that data returned from Tomcat 4 is returned in UTF-8 
encoding to a requesting browser and
 requests received are read as UTF-8.


For writing UTF-8 content, your servlet needs to set the character
encoding *before* it gets the response's writer:

  response.setContentType(text/html;charset=UTF-8);
  PrintWriter writer = response.getWriter();
  writer.println(This line will be written in UTF-8);

For reading, the browser should have set a character encoding on its
Content-Type header.  If it didn't (or if this is a GET request and you
are trying to process query string parameters), call the following
*before* calling any of the request.getParameter methods (or
request.getReader):

  request.setCharacterEncoding(UTF-8);

Note that this method was added in Servlet 2.3, so it won't work in Tomcat
3.x environments.

 --


 Cheers

 Tony$B!#(B

Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: Realm with JAAS

2002-02-07 Thread juraj Lenharcik

Hi Craig,

I looked on it, but it seems there is no authorization support, only
authentication . Is it right? I cannot find any Principal Classes 


Juraj


-Ursprüngliche Nachricht-
Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 7. Februar 2002 17:52
An: Tomcat Users List
Betreff: Re: Realm with JAAS




On Thu, 7 Feb 2002, juraj Lenharcik wrote:

 Date: Thu, 7 Feb 2002 12:23:27 +0100
 From: juraj Lenharcik [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: Realm with JAAS

 Hello,

 I heard that tomcat supports Realms. Can someone explain me what they do
 (links...)?

Start up Tomcat and access the following URL:

  http://localhost:8080/tomcat-docs/realm-howto.html

 Is it possible to use them with JAAS Authorization?


There is no support for this in the 4.0.x releases, but in the nightly
builds (and what will eventually become Tomcat 4.1) there is a Realm
implementation that uses JAAS underneath.


 thanks
 juraj


Craig McClanahan


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: AW: Realm with JAAS

2002-02-07 Thread Craig R. McClanahan



On Thu, 7 Feb 2002, juraj Lenharcik wrote:

 Date: Thu, 7 Feb 2002 18:02:27 +0100
 From: juraj Lenharcik [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: AW: Realm with JAAS

 Hi Craig,

 I looked on it, but it seems there is no authorization support, only
 authentication . Is it right? I cannot find any Principal Classes


A couple of weeks ago, I updated this implementation so that it can
recognize roles as well as the Principal, based on the actual
implementation class names.  Try a recent nightly build, and read the
Javadoc comments on the org.apache.catalina.realm.JAASRealm class for
information on configuring this via the roleClassNames and
userClassNames properties.

Note that JAASRealm, like all the other standard Realm implementations,
constructs a GenericPrincipal based on what the underlying LoginModule
returns.  It doesn't forward you any of the Principal objects from the
subject -- precisely because there would be no way to know what roles that
Principal has.


 Juraj


Craig



 -Ursprüngliche Nachricht-
 Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 7. Februar 2002 17:52
 An: Tomcat Users List
 Betreff: Re: Realm with JAAS




 On Thu, 7 Feb 2002, juraj Lenharcik wrote:

  Date: Thu, 7 Feb 2002 12:23:27 +0100
  From: juraj Lenharcik [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
  Subject: Realm with JAAS
 
  Hello,
 
  I heard that tomcat supports Realms. Can someone explain me what they do
  (links...)?

 Start up Tomcat and access the following URL:

   http://localhost:8080/tomcat-docs/realm-howto.html

  Is it possible to use them with JAAS Authorization?
 

 There is no support for this in the 4.0.x releases, but in the nightly
 builds (and what will eventually become Tomcat 4.1) there is a Realm
 implementation that uses JAAS underneath.

 
  thanks
  juraj
 

 Craig McClanahan


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




way to get list of all session variables and values?

2002-02-07 Thread C Cayetano

All,

Is there a wat to get a listing of all session variables and their values?

Thanks



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 3.3a IIS JDBC

2002-02-07 Thread Martin Jussel

Hi,

I'm a newbie: I installed Tomcat and the IIS redirector successfully and
found the solution to host multiple webs with this configuration. But
now I have to install a JDBC driver (SQLBase) and to get it run, I found
only the solution to copy the complete JDBC driver path
(com.centurasoft.java.sqlbase) to the WEB-INF\classes of each web and
define the path in the web.xml.

Is there no *global* place for installing driver classes like this?

Regards,
Martin Jussel


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3a IIS JDBC

2002-02-07 Thread Martin van den Bemt

put the jar file in the WEB-INF/lib directory of your webapp..

Mvgr,
Martin

 -Original Message-
 From: Martin Jussel [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 18:42
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.3a  IIS  JDBC
 
 
 Hi,
 
 I'm a newbie: I installed Tomcat and the IIS redirector successfully and
 found the solution to host multiple webs with this configuration. But
 now I have to install a JDBC driver (SQLBase) and to get it run, I found
 only the solution to copy the complete JDBC driver path
 (com.centurasoft.java.sqlbase) to the WEB-INF\classes of each web and
 define the path in the web.xml.
 
 Is there no *global* place for installing driver classes like this?
 
 Regards,
 Martin Jussel
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3a IIS JDBC

2002-02-07 Thread Randy Layman

TOMCAT_HOME\lib\common

 -Original Message-
 From: Martin Jussel [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 12:42 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.3a  IIS  JDBC
 
 
 Hi,
 
 I'm a newbie: I installed Tomcat and the IIS redirector 
 successfully and
 found the solution to host multiple webs with this configuration. But
 now I have to install a JDBC driver (SQLBase) and to get it 
 run, I found
 only the solution to copy the complete JDBC driver path
 (com.centurasoft.java.sqlbase) to the WEB-INF\classes of each web and
 define the path in the web.xml.
 
 Is there no *global* place for installing driver classes like this?
 
 Regards,
 Martin Jussel
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Listeners in the WARP Connector?

2002-02-07 Thread Mark R. Diggory

I've successflly set up tomcat to server user public_html directories 
using the example in the docmentation.

However, this doesn't seem to work as well when I try it through my WARP 
connection.

Is this possible? Any tips?

  !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0/

!-- Replace localhost with what your Apache ServerName is set 
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache debug=0 appBase=webapps

!-- Attempt to define a default virtual host and a listener to 
map the user dir's  through the apache connector--
  Host name=Apache debug=0 appBase=webapps unpackWARs=true
Listener className=org.apache.catalina.startup.UserConfig
directoryName=public_html
homeBase=/home/login
userClass=org.apache.catalina.startup.HomesUserDatabase/
/Host

/Engine

  /Service

-Mark Diggory



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: Tomcat 3.3a IIS JDBC

2002-02-07 Thread Martin Jussel

Hi,

- There are only *.class files in the dir and no jar's ...
- The driver should be usable from different webapps

Martin



-Ursprüngliche Nachricht-
Von: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 07. Februar 2002 18:37
An: Tomcat Users List
Betreff: RE: Tomcat 3.3a  IIS  JDBC


put the jar file in the WEB-INF/lib directory of your webapp..

Mvgr,
Martin

 -Original Message-
 From: Martin Jussel [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 18:42
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.3a  IIS  JDBC
 
 
 Hi,
 
 I'm a newbie: I installed Tomcat and the IIS redirector successfully
and
 found the solution to host multiple webs with this configuration. But
 now I have to install a JDBC driver (SQLBase) and to get it run, I
found
 only the solution to copy the complete JDBC driver path
 (com.centurasoft.java.sqlbase) to the WEB-INF\classes of each web and
 define the path in the web.xml.
 
 Is there no *global* place for installing driver classes like this?
 
 Regards,
 Martin Jussel
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3a IIS JDBC

2002-02-07 Thread colin . madere

Your JDBC driver should have come in a .jar file (or multiples .jar files)
and those should be put in the TOMCAT_HOME/lib/common directory (there are
README files in the lib/ tree explaining what all the directories in there
are for).

Colin

 --
 From: Martin Jussel[SMTP:[EMAIL PROTECTED]]
 Reply To: Tomcat Users List
 Sent: Thursday, February 07, 2002 11:48 AM
 To:   Tomcat Users List
 Subject:  AW: Tomcat 3.3a  IIS  JDBC
 
 Hi,
 
 - There are only *.class files in the dir and no jar's ...
 - The driver should be usable from different webapps
 
 Martin
 
 
 
 -Ursprüngliche Nachricht-
 Von: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 07. Februar 2002 18:37
 An: Tomcat Users List
 Betreff: RE: Tomcat 3.3a  IIS  JDBC
 
 
 put the jar file in the WEB-INF/lib directory of your webapp..
 
 Mvgr,
 Martin
 
  -Original Message-
  From: Martin Jussel [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 07, 2002 18:42
  To: [EMAIL PROTECTED]
  Subject: Tomcat 3.3a  IIS  JDBC
  
  
  Hi,
  
  I'm a newbie: I installed Tomcat and the IIS redirector successfully
 and
  found the solution to host multiple webs with this configuration. But
  now I have to install a JDBC driver (SQLBase) and to get it run, I
 found
  only the solution to copy the complete JDBC driver path
  (com.centurasoft.java.sqlbase) to the WEB-INF\classes of each web and
  define the path in the web.xml.
  
  Is there no *global* place for installing driver classes like this?
  
  Regards,
  Martin Jussel
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: Tomcat 3.3a IIS JDBC

2002-02-07 Thread Martin Jussel

Hi,

Did it but nothing changed (Tomcat was restarted). Is there no
additional setup necessary (editing server.xml, etc)?

Martin


-Ursprüngliche Nachricht-
Von: Randy Layman [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 07. Februar 2002 17:57
An: 'Tomcat Users List'
Betreff: RE: Tomcat 3.3a  IIS  JDBC


TOMCAT_HOME\lib\common

 -Original Message-
 From: Martin Jussel [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 12:42 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.3a  IIS  JDBC
 
 
 Hi,
 
 I'm a newbie: I installed Tomcat and the IIS redirector 
 successfully and
 found the solution to host multiple webs with this configuration. But
 now I have to install a JDBC driver (SQLBase) and to get it 
 run, I found
 only the solution to copy the complete JDBC driver path
 (com.centurasoft.java.sqlbase) to the WEB-INF\classes of each web and
 define the path in the web.xml.
 
 Is there no *global* place for installing driver classes like this?
 
 Regards,
 Martin Jussel
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Using Tomcat 3.3 with apache http server 1.3

2002-02-07 Thread Miguel Paulino Gómez Herrero

Hello,

I'm integrating Tomcat with a apache http server, and i it don't
work well, when i try to run a servlet, or to get a document of the tomcat
context I always obtain the same response: 403 Forbidden You don't have
permission to access /forcap on this server.

I'm using a custom context that works fine if i use
http://localhost:8080/forcap, but if i try to get http://localhost/forcap I
403 Forbidden .

I use Apache tomcat 3.3, apache http server 1.3.22, jdk 1.22,
running on a linux slackware 8.0.

Anyone knows the reason?


Thanks in advance
Miguel


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Newbie problem with reading init params

2002-02-07 Thread Dominik Jednoralski

Hey Guys,

I have a problem with getting my init-params from the web.xml-file.
These are the parameters I inserted into the
webapps/root/web-inf/web.xml-file:

web-app
  servlet
servlet-nameShowMsg/servlet-name
servlet-classlimeservlets.ShowMessage/servlet-class
init-param
  param-namemessage/param-name
  param-valueNerv-Serv/param-value
/init-param
init-param
  param-namerepeats/param-name
  param-value5/param-value
/init-param
  /servlet
/web-app

Now I failed to read these parameters with the follwing servlet:


package limeservlets;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

 public class ShowMessage extends HttpServlet {
private String message;
private String defaultMessage = Leider keine Nachricht.;
private int repeats = 1;

public void init (ServletConfig config) throws ServletException{
   super.init(config);
   message = config.getInitParameter(message);
   if (message == null) {
message = defaultMessage;
   }

   try {
 String repeatString = config.getInitParameter (repeats);
 repeats = Integer.parseInt(repeatString);
   } catch (NumberFormatException nfe){}
}

public void doGet (HttpServletRequest request, HttpServletResponse
response)
   throws ServletException, IOException{
response.setContentType(text/html);
PrintWriter out = response.getWriter();
String title = The Servlet which shows a message!;

out.println(ServletUtilities.headWithTitle(title) +
body bgcolor=#fdf5f6\nh1+ title + /h1br);
for (int i = 0; i  repeats; i ++) {
out.println(message + br);
}
out.println(/body/html);
}
 }


Does anyone know the reason for that? I for myself don't have a clue- I'm
not really
into configuring servers...

Dominik Jednoralski

. Lime Design Mediengestaltung
. Lilienstr. 23
. 63768 Hvsbach
. Tel. 06021.550470

. visit www.lime-design.de

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: Tomcat 3.3a IIS JDBC

2002-02-07 Thread Martin Jussel

Sorry but there is no .jar file and the driver works while copying the
stuff in WEB-INF/classes of each web. So it looks like that jar files
are not needed to get tomcat running. Am I right? Otherwise: is it
possible to create a jar file myself if it's a Tomcat must-have?

Martin



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 07. Februar 2002 18:49
An: [EMAIL PROTECTED]
Betreff: RE: Tomcat 3.3a  IIS  JDBC


Your JDBC driver should have come in a .jar file (or multiples .jar
files)
and those should be put in the TOMCAT_HOME/lib/common directory (there
are
README files in the lib/ tree explaining what all the directories in
there
are for).

Colin

 --
 From: Martin Jussel[SMTP:[EMAIL PROTECTED]]
 Reply To: Tomcat Users List
 Sent: Thursday, February 07, 2002 11:48 AM
 To:   Tomcat Users List
 Subject:  AW: Tomcat 3.3a  IIS  JDBC
 
 Hi,
 
 - There are only *.class files in the dir and no jar's ...
 - The driver should be usable from different webapps
 
 Martin
 
 
 
 -Ursprüngliche Nachricht-
 Von: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 07. Februar 2002 18:37
 An: Tomcat Users List
 Betreff: RE: Tomcat 3.3a  IIS  JDBC
 
 
 put the jar file in the WEB-INF/lib directory of your webapp..
 
 Mvgr,
 Martin
 
  -Original Message-
  From: Martin Jussel [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 07, 2002 18:42
  To: [EMAIL PROTECTED]
  Subject: Tomcat 3.3a  IIS  JDBC
  
  
  Hi,
  
  I'm a newbie: I installed Tomcat and the IIS redirector successfully
 and
  found the solution to host multiple webs with this configuration.
But
  now I have to install a JDBC driver (SQLBase) and to get it run, I
 found
  only the solution to copy the complete JDBC driver path
  (com.centurasoft.java.sqlbase) to the WEB-INF\classes of each web
and
  define the path in the web.xml.
  
  Is there no *global* place for installing driver classes like this?
  
  Regards,
  Martin Jussel
  
  
  --
  To unsubscribe:
mailto:[EMAIL PROTECTED]
  For additional commands:
mailto:[EMAIL PROTECTED]
  Troubles with the list:
mailto:[EMAIL PROTECTED]
  
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Remote Stop and Start Tomcat

2002-02-07 Thread Jack Li

Hi,

How to remote stop and start tomcat as ISP does? Come ISP have contorl
panels that allow user to stop and start the tomcat.

Thanks,
Jack Li

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3a IIS JDBC

2002-02-07 Thread Larry Isaacs

See method #1 under:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_classes

You must create the classes directory yourself, under
TOMCAT_HOME/lib/common for example.  It is not present by default.
During startup Tomcat 3.3 looks for such classes directories and
includes it in the corresponding classloader if found.

Cheers,
Larry



 -Original Message-
 From: Martin Jussel [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 1:11 PM
 To: Tomcat Users List
 Subject: AW: Tomcat 3.3a  IIS  JDBC
 
 
 Sorry but there is no .jar file and the driver works while copying the
 stuff in WEB-INF/classes of each web. So it looks like that jar files
 are not needed to get tomcat running. Am I right? Otherwise: is it
 possible to create a jar file myself if it's a Tomcat must-have?
 
 Martin
 
 
 
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 07. Februar 2002 18:49
 An: [EMAIL PROTECTED]
 Betreff: RE: Tomcat 3.3a  IIS  JDBC
 
 
 Your JDBC driver should have come in a .jar file (or multiples .jar
 files)
 and those should be put in the TOMCAT_HOME/lib/common directory (there
 are
 README files in the lib/ tree explaining what all the directories in
 there
 are for).
 
 Colin
 
  --
  From:   Martin Jussel[SMTP:[EMAIL PROTECTED]]
  Reply To:   Tomcat Users List
  Sent:   Thursday, February 07, 2002 11:48 AM
  To: Tomcat Users List
  Subject:AW: Tomcat 3.3a  IIS  JDBC
  
  Hi,
  
  - There are only *.class files in the dir and no jar's ...
  - The driver should be usable from different webapps
  
  Martin
  
  
  
  -Ursprüngliche Nachricht-
  Von: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 07. Februar 2002 18:37
  An: Tomcat Users List
  Betreff: RE: Tomcat 3.3a  IIS  JDBC
  
  
  put the jar file in the WEB-INF/lib directory of your webapp..
  
  Mvgr,
  Martin
  
   -Original Message-
   From: Martin Jussel [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, February 07, 2002 18:42
   To: [EMAIL PROTECTED]
   Subject: Tomcat 3.3a  IIS  JDBC
   
   
   Hi,
   
   I'm a newbie: I installed Tomcat and the IIS redirector 
 successfully
  and
   found the solution to host multiple webs with this configuration.
 But
   now I have to install a JDBC driver (SQLBase) and to get it run, I
  found
   only the solution to copy the complete JDBC driver path
   (com.centurasoft.java.sqlbase) to the WEB-INF\classes of each web
 and
   define the path in the web.xml.
   
   Is there no *global* place for installing driver classes 
 like this?
   
   Regards,
   Martin Jussel
   
   
   --
   To unsubscribe:
 mailto:[EMAIL PROTECTED]
   For additional commands:
 mailto:[EMAIL PROTECTED]
   Troubles with the list:
 mailto:[EMAIL PROTECTED]
   
   
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Does Tomcat maintain session values? Repost:

2002-02-07 Thread Hari S

Hi,

  Can someone address this issue. I have a nearing
deadline. itz urgent. pls.

Thanks
Hari

--- Hari S [EMAIL PROTECTED] wrote:
 Hi,
 
  I use JSP pages which maintain session values in a
 java class using JSP:useBean
 
 My pages work perfectly in other Servers. But in
 Tomcat, it doesn't.
 
 problem 1: it loses my session variable values and
 displays my pages with their default setting.  worse
 is it loses track and displays with previously
 navigated page values.
 
Is using Hidden fields the only solution in
 Tomcat?
 Can's sessions be maintained  or used in Tomcat
 server?
 
 I use Tomcat 4.0.1 server
 
 Problem 2: I guess since it doesn't store session
 values, when I press Submit button twice to refresh
 the page, It throws me
 java.lang.illegalStateException
 with following message:
 
 How Can I avoid this?
 Thanks.
 
 Error message is:
 java.lang.IllegalStateException
at

org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFacade.java:173)
   at

org.apache.jsp.orderdetailvalidate$jsp._jspService(orderdetailvalidate$jsp.java:875)
   at

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
   at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
   at

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
   at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at

org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
   at

org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
   at java.lang.Thread.run(Thread.java:484)
 
 
 
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Unusual Problem: I can fetch the actual JSP files from server to client

2002-02-07 Thread Haresh Gujarathi

Hi,

I have an unusual problem;

I have a following html file which displays frames in the browser window.


index.html 

!-- frames --
frameset  rows=50%,*
frame name=1 src=top.html marginwidth=10 marginheight=10
scrolling=auto frameborder=0
 frame name=2 src=welcome.jsp marginwidth=10 marginheight=10
scrolling=auto frameborder=0
/frameset
/frameset


I am using Apache Web server v1.3.12 and tomcat v3.2.1

when I click on http://www.mysite.com/index.html

the frames get displayed and the html corresponding to welcome.jsp gets
rendered in the frames.

Then I select File Menu - Save As menu. To save the html file. The browser
saves the index.html, and also it saves the actual welcome.jsp (from the
server) on the local file system.

What can be the reason of it fetching the actual welcome.jsp from server to
client and saving it?
Am I missing some setting to be done at apache or tomcat?


-- haresh






AW: Tomcat 3.3a IIS JDBC

2002-02-07 Thread Martin Jussel

Thanx. That's working!!!

Martin


-Ursprüngliche Nachricht-
Von: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 07. Februar 2002 19:17
An: 'Tomcat Users List'
Betreff: RE: Tomcat 3.3a  IIS  JDBC


See method #1 under:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configur
ing_classes

You must create the classes directory yourself, under
TOMCAT_HOME/lib/common for example.  It is not present by default.
During startup Tomcat 3.3 looks for such classes directories and
includes it in the corresponding classloader if found.

Cheers,
Larry



 -Original Message-
 From: Martin Jussel [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 1:11 PM
 To: Tomcat Users List
 Subject: AW: Tomcat 3.3a  IIS  JDBC
 
 
 Sorry but there is no .jar file and the driver works while copying the
 stuff in WEB-INF/classes of each web. So it looks like that jar files
 are not needed to get tomcat running. Am I right? Otherwise: is it
 possible to create a jar file myself if it's a Tomcat must-have?
 
 Martin
 
 
 
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 07. Februar 2002 18:49
 An: [EMAIL PROTECTED]
 Betreff: RE: Tomcat 3.3a  IIS  JDBC
 
 
 Your JDBC driver should have come in a .jar file (or multiples .jar
 files)
 and those should be put in the TOMCAT_HOME/lib/common directory (there
 are
 README files in the lib/ tree explaining what all the directories in
 there
 are for).
 
 Colin
 
  --
  From:   Martin Jussel[SMTP:[EMAIL PROTECTED]]
  Reply To:   Tomcat Users List
  Sent:   Thursday, February 07, 2002 11:48 AM
  To: Tomcat Users List
  Subject:AW: Tomcat 3.3a  IIS  JDBC
  
  Hi,
  
  - There are only *.class files in the dir and no jar's ...
  - The driver should be usable from different webapps
  
  Martin
  
  
  
  -Ursprüngliche Nachricht-
  Von: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 07. Februar 2002 18:37
  An: Tomcat Users List
  Betreff: RE: Tomcat 3.3a  IIS  JDBC
  
  
  put the jar file in the WEB-INF/lib directory of your webapp..
  
  Mvgr,
  Martin
  
   -Original Message-
   From: Martin Jussel [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, February 07, 2002 18:42
   To: [EMAIL PROTECTED]
   Subject: Tomcat 3.3a  IIS  JDBC
   
   
   Hi,
   
   I'm a newbie: I installed Tomcat and the IIS redirector 
 successfully
  and
   found the solution to host multiple webs with this configuration.
 But
   now I have to install a JDBC driver (SQLBase) and to get it run, I
  found
   only the solution to copy the complete JDBC driver path
   (com.centurasoft.java.sqlbase) to the WEB-INF\classes of each web
 and
   define the path in the web.xml.
   
   Is there no *global* place for installing driver classes 
 like this?
   
   Regards,
   Martin Jussel
   
   
   --
   To unsubscribe:
 mailto:[EMAIL PROTECTED]
   For additional commands:
 mailto:[EMAIL PROTECTED]
   Troubles with the list:
 mailto:[EMAIL PROTECTED]
   
   
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3a IIS JDBC

2002-02-07 Thread colin . madere

the lib/common is where all your web apps will look if a class is not found
in it's WEB-INF/classes dir.

It's there so you can share and easily maintain common libraries.  There is
no functional difference that I know of except that the WEB-INF solution
means the server has a copy of those classes loaded for every web app rather
than just one copy being used by all.

The jar file is just a nice clean way to put a bunch of classes (and other
files) in a single place rather than having to do the directory stuff you
are having to do.  You might be able to jar that class directory and put the
resulting .jar file in the lib/common dir and have it work.  Try it! :)

Colin

 --
 From: Martin Jussel[SMTP:[EMAIL PROTECTED]]
 Reply To: Tomcat Users List
 Sent: Thursday, February 07, 2002 12:11 PM
 To:   Tomcat Users List
 Subject:  AW: Tomcat 3.3a  IIS  JDBC
 
 Sorry but there is no .jar file and the driver works while copying the
 stuff in WEB-INF/classes of each web. So it looks like that jar files
 are not needed to get tomcat running. Am I right? Otherwise: is it
 possible to create a jar file myself if it's a Tomcat must-have?
 
 Martin
 
 
 
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 07. Februar 2002 18:49
 An: [EMAIL PROTECTED]
 Betreff: RE: Tomcat 3.3a  IIS  JDBC
 
 
 Your JDBC driver should have come in a .jar file (or multiples .jar
 files)
 and those should be put in the TOMCAT_HOME/lib/common directory (there
 are
 README files in the lib/ tree explaining what all the directories in
 there
 are for).
 
 Colin
 
  --
  From:   Martin Jussel[SMTP:[EMAIL PROTECTED]]
  Reply To:   Tomcat Users List
  Sent:   Thursday, February 07, 2002 11:48 AM
  To: Tomcat Users List
  Subject:AW: Tomcat 3.3a  IIS  JDBC
  
  Hi,
  
  - There are only *.class files in the dir and no jar's ...
  - The driver should be usable from different webapps
  
  Martin
  
  
  
  -Ursprüngliche Nachricht-
  Von: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 07. Februar 2002 18:37
  An: Tomcat Users List
  Betreff: RE: Tomcat 3.3a  IIS  JDBC
  
  
  put the jar file in the WEB-INF/lib directory of your webapp..
  
  Mvgr,
  Martin
  
   -Original Message-
   From: Martin Jussel [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, February 07, 2002 18:42
   To: [EMAIL PROTECTED]
   Subject: Tomcat 3.3a  IIS  JDBC
   
   
   Hi,
   
   I'm a newbie: I installed Tomcat and the IIS redirector successfully
  and
   found the solution to host multiple webs with this configuration.
 But
   now I have to install a JDBC driver (SQLBase) and to get it run, I
  found
   only the solution to copy the complete JDBC driver path
   (com.centurasoft.java.sqlbase) to the WEB-INF\classes of each web
 and
   define the path in the web.xml.
   
   Is there no *global* place for installing driver classes like this?
   
   Regards,
   Martin Jussel
   
   
   --
   To unsubscribe:
 mailto:[EMAIL PROTECTED]
   For additional commands:
 mailto:[EMAIL PROTECTED]
   Troubles with the list:
 mailto:[EMAIL PROTECTED]
   
   
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: way to get list of all session variables and values?

2002-02-07 Thread August Detlefsen

Try this in your JSP: 

%
if (true) {  //turn output on and off

Enumeration e = session.getAttributeNames();
while (e.hasMoreElements()) {
String name  = (String)e.nextElement();
Object value = session.getAttribute(name);
%
B%= name % = /B%= value %BR
%
}
}
%


--- C Cayetano [EMAIL PROTECTED] wrote:
 All,
 
 Is there a wat to get a listing of all session variables and their
 values?
 
 Thanks
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Error 200?

2002-02-07 Thread Gary Lawrence Murphy

 A == Anton Brazhnyk [EMAIL PROTECTED] writes:

A Headers cant contain blank llines, and I have no idea what your
A client wanted with that Error 200. 

Precisely; this error appears to be generated from either Tomcat or
Jasper and is not likely in my client's code (it would be highly
irregular of them to use numerical codes)

Because the error is being emitted across the servlet output stream
during the transmission of headers, and because it is wrapped in
blank lines, it appears on the page as content.

if you do a google search for JSP Error 200 you will see they are
not alone: This appears to be a common problem with JSP pages, so its
surprising no one has reported it and that the fix is not common
knowledge.  

My guess is that it is the sort of error that crops up due to
mis-configuration and most sites discover the config glitch, fix it,
and the code goes away so they never report it.

What I'm hoping is someone familiar with the sources can check the
tomcat/jasper sources to see if it is in there somewhere (or maybe
mod_jk?) as this error is itself an error: It should report to the
stderr log, not the servlet output stream.

-- 
Gary Lawrence Murphy [EMAIL PROTECTED] TeleDynamics Communications Inc
Business Innovations Through Open Source Systems: http://www.teledyn.com
Computers are useless.  They can only give you answers.(Pablo Picasso)


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: servlet-path, path-info and Filters

2002-02-07 Thread Russ Trotter

First off, changed group To: to tomcat-user...

Now to your response:

That's the thing, I have no servlet-mapping (or any servlets defined at all
for that matter!) in my example.  I'm trying to put a filter on static
content.  Here's my web.xml

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  web-app_2_3.dtd
web-app
  filter
filter-nametestFilter/filter-name
filter-classTestFilter/filter-class
  /filter
  filter-mapping
filter-nametestFilter/filter-name
url-pattern/files/*/url-pattern
  /filter-mapping
/web-app

My testFilter does nothing but print the getServletPath() and
getPathInfo(), then call doFilter() to pass the request down the chain.

If my request is /context/files/foo.html, Tomcat 4.0.1 says the servlet
path is /files/foo.html and path-info is null.   What am I missing here?

thanks,
russ





- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 11:02 AM
Subject: Re: servlet-path, path-info and Filters


  Hello again Craig,
 
Well, after going back into my filter setup again, I see that for
Tomcat
  4.0.1, i have the same setup that I describe in my example below (e.g. a
  url-pattern of /files/* for the filter-mapping element in web.xml)
but
  the call to getServletPath() inside that filter returns /files/foo.jpg
and
  getPathInfo() returns null for a request of /context/files/foo.jpg.
 

 It's the servlet-mapping pattern that drives getServletPath() and
 getPathInfo(), not the filter-mapping pattern.  What's your servlet
 mapping look like?

Where's the error? (me, Tomcat, the spec, or all of the above) :-)
 
  russ
 

 Craig (this is straying into a topic for TOMCAT-USER instead of here ...)

 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




How do you debug a servlet?

2002-02-07 Thread Chris Gokey

I've got an application where we are getting large number of hits per
day and we are running into a problem with the Tomcat process suddenly
taking off and using a huge amount of CPU resources (as much as 98%
using top.)..  We are using Apache, mod_jk, and Tomcat 3.3 on Solaris 7.

Is there a way to attach a debugger to the Tomcat process and poke
around a try to figure out exactly is causing this problem? 

Unfortunately only under a high load will this problem occur and for
some reason production users seem to push the right buttons to make
these things happen, despite our load testing we have done on our
development machine :)

Any suggestions would be greatly appreciated

Chris






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Can a servlet exit?

2002-02-07 Thread Gary Lawrence Murphy

 C == Craig R McClanahan [EMAIL PROTECTED] writes:

C The only choice (and the one that Tomcat implements when you
C reload a webapp) is to shut down the application, throw away
C its class loader, and load things up again.

Short of upgrading to Tomcat 4 to get the Container Manager, this
sounds like exactly the process we'd need; where can I learn more
about this process?

-- 
Gary Lawrence Murphy [EMAIL PROTECTED] TeleDynamics Communications Inc
Business Innovations Through Open Source Systems: http://www.teledyn.com
Computers are useless.  They can only give you answers.(Pablo Picasso)


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Newbie problem with reading init params

2002-02-07 Thread Chinni . Venkateswara



You actually read them from ServletContext not from the ServletConfig.

You can get the Servlet Context by doing...

ServletContext sc = getServletContext();


Hope this helps.

-Chinni.




   

Dominik

Jednoralski  To: [EMAIL PROTECTED]

tomcat@lime-cc:   

design.de   Subject: Newbie problem with reading init 

 params

02/07/02   

12:02 PM   

Please 

respond to 

Tomcat Users   

List   

   

   





Hey Guys,

I have a problem with getting my init-params from the web.xml-file.
These are the parameters I inserted into the
webapps/root/web-inf/web.xml-file:

web-app
  servlet
servlet-nameShowMsg/servlet-name
servlet-classlimeservlets.ShowMessage/servlet-class
init-param
  param-namemessage/param-name
  param-valueNerv-Serv/param-value
/init-param
init-param
  param-namerepeats/param-name
  param-value5/param-value
/init-param
  /servlet
/web-app

Now I failed to read these parameters with the follwing servlet:


package limeservlets;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

 public class ShowMessage extends HttpServlet {
private String message;
private String defaultMessage = Leider keine Nachricht.;
private int repeats = 1;

public void init (ServletConfig config) throws ServletException{
   super.init(config);
   message = config.getInitParameter(message);
   if (message == null) {
message = defaultMessage;
   }

   try {
 String repeatString = config.getInitParameter
(repeats);
 repeats = Integer.parseInt(repeatString);
   } catch (NumberFormatException nfe){}
}

public void doGet (HttpServletRequest request, HttpServletResponse
response)
   throws ServletException, IOException{
   response.setContentType(text/html);
   PrintWriter out = response.getWriter();
   String title = The Servlet which shows a message!;

   out.println(ServletUtilities.headWithTitle(title) +
   body bgcolor=#fdf5f6\nh1+ title + /h1br);
   for (int i = 0; i  repeats; i ++) {
   out.println(message + br);
   }
   out.println(/body/html);
}
 }


Does anyone know the reason for that? I for myself don't have a clue-
I'm
not really
into configuring servers...

Dominik Jednoralski

. Lime Design Mediengestaltung
. Lilienstr. 23
. 63768 Hvsbach
. Tel. 06021.550470

. visit www.lime-design.de

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




problem with WebAppConnection at boot time

2002-02-07 Thread Cindy Ballreich

I've been reading through the archives and I've seen a lot of questions
about using mod_webapp. In general, mod_webapp seems to be working pretty
well for me. My problem is that it doesn't seem to be able to make a
connection when httpd is started at boot time. 

I'm using RedHat 7.0 and I've written init.d scripts for both Tomcat 4.0.1
and Apache 1.3.19 (both installed manually rather than from RPMs). Tomcat
starts before Apache (Tomcat is S80 and Apache is S89). Both seem to be
starting correctly and both can be accessed directly from their respective
ports. The problem is that the Apache error_log has a string of entries
like this...
[Thu Feb  7 10:20:24 2002] [error] Connection conn cannot connect
[Thu Feb  7 10:20:24 2002] [error] Cannot open connection conn

... and when I try to access a jsp from one of the contexts defined by
WebAppDeploy in Apache, I get a WebApp: Error 404 (File: wa_request.c
Line: 198) Web-application not yet deployed page, and an entry in the log
like this one...
[Thu Feb  7 10:20:42 2002] [error] Web-application not yet deployed

Interestingly, viewing the source of this error page gives me the html that
should be produced by the jsp application I was trying to access!!

Restarting my web server seems to correct this problem. The connection is
made and my jsp files are accessible as I would expect. This indicates to
me that my configuration is essentially correct, but something is
preventing the connection from being made at boot time. Could Tomcat not be
fully loaded when Apache is trying to start? Should I put more space
between the init.d scripts? Are there other daemons that need to be started
in order for webapp to deploy?

Any suggestions would be greatly appreciated. 

Cindy

By the way, mod_webapp is version 1.0.1 built from source with -DEAPI.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




connection reset by peer: socket write error

2002-02-07 Thread Xie, David (IPCG-NJ)

Hi all,

Would anyone please tell me what causes the exceptions java.net.SocketException: 
Connection reset by peer and Connection aborted by peer socket write error?  How do 
I avoid such problem?  Thanks
in advance for you help.

David


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: way to get list of all session variables and values?

2002-02-07 Thread C Cayetano

That worked great! Thanks.

 -Original Message-
 From: August Detlefsen [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 10:40 AM
 To: Tomcat Users List
 Subject: Re: way to get list of all session variables and values?
 
 
 Try this in your JSP: 
 
 %
 if (true) {  //turn output on and off
 
 Enumeration e = session.getAttributeNames();
 while (e.hasMoreElements()) {
 String name  = (String)e.nextElement();
 Object value = session.getAttribute(name);
 %
 B%= name % = /B%= value %BR
 %
 }
 }
 %
 
 
 --- C Cayetano [EMAIL PROTECTED] wrote:
  All,
  
  Is there a wat to get a listing of all session variables and their
  values?
  
  Thanks
  
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Send FREE Valentine eCards with Yahoo! Greetings!
 http://greetings.yahoo.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: problem with WebAppConnection at boot time

2002-02-07 Thread John Wadkin

The error Web-application not yet deployed is a weird and wacky one. It
seems to come and go. If you restart rather than stop and start Apache at
the command line, it seems to manifest itself. It sometimes disappears of
its own accord with no intervention from me!

As I understand it, it's caused by Apache starting before TomCat has fully
loaded. But this wouldn't explain its weird behaviour. I think it's a known
bug that's fixed in TC 4.0.1

My rc script starts both TomCat and Apache (i.e. not separate scripts) with
a sleep 10 between the commands. This appears to work but who knows :) I
don't think further separating the scripts (i.e. S2 and S99) would make much
difference in terms of time.

 
John
 
Quote for the week:
 
Experience is not what happens to a man; it is what a man does with what
happens to him.
 
Aldous Huxley, Texts and Pretexts , (1932) p. 5


-Original Message-
From: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
Sent: 07 February 2002 19:30
To: [EMAIL PROTECTED]
Subject: problem with WebAppConnection at boot time


I've been reading through the archives and I've seen a lot of questions
about using mod_webapp. In general, mod_webapp seems to be working pretty
well for me. My problem is that it doesn't seem to be able to make a
connection when httpd is started at boot time. 

I'm using RedHat 7.0 and I've written init.d scripts for both Tomcat 4.0.1
and Apache 1.3.19 (both installed manually rather than from RPMs). Tomcat
starts before Apache (Tomcat is S80 and Apache is S89). Both seem to be
starting correctly and both can be accessed directly from their respective
ports. The problem is that the Apache error_log has a string of entries
like this...
[Thu Feb  7 10:20:24 2002] [error] Connection conn cannot connect
[Thu Feb  7 10:20:24 2002] [error] Cannot open connection conn

... and when I try to access a jsp from one of the contexts defined by
WebAppDeploy in Apache, I get a WebApp: Error 404 (File: wa_request.c
Line: 198) Web-application not yet deployed page, and an entry in the log
like this one...
[Thu Feb  7 10:20:42 2002] [error] Web-application not yet deployed

Interestingly, viewing the source of this error page gives me the html that
should be produced by the jsp application I was trying to access!!

Restarting my web server seems to correct this problem. The connection is
made and my jsp files are accessible as I would expect. This indicates to
me that my configuration is essentially correct, but something is
preventing the connection from being made at boot time. Could Tomcat not be
fully loaded when Apache is trying to start? Should I put more space
between the init.d scripts? Are there other daemons that need to be started
in order for webapp to deploy?

Any suggestions would be greatly appreciated. 

Cindy

By the way, mod_webapp is version 1.0.1 built from source with -DEAPI.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




new

2002-02-07 Thread U

i'm new to this list so ...
after downloading the tomcat 4.0.1 for win32 it won't install not being able to find 
the JDK.  but i do have the JSE 1.4 installed.
i assume i need to set some environment variable.
java_home points to JSE 1.4, etc.
any suggestions?
thanks.




RE: new

2002-02-07 Thread Brian Adams

Hi U,
Probably a Registry hack/bug that is not correct.  
check your \HKEY_Local_Machine\SOFTWARE\JavaSoft
check that default values are pointing to correct JRE Keys and that their
values are pointing to valid jdk paths.
If that does not work download the src version and install it...
B


-Original Message-
From: U [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 1:51 PM
To: [EMAIL PROTECTED]
Subject: new


i'm new to this list so ...
after downloading the tomcat 4.0.1 for win32 it won't install not being able
to find the JDK.  but i do have the JSE 1.4 installed.
i assume i need to set some environment variable.
java_home points to JSE 1.4, etc.
any suggestions?
thanks.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: problem with WebAppConnection at boot time

2002-02-07 Thread john-paul delaney


FWIW, I've noticed that the Tomcat-Apache sequence works when the text:

Starting service Tomcat-Apache
Apache Tomcat/4.0.1

is written to the $CATALINA_HOME/logs/catalina.out

log.  Would it be possible to check in the daemon script for this/or whatever process 
triggers it - in order to complete successfully?

thanks
/j-p.




On Thu, 7 Feb 2002, John Wadkin wrote:

 The error Web-application not yet deployed is a weird and wacky one. It
 seems to come and go. If you restart rather than stop and start Apache at
 the command line, it seems to manifest itself. It sometimes disappears of
 its own accord with no intervention from me!
 
 As I understand it, it's caused by Apache starting before TomCat has fully
 loaded. But this wouldn't explain its weird behaviour. I think it's a known
 bug that's fixed in TC 4.0.1
 
 My rc script starts both TomCat and Apache (i.e. not separate scripts) with
 a sleep 10 between the commands. This appears to work but who knows :) I
 don't think further separating the scripts (i.e. S2 and S99) would make much
 difference in terms of time.
 
  
 John
  
 Quote for the week:
  
 Experience is not what happens to a man; it is what a man does with what
 happens to him.
  
 Aldous Huxley, Texts and Pretexts , (1932) p. 5
 
 
 -Original Message-
 From: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
 Sent: 07 February 2002 19:30
 To: [EMAIL PROTECTED]
 Subject: problem with WebAppConnection at boot time
 
 
 I've been reading through the archives and I've seen a lot of questions
 about using mod_webapp. In general, mod_webapp seems to be working pretty
 well for me. My problem is that it doesn't seem to be able to make a
 connection when httpd is started at boot time. 
 
 I'm using RedHat 7.0 and I've written init.d scripts for both Tomcat 4.0.1
 and Apache 1.3.19 (both installed manually rather than from RPMs). Tomcat
 starts before Apache (Tomcat is S80 and Apache is S89). Both seem to be
 starting correctly and both can be accessed directly from their respective
 ports. The problem is that the Apache error_log has a string of entries
 like this...
 [Thu Feb  7 10:20:24 2002] [error] Connection conn cannot connect
 [Thu Feb  7 10:20:24 2002] [error] Cannot open connection conn
 
 ... and when I try to access a jsp from one of the contexts defined by
 WebAppDeploy in Apache, I get a WebApp: Error 404 (File: wa_request.c
 Line: 198) Web-application not yet deployed page, and an entry in the log
 like this one...
 [Thu Feb  7 10:20:42 2002] [error] Web-application not yet deployed
 
 Interestingly, viewing the source of this error page gives me the html that
 should be produced by the jsp application I was trying to access!!
 
 Restarting my web server seems to correct this problem. The connection is
 made and my jsp files are accessible as I would expect. This indicates to
 me that my configuration is essentially correct, but something is
 preventing the connection from being made at boot time. Could Tomcat not be
 fully loaded when Apache is trying to start? Should I put more space
 between the init.d scripts? Are there other daemons that need to be started
 in order for webapp to deploy?
 
 Any suggestions would be greatly appreciated. 
 
 Cindy
 
 By the way, mod_webapp is version 1.0.1 built from source with -DEAPI.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


---
 JUSTATEST Art Online
  www.justatest.com




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




I'm stuck. Apache-tom4.0 virtual hosts

2002-02-07 Thread chad kellerman

Hey guys,

I am stuck again.  This time with the virtual host section in apache.  Here is 
what I got:

 VirtualHost jakarta.domain.com
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /home/jak/jakarta-www/examples/
User jak
Group jakartagrp
ServerName jakarta.domain.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/jak/jakarta-www
TransferLog /home/jak/jakarta-logs/access-log
ScriptAlias /cgi-bin/ /home/jak/jakarta-www/cgi-bin/
/VirtualHost

an /etc/httpd/bin/apachectl configtest says it does not like

WebAppDeploy examples warpConnection /home/jak/jakarta-www/examples/


  I am trying to get tomcat working with multiple virtual hosts.

I have the module loading fine.  But I haven't found how to configure httpd.conf for 
tomcat as well as the server.xml file.

 Anyone get this working properly?  I on red hat.  But I would think the config 
should be similar on other os's..

Thanks for the info,

Chad



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Can a servlet exit? (Dynamic deploy ?)

2002-02-07 Thread Eli Spizzichino

Hi to all,
reading this mail and other I understand the version 3.3 and previous are 
unable to dynamic reload classes or init parameter without restart the 
whole application server.
Instead the nightly build of Tomcat the 4.0-20020124 is able dynamic load 
classes and web.xml etc.
Is this correct?
I not have big experience but what automatic WAR deploy is for?
And reloadable=true in server.xml?

Probably I misunderstand something, let me know

Eli


At 08.49 07/02/2002 -0800, you wrote:


On 7 Feb 2002, Gary Lawrence Murphy wrote:

  Date: 07 Feb 2002 01:55:42 -0500
  From: Gary Lawrence Murphy [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED],
   Gary Lawrence Murphy [EMAIL PROTECTED]
  To: Tomcat Users [EMAIL PROTECTED]
  Subject: Can a servlet exit?
 
 
  can a servlet remove itself?

No.  Java provides no means to remove an existing class from a class
loader, once it has been loaded.

   I have a situation where a servlet's
  configuration file may require on-the-fly edits, but the site runs
  dozens of servlets and we don't want to restart tomcat just to
  restart one webapp.
 
  Long term, we plan to re-write the servlet to include a reload
  function (the proper way to do this), but for now the easiest path
  would seem to be to have the servlet purge itself from the servlet
  container such that it will be completely reloaded on the next
  request.  Is this possible?
 

The only choice (and the one that Tomcat implements when you reload a
webapp) is to shut down the application, throw away its class loader, and
load things up again.

Craig

  --
  Gary Lawrence Murphy [EMAIL PROTECTED] TeleDynamics Communications Inc
  Business Innovations Through Open Source Systems: http://www.teledyn.com
  Computers are useless.  They can only give you answers.(Pablo Picasso)
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




TC4-Warp-Apache:Removed TC-Standalone Service

2002-02-07 Thread john-paul delaney


Hello List, newb question...

I've setup virtual hosts with tc-warp-apache by moving all my host elements into the 
Tomcat-Apache Connector Service element.  I then removed the Tomcat-Standalone 
Connector Service as I want Apache to be the webserver (i.e I don't need TC for that). 
 It appears to be working ok i.e. Apache handling all the static content and passing 
to TC for servlet/jsps.

My question is: Will I have problems with this setup?

thanks
/j-p.


---
 JUSTATEST Art Online
  www.justatest.com




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: I'm stuck. Apache-tom4.0 virtual hosts

2002-02-07 Thread Min Wang

try to set ServerName.

--- chad kellerman [EMAIL PROTECTED] wrote:
 Hey guys,
 
 I am stuck again.  This time with the virtual
 host section in apache.  Here is what I got:
 
  VirtualHost jakarta.domain.com
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy examples warpConnection
 /home/jak/jakarta-www/examples/
 User jak
 Group jakartagrp
 ServerName jakarta.domain.com
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/jak/jakarta-www
 TransferLog /home/jak/jakarta-logs/access-log
 ScriptAlias /cgi-bin/ /home/jak/jakarta-www/cgi-bin/
 /VirtualHost
 
 an /etc/httpd/bin/apachectl configtest says it does
 not like
 
 WebAppDeploy examples warpConnection
 /home/jak/jakarta-www/examples/
 
 
   I am trying to get tomcat working with
 multiple virtual hosts.
 
 I have the module loading fine.  But I haven't found
 how to configure httpd.conf for tomcat as well as
 the server.xml file.
 
  Anyone get this working properly?  I on red
 hat.  But I would think the config should be similar
 on other os's..
 
 Thanks for the info,
 
 Chad
 
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


=
Min Wang
(201)936-9888

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




WEB-INF/classes

2002-02-07 Thread Anja Falkner

Hello,

at setting up a new context for Tomcat, I must have forgotten something, because 
tomcat doesn't find my classes in WEB-INF/classes. The following fault appears:

login_0005ftest$jsp.java:71: Class org.apache.jsp.DBSConnect not found.
DBSConnect connect = new DBSConnect();

Until now I thought: When Tomcat is restarted, it recognizes the content in 
WEB-INF/classes. 

But perhaps I have to make some entries in server.xml or web.xml referring to this 
classes?

Thank you for any help

Anja   



servlet.jar and 3.3

2002-02-07 Thread Mario Felarca

Hello,

I had a quick question. We are migrating to Tomcat 3.3a and for some reason 
my servlets can't seem to see the servlet.jar, even though it is in the 
lib/common directory.

I am sure it is probably just a small configuration error on my part, but 
from the Tomcat Users Guide, it appears to me that the Webapp and 
Application classloaders should be able to see the Common classloader.

If anyone has seen this and could help me out, or if could point me in the 
right direction for the information, I would appreciate it.

Thanks in advance,

Mario-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: servlet.jar and 3.3

2002-02-07 Thread chad kellerman

Mario,

I had sort of the same problem yesterday.  Make sure your CLASSPATH is set 
correctly.

   For linux I put the CLASSPATH in /etc/profile and exported it and everything lit 
up.
   I am not sure about windows???

Chad

On Thu, 07 Feb 2002 14:44:55 -0600
Mario Felarca [EMAIL PROTECTED] wrote:

 Hello,
 
 I had a quick question. We are migrating to Tomcat 3.3a and for some reason 
 my servlets can't seem to see the servlet.jar, even though it is in the 
 lib/common directory.
 
 I am sure it is probably just a small configuration error on my part, but 
 from the Tomcat Users Guide, it appears to me that the Webapp and 
 Application classloaders should be able to see the Common classloader.
 
 If anyone has seen this and could help me out, or if could point me in the 
 right direction for the information, I would appreciate it.
 
 Thanks in advance,
 
 Mario-
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: WEB-INF/classes

2002-02-07 Thread Nancy Crisostomo Martinez

Anja,
If you are using Tomcat 3.3 you need to create an XML file (apps-applicationname.xml) 
where you have to declare the new context where your WEB-INF directory is...
Otherwise, if you are using Tomcat 3.2 or less, you have to modify the server.xml file 
using the new Context entry.

Is something like this:

Context path=/applicationname
   docBase=webapps/applicationname
  crossContext=false
debug=0
reloadable=true 
/Context

Hope this help you..

Anja Falkner wrote:

 Hello,

 at setting up a new context for Tomcat, I must have forgotten something, because 
tomcat doesn't find my classes in WEB-INF/classes. The following fault appears:

 login_0005ftest$jsp.java:71: Class org.apache.jsp.DBSConnect not found.
 DBSConnect connect = new 
DBSConnect();

 Until now I thought: When Tomcat is restarted, it recognizes the content in 
WEB-INF/classes.

 But perhaps I have to make some entries in server.xml or web.xml referring to this 
classes?

 Thank you for any help

 Anja



Re: servlet.jar and 3.3

2002-02-07 Thread Mario Felarca

At 03:45 PM 02/07/2002 -0500, you wrote:
Mario,

 I had sort of the same problem yesterday.  Make sure your CLASSPATH 
 is set correctly.

For linux I put the CLASSPATH in /etc/profile and exported it and 
 everything lit up.
I am not sure about windows???

I thought for Tomcat 3.3 it ignores your classpath. I am running it as a 
service, which in essence launches it from command line with the -classpath 
arg. The only thing of significance that I have on that parameter is the 
Tomcat/lib/tomcat.jar.

Do you know if you changed some other configuration as well?

Thanks,

Mario-



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: I'm stuck. Apache-tom4.0 virtual hosts

2002-02-07 Thread john-paul delaney


I'm a newbie with this but here's what I got...

The jakarta documentation says the Host element represents a Virtual Host.  One or 
more Host elements are nested inside an Engine element.

..and on an Engine element it says, Exactly one Engine element must be nested inside a 
Service element, following all of the corresponding Connector elements associated with 
a Service.

..and on a Connector it says, HTTP/1.1 and Warp are typical connectors.


So in the server.xml file, I used the Tomcat-Apache Service, and placed some Warp 
Connectors (making sure they utilized unique ports), one for each one of my virtual 
hosts within the service as follows:


  !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=false
 acceptCount=10 debug=0/

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8015 minProcessors=5 maxProcessors=75
 enableLookups=false
 acceptCount=10 debug=0/

!-- Replace localhost with what your Apache ServerName is set to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=www.myServer.com debug=99 appBase=webapps


Then I added in my Hosts (Default Host as in server.xml and others for each virtual 
host).


It was only when I used this configuration that the entries in httpd.conf were 
accepted and responded ok.  Example from httpd.conf follows:


VirtualHost 192.168.1.2
ServerAdmin ...
DirectoryIndex index.html
DocumentRoot ...
ServerName www.virtualhost1.org
WebAppConnection apoWarpConn  warp www.virtualhost1.org:8015

WebAppDeploy   myapp   apoWarpConn/apps/
WebAppDeploy   manager  apoWarpConn   /manager/

ErrorLog ...
CustomLog ...
/VirtualHost


At this point, I even removed the Tomcat-Standalone Connector Service from server.xml 
and all seems to be responding as I want.


Nevertheless beware... this outcome is more the result of trial  error than a logical 
understanding of the components on my part.


 HTH
/j-p.





On Thu, 7 Feb 2002, chad kellerman wrote:

 Hey guys,
 
 I am stuck again.  This time with the virtual host section in apache.  Here is 
what I got:
 
  VirtualHost jakarta.domain.com
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy examples warpConnection /home/jak/jakarta-www/examples/
 User jak
 Group jakartagrp
 ServerName jakarta.domain.com
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/jak/jakarta-www
 TransferLog /home/jak/jakarta-logs/access-log
 ScriptAlias /cgi-bin/ /home/jak/jakarta-www/cgi-bin/
 /VirtualHost
 
 an /etc/httpd/bin/apachectl configtest says it does not like
 
 WebAppDeploy examples warpConnection /home/jak/jakarta-www/examples/
 
 
   I am trying to get tomcat working with multiple virtual hosts.
 
 I have the module loading fine.  But I haven't found how to configure httpd.conf for 
tomcat as well as the server.xml file.
 
  Anyone get this working properly?  I on red hat.  But I would think the config 
should be similar on other os's..
 
 Thanks for the info,
 
 Chad
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


---
 JUSTATEST Art Online
  www.justatest.com




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




  1   2   >