RE: Tomcat 4.1.18 won't reload deleted and re-created JSP pages, returns 404 error though JSP is there

2003-06-26 Thread Florian G. Haas
Hello Peter,

| -Original Message-
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, June 25, 2003 12:44 PM
| 
| do you have reloadalble set to true
| in your server.xml ?

Not quite sure if that question was addressed to Paul or me. As for my part, as 
indicated earlier, yes, reloadable is set to true.

Hope that helps narrow down the issue,
best regards,

Florian

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



ISAPI integration: Tomcat 4.1.24, IIS 5 with HTTP PUT request

2003-06-26 Thread Hartmut Bernecker
Hello,

I am faced to the problem that the Tomcat-IIS integration doesn't work when doing some 
HTTP PUT Request!
HTTP GET and HTTP POST requests works well.
Also HTTP PUT Request works well when running Tomcat standalone (w/o IIS, Port 8080).
You have some Idea? I do not.

Hartmut Bernecker



THE REQUEST:

PUT /asim/savexml?hierid=12 HTTP/1.1
Content-Type: text/xml
User-Agent: XMLSpyDocEditPlugIn
Host: ep158:
Content-Length: 943
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=9A85D9E5B0796C0C309DBC3EB207235F
?xml version=1.0 encoding=UTF-8?
af-longtext
[... some xml data ...]
/af-longtext
THE RESPONSE:

HTTP/1.1 500 Server Error
Server: Microsoft-IIS/5.0
Date: Wed, 25 Jun 2003 14:06:05 GMT
Connection: close
Content-Type: text/html
Content-Length: 79
htmlheadtitleError/title/headbodyFalscher Parameter. /body/html

THE ISAPI-LOG:

[Wed Jun 25 16:02:16 2003]  [jk_ajp_common.c (1318)]: Error connecting to tomcat. 
Tomcat is probably not started or is listening on the wrong port. Failed errno = 61
[Wed Jun 25 16:02:16 2003]  [jk_isapi_plugin.c (928)]: HttpExtensionProc error, 
service() failed
WORKERS PROPERTIES:

worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13
URIWORKERMAP PROPERTIES:

/myApp/*=testWorker





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


Re: How I can slove this problem??

2003-06-26 Thread Bikash Paul
Hi,

From my client interface Iam taking the message of my
servlet from outputstream which has written by
servlet(by out.println)incase of connection broken
during uploading and then my client pop up a dialogbox
of connection broken to inform user.My application
architecture is Tomcat is install on WinNT4.0 which is
centralised server on local area and swing client is
install on different user's computer which is also on
local area,Now my all user uploading file on remote
destination using swing client through Tomcat server.
I want to say that both server and client on local
area and user uploading file on remote destination.

Regards
Bikash 
--- Jason Bainbridge [EMAIL PROTECTED] wrote:
 On Wed, 25 Jun 2003 14:24, Bikash Paul wrote:
   am using tomcat4.1.24 for my uploading
  software(swing for client interface and
 servlet).Iam
  facing problem with connection broken,During
 uploading
  of file if connection between local computer and
  remote computer broken then my software will give
 a
  message to user through pop up dialog box,but that
  dialog box appears after 3 or 4 minitues of
 connection
  broken that means as per my idea that Tomcat
 realease
  the connection after 3 or 4 minitues of connection
  broken
 
 Are you sure it isn't your Swing application doing
 this? How are you checking 
 for a connection timeout on the client side?
 
 Regards,
 -- 
 Jason Bainbridge
 http://jblinux.org
 

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE : isapi_redirector2.dll not loading correctly

2003-06-26 Thread Hertenstein Alain
Hi,

Just noticed that all registry entries you entered are for JK Version 1 !!
The Registry Entries for JK2 are different :

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\2.0]
serverRoot=c:\tomcat
extensionUri=/jakarta/isapi_redirector2.dll
workersFile=c:\tomcat\conf\workers2.properties
logLevel=DEBUG

This should make the red arrow become green... (but still didn't resolve my
JK2 connector problem either !! I still have to try what other posters told
us on this list, I'll give the results a bit later)
Alain

-Message d'origine-
De : Lior Shliechkorn [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi, 25. juin 2003 20:00
À : Tomcat Users List
Objet : Re: isapi_redirector2.dll not loading correctly


I'm not seeing anything happening in the event viewer, and I the arrow is
still red and pointing down. I'm running everything under an admin account,
so process permissions should not even be an issue.
 
I just rebooted and everything is still the same.

Jason Bainbridge [EMAIL PROTECTED] wrote:
Is it still throwing the below error after adding those registry entries?

Error: [jk_isapi_plugin.c (684)]: read_registry_init_data, Failed Registry
OpenKey Software\Apache Software Foundation\Jakarta Isapi Redirector\2.0

Everything looks fine with your registry entries so the only thing I can 
suggest is to try a reboot and try again...

Regards,
Jason

On Thu, 26 Jun 2003 01:45, Lior Shliechkorn wrote:
 Oh, oops, I entered the old reg file before I modified it. This is 
 what I put down:

 Windows Registry Editor Version 5.00

 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation]

 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Apache Web 
 Server]

 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Apache Web 
 Server\1.3.14]

 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi 
 Redirector]

 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi 
 Redirector\2.0] extension_uri=/jakarta/isapi_redirector2.dll
 log_file=C:\\tomCat\\logs\\isapi_redirector.log
 log_level=DEBUG 
 worker_file=C:\\tomCat\\conf\\workers.properties
 worker_mount_file=C:\\tomCat\\conf\\uriworkermap.properties

 Sorry.


 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!

-- 
Jason Bainbridge
http://jblinux.org

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



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


**
 This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


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



Re: Redirection loop

2003-06-26 Thread Jon Haugsand
* Bill Barker
 This should make you happy, since, indeed, TC 4.1.x will figure this out and
 allow access to the form-login-page even if it is otherwise protected.  The
 TC 3.x line doesn't have this feature (although it would be easy enough to
 add to TC 3.3.2 if anyone actually wanted it :).

You were right, of course.  Everything is running nicely.  I haven't
figured out some other issues yet, but I guess that will get in place
after my learning period.  

Anyway, how should the fragment look like in order to correctly state
that all, but the login page should go to the login page?

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no


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



Re: corrupt sessions

2003-06-26 Thread Hartwig, Thomas
Whom it may concern, I want to report that I did not resolve this 
problem with Tomcat 4.x.
However I have switched to Tomcat 5.0.3a and the session management 
seems to be quite different. Until now it works far better.

Thomas

Hartwig, Thomas wrote:
I have sometimes problems with corrupt sessions. Sometimes tomcat logs a 
EOFException and the servlet is not responding any more if a user wants 
to connect who has such a session. The browser is waiting endless for a 
response.
Do you know a way to check the validity of a session and do you have 
hints how to avoid corrupt sessions? I store some hashtables and vectors 
in the session. Do I have to asure to call a finalizer, so the session 
can be stored correct?
I have already tried to call request.getRequestedSessionId() but tomcat 
falls asleep before.

I use org.apache.catalina.session.PersistentManager with Filestore at 
Tomcat 4.0.6 and 4.1.24 (both the same problem):

Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=true
  maxActiveSessions=50
  minIdleSwap=60
  maxIdleSwap=120
  maxIdleBackup=0
Store className=org.apache.catalina.session.FileStore/
/Manager
Thanks for any reply
Thomas


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


RE : IIS 5 + Tomcat 4.1.24 + JK2 Connector problem - RESOLVED

2003-06-26 Thread Hertenstein Alain
Hi guys,

Well, simply said, the Server Reboot magical solution made it work...
(thanks David for that one)
Now, did all the previous modifications (shm file, etc) also make the JK2
connector work too !? I don't know.

In any case, all URLs are now working fine : http://localhost:8080/examples/
and http://localhost/examples/.

Thanks to all of you who helped me, this is my 2nd day on this list and it
really saved me a lot of time.

For those still stuck with this problem, I would say :
- follow the instructions (those on Apache's web site are complete. Just a
note though : if you want to install the JK2 module, go to the last 2
chapters in the documentation that are -exclusively- reserved to the JK2 and
not the JK1 module, as registry key/values are NOT the same for both modules
! This is something which is not very clear in the Apache documentation),
- DOUBLE-CHECK the registry entries (the red arrow problem is mostly due to
that),
- REBOOT THE SERVER (guess this is IIS who requires it ? Or the Environment
variable as Jason pointed out) !!!

All this should (hopefully) make it work.

I also just noticed that my tomcat installation path has spaces in it (I
kept the initial proposed Apache Group\Tomcat 4.1 path), which some people
say should be avoided. Well on Windows it doesn't seem to cause problem
(maybe on Linux it would), and for me it works fine (for the moment...).
Can someone confirm this ? Thanks a lot.

Regards
Alain

-Message d'origine-
De : Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi, 25. juin 2003 17:50
À : Tomcat Users List
Objet : Re: IIS 5 + Tomcat 4.1.24 + JK2 Connector problem


Can you try a netstat -a and see if your machine is listening on port 8009?
It 
could be the relevant section in CATALINA_HOME\conf\server.xml is commentedo
 ut.

You shouldn't have to reboot after changing a properties file it is only 
environment variables that can be stubborn and require a reboot.

Regards,
-- 
Jason Bainbridge
http://jblinux.org


**
 This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


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



dtd's directory

2003-06-26 Thread Georges Roux
Hi,

Have some .dtd file to put in my webapp but I don't know where create 
the dtd directory
can somebody tell me? Where normaly is the best place.

Thanks.

Georges



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


RE : IIS 5 + Tomcat 4.1.24 + JK2 Connector problem

2003-06-26 Thread Hertenstein Alain
To answer your questions (maybe it might help others ?) :

- No, no Firewall running
- Yes, I created a blank workers2.properties file and copied the text into
it
- The error page was (don't know the HTTP Error code for it) :
The page cannot be displayed 
The page you are looking for is currently unavailable. The Web site might be
experiencing technical difficulties, or you may need to adjust your browser
settings. etc

Alain

-Message d'origine-
De : Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi, 25. juin 2003 18:23
À : Tomcat Users List
Objet : Re: IIS 5 + Tomcat 4.1.24 + JK2 Connector problem


Okay silly question time... Are you running any sort of firewall?

Also when you added:

[shm]
file=C:\tomcat4\logs\shm.file
size=1048576

Did you create a blank file for it or has Tomcat created one, if it has its
 hould contain lots of data?

What error is it throwing when trying to access http://localhost/examples/ a

404 or something else?

Regards,
Jason


**
 This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


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



Re: dtd's directory

2003-06-26 Thread Riaan Oberholzer
I don't think there is a fixed rule. I have seen some
applications put it under /WEB-INF/lib, then others do
it /WEB-INF/dtd and yet others under the project root,
eg /dtds or /tags or /jsp/tags (depending on the
nature).

I'd like to get more info on this myself


--- Georges Roux [EMAIL PROTECTED] wrote:
 Hi,
 
 Have some .dtd file to put in my webapp but I don't
 know where create 
 the dtd directory
 can somebody tell me? Where normaly is the best
 place.
 
 Thanks.
 
 Georges
 
 
 

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



index.html

2003-06-26 Thread Oki DZ
Hi,

I just installed Tomcat 5.0.3. The index page showed the version as
4.0-b4. I think it would be neater if the index page were a servlet, so
that it could retrieve the version number from the config files and have
the right number.

BTW, the wrong version display is some kind of a show stopper.

Oki



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



Re: [OT] How to know Know the amount of memory used by Tomcat froma JSP page ?

2003-06-26 Thread Antony
What is the command to get the status page ?. i an't find it in Tomcat docs.
- Original Message -
From: Tim Funk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:49 PM
Subject: Re: [OT] How to know Know the amount of memory used by Tomcat froma
JSP page ?


 The manager application has a status page.

 If you want to know the amount of memory used by a single JSP, then your
out
 of luck. A profiling tool might tell you. But attaching a profiling tool
to a
 (production) server doesn't seem like a great idea.

 -Tim

 Antony wrote:
  Hi,
  How to print the amount of memory used by Tomcat (specifically of a
  particular application) from a JSP page. I am using Tomcat 4.1.18 on
j2sdk
  1.4.1 on a win2k server. The server is a remote server. Is it possible
to
  know the size of  the output of a JSP page.
  Antony
 



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



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



Re: Cookie handling in IE6 and session handling of tomcat 4.1.24

2003-06-26 Thread Suraj Berwal

Dear Tim,
thanks for your reply. well I have checked the genearted java code for my jsp 
page. I see no instance variables being declared there only local varaiables. the 
variables we have defined are also being declared locally inside the doservice() 
method. however i would like to point out that this problem is occuring only in the 
internal network of the client. whenever we access that site from our end through the 
web no such problem is encountered.
  can you please give some more inputs on any other aspect I might have missed out.

thanks  regards,
suraj b.

From: Tim Funk 
Subject: Re: Cookie handling in IE6 and session handling of tomcat 4.1.24 
Date: Wed, 25 Jun 2003 08:45:35 -0700 



The scenario I described was different. There is some version of IE that does not send 
cookies of the smae name in the correct order. This messes up session handling.

Your issue is different since there are not seperate webapps but users seeing each 
other session data. There have been many discussions about tomcat handing out 
duplicate session ids and tomcat swapping user sessions. For the most part - i never 
recalled any real issue with tomcat on any of these complaints. It usually turned out 
being a coding issue - such as a concurrency issue because a servlet or JSP used class 
instance variables instead of local variables.

-Tim



Suraj Berwal wrote: 
dear tim,
   i am facing a similar problem with my clients on IE6.0 regarding the session 
handling using tomcat 4.1.24. Actually the data is getting swapped for users there. 
can you please elaborate on the info you have posted about cookie problem in IE and 
how it can affect the session handling in tomcat. i have a singlw webapp and the 
tomcat is running on Standalone mode.


re,
suraj berwal




Urgent Doubt!!!

2003-06-26 Thread Ponniah Mari
hi,
 
I have a serious problem. I have developed a site using jsp and servlets, the server 
is tomcat 4.0. i uploaded the files with a DNS name provider. 
now i cannot access any of the JSP and Servelt files. But the inetresting part is that 
its woriking fine in my local machine. Let me explain my dir structure
 
1. i put JSP' s under 'webapps/MyDir'. 
 
2. Servlets and all the java classes under webapps/MyDir/WEB-  INF/classes/my-package
 
3. In my web.xml file i have only servlet mapping. I'll use this mapped names in JSP's 
to call the servlets. I am mentioning a tld file there 
 
i dont know what the DNS people have done there in their server.xml file. Any way we 
have a seperate dir under webapps just like MyDir
 
I can access all the html pages and images. I mages are put under images dir in 
webapps/MyDir/images
 
please help me out asap. Thanks in advance
 
 
 
 
 


Regards,
P.Mari
SMS using the Yahoo! Messenger;Download latest version.

Re: java.net.UnknownHostException: jakarta.apache.org

2003-06-26 Thread Flo
Oh ... Yes !!
Thanks :)

- Original Message -
From: Bill Barker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 6:46 AM
Subject: Re: java.net.UnknownHostException: jakarta.apache.org


 It's a simple typo.  You have:
   -//Apache Software Foudation//DTD Struts Configuration 1.1//EN

 The correct is:
   -//Apache Software Foundation//DTD Struts Configuration 1.1//EN

 If you fix the spelling in your !DOCTYPE ..., then Struts will be able
to
 find the DTD even without an internet connection.

 Flo [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Yes i think it's a problem whith Struts
  but i didn't understand what i must do to solve it.
  Sorry, i'm French ;)
 
  my strust-config.xml start with this :
  ?xml version=1.0 encoding=ISO-8859-1?
 
  !DOCTYPE struts-config PUBLIC
  -//Apache Software Foudation//DTD Struts Configuration 1.1//EN
  http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
 
  What are the changes needed to solve my problem ?
 
 
  - Original Message -
  From: Bill Barker [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, June 25, 2003 6:37 AM
  Subject: Re: java.net.UnknownHostException: jakarta.apache.org
 
 
   It is probably a problem with struts (or some other Jakarta project
 other
   than Tomcat).  Including a stack-trace would help identify the
problem.
  
   I have several 4.1.24 installs on machines that are behind a firewall
 (so,
   effectively they have no internet connection), so they would act like
 this
   if there was a problem with the Tomcat distro.
  
   The usual reason for this is a typo in the !DOCTYPE ... of one of
your
  xml
   files.  You can rule out web.xml, since that one would be looking for
   'java.sun.com'.  The value of PUBLIC must match identically, including
   white-space.  The stack-trace should help you narrow down which file
has
 a
   problem.
  
   Flo [EMAIL PROTECTED] wrote in message
   news:[EMAIL PROTECTED]
   Hi
  
   i installed Tomcat 4.1.24
   My internet connection was down and when i restart Tomcat i got on
  starting
   this error :
   java.net.UnknownHostException: jakarta.apache.org
   ...
  
   And i was unable to test my work
  
   How can i fix this problem ?
  
  
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  




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






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



GD Lib for TC or Java ?

2003-06-26 Thread Power-Netz \(Schwarz\)

Hi,

I seek something like the gdlib , in best case the gdlib :) , for java.
Has anyone an idea whats best for tc/java ?

It should scale images and create images, should handle texts. It does not
need
to be full of functions , just some basic routines ..

Thx



M.Schwarz

 POWER-NETZ®
Full-Service-Provider 


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



servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Shanta B
Hi
In my servlet response.sendRedirect i am getting illegal state exception
...could pl tell me how to avoid this...whats does it mean...


Thanks
Shanta.B

-Original Message-
From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:40 AM
To: [EMAIL PROTECTED]
Subject: ISAPI integration: Tomcat 4.1.24, IIS 5 with HTTP PUT request


Hello,

I am faced to the problem that the Tomcat-IIS integration doesn't work when
doing some HTTP PUT Request!
HTTP GET and HTTP POST requests works well.
Also HTTP PUT Request works well when running Tomcat standalone (w/o IIS,
Port 8080).

You have some Idea? I do not.

Hartmut Bernecker



THE REQUEST:

PUT /asim/savexml?hierid=12 HTTP/1.1
Content-Type: text/xml
User-Agent: XMLSpyDocEditPlugIn
Host: ep158:
Content-Length: 943
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=9A85D9E5B0796C0C309DBC3EB207235F

?xml version=1.0 encoding=UTF-8?
af-longtext
[... some xml data ...]
/af-longtext

THE RESPONSE:

HTTP/1.1 500 Server Error
Server: Microsoft-IIS/5.0
Date: Wed, 25 Jun 2003 14:06:05 GMT
Connection: close
Content-Type: text/html
Content-Length: 79

htmlheadtitleError/title/headbodyFalscher Parameter.
/body/html

THE ISAPI-LOG:

[Wed Jun 25 16:02:16 2003]  [jk_ajp_common.c (1318)]: Error connecting to
tomcat. Tomcat is probably not started or is listening on the wrong port.
Failed errno = 61
[Wed Jun 25 16:02:16 2003]  [jk_isapi_plugin.c (928)]: HttpExtensionProc
error, service() failed

WORKERS PROPERTIES:

worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13

URIWORKERMAP PROPERTIES:

/myApp/*=testWorker





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

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



RE: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000

2003-06-26 Thread Mark Hayes
Jason -
Related to this issue: class loading. If a JAR is required by a web-app, the
JAR should be placed in the web-app's WEB-INF/lib directory.  If said JAR is
required by multiple web-apps, the JAR should go in
TOMCAT_HOME/common/lib.  If said JAR is required by multiple web-apps, as
well as, by Java apps not running on Tomcat, should the JAR be moved to the
SDK ext directory?  I'm trying to avoid accumulating multiple copies of the
same JAR.

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:26 PM
To: Tomcat Users List
Subject: Re: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000


Can you try the below for me?

1. Delete the CATALINA_HOME environment variable
2. Make sure your JDK install is a vanilla install ie. you haven't put
anything in JAVA_HOME\lib\ext
3. Install Tomcat 4.1.24 somewhere like C:\tomcat4 just by extracting the
full
zip file.
4. REBOOT
5. From the command line run C:\tomcat4\bin\startup.bat -- startup.log

If it works brilliant, if it doesn't can you post the contents of
startup.log?

Thanks,
--
Jason Bainbridge
http://jblinux.org

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 3:03 AM
To: Tomcat Users List
Subject: Re: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000


It sounds like it is getting confused with your various Tomcat installs,
what
are the environment variables you have got set?

A post in the archive suggested editing out the JMX MBeans stuff in
server.xml
and it worked for the original poster, so if you don't need it (if you don't
know what it is it is likely that you don't) so in server.xml comment out
the
following:

!-- Uncomment these entries to enable JMX MBeans support --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

I would be more tempted to look more at the environment variables and
possible
problems from the long paths though as a proper solution.

Regards,
--
Jason Bainbridge
http://jblinux.org

On Tue, 24 Jun 2003 17:32, Mark Hayes wrote:
 Unable to start Tomcat 4.1.24 with sdk 1.4.1_03 on Windows 2000

 ClassNotFoundException: org.apache.catalina.core.StandardServer

 C:\Program Files\Apache Group\Tomcat 4.1\bincatalina run
 Using CATALINA_BASE:   C:\Program Files\Apache Group\Tomcat 4.1
 Using CATALINA_HOME:   C:\Program Files\Apache Group\Tomcat 4.1
 Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\temp
 Using JAVA_HOME:   C:\j2sdk1.4.1_03
 Jun 24, 2003 5:22:15 PM org.apache.commons.digester.Digester startElement
 SEVERE: Begin event threw exception
 java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer

 Have struggled with this for 2 days. Symptom occurs with LE version,
non-LE
 version, exe version, and zip version  Symptom occurs with earlier version
 of TC 4.1.x (4.1.12).  TC 4.0.1 starts OK on sdk 1.4.1_03

 I am using catalina run to invoke Tomcat from the Tomcat bin directory.
 JAVA_HOME and CATALINA_HOME are both set.

 StandardServer is in C:\Program Files\Apache Group\Tomcat
 4.1\server\lib\catalina.jar

 Has anyone encountered this?  Have tried numerous uninstall/reinstall and
 search hi and low with no success.



 - -
 COL Ltd in Hong Kong has checked this message for all
 known viruses using SkyScan-AV powered by MessageLabs.
 For information on this service e-mail [EMAIL PROTECTED]
 or visit www.col.com.hk
 - -

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


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


- -
COL Ltd in Hong Kong has checked this message for all
known viruses using SkyScan-AV powered by MessageLabs.
For information on this service e-mail [EMAIL PROTECTED]
or visit www.col.com.hk
- -


- -
COL Ltd in Hong Kong has checked this message for all 
known viruses using SkyScan-AV powered by MessageLabs. 
For information on this service e-mail [EMAIL PROTECTED] 
or visit www.col.com.hk
- -

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



Re: Where to place the tomcat distribution in file system

2003-06-26 Thread Hayo Schmidt
off-topicI have a Folder C:\Programme and a Folder C:\Program Files on
my windows system, just because some installers are not programmed
correctly./off-topic.
The point is, i can do what i like with my personal system. But i am
working together with colleagues and clients, i might use several
systems (FreeBSD, SuSE, Mandrake, Debian...) that members of my computer
club (http://www.hmh-ev.de) have set up. And all people can do what they
like on their systems.
Having an official *recommendation*, just that, would make life much
easier than it is now.
Yes, standards make life easier.

Hayo

Jason Bainbridge schrieb:

On Wed, 25 Jun 2003 17:09, Hayo Schmidt wrote:
 

The different locations make it difficult to understand systems other
people have set up.  And that wastes time.
This obviously is a general problem of Linux.
   

I hate statements like that... What about the fact that one of the first 
options within just about any Windows based installset is to select the 
location you wish to install to? I've seen C:\Program Files\, D:\Program 
Files and even on E:... 

So it's a quirk of human nature not of any O/S related problem, different 
people like different things so they do things differently. :)

At least on Linux normal users are restricted to their Home directory so they 
can't muck up the actual filesystem without knowing at least a little about 
what they are doing...

 





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


RE: servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Tim Davidson
It means a response has already been committed (i.e. you have already committed to 
sending HTML from that servlet). Somewhere it your code you are using the printWriter 
or response.sendRedirect or you are already forwarding to another servlet. You should 
avoid having more than one response.sendRedirect/forward or controling it with if 
statements.
You cant do this:
 out.print(HTML);
 response.sendRedirect(..);
 this would cause the llegal state exception.

-Original Message-
From: Shanta B [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 10:49 AM
To: Tomcat Users List
Subject: servlet response.sendRedirect() illegal state exception 


Hi
In my servlet response.sendRedirect i am getting illegal state exception
...could pl tell me how to avoid this...whats does it mean...


Thanks
Shanta.B

-Original Message-
From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:40 AM
To: [EMAIL PROTECTED]
Subject: ISAPI integration: Tomcat 4.1.24, IIS 5 with HTTP PUT request


Hello,

I am faced to the problem that the Tomcat-IIS integration doesn't work when
doing some HTTP PUT Request!
HTTP GET and HTTP POST requests works well.
Also HTTP PUT Request works well when running Tomcat standalone (w/o IIS,
Port 8080).

You have some Idea? I do not.

Hartmut Bernecker



THE REQUEST:

PUT /asim/savexml?hierid=12 HTTP/1.1
Content-Type: text/xml
User-Agent: XMLSpyDocEditPlugIn
Host: ep158:
Content-Length: 943
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=9A85D9E5B0796C0C309DBC3EB207235F

?xml version=1.0 encoding=UTF-8?
af-longtext
[... some xml data ...]
/af-longtext

THE RESPONSE:

HTTP/1.1 500 Server Error
Server: Microsoft-IIS/5.0
Date: Wed, 25 Jun 2003 14:06:05 GMT
Connection: close
Content-Type: text/html
Content-Length: 79

htmlheadtitleError/title/headbodyFalscher Parameter.
/body/html

THE ISAPI-LOG:

[Wed Jun 25 16:02:16 2003]  [jk_ajp_common.c (1318)]: Error connecting to
tomcat. Tomcat is probably not started or is listening on the wrong port.
Failed errno = 61
[Wed Jun 25 16:02:16 2003]  [jk_isapi_plugin.c (928)]: HttpExtensionProc
error, service() failed

WORKERS PROPERTIES:

worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13

URIWORKERMAP PROPERTIES:

/myApp/*=testWorker





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

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



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



Re: Urgent Doubt!!!

2003-06-26 Thread Sriram N

--- Ponniah Mari [EMAIL PROTECTED] wrote:
 hi,
  
 I have a serious problem. I have developed a site using jsp and servlets, the
 server is tomcat 4.0. i uploaded the files with a DNS name provider. 
 now i cannot access any of the JSP and Servelt files. But the inetresting
 part is that its woriking fine in my local machine. Let me explain my dir
 structure
  
 1. i put JSP' s under 'webapps/MyDir'. 

Place a simple JSP that just displays the Time/date/a simple string.
Try contacting this JSP. 

If this does not work, then there's something wrong at the service provider's
end. 
1. Do they provide servlet/JSP support at all ?
2. Are you required to pay extra for servlet/JSP support ?

If this sample JSP works as expected:
1. Have the files been uploaded without errors ? Were there any errors reported
during upload ? I knew a case where two new recruits ignored transmission error
reports.

2. Does your service provider require you to use a complete server.xml ? 
Tomcat let's use mention just as much as we need. I do not know if this a
feature with all servlet containers.

3. Do they support the serverlet API spec that your are working with ? i.e. if
you are using 2.2, do they support 2.2 ?

  
 2. Servlets and all the java classes under webapps/MyDir/WEB- 
 INF/classes/my-package
  
 3. In my web.xml file i have only servlet mapping. I'll use this mapped names
 in JSP's to call the servlets. I am mentioning a tld file there 
  
 i dont know what the DNS people have done there in their server.xml file. Any
 way we have a seperate dir under webapps just like MyDir
  
 I can access all the html pages and images. I mages are put under images dir
 in webapps/MyDir/images
  

This might be an indication that files have been uploaded without any errors.

 please help me out asap. Thanks in advance
  
  

 Regards,
 P.Mari
 SMS using the Yahoo! Messenger;Download latest version.

-- Sriram

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Multiple webapp locations

2003-06-26 Thread Mike Hulse
I haven't read through all of the documentation yet, but while I was
looking at the manager app and trying to understand how it works
I noticed something.  The manager app is not in
/jakarta-tomcat-4.1.24/webapps.
Instead there is a manager.xml that has a context
Context path=/manager docBase=../server/webapps/manager debug=0
privileged=true
Does that mean if I put a app.xml in /jakarta-tomcat-4.1.24/webapps I can
serve my app
from directories other than /jakarta-tomcat-4.1.24/webapps?  If so, are
there any advantages
or disadvantages of doing that?

Thanks,
Mike



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



HELP Too many open files??

2003-06-26 Thread g4
Hi list,

just had a strange error occour, I got an internal server error in  
Tomcat. Now when I try to start Tomcat again, nothing!

Here is the localhost_admin_log:

2003-06-26 12:05:12 StandardManager[/admin] Exception unloading  
sessions to persistent storage
java.io.FileNotFoundException:  
/usr/local/tomcat/work/Standalone/localhost/admin/SESSIONS.ser (Too  
many open files)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.init(FileOutputStream.java:176)
	at java.io.FileOutputStream.init(FileOutputStream.java:70)
	at  
org.apache.catalina.session.StandardManager.unload(StandardManager.java: 
508)
	at  
org.apache.catalina.session.StandardManager.stop(StandardManager.java:69 
1)
	at  
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3665)
	at  
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:10 
36)
	at  
org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeploye 
r.java:470)
	at org.apache.catalina.core.StandardHost.remove(StandardHost.java:852)
	at  
org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:758)
	at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:738)
	at  
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:36 
0)
	at  
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu 
pport.java:166)
	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1221)
	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1233)
	at  
org.apache.catalina.core.StandardService.stop(StandardService.java:554)
	at  
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225)
	at  
org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.j 
ava:624)

Any Ideas?

Many thanks

Jason Lane

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


Re: HELP Too many open files??

2003-06-26 Thread Mike Hulse

- Original Message - 
From: g4 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 7:33 AM
Subject: HELP Too many open files??


 Hi list,
 
 just had a strange error occour, I got an internal server error in  
 Tomcat. Now when I try to start Tomcat again, nothing!
 
 Here is the localhost_admin_log:
 
 2003-06-26 12:05:12 StandardManager[/admin] Exception unloading  
 sessions to persistent storage
 java.io.FileNotFoundException:  
 /usr/local/tomcat/work/Standalone/localhost/admin/SESSIONS.ser (Too  
 many open files)
 at java.io.FileOutputStream.open(Native Method)
 at java.io.FileOutputStream.init(FileOutputStream.java:176)
 at java.io.FileOutputStream.init(FileOutputStream.java:70)
 at  
 org.apache.catalina.session.StandardManager.unload(StandardManager.java: 
 508)
 at  
 org.apache.catalina.session.StandardManager.stop(StandardManager.java:69 
 1)
 at  
 org.apache.catalina.core.StandardContext.stop(StandardContext.java:3665)
 at  
 org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:10 
 36)
 at  
 org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeploye 
 r.java:470)
 at org.apache.catalina.core.StandardHost.remove(StandardHost.java:852)
 at  
 org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:758)
 at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:738)
 at  
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:36 
 0)
 at  
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu 
 pport.java:166)
 at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1221)
 at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1233)
 at  
 org.apache.catalina.core.StandardService.stop(StandardService.java:554)
 at  
 org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225)
 at  
 org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.j 
 ava:624)
 
 Any Ideas?
 
 Many thanks
 
 
 Jason Lane
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: What are the possible attributes of the Context element ?

2003-06-26 Thread Tim Funk
Use the javadocs.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/core/StandardContext.html
Anything public that starts with set can be included in server.xml (within 
the contraints of Digester)

-Tim

Antony wrote:
When I searched the net I found some documents containing
cachingAllowed=true,checkInterval=1 and so many.  I can't find
documentation for these attributes in Tomcat 4.1 docs. What is the use of
the  attribute cachingAllowed and  checkInterval ?.  I saw the page at
jGuru Tomcat  FAQ http://www.jguru.com/faq/view.jsp?EID=24607 .
The full element is included here.
Context ClassName=org.apache.catalina.core.StandardContext 


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


RE: servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Shanta B
Hi Tim
  We have one download servlet ..which is called from different
servletsin download servlet
we used out.println() for downloading csv files...so each servlets calls one
servlet ..this servlets redirects request to download servlet...

Ex: FirtServlet calls CentralServlet 
CentralServlet Calls Download servlet

SecondServlet callls CentralServlet
CentralServlet Calls Download servlet
 

so we have used rsp.sendRedirect() in CentralServlet ...In download servlet
we used both following statements 
   PrintWriter out=new PrintWriter(rsp.getOutputStream())
   out.println(messagetodownload);
   out.flush();



sugget  me whats the alternative .

-Original Message-
From: Tim Davidson [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 12:17 PM
To: Tomcat Users List
Subject: RE: servlet response.sendRedirect() illegal state exception 


It means a response has already been committed (i.e. you have already
committed to sending HTML from that servlet). Somewhere it your code you are
using the printWriter or response.sendRedirect or you are already forwarding
to another servlet. You should avoid having more than one
response.sendRedirect/forward or controling it with if statements.
You cant do this:
 out.print(HTML);
 response.sendRedirect(..);
 this would cause the llegal state exception.

-Original Message-
From: Shanta B [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 10:49 AM
To: Tomcat Users List
Subject: servlet response.sendRedirect() illegal state exception 


Hi
In my servlet response.sendRedirect i am getting illegal state exception
...could pl tell me how to avoid this...whats does it mean...


Thanks
Shanta.B

-Original Message-
From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:40 AM
To: [EMAIL PROTECTED]
Subject: ISAPI integration: Tomcat 4.1.24, IIS 5 with HTTP PUT request


Hello,

I am faced to the problem that the Tomcat-IIS integration doesn't work when
doing some HTTP PUT Request!
HTTP GET and HTTP POST requests works well.
Also HTTP PUT Request works well when running Tomcat standalone (w/o IIS,
Port 8080).

You have some Idea? I do not.

Hartmut Bernecker



THE REQUEST:

PUT /asim/savexml?hierid=12 HTTP/1.1
Content-Type: text/xml
User-Agent: XMLSpyDocEditPlugIn
Host: ep158:
Content-Length: 943
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=9A85D9E5B0796C0C309DBC3EB207235F

?xml version=1.0 encoding=UTF-8?
af-longtext
[... some xml data ...]
/af-longtext

THE RESPONSE:

HTTP/1.1 500 Server Error
Server: Microsoft-IIS/5.0
Date: Wed, 25 Jun 2003 14:06:05 GMT
Connection: close
Content-Type: text/html
Content-Length: 79

htmlheadtitleError/title/headbodyFalscher Parameter.
/body/html

THE ISAPI-LOG:

[Wed Jun 25 16:02:16 2003]  [jk_ajp_common.c (1318)]: Error connecting to
tomcat. Tomcat is probably not started or is listening on the wrong port.
Failed errno = 61
[Wed Jun 25 16:02:16 2003]  [jk_isapi_plugin.c (928)]: HttpExtensionProc
error, service() failed

WORKERS PROPERTIES:

worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13

URIWORKERMAP PROPERTIES:

/myApp/*=testWorker





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

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



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

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



RE: InstanceListener

2003-06-26 Thread Angus Mezick
Turns out I had two problems:
1) InstanceListener className=/ DOESN'T work!!!  I had to use
InstanceListenerclass-name/InstanceListener.  This gets a BIG WTF!
Should EVERY server.xml element that takes a class work the same way?

2) I needed to put my classes in a jar (untested, I made these two
changes at the same time so I could be wrong about this one.
--Angus

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 25, 2003 11:41 PM
 To: Tomcat Users List
 Subject: Re: InstanceListener
 
 
 
 
 
 
 Hi Angus,
 
 Could it be that the class you want to get an instace of is 
 just loaded
 under your web application path? For me it looks like a class 
 loader issure
 you may have.
 
 I wrotte a littel JSP to show the class loaded by TC. You  may want to
 check if your class is really loaded and under which path.
 
 Regards,
 
 (See attached file: ClassLoad.zip)
 
 Christian Schuster
 
 Rudolf Schuster AG
 Postfach 277
 CH - 3000 Bern 11
 
http://www.rsag.ch
++41 31 348 05 30


 

 Angus Mezick

 [EMAIL PROTECTED]

 r.org
To 
   [EMAIL PROTECTED]

 25.06.2003 19:02
cc 
 

 
Subject 
 Please respond to InstanceListener

   Tomcat Users

   List

 [EMAIL PROTECTED]

  rta.apache.org

 

 





Has anyone here created an instance listener?  If so, where did you put
the .class file?  I am currently getting a classnotfound error.  I tried
classes in both server and common.  Anyone have an example of some code
that implements InstanceListener?  I can't find anything on this class
in the archives except checkins.
Thanks!

Angus Mezick
GuideStar - Philanthropic Research Inc.
427 Scotland St.
Williamsburg, Virginia 23185
PHONE: (757)299-4631 x35  FAX:(757)229-8912
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
www.guidestar.org http://www.guidestar.org

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

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



multiuser setup: please help

2003-06-26 Thread Neil Zanella

Hello,

I have successfully setup Tomcat but now I want the following:

Suppose some Linux based system has a dynamic and constantly changing
number of users ranging in the thousands. I would like to set up
tomcat so that:

   Each user gets a context root in a directory such as:
   http://localhost:8080/~johndoe/contextroot/

   This happens in such a way that when a request to a subdirectory
   that looks like the one above is issued, Tomcat automatically
   knows how to handle it. Is this possible?

This would be ideal. I don't see why it shouldn't be possible.

If this is impossible, then consider it to be a missing feature
from tomcat. I almost feel it should be documented somewhere if
available, otherwise, if not available, it should be implemented.

I guess I could define a path mapping of the form:

http://localhost:8080/~+/contextroot/

I actually tried this but it did not work: I used the path mapping
inside the webapps/ROOT/WEB-INF/web.xml file:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

  display-namewelcome/display-name
  descriptionThese examples are from the created contextroot 
subdirectory of webapps./description
  servlet
servlet-namewelcome/servlet-name
descriptionThis web application welcomes you./description
servlet-classWelcomeServlet/servlet-class
  /servlet
  servlet-mapping
servlet-namewelcome/servlet-name
url-patternhttp://localhost:8080/~*/contextroot/*/url-pattern
  /servlet-mapping

/web-app

I thought I could have the URL execute a servlet, that would execute
then execute a servlet from the users' directory. Sound complicated?
Perhaps there is an easier way???


Suggestions very welcome!!!

Neil


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



Re: [OT] How to know Know the amount of memory used by Tomcat fromaJSP page ?

2003-06-26 Thread Tim Funk
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html#List%20OS%20and%20JVM%20Properties

-Tim

Antony wrote:
What is the command to get the status page ?. i an't find it in Tomcat docs.


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


[ot] Re: GD Lib for TC or Java ?

2003-06-26 Thread Tim Funk
http://jcharts.sourceforge.net/

-Tim

Power-Netz (Schwarz) wrote:
Hi,

I seek something like the gdlib , in best case the gdlib :) , for java.
Has anyone an idea whats best for tc/java ?
It should scale images and create images, should handle texts. It does not
need
to be full of functions , just some basic routines ..
Thx
 


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


Re: index.html

2003-06-26 Thread Tim Funk
Are you sure you installed the right tomcat? The index page is a JSP (a 
precompiled JSP too). But I do see that the home page is wrong that it does say:

=
As you may have guessed by now, this is the default Tomcat home page. It can 
be found on the local filesystem at:

$CATALINA_HOME/webapps/ROOT/index.html
  ^ === Wrong
=
I'll fix this typo sometime in the near future.

-Tim

Oki DZ wrote:
Hi,

I just installed Tomcat 5.0.3. The index page showed the version as
4.0-b4. I think it would be neater if the index page were a servlet, so
that it could retrieve the version number from the config files and have
the right number.
BTW, the wrong version display is some kind of a show stopper.

Oki

 


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


Re: HELP Too many open files??

2003-06-26 Thread Tim Funk
You'll need to tweak OS parameters and use ulimit. (That is if your are using 
a *nix) Google on java ulimit or similar for lots of similar conversations.

-Tim

g4 wrote:
Hi list,

just had a strange error occour, I got an internal server error in  
Tomcat. Now when I try to start Tomcat again, nothing!

Here is the localhost_admin_log:

2003-06-26 12:05:12 StandardManager[/admin] Exception unloading  
sessions to persistent storage
java.io.FileNotFoundException:  
/usr/local/tomcat/work/Standalone/localhost/admin/SESSIONS.ser (Too  
many open files)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:176)
at java.io.FileOutputStream.init(FileOutputStream.java:70)
at  
org.apache.catalina.session.StandardManager.unload(StandardManager.java: 
508)
at  
org.apache.catalina.session.StandardManager.stop(StandardManager.java:69 1)
at  
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3665)
at  
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:10 
36)
at  
org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeploye 
r.java:470)
at org.apache.catalina.core.StandardHost.remove(StandardHost.java:852)
at  
org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:758)
at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:738)
at  
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:36 0)
at  
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu 
pport.java:166)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1221)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1233)
at  
org.apache.catalina.core.StandardService.stop(StandardService.java:554)
at  
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225)
at  
org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.j 
ava:624)

Any Ideas?

Many thanks

Jason Lane

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



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


AW: [ot] Re: GD Lib for TC or Java ?

2003-06-26 Thread Power-Netz \(Schwarz\)
 
 http://jcharts.sourceforge.net/
 
that's for charts, i meat more makeing complet images alone.. 
self drawn.. 

 
 Power-Netz (Schwarz) wrote:
  Hi,
  
  I seek something like the gdlib , in best case the gdlib :) , for java.
  Has anyone an idea whats best for tc/java ?
  
  It should scale images and create images, should handle texts. 
 It does not
  need
  to be full of functions , just some basic routines ..
  



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



RE: servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Tim Davidson
h...
 I'm not sure that out.println() is the best way for downloading files (sending files 
to the client), but i dont know enough about file downloading and servlets to be able 
to help. I know there is another approach (or several appraches for that matter 
including setting something in the HTML header to tell the browser to request a file) 
but I dont know enough about it.
 Since you call out.println(..) your response is commited and you cant subsequently 
call response.sendRedirect(..). I think this is more a design issue of your approach 
and without knowing more about what it is you are trying to do I'm afraid i cant help.

-Original Message-
From: Shanta B [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 12:42 PM
To: Tomcat Users List
Subject: RE: servlet response.sendRedirect() illegal state exception 


Hi Tim
  We have one download servlet ..which is called from different
servletsin download servlet
we used out.println() for downloading csv files...so each servlets calls one
servlet ..this servlets redirects request to download servlet...

Ex: FirtServlet calls CentralServlet 
CentralServlet Calls Download servlet

SecondServlet callls CentralServlet
CentralServlet Calls Download servlet
 

so we have used rsp.sendRedirect() in CentralServlet ...In download servlet
we used both following statements 
   PrintWriter out=new PrintWriter(rsp.getOutputStream())
   out.println(messagetodownload);
   out.flush();



sugget  me whats the alternative .

-Original Message-
From: Tim Davidson [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 12:17 PM
To: Tomcat Users List
Subject: RE: servlet response.sendRedirect() illegal state exception 


It means a response has already been committed (i.e. you have already
committed to sending HTML from that servlet). Somewhere it your code you are
using the printWriter or response.sendRedirect or you are already forwarding
to another servlet. You should avoid having more than one
response.sendRedirect/forward or controling it with if statements.
You cant do this:
 out.print(HTML);
 response.sendRedirect(..);
 this would cause the llegal state exception.

-Original Message-
From: Shanta B [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 10:49 AM
To: Tomcat Users List
Subject: servlet response.sendRedirect() illegal state exception 


Hi
In my servlet response.sendRedirect i am getting illegal state exception
...could pl tell me how to avoid this...whats does it mean...


Thanks
Shanta.B

-Original Message-
From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:40 AM
To: [EMAIL PROTECTED]
Subject: ISAPI integration: Tomcat 4.1.24, IIS 5 with HTTP PUT request


Hello,

I am faced to the problem that the Tomcat-IIS integration doesn't work when
doing some HTTP PUT Request!
HTTP GET and HTTP POST requests works well.
Also HTTP PUT Request works well when running Tomcat standalone (w/o IIS,
Port 8080).

You have some Idea? I do not.

Hartmut Bernecker



THE REQUEST:

PUT /asim/savexml?hierid=12 HTTP/1.1
Content-Type: text/xml
User-Agent: XMLSpyDocEditPlugIn
Host: ep158:
Content-Length: 943
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=9A85D9E5B0796C0C309DBC3EB207235F

?xml version=1.0 encoding=UTF-8?
af-longtext
[... some xml data ...]
/af-longtext

THE RESPONSE:

HTTP/1.1 500 Server Error
Server: Microsoft-IIS/5.0
Date: Wed, 25 Jun 2003 14:06:05 GMT
Connection: close
Content-Type: text/html
Content-Length: 79

htmlheadtitleError/title/headbodyFalscher Parameter.
/body/html

THE ISAPI-LOG:

[Wed Jun 25 16:02:16 2003]  [jk_ajp_common.c (1318)]: Error connecting to
tomcat. Tomcat is probably not started or is listening on the wrong port.
Failed errno = 61
[Wed Jun 25 16:02:16 2003]  [jk_isapi_plugin.c (928)]: HttpExtensionProc
error, service() failed

WORKERS PROPERTIES:

worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13

URIWORKERMAP PROPERTIES:

/myApp/*=testWorker





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

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



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

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



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



Re: AW: [ot] Re: GD Lib for TC or Java ?

2003-06-26 Thread Tim Funk
In that case - You can use awt to an offscreen buffer and just use all the 
awt methods. Then conver the buffer to an image. There are plenty google 
links about this.

-Tim

Power-Netz (Schwarz) wrote:
 

http://jcharts.sourceforge.net/
 
that's for charts, i meat more makeing complet images alone.. 
self drawn.. 


Power-Netz (Schwarz) wrote:

Hi,

I seek something like the gdlib , in best case the gdlib :) , for java.
Has anyone an idea whats best for tc/java ?
It should scale images and create images, should handle texts. 
It does not

need
to be full of functions , just some basic routines ..




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



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


jk/jk2: can't locate VM error

2003-06-26 Thread Atreya Basu
I'm getting a weird error where it says:

[Fri Jun 20 17:05:34 2003] [error] env.createBean2(): Factory error
creating vm: ( vm, )
[Fri Jun 20 17:05:34 2003] [error] config.update(): Can't create vm:

Anyone have any ideas about this?
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




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



RE: ServletException

2003-06-26 Thread Cox, Charlie
I pass the request around quite a bit as well. Did you compile your classes
against the servlet.jar that is distributed with Tomcat?

at org.apache.jsp.nav_jsp._jspService(nav_jsp.java:61)

what is on line 61 of jsp_nav.java? look in the tomcat\work directory to
find the java file for your jsp.

is it possible that your class is throwing an exception that you are not
catching in the JSP? 

Charlie

 -Original Message-
 From: Woodrich, Jason D (Jason) [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 25, 2003 10:41 PM
 To: Tomcat Users List
 Subject: RE: ServletException
 
 
 My classes are using the HttpServletRequest.  I'm passing the 
 request variable because that's the only one I'm aware of 
 that is in use that implements the HttpServletRequest.  Is 
 there something else I should be using?
 
 Thanks
 
 Jason Woodrich
 - Avaya, Inc.
 - Knowledge Management  Tools Development
 
 -Original Message-
 From: Yoav Shapira [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 25, 2003 7:28 PM
 To: Tomcat Users List
 Subject: RE: ServletException
 
 
 Howdy,
 Perhaps the fact that in 4.0.x your JSPs were package-less 
 and in 4.1.x they're
 in org.apache.jsp?  (Or vice versa, I can never remember).
 
 Anyways, why are you using the tomcat-specific 
 HttpRequestFacade instead of the
 servlet specification's HttpServletRequest?
 
 Yoav Shapira
 
 --- Woodrich, Jason D (Jason) [EMAIL PROTECTED] wrote:
  Ok, I tested this under standalone on 4.1 and on 4.0.6.  It 
 works fine under
  4.0.6 but has the ServletException under 4.1.  Anyone know 
 if anything
  changed between the versions that would prevent 
 HttpRequestFacade methods
  from being accessible from objects outside of the JSP?
  
  Thanks
  
  Jason Woodrich
  - Avaya, Inc.
  - Knowledge Management  Tools Development 
  
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 25, 2003 7:03 AM
  To: Tomcat Users List
  Subject: RE: ServletException
  
  
  
  Howdy,
  First try to reproduce this problem using 
 tomcat-standalone, to take out
  the apache variable.  That will make debugging easier.
  
  Yoav Shapira
  Millennium ChemInformatics
  
  
  -Original Message-
  From: Woodrich, Jason D (Jason) [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, June 24, 2003 9:47 PM
  To: [EMAIL PROTECTED]
  Subject: ServletException
  
  I'm getting a ServletException when I try to access methods in a
  HttpRequestFacade passed to one of my own classes.  It's 
 being casted
  as a
  HttpServletRequest in hopes to maintain portability.  I'm able to
  access
  the methods fine from the JSP that passes the request 
 variable, and the
  reference is exactly the same when compared ..  but for some reason
  whenever I call it from my class it freaks out and causes the
  ServletException which leads to the JasperException ..
  
  For example:
  
  jsp file:
  
  [EMAIL PROTECTED] language=java import=my package.* % --
  %
  Cheese hi;
  hi=new Cheese(request);
  %
  
  part of the class:
  
  public class Cheese {
private HttpServletRequest _request;
public Cheese (HttpServletRequest req) {
  System.out.println(uri: +req.getRequestURI());
  }
}
  
  Returned is:
  org.apache.jasper.JasperException:
  javax/servlet/http/HttpServletRequest
 at
  
 org.apache.jasper.servlet.JspServletWrapper.service(JspServle
 tWrapper.j
  ava:
  254)
 at
  
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServle
 t.java:295
  )
 at
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
  
 org.apache.catalina.core.ApplicationFilterChain.internalDoFil
 ter(Applic
  atio
  nFilterChain.java:247)
 at
  
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl
 icationFil
  terC
  hain.java:193)
 at
  
 org.apache.catalina.core.StandardWrapperValve.invoke(Standard
 WrapperVal
  ve.j
  ava:256)
 at
  
 org.apache.catalina.core.StandardPipeline$StandardPipelineVal
 veContext.
  invo
  keNext(StandardPipeline.java:643)
 at
  
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
 line.java:
  480)
 at
  
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
  
 org.apache.catalina.core.StandardContextValve.invoke(Standard
 ContextVal
  ve.j
  ava:191)
 at
  
 org.apache.catalina.core.StandardPipeline$StandardPipelineVal
 veContext.
  invo
  keNext(StandardPipeline.java:643)
 at
  
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
 line.java:
  480)
 at
  
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
  
 org.apache.catalina.core.StandardContext.invoke(StandardConte
 xt.java:24
  15)
 at
  
 org.apache.catalina.core.StandardHostValve.invoke(StandardHos
 tValve.jav
  a:18
  0)
 at
  
 org.apache.catalina.core.StandardPipeline$StandardPipelineVal
 veContext.
  invo
  

AW: AW: [ot] Re: GD Lib for TC or Java ?

2003-06-26 Thread Power-Netz \(Schwarz\)
 In that case - You can use awt to an offscreen buffer and just 
 use all the 
 awt methods. Then conver the buffer to an image. There are plenty google 
 links about this.
 

Interresting idea. Thx.

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



Re: Where to place the tomcat distribution in file system

2003-06-26 Thread John Turner
That's why the best practice is to set CATALINA_HOME and JAVA_HOME and be 
done with it.

The only time your multiple environments (many operating systems) cause 
problems is if developers are lazy and hardcode paths into their properties 
and source code.

If you don't hardcode paths, you can refer to the environment variables 
that all the documentation says to use:  CATALINA_HOME for the location of 
Tomcat, and JAVA_HOME for the location of the JDK.  Since the servlet 
specification is written to encourage web-app portability, properly using 
relative paths and properly using environment variables such as 
CATALINA_HOME is the best practice, since all files that the web 
application needs will either be under the Host's docBase or in some other 
location reachable by Tomcat's ClassLoader. Simple.

John

On Thu, 26 Jun 2003 12:07:42 +0200, Hayo Schmidt [EMAIL PROTECTED] wrote:

off-topicI have a Folder C:\Programme and a Folder C:\Program Files on
my windows system, just because some installers are not programmed
correctly./off-topic.
The point is, i can do what i like with my personal system. But i am
working together with colleagues and clients, i might use several
systems (FreeBSD, SuSE, Mandrake, Debian...) that members of my computer
club (http://www.hmh-ev.de) have set up. And all people can do what they
like on their systems.
Having an official *recommendation*, just that, would make life much
easier than it is now.
Yes, standards make life easier.

Hayo

Jason Bainbridge schrieb:

On Wed, 25 Jun 2003 17:09, Hayo Schmidt wrote:


The different locations make it difficult to understand systems other
people have set up.  And that wastes time.
This obviously is a general problem of Linux.


I hate statements like that... What about the fact that one of the first 
options within just about any Windows based installset is to select the 
location you wish to install to? I've seen C:\Program Files\, D:\Program 
Files and even on E:...

So it's a quirk of human nature not of any O/S related problem, 
different people like different things so they do things differently. :)

At least on Linux normal users are restricted to their Home directory so 
they can't muck up the actual filesystem without knowing at least a 
little about what they are doing...







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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Multiple webapp locations

2003-06-26 Thread John Turner
A Context's docBase can be anywhere, absolute or relative.

The disadvantage to absolute is you may run into OS issues, such as a 
docBase of C:\webapps not existing on a Solaris system.  I'm sure the 
gurus can explain other disadvantages.

In my experience, the best thing to do is create separate appBase's for 
each Host, and then use a docBase relative to that appBase, with the 
appBase relative to CATALINA_HOME.  Then it doesn't matter what OS you are 
running, as long as CATALINA_HOME and JAVA_HOME are set and you don't have 
problems with case-sensitivity, and you don't use symbolic links, your 
entire Tomcat hosting environment is essentially portable, server.xml and 
all.

John

On Thu, 26 Jun 2003 07:25:15 -0400, Mike Hulse [EMAIL PROTECTED] 
wrote:

I haven't read through all of the documentation yet, but while I was
looking at the manager app and trying to understand how it works
I noticed something.  The manager app is not in
/jakarta-tomcat-4.1.24/webapps.
Instead there is a manager.xml that has a context
Context path=/manager docBase=../server/webapps/manager debug=0
privileged=true
Does that mean if I put a app.xml in /jakarta-tomcat-4.1.24/webapps I can
serve my app
from directories other than /jakarta-tomcat-4.1.24/webapps?  If so, are
there any advantages
or disadvantages of doing that?
Thanks,
Mike


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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Multiple webapp locations

2003-06-26 Thread Mike Hulse
Thanks, that's what I was looking for.

Mike

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 8:32 AM
Subject: Re: Multiple webapp locations



 A Context's docBase can be anywhere, absolute or relative.

 The disadvantage to absolute is you may run into OS issues, such as a
 docBase of C:\webapps not existing on a Solaris system.  I'm sure the
 gurus can explain other disadvantages.

 In my experience, the best thing to do is create separate appBase's for
 each Host, and then use a docBase relative to that appBase, with the
 appBase relative to CATALINA_HOME.  Then it doesn't matter what OS you are
 running, as long as CATALINA_HOME and JAVA_HOME are set and you don't have
 problems with case-sensitivity, and you don't use symbolic links, your
 entire Tomcat hosting environment is essentially portable, server.xml and
 all.

 John

 On Thu, 26 Jun 2003 07:25:15 -0400, Mike Hulse [EMAIL PROTECTED]
 wrote:

  I haven't read through all of the documentation yet, but while I was
  looking at the manager app and trying to understand how it works
  I noticed something.  The manager app is not in
  /jakarta-tomcat-4.1.24/webapps.
  Instead there is a manager.xml that has a context
  Context path=/manager docBase=../server/webapps/manager debug=0
  privileged=true
  Does that mean if I put a app.xml in /jakarta-tomcat-4.1.24/webapps I
can
  serve my app
  from directories other than /jakarta-tomcat-4.1.24/webapps?  If so, are
  there any advantages
  or disadvantages of doing that?
 
  Thanks,
  Mike
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 --
 Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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





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



Re: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000

2003-06-26 Thread John Turner
This should all be covered in the ClassLoader HOWTO:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

John

On Thu, 26 Jun 2003 17:55:57 +0800, Mark Hayes [EMAIL PROTECTED] wrote:

Jason -
Related to this issue: class loading. If a JAR is required by a web-app, 
the
JAR should be placed in the web-app's WEB-INF/lib directory.  If said JAR 
is
required by multiple web-apps, the JAR should go in
TOMCAT_HOME/common/lib.  If said JAR is required by multiple web-apps, 
as
well as, by Java apps not running on Tomcat, should the JAR be moved to 
the
SDK ext directory?  I'm trying to avoid accumulating multiple copies of 
the
same JAR.

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:26 PM
To: Tomcat Users List
Subject: Re: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000
Can you try the below for me?

1. Delete the CATALINA_HOME environment variable
2. Make sure your JDK install is a vanilla install ie. you haven't put
anything in JAVA_HOME\lib\ext
3. Install Tomcat 4.1.24 somewhere like C:\tomcat4 just by extracting the
full
zip file.
4. REBOOT
5. From the command line run C:\tomcat4\bin\startup.bat -- startup.log
If it works brilliant, if it doesn't can you post the contents of
startup.log?
Thanks,
--
Jason Bainbridge
http://jblinux.org
-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 3:03 AM
To: Tomcat Users List
Subject: Re: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000
It sounds like it is getting confused with your various Tomcat installs,
what
are the environment variables you have got set?
A post in the archive suggested editing out the JMX MBeans stuff in
server.xml
and it worked for the original poster, so if you don't need it (if you 
don't
know what it is it is likely that you don't) so in server.xml comment out
the
following:

!-- Uncomment these entries to enable JMX MBeans support --
Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
I would be more tempted to look more at the environment variables and
possible
problems from the long paths though as a proper solution.
Regards,
--
Jason Bainbridge
http://jblinux.org
On Tue, 24 Jun 2003 17:32, Mark Hayes wrote:
Unable to start Tomcat 4.1.24 with sdk 1.4.1_03 on Windows 2000

ClassNotFoundException: org.apache.catalina.core.StandardServer

C:\Program Files\Apache Group\Tomcat 4.1\bincatalina run
Using CATALINA_BASE:   C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_HOME:   C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\temp
Using JAVA_HOME:   C:\j2sdk1.4.1_03
Jun 24, 2003 5:22:15 PM org.apache.commons.digester.Digester 
startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: 
org.apache.catalina.core.StandardServer

Have struggled with this for 2 days. Symptom occurs with LE version,
non-LE
version, exe version, and zip version  Symptom occurs with earlier 
version
of TC 4.1.x (4.1.12).  TC 4.0.1 starts OK on sdk 1.4.1_03

I am using catalina run to invoke Tomcat from the Tomcat bin 
directory.
JAVA_HOME and CATALINA_HOME are both set.

StandardServer is in C:\Program Files\Apache Group\Tomcat
4.1\server\lib\catalina.jar
Has anyone encountered this?  Have tried numerous uninstall/reinstall 
and
search hi and low with no success.



- -
COL Ltd in Hong Kong has checked this message for all
known viruses using SkyScan-AV powered by MessageLabs.
For information on this service e-mail [EMAIL PROTECTED]
or visit www.col.com.hk
- -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- -
COL Ltd in Hong Kong has checked this message for all
known viruses using SkyScan-AV powered by MessageLabs.
For information on this service e-mail [EMAIL PROTECTED]
or visit www.col.com.hk
- -
- -
COL Ltd in Hong Kong has checked this message for all known viruses using 
SkyScan-AV powered by MessageLabs. For information on this service e-mail 
[EMAIL PROTECTED] or visit www.col.com.hk
- -

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Re: Where to place the tomcat distribution in file system

2003-06-26 Thread John Turner
Oops...that should be Context's docBase.

John

On Thu, 26 Jun 2003 08:28:45 -0400, John Turner tomcat- 
[EMAIL PROTECTED] wrote:

That's why the best practice is to set CATALINA_HOME and JAVA_HOME and be 
done with it.

The only time your multiple environments (many operating systems) cause 
problems is if developers are lazy and hardcode paths into their 
properties and source code.

If you don't hardcode paths, you can refer to the environment variables 
that all the documentation says to use:  CATALINA_HOME for the location 
of Tomcat, and JAVA_HOME for the location of the JDK.  Since the servlet 
specification is written to encourage web-app portability, properly using 
relative paths and properly using environment variables such as 
CATALINA_HOME is the best practice, since all files that the web 
application needs will either be under the Host's docBase or in some 
other location reachable by Tomcat's ClassLoader. Simple.

John

On Thu, 26 Jun 2003 12:07:42 +0200, Hayo Schmidt [EMAIL PROTECTED] wrote:

off-topicI have a Folder C:\Programme and a Folder C:\Program Files on
my windows system, just because some installers are not programmed
correctly./off-topic.
The point is, i can do what i like with my personal system. But i am
working together with colleagues and clients, i might use several
systems (FreeBSD, SuSE, Mandrake, Debian...) that members of my computer
club (http://www.hmh-ev.de) have set up. And all people can do what they
like on their systems.
Having an official *recommendation*, just that, would make life much
easier than it is now.
Yes, standards make life easier.

Hayo

Jason Bainbridge schrieb:

On Wed, 25 Jun 2003 17:09, Hayo Schmidt wrote:


The different locations make it difficult to understand systems other
people have set up.  And that wastes time.
This obviously is a general problem of Linux.


I hate statements like that... What about the fact that one of the 
first options within just about any Windows based installset is to 
select the location you wish to install to? I've seen C:\Program 
Files\, D:\Program Files and even on E:...

So it's a quirk of human nature not of any O/S related problem, 
different people like different things so they do things differently. 
:)

At least on Linux normal users are restricted to their Home directory 
so they can't muck up the actual filesystem without knowing at least a 
little about what they are doing...







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






--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Cookie handling in IE6 and session handling of tomcat 4.1.24

2003-06-26 Thread David Keyes
IN GENERAL:
For any two domains, A and  B, if B is a subdomain of A (e.g., B.A), and if two 
different J2EE app servers are hosting those domains, the following will be true, 
assuming that the two appservers create session cookies that are identical except for 
the domain (note that a cookie consists of: name, domain, path, expiration):

* If a user, running Internet Explorer, uses J2EE apps running on both domains, 
causing a session to be established on both domains simultaneously, the client 
accessing the application running in domain B will not be able to access a session 
established in domain B.

This is due to the fact that IE orders cookies from least-specific to most-specific 
WITH RESPECT TO DOMAIN in an HTTP request.  ANY app server that looks for the FIRST 
cookie named JSESSIONID will be susceptible to this problem.

EXAMPLE:
In our case, tomcat was serving up JSPs on x.com, causing a J2EE servlet session to 
be created when that page was loaded.  Immediately after hitting x.com, w.x.com was 
being loaded, which also caused a session to be created.  Both sessions were being 
identified by cookies set in the client browser.  The cookies both had an ID of 
JSESSIONID, with an identical path.  The only difference between the cookies was the 
domain (one was x.com, and the other was w.x.com).  When interacting with the app 
on w.x.com, each request included an HTTP header  specifying client-side cookies.  In 
that header, the JSESSIONID created by x.com was ordered BEFORE the JSESSIONID created 
by w.x.com.  The appserver on domain w.x.com was consequently attempting to find the 
session that had been created on x.com, and since it could not, was creating a new 
session with each request.

Dave Keyes

-Original Message-
From: Suraj Berwal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 11:00 AM
To: Tomcat Users List
Subject: Cookie handling in IE6 and session handling of tomcat 4.1.24


dear tim,
   i am facing a similar problem with my clients on IE6.0 regarding the session 
handling using tomcat 4.1.24. Actually the data is getting swapped for users there. 
can you please elaborate on the info you have posted about cookie problem in IE and 
how it can affect the session handling in tomcat. i have a singlw webapp and the 
tomcat is running on Standalone mode.

re,
suraj berwal


Do you have other webapps? I thought I recall at one time, some version of IE 
did send cookies in the correct order. This can hurt session handling in tomcat.

-Tim

Billy Ng wrote:
 Hi folks;
 
 I have a customer complains the IE 6 sp1 times out the tomcat session way before 
 the tomcat default session time out settings.  I tried to reproduce it but I 
 can't.  Have anybody experienced this?
 
 Billy Ng
 


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



RE: InstanceListener

2003-06-26 Thread Shapira, Yoav

Howdy,

Turns out I had two problems:
1) InstanceListener className=/ DOESN'T work!!!  I had to use
InstanceListenerclass-name/InstanceListener.  This gets a BIG WTF!
Should EVERY server.xml element that takes a class work the same way?

It'd be nice if they were consistent, yes.  Of course, searching the
archives would have revealed this, e.g.:
http://w6.metronet.com/~wjm/tomcat/2001/Jul/msg00380.html

I have to say I was very surprised to see anyone using InstanceListener.
Given all the listeners that are part of the servlet specification, and
how little traffic there is about this tomcat-specific listener.  Why
are you using it?

If you really care about the XML syntax, submit a patch.

2) I needed to put my classes in a jar (untested, I made these two
changes at the same time so I could be wrong about this one.

Probably not.  But that should be easy to test.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: [OT] How to know Know the amount of memory used by Tomcat froma JSP page ?

2003-06-26 Thread Antony paul
I think it is supported in 4.1.24. I am using 4.1.18. It returns  FAIL - 
Unknown command /serverinfo

Antony


From: Tim Funk [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: [OT] How to know Know the amount of memory used by Tomcat 
froma JSP page ?
Date: Thu, 26 Jun 2003 07:48:01 -0400

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html#List%20OS%20and%20JVM%20Properties

-Tim

Antony wrote:
What is the command to get the status page ?. i an't find it in Tomcat 
docs.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


RE: servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Shapira, Yoav

Howdy,

In my servlet response.sendRedirect i am getting illegal state
exception
...could pl tell me how to avoid this...whats does it mean...

It's actually pretty clearly indicates in the JavaDoc for
HttpServletResponse#sendRedirect.

Don't write to the response before redirecting it.  If you can help it,
don't even open a writer or output stream to the response before
redirecting it.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat with Axis

2003-06-26 Thread Shapira, Yoav

Howdy,
Remove everything from the webapps directory except your axis webapp.

Remove all the Context elements from server.xml except the one for
your axis webapp, if you have one.

Remove all unused Connector elements from server.xml.

Don't mess with tomcat's directory structure.

That should about cover it,

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: sandeep arshanapally [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:17 PM
To: [EMAIL PROTECTED]
Subject: Tomcat with Axis


Hi,

 I am using tomcat as a servlet container for Axis SOAP engine. I
just
need this aspect of tomcat and nothing else but when I start tomcat, it
seem
to be starting lot of other things. I removed some of them but is there
any
document specifying what components are for what ? And also is it
possible
to straighten the directory structure and have only those directories
that
are required?

The version of tomcat being used is 4.1.24 LE jdk1.4.

Any information would be helpful.


Thanks in advance,

Sandeep

_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: cannot get Remote User

2003-06-26 Thread Eulogio Robles
I am using Basic authentication with Apache, creating login and 
passwords with $APACHE_HOME/bin/htpasswd. The browser displays the 
standard authentication dialog.

Richey, Clark wrote:

What exactly are you doing to prompt for login/password?

	-Original Message- 
	From: Eulogio Robles [mailto:[EMAIL PROTECTED] 
	Sent: Wed 6/25/2003 6:46 PM 
	To: [EMAIL PROTECTED] 
	Cc: 
	Subject: cannot get Remote User
	
	

I'm running Apache + Tomcat (latest versions), mod_jk2, and Apache is
using SSL.

I have some password protected pages, using normal Apache directives.
However, my JSP pages are unable to get the rmote username :
request.getRemoteUser() always returns null, and the the browser does
ask for login/password before displaying the page.

Any ideas?

E. Robles
Metropolis Intercom


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


 



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


Re: [OT] How to know Know the amount of memory used by Tomcat fromaJSP page ?

2003-06-26 Thread Tim Funk
In that case - either:
- Your SOL until you upgrade
- You can use the manager source to get just that functionality in a new 
servlet just for you

-Tim

Antony paul wrote:
I think it is supported in 4.1.24. I am using 4.1.18. It returns  FAIL - 
Unknown command /serverinfo

Antony


From: Tim Funk [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: [OT] How to know Know the amount of memory used by Tomcat 
froma JSP page ?
Date: Thu, 26 Jun 2003 07:48:01 -0400

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html#List%20OS%20and%20JVM%20Properties 

-Tim

Antony wrote:

What is the command to get the status page ?. i an't find it in 
Tomcat docs.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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



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


Re: What are the possible attributes of the Context element ?

2003-06-26 Thread Antony paul
What is the use of caching allowed ? What is its default value if I didn't 
set it in server.xml ?

Antony

From: Tim Funk [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: What are the possible attributes of the Context element ?
Date: Thu, 26 Jun 2003 07:37:19 -0400
Use the javadocs.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/core/StandardContext.html
Anything public that starts with set can be included in server.xml (within 
the contraints of Digester)

-Tim

Antony wrote:
When I searched the net I found some documents containing
cachingAllowed=true,checkInterval=1 and so many.  I can't find
documentation for these attributes in Tomcat 4.1 docs. What is the use of
the  attribute cachingAllowed and  checkInterval ?.  I saw the page at
jGuru Tomcat  FAQ http://www.jguru.com/faq/view.jsp?EID=24607 .
The full element is included here.
Context ClassName=org.apache.catalina.core.StandardContext


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: multiuser setup: please help

2003-06-26 Thread John Turner
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html

The section marked User Web Applications should be what you want.

John

On Thu, 26 Jun 2003 09:17:33 -0230 (NDT), Neil Zanella [EMAIL PROTECTED] 
wrote:

Hello,

I have successfully setup Tomcat but now I want the following:

Suppose some Linux based system has a dynamic and constantly changing
number of users ranging in the thousands. I would like to set up
tomcat so that:
Each user gets a context root in a directory such as:
http://localhost:8080/~johndoe/contextroot/
This happens in such a way that when a request to a subdirectory
that looks like the one above is issued, Tomcat automatically
knows how to handle it. Is this possible?
This would be ideal. I don't see why it shouldn't be possible.

If this is impossible, then consider it to be a missing feature
from tomcat. I almost feel it should be documented somewhere if
available, otherwise, if not available, it should be implemented.
I guess I could define a path mapping of the form:

http://localhost:8080/~+/contextroot/

I actually tried this but it did not work: I used the path mapping
inside the webapps/ROOT/WEB-INF/web.xml file:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app

display-namewelcome/display-name
descriptionThese examples are from the created contextroot subdirectory 
of webapps./description
servlet
servlet-namewelcome/servlet-name
descriptionThis web application welcomes you./description
servlet-classWelcomeServlet/servlet-class
/servlet
servlet-mapping
servlet-namewelcome/servlet-name
url-patternhttp://localhost:8080/~*/contextroot/*/url-pattern
/servlet-mapping

/web-app

I thought I could have the URL execute a servlet, that would execute
then execute a servlet from the users' directory. Sound complicated?
Perhaps there is an easier way???
Suggestions very welcome!!!

Neil

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Unable to compile JSP on Win 2k sp3, tc 4.1.24 as service, sdk 1. 4.1_03 - Is there a solution?

2003-06-26 Thread White, Joshua A (HTSC, CASD)
This is urgent.  Your help would be much appreciated.  As mentioned above, I
have installed tomcat 4.1.24 as a service on Win 2k sp3 using sdk 1.4.1_03.
JAVA_HOME and CATALINA_HOME have been defined as an enviromental variable.
I am able to run all the jsp examples.  When I run my app and hit the first
jsp, I receive the following error listed below.  I have scoured the
archives and found this problem mentioned numerous times but found no
solution.  If you know the solution to this problem, please point me in the
right direction.
 
Regards,
 
Joshua
 
 
org.apache.jasper.JasperException: Unable to compile class for JSP



An error occurred at line: -1 in the jsp file: null



Generated servlet error:

[javac] Since fork is true, ignoring compiler setting.

[javac] Compiling 1 source file

[javac] Since fork is true, ignoring compiler setting.

[javac] javac: invalid flag: C:\Program

[javac] Usage: javac  

[javac] where possible options include:

[javac]   -gGenerate all debugging info

[javac]   -g:none   Generate no debugging info

[javac]   -g:{lines,vars,source}Generate only some debugging info

[javac]   -nowarn   Generate no warnings

[javac]   -verbose  Output messages about what the
compiler is doing

[javac]   -deprecation  Output source locations where
deprecated APIs are used

[javac]   -classpath  Specify where to find user class files

[javac]   -sourcepath Specify where to find input source files

[javac]   -bootclasspath  Override location of bootstrap class files

[javac]   -extdirsOverride location of installed extensions

[javac]   -d Specify where to place generated class files

[javac]   -encoding   Specify character encoding used by source
files

[javac]   -source  Provide source compatibility with specified
release

[javac]   -target  Generate class files for specific VM version

[javac]   -help Print a synopsis of standard options









at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)

at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)

at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)

at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)

at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)

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

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

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

at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)

at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)

at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)

at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)

at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
r.java:274)

at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRe
questProcessor.java:254)

at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequ
estProcessor.java:309)

at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)

at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)

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

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

at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)

at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)

at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)

at comptrak.web.signon.SignOnFilter.doFilter(SignOnFilter.java:105)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)

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

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

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

at

RE: servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Shanta B
Hi
I find the problem ...and i rectify it ...

-Original Message-
From: Tim Davidson [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 12:17 PM
To: Tomcat Users List
Subject: RE: servlet response.sendRedirect() illegal state exception 


It means a response has already been committed (i.e. you have already
committed to sending HTML from that servlet). Somewhere it your code you are
using the printWriter or response.sendRedirect or you are already forwarding
to another servlet. You should avoid having more than one
response.sendRedirect/forward or controling it with if statements.
You cant do this:
 out.print(HTML);
 response.sendRedirect(..);
 this would cause the llegal state exception.

-Original Message-
From: Shanta B [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 10:49 AM
To: Tomcat Users List
Subject: servlet response.sendRedirect() illegal state exception 


Hi
In my servlet response.sendRedirect i am getting illegal state exception
...could pl tell me how to avoid this...whats does it mean...


Thanks
Shanta.B

-Original Message-
From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:40 AM
To: [EMAIL PROTECTED]
Subject: ISAPI integration: Tomcat 4.1.24, IIS 5 with HTTP PUT request


Hello,

I am faced to the problem that the Tomcat-IIS integration doesn't work when
doing some HTTP PUT Request!
HTTP GET and HTTP POST requests works well.
Also HTTP PUT Request works well when running Tomcat standalone (w/o IIS,
Port 8080).

You have some Idea? I do not.

Hartmut Bernecker



THE REQUEST:

PUT /asim/savexml?hierid=12 HTTP/1.1
Content-Type: text/xml
User-Agent: XMLSpyDocEditPlugIn
Host: ep158:
Content-Length: 943
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=9A85D9E5B0796C0C309DBC3EB207235F

?xml version=1.0 encoding=UTF-8?
af-longtext
[... some xml data ...]
/af-longtext

THE RESPONSE:

HTTP/1.1 500 Server Error
Server: Microsoft-IIS/5.0
Date: Wed, 25 Jun 2003 14:06:05 GMT
Connection: close
Content-Type: text/html
Content-Length: 79

htmlheadtitleError/title/headbodyFalscher Parameter.
/body/html

THE ISAPI-LOG:

[Wed Jun 25 16:02:16 2003]  [jk_ajp_common.c (1318)]: Error connecting to
tomcat. Tomcat is probably not started or is listening on the wrong port.
Failed errno = 61
[Wed Jun 25 16:02:16 2003]  [jk_isapi_plugin.c (928)]: HttpExtensionProc
error, service() failed

WORKERS PROPERTIES:

worker.list=testWorker
worker.testWorker.port=8009
worker.testWorker.host=localhost
worker.testWorker.type=ajp13

URIWORKERMAP PROPERTIES:

/myApp/*=testWorker





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

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



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

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



RE: What are the possible attributes of the Context element ?

2003-06-26 Thread Shapira, Yoav

Howdy,
The cachingAllowed property defaults to true.  It means the context can
cache resources, e.g. when you do ServletContext#getResource(/x) it
can cache the result in a Map whose key is /x and whose value is the
URL you get from the getResource call.  (This caching implementation is
not exactly what's actually done, I simplified it for illustration
purposes).

This speeds up future resource lookups at the expense of if you change
/x and cachingAllowed is true you won't pick up the modified version
of /x.  So this can be viewed as a production versus development kind
of setting.

In the future, feel free to look at the source code:
http://cvs.apache.org/viewcvs/jakarta-tomcat-catalina/catalina/src/share
/org/apache/catalina/core/StandardContext.java?rev=HEADcontent-type=tex
t/vnd.viewcvs-markup

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Antony paul [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:19 AM
To: [EMAIL PROTECTED]
Subject: Re: What are the possible attributes of the Context element ?

What is the use of caching allowed ? What is its default value if I
didn't
set it in server.xml ?

Antony

From: Tim Funk [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: What are the possible attributes of the Context element ?
Date: Thu, 26 Jun 2003 07:37:19 -0400

Use the javadocs.
http://jakarta.apache.org/tomcat/tomcat-4.1-
doc/catalina/docs/api/org/apache/catalina/core/StandardContext.html

Anything public that starts with set can be included in server.xml
(within
the contraints of Digester)

-Tim

Antony wrote:
When I searched the net I found some documents containing
cachingAllowed=true,checkInterval=1 and so many.  I can't find
documentation for these attributes in Tomcat 4.1 docs. What is the
use of
the  attribute cachingAllowed and  checkInterval ?.  I saw the page
at
jGuru Tomcat  FAQ http://www.jguru.com/faq/view.jsp?EID=24607 .

The full element is included here.
Context ClassName=org.apache.catalina.core.StandardContext


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


_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



java out of f memory exception

2003-06-26 Thread Shanta B
Hi
Whats the reason behind java out of memory exception...How to solve
it?When java runs GC internally why we are getting this type of
exceptionWhat happens if i increase the Heap size...does it effect java
GC.


Shanta.B

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



Log4j problem mixing 2 apps

2003-06-26 Thread Jim Lynch
I've two different applications running, using log4j to log.  For some
reason output destined for one app gets in the others log.  It looks
like only one application can have a log at a time.  

What might I have done to cause this problem? It looks like the
application that has been deployed last gets all the log messages.

Thanks,
Jim.

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



Re: Unable to compile JSP on Win 2k sp3, tc 4.1.24 as service, sdk 1. 4.1_03 - Is there a solution?

2003-06-26 Thread Vladimer Shioshvili
when defining the environmental variables (path as well for jdk/bin 
directory), instead of c:\Program Files\... try putting the same thing in 
double quotes... so you will have something like this:

for path e.g. C:\WINNT;C:\program files\jdk1.4..

see if this helps..

cheers
Vlad
At 09:34 AM 6/26/2003, you wrote:
This is urgent.  Your help would be much appreciated.  As mentioned above, I
have installed tomcat 4.1.24 as a service on Win 2k sp3 using sdk 1.4.1_03.
JAVA_HOME and CATALINA_HOME have been defined as an enviromental variable.
I am able to run all the jsp examples.  When I run my app and hit the first
jsp, I receive the following error listed below.  I have scoured the
archives and found this problem mentioned numerous times but found no
solution.  If you know the solution to this problem, please point me in the
right direction.
Regards,

Joshua

org.apache.jasper.JasperException: Unable to compile class for JSP



An error occurred at line: -1 in the jsp file: null



Generated servlet error:

[javac] Since fork is true, ignoring compiler setting.

[javac] Compiling 1 source file

[javac] Since fork is true, ignoring compiler setting.

[javac] javac: invalid flag: C:\Program

[javac] Usage: javac

[javac] where possible options include:

[javac]   -gGenerate all debugging info

[javac]   -g:none   Generate no debugging info

[javac]   -g:{lines,vars,source}Generate only some debugging info

[javac]   -nowarn   Generate no warnings

[javac]   -verbose  Output messages about what the
compiler is doing
[javac]   -deprecation  Output source locations where
deprecated APIs are used
[javac]   -classpath  Specify where to find user class files

[javac]   -sourcepath Specify where to find input source files

[javac]   -bootclasspath  Override location of bootstrap class files

[javac]   -extdirsOverride location of installed extensions

[javac]   -d Specify where to place generated class files

[javac]   -encoding   Specify character encoding used by source
files
[javac]   -source  Provide source compatibility with specified
release
[javac]   -target  Generate class files for specific VM version

[javac]   -help Print a synopsis of standard options









at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)

at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
73)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
90)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)

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

at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
69)
at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
r.java:274)
at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRe
questProcessor.java:254)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequ
estProcessor.java:309)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

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

at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
at comptrak.web.signon.SignOnFilter.doFilter(SignOnFilter.java:105)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at

RE: java out of f memory exception

2003-06-26 Thread Shapira, Yoav

Howdy,

Whats the reason behind java out of memory exception...How to solve

The JVM doesn't have enough memory to accomplish what it's trying to do.
This happens either because your program simply requires more memory
than the heap has, or because your program is flawed with regard to
releasing object references, thereby preventing garbage collection from
freeing up memory.

There is much literature on this subject, including in this list's
archives and on java.sun.com.  For starters, you can increase the heap
using -XmxNm where N is the maximum number of megabytes of RAM to
allocate to the heap.  This N is 64 by default.

exceptionWhat happens if i increase the Heap size...does it effect
java
GC.

Increasing heap size affects GC, but not necessarily in a negative way.
You should research this issue a bit more and then post more
application-specific memory usage questions if you have them.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: java out of f memory exception

2003-06-26 Thread Tim Funk
First all the threads on this page:

http://jakarta.apache.org/tomcat/faq/memory.html

-Tim

Shanta B wrote:
Hi
Whats the reason behind java out of memory exception...How to solve
it?When java runs GC internally why we are getting this type of
exceptionWhat happens if i increase the Heap size...does it effect java
GC.
Shanta.B


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


RE: Log4j problem mixing 2 apps

2003-06-26 Thread Shapira, Yoav

Howdy,
Make sure the log4j jar is in each app's WEB-INF/lib directory, not in
tomcat's common/lib directory.  Make sure each app has its own
configuration files and that the log files for the apps are different.

Alternatively, you could use a servlet context repository selector, but
the above should be sufficient.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:41 AM
To: tomcat
Subject: Log4j problem mixing 2 apps

I've two different applications running, using log4j to log.  For some
reason output destined for one app gets in the others log.  It looks
like only one application can have a log at a time.

What might I have done to cause this problem? It looks like the
application that has been deployed last gets all the log messages.

Thanks,
Jim.

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Log4j problem mixing 2 apps

2003-06-26 Thread Vladimer Shioshvili
easiest solution is to use log4j in the context scope, instead of 
application scope. meaning that you put your log4j.jar file in web-inf/lib 
of every context, instead of some central location. each application will 
have to configure the logger separately after that, and you will have no 
interference.

cheers,
Vlad
At 09:40 AM 6/26/2003, you wrote:
I've two different applications running, using log4j to log.  For some
reason output destined for one app gets in the others log.  It looks
like only one application can have a log at a time.
What might I have done to cause this problem? It looks like the
application that has been deployed last gets all the log messages.
Thanks,
Jim.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155 

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


RE: Log4j problem mixing 2 apps

2003-06-26 Thread Donie Kelly
I have this problem as well but my log4j.jar is in WEB-INF/lib in both
contexts. The problem happens exactly the same way. The last app to load
sets the logging for each webapp and all the logs go to the same location.

Donie


-Original Message-
From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED]
Sent: 26 June 2003 14:48
To: Tomcat Users List
Subject: Re: Log4j problem mixing 2 apps

easiest solution is to use log4j in the context scope, instead of
application scope. meaning that you put your log4j.jar file in web-inf/lib
of every context, instead of some central location. each application will
have to configure the logger separately after that, and you will have no
interference.

cheers,
Vlad

At 09:40 AM 6/26/2003, you wrote:
I've two different applications running, using log4j to log.  For some
reason output destined for one app gets in the others log.  It looks
like only one application can have a log at a time.

What might I have done to cause this problem? It looks like the
application that has been deployed last gets all the log messages.

Thanks,
Jim.

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


Vladimer Shioshvili

QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814

Phone: (301) 657 3077 ext. 155


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

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



Integrate Tomcat 5 with JBuilder9

2003-06-26 Thread Sylvain Renaudon
We are trying to use Tomcat 5 with jbuilder 9 as this IDE do for Tomcat 4.X
.
To do this, we've tried to clone the tomcat 4.1 server configuration of
jbuilder ...
I can see now we where a bit naive ...


Does anybody knows how to integrate Tomcat 5 with jbuilder 9 ??

thanks,
Sylvain





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



Anyone done? Tomcat iis on separate machines

2003-06-26 Thread Paresh Varatkar

Hi
Is it possible to configure iis and tomcat when each of them are running =
on different machines using tomcat iis connector.
I am able to run my application on same machine
Regards
Paresh



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



Re: Cookie handling in IE6 and session handling of tomcat 4.1.24

2003-06-26 Thread Suraj Berwal
Hi All,
 I have resolved the problem today. The problem was that the cache in the proxy at 
the client side was not getting refreshed
with each request whereas it was on the browser. So the proxy was at first instance 
serving the pages from the cache itself. But on 
refreshing the page the user was able to see the original content and not always. The 
problem was resolved by expiring the cache on 
the proxy also. Strange thing is that the html pages had the Expires meta-tag 
enabled but that does not work with cache.
 
   David, thanks for your exhaustive info but we don't have two domains here. we only 
have one domain x.com and one application 
running on that domain. 
 
   Any other inputs are welcome.

Regards,
Suraj Berwal. 
-
IN GENERAL:
For any two domains, A and  B, if B is a subdomain of A (e.g., B.A), and if two 
different J2EE app servers are hosting those domains, the following will be true, 
assuming that the two appservers create session cookies that are identical except for 
the domain (note that a cookie consists of: name, domain, path, expiration):

* If a user, running Internet Explorer, uses J2EE apps running on both domains, 
causing a session to be established on both domains simultaneously, the client 
accessing the application running in domain B will not be able to access a session 
established in domain B.

This is due to the fact that IE orders cookies from least-specific to most-specific 
WITH RESPECT TO DOMAIN in an HTTP request.  ANY app server that looks for the FIRST 
cookie named JSESSIONID will be susceptible to this problem.

EXAMPLE:
In our case, tomcat was serving up JSPs on x.com, causing a J2EE servlet session to 
be created when that page was loaded.  Immediately after hitting x.com, w.x.com was 
being loaded, which also caused a session to be created.  Both sessions were being 
identified by cookies set in the client browser.  The cookies both had an ID of 
JSESSIONID, with an identical path.  The only difference between the cookies was the 
domain (one was x.com, and the other was w.x.com).  When interacting with the app 
on w.x.com, each request included an HTTP header  specifying client-side cookies.  In 
that header, the JSESSIONID created by x.com was ordered BEFORE the JSESSIONID created 
by w.x.com.  The appserver on domain w.x.com was consequently attempting to find the 
session that had been created on x.com, and since it could not, was creating a new 
session with each request.

Dave Keyes

-Original Message-
From: Suraj Berwal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 11:00 AM
To: Tomcat Users List
Subject: Cookie handling in IE6 and session handling of tomcat 4.1.24


dear tim,
   i am facing a similar problem with my clients on IE6.0 regarding the session 
handling using tomcat 4.1.24. Actually the data is getting swapped for users there. 
can you please elaborate on the info you have posted about cookie problem in IE and 
how it can affect the session handling in tomcat. i have a singlw webapp and the 
tomcat is running on Standalone mode.

re,
suraj berwal


Do you have other webapps? I thought I recall at one time, some version of IE 
did send cookies in the correct order. This can hurt session handling in tomcat.

-Tim

Billy Ng wrote:
 Hi folks;
 
 I have a customer complains the IE 6 sp1 times out the tomcat session way before 
 the tomcat default session time out settings.  I tried to reproduce it but I 
 can't.  Have anybody experienced this?
 
 Billy Ng
 


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





JK2 question again + context in a different partition

2003-06-26 Thread Hertenstein Alain
Hi again,

I've got a couple of questions :
- is it possible to create a context whose path goes to another partition ?
Let's say Tomcat is installed in the c:\tomcat4 folder. Is it possible to
have a Web Application on the d:\myWebApps folder ?
- in the uri mapping section of the workers2.properties file, in case of a
JK2 connector for IIS and Tomcat, is it possible to map 2 different contexts
? This would look something like this :

-
# Map the Tomcat examples webapp AND myWebApp to the Web server uri space
[uri:/examples/*]
[uri:/myWebApp/*]
info=Map both webapps
--

Is this valid, or should I do it another way ?

Thanks a lot for your help.
Best regards
Alain


**
 This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


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



java.lang.IllegalArgumentException: addChild: Child name 'default' is not unique

2003-06-26 Thread Gregory, Carlton

Has anyone encountered the problem listed as my subject line before?

I do believe my tags are in the right order. I printed out the dtd frm Sun.

I just keep recieving http 404

Im running Tomcat 4.1.24 on Win3k Pro and Apache 2.0.45. I have cleared my
logs. Stopped Tomcat and Apache then restarted both.

Thanks for your time and help in advance.

2003-06-25 15:22:24 WebappLoader[/test]: Deploying class repositories to
work directory C:\Program
Files\jakarta-tomcat-4.1.24\work\Standalone\localhost\test
2003-06-25 15:22:24 WebappLoader[/test]: Deploy class files /WEB-INF/classes
to C:\Program
Files\jakarta-tomcat-4.1.24\bin\..\webapps\test\WEB-INF\classes
2003-06-25 15:22:24 WebappLoader[/test]: Reloading checks are enabled for
this Context
2003-06-25 15:22:24 StandardManager[/test]: Seeding random number generator
class java.security.SecureRandom
2003-06-25 15:22:24 StandardManager[/test]: Seeding of random number
generator has been completed
2003-06-25 15:22:24 StandardWrapper[/test:default]: Loading container
servlet default
2003-06-25 15:22:24 StandardWrapper[/test:invoker]: Loading container
servlet invoker
2003-06-25 15:22:25 WebappLoader[]: Deploying class repositories to work
directory C:\Program Files\jakarta-tomcat-4.1.24\work\Standalone\localhost\_
2003-06-25 15:22:25 WebappLoader[]: Deploy class files /WEB-INF/classes to
C:\Program Files\jakarta-tomcat-4.1.24\bin\..\webapps\ROOT\WEB-INF\classes
2003-06-25 15:22:25 ContextConfig[] Parse error in application web.xml
java.lang.IllegalArgumentException: addChild:  Child name 'default' is not
unique
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2383)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2409)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1067)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

2003-06-25 15:22:25 ContextConfig[]: Occurred at line 57 column 15
2003-06-25 15:22:25 ContextConfig[]: Marking this application unavailable
due to previous error(s)
...



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



Re: cannot get Remote User

2003-06-26 Thread Eulogio Robles
I had added the attribute some weeks ago. Some kind soul over here 
commented it out and did not inform. My falut, I did not check it before.

Regards,

E. Robles

Bill Barker wrote:

I'm assuming that you've set:
request.tomcatAuthentication=false
in your jk2.properties file.

Eulogio Robles [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 

I'm running Apache + Tomcat (latest versions), mod_jk2, and Apache is
using SSL.
I have some password protected pages, using normal Apache directives.
However, my JSP pages are unable to get the rmote username :
request.getRemoteUser() always returns null, and the the browser does
ask for login/password before displaying the page.
Any ideas?

E. Robles
Metropolis Intercom
   





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




referenced files such as images, js and css files seem to randoml y not get downloaded by the users browser

2003-06-26 Thread White, Joshua A (HTSC, CASD)
Hello all,

I am proxying through IIS to Tomcat.  I have noticed that referenced files
such as images, js and css files seem to randomly not get downloaded by the
users browser.  Has anyone else had such a problem?  Refreshing the page
usually fixes the problem.

I have cleared users cache and changed IE to check for a new version of the
page every time.  No silver bullet.  I am not sure where to go with this.
Any ideas?

Regards, 

Joshua White


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



RE: InstanceListener

2003-06-26 Thread Angus Mezick
Yup, saw that message.  I also found one written by Craig that had the
syntax I was expecting.  As for why I am using it, I am writing a JDBC
session manager.  The sessions are only in memory when actively being
used and then stored in the DB.  I figure that 1 network transaction per
page to the DB affecting 1 server is better that 1 multicast per page to
ALL 6 servers in a cluster.  Also a bit nicer on memory usage.  I have
NO real limit on how many sessions I can support.  I need the instance
listener to catch the AFTER_SERVICE event.  This allows me to update my
session once the servlet/jsp processing has completed.  I just need to
filter out all non/servlet traffic (just remove the default servlet
entries) and I am all set!  Right now I just dislike the fact that the
manager app gets the whole session array and then does a count on it
instead of asking the manager for a count.  Makes things a bit messy.
--Angus

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, June 26, 2003 9:04 AM
 To: Tomcat Users List
 Subject: RE: InstanceListener
 
 
 
 Howdy,
 
 Turns out I had two problems:
 1) InstanceListener className=/ DOESN'T work!!!  I had to use
 InstanceListenerclass-name/InstanceListener.  This gets 
 a BIG WTF!
 Should EVERY server.xml element that takes a class work the same way?
 
 It'd be nice if they were consistent, yes.  Of course, searching the
 archives would have revealed this, e.g.:
 http://w6.metronet.com/~wjm/tomcat/2001/Jul/msg00380.html
 
 I have to say I was very surprised to see anyone using 
 InstanceListener.
 Given all the listeners that are part of the servlet 
 specification, and
 how little traffic there is about this tomcat-specific listener.  Why
 are you using it?
 
 If you really care about the XML syntax, submit a patch.
  
 2) I needed to put my classes in a jar (untested, I made these two
 changes at the same time so I could be wrong about this one.
 
 Probably not.  But that should be easy to test.
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: Log4j problem mixing 2 apps

2003-06-26 Thread Prabhat Kumar (IT)
 Alternatively, you could use a servlet context repository selector, but
 the above should be sufficient.

Curious about what you mean by this (servlet context repository selector)?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:47 AM
To: Tomcat Users List
Subject: RE: Log4j problem mixing 2 apps



Howdy,
Make sure the log4j jar is in each app's WEB-INF/lib directory, not in
tomcat's common/lib directory.  Make sure each app has its own
configuration files and that the log files for the apps are different.

Alternatively, you could use a servlet context repository selector, but
the above should be sufficient.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:41 AM
To: tomcat
Subject: Log4j problem mixing 2 apps

I've two different applications running, using log4j to log.  For some
reason output destined for one app gets in the others log.  It looks
like only one application can have a log at a time.

What might I have done to cause this problem? It looks like the
application that has been deployed last gets all the log messages.

Thanks,
Jim.

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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


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



Re: Anyone done? Tomcat iis on separate machines

2003-06-26 Thread John Turner
Change the .host parameter of workers.properties to the IP address of the 
machine with Tomcat installed.

John

On Thu, 26 Jun 2003 08:01:47 -0700, Paresh Varatkar [EMAIL PROTECTED] 
wrote:

Hi
Is it possible to configure iis and tomcat when each of them are running 
=
on different machines using tomcat iis connector.
I am able to run my application on same machine
Regards
Paresh



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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JK2 question again + context in a different partition

2003-06-26 Thread John Turner
Answer #1: Yes.

Answer #2: I think so, but I don't use JK2. Should be easy to test.

John

On Thu, 26 Jun 2003 17:24:44 +0200, Hertenstein Alain 
[EMAIL PROTECTED] wrote:

Hi again,

I've got a couple of questions :
- is it possible to create a context whose path goes to another partition 
?
Let's say Tomcat is installed in the c:\tomcat4 folder. Is it possible 
to
have a Web Application on the d:\myWebApps folder ?
- in the uri mapping section of the workers2.properties file, in case of 
a
JK2 connector for IIS and Tomcat, is it possible to map 2 different 
contexts
? This would look something like this :

-
# Map the Tomcat examples webapp AND myWebApp to the Web server uri space
[uri:/examples/*]
[uri:/myWebApp/*]
info=Map both webapps
--
Is this valid, or should I do it another way ?

Thanks a lot for your help.
Best regards
Alain
**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: referenced files such as images, js and css files seem to randoml y not get downloaded by the users browser

2003-06-26 Thread John Turner
Some of our users encounter the same problem, but only with GIF and JPEG.  
As far as we have been able to determine, it is due to minor version of IE. 
Microsoft seems incapable of releasing minor versions of IE with any sort 
of consistency.

That is, in our testing, we encountered things like:

IE Version 6.0.012345678 - works great always

IE Version 6.0.044467899 - doesn't work, has lots of problems

IE Version 6.0.101010101 - works great always

We even encountered differences between the same IE minor version and 
whether it was the 128-bit version or not.

In short, we tell our users upgrade your browser.

John

On Thu, 26 Jun 2003 12:51:57 -0400, White, Joshua A (HTSC, CASD) 
[EMAIL PROTECTED] wrote:

Hello all,

I am proxying through IIS to Tomcat.  I have noticed that referenced 
files
such as images, js and css files seem to randomly not get downloaded by 
the
users browser.  Has anyone else had such a problem?  Refreshing the page
usually fixes the problem.

I have cleared users cache and changed IE to check for a new version of 
the
page every time.  No silver bullet.  I am not sure where to go with this.
Any ideas?

Regards,

Joshua White

This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If you 
are not the intended recipient, please notify the sender immediately by 
return email and delete this communication and destroy all copies.

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Log4j problem mixing 2 apps

2003-06-26 Thread Shapira, Yoav

Howdy,
See
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/spi/Repository
Selector.html
and then the sandbox implementations at
http://cvs.apache.org/viewcvs/jakarta-log4j-sandbox/src/java/org/apache/
log4j/selector/

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 1:14 PM
To: Tomcat Users List
Subject: RE: Log4j problem mixing 2 apps

 Alternatively, you could use a servlet context repository selector,
but
 the above should be sufficient.

Curious about what you mean by this (servlet context repository
selector)?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:47 AM
To: Tomcat Users List
Subject: RE: Log4j problem mixing 2 apps



Howdy,
Make sure the log4j jar is in each app's WEB-INF/lib directory, not in
tomcat's common/lib directory.  Make sure each app has its own
configuration files and that the log files for the apps are different.

Alternatively, you could use a servlet context repository selector, but
the above should be sufficient.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:41 AM
To: tomcat
Subject: Log4j problem mixing 2 apps

I've two different applications running, using log4j to log.  For some
reason output destined for one app gets in the others log.  It looks
like only one application can have a log at a time.

What might I have done to cause this problem? It looks like the
application that has been deployed last gets all the log messages.

Thanks,
Jim.

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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended
recipient, please immediately delete this e-mail from your computer
system
and notify the sender.  Thank you.


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


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Coyote or Catalina for SSL socket factory/connector?

2003-06-26 Thread K.C. Baltz
Which classes should I be using for my HTTPS port?  Some of the 
documentation indicates the Catalina classes, namely:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html

Other pages indicate the Coyote classes are preferred:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html

Help?

K.C.

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


Log4j and Tomcat howto?

2003-06-26 Thread Joe Reger, Jr.

Does anybody know of a Log4j and Tomcat HOWTO?  I've seen lots of info out
there on Log4j and command line Java but little on Log4j in a Tomcat
container.  I'd like to see sample Logger... config tags for context.xml,
sample log4j.properties files and where to put the log4j.jar file so that
it's accessed correctly.  It would also be great to see a sample
JDBCLogAppender in action.  Thanks,  Joe


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



RE: Log4j and Tomcat howto?

2003-06-26 Thread Shapira, Yoav

Howdy,
It's pretty much all covered in the log4j documentation.  It's covered
in depth in the full log4j book which you can purchase.

Don't confuse the Logger tags in tomcat's server.xml with log4j
Loggers.  They're not the same.

Here's a way to get started:
- Go through the log4j introduction on the log4j site
- Create a test webapp directory under $CATALINA_HOME/webapps, complete
with a web.xml with mapping for one test servlet.
- Copy one of the simple example properties from the log4j introduction
into your $CATALINA_HOME/webapps/test/WEB-INF/classes/log4j.properties.
- Write your test servlet, something very simple, and have it do
Logger.getLogger(getClass()).info(Hello world!);

That's it.  Once you get that far, if you have more questions, feel free
to ask.  But just doing the above will give you a great feel for things.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 1:44 PM
To: [EMAIL PROTECTED]
Subject: Log4j and Tomcat howto?


Does anybody know of a Log4j and Tomcat HOWTO?  I've seen lots of info
out
there on Log4j and command line Java but little on Log4j in a Tomcat
container.  I'd like to see sample Logger... config tags for
context.xml,
sample log4j.properties files and where to put the log4j.jar file so
that
it's accessed correctly.  It would also be great to see a sample
JDBCLogAppender in action.  Thanks,  Joe


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Log4j problem mixing 2 apps

2003-06-26 Thread Prabhat Kumar (IT)
Thanks,

I read Ceki's article at http://qos.ch/logging/sc.html . Tomcat already has an 
implementation of the CRS, right? Is there a how-to document somewhere that explains 
how to configure Tomcat to use it?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 1:27 PM
To: Tomcat Users List
Subject: RE: Log4j problem mixing 2 apps



Howdy,
See
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/spi/Repository
Selector.html
and then the sandbox implementations at
http://cvs.apache.org/viewcvs/jakarta-log4j-sandbox/src/java/org/apache/
log4j/selector/

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 1:14 PM
To: Tomcat Users List
Subject: RE: Log4j problem mixing 2 apps

 Alternatively, you could use a servlet context repository selector,
but
 the above should be sufficient.

Curious about what you mean by this (servlet context repository
selector)?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:47 AM
To: Tomcat Users List
Subject: RE: Log4j problem mixing 2 apps



Howdy,
Make sure the log4j jar is in each app's WEB-INF/lib directory, not in
tomcat's common/lib directory.  Make sure each app has its own
configuration files and that the log files for the apps are different.

Alternatively, you could use a servlet context repository selector, but
the above should be sufficient.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 9:41 AM
To: tomcat
Subject: Log4j problem mixing 2 apps

I've two different applications running, using log4j to log.  For some
reason output destined for one app gets in the others log.  It looks
like only one application can have a log at a time.

What might I have done to cause this problem? It looks like the
application that has been deployed last gets all the log messages.

Thanks,
Jim.

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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended
recipient, please immediately delete this e-mail from your computer
system
and notify the sender.  Thank you.


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


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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


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



RE: Log4j problem mixing 2 apps

2003-06-26 Thread Shapira, Yoav

Howdy,

I read Ceki's article at http://qos.ch/logging/sc.html . Tomcat already
has
an implementation of the CRS, right? Is there a how-to document
somewhere
that explains how to configure Tomcat to use it?

No to the first question, and therefore no to the second one as well.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: where to get mod_jk2.so, jkjni.so

2003-06-26 Thread Wolfgang Woger
Thank you very much,
Wolfgang


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



GenericPrincipal Realms

2003-06-26 Thread Tomcat User
Is there a reason why org.apache.catalina.realm.GenericPrincipal is always used to 
mask the true principal behind the authenticaion process within each realm?

Why does Tomcat limit the ability to provide a more complex Principal when 
HttpServletRequest.getUserPrincipal() is called?

If anyone knows of any security risks by providing this more complex type (other than 
what the designer of the type introduces by faulty programming), I would like to hear 
them as well

Randy Secrist

RE: GenericPrincipal Realms

2003-06-26 Thread Shapira, Yoav

Howdy,
Just out of curiosity, what prevents you from extending / wrapping
GenericPrincipal in one of your own classes, and using that in a custom
realm you write?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Tomcat User [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 2:06 PM
To: [EMAIL PROTECTED]
Subject: GenericPrincipal  Realms

Is there a reason why org.apache.catalina.realm.GenericPrincipal is
always
used to mask the true principal behind the authenticaion process within
each realm?

Why does Tomcat limit the ability to provide a more complex Principal
when
HttpServletRequest.getUserPrincipal() is called?

If anyone knows of any security risks by providing this more complex
type
(other than what the designer of the type introduces by faulty
programming), I would like to hear them as well

Randy Secrist



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Log4j and Tomcat howto?

2003-06-26 Thread Mike Curwen
I really liked this page: 
http://www.vipan.com/htdocs/log4jhelp.html
 
It helped me get started with log4j.   One warning though, it is out of
date, so you'll have to change some of the code examples. But otherwise,
the other stuff is still pretty relevant.



 -Original Message-
 From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 26, 2003 1:44 PM
 To: [EMAIL PROTECTED]
 Subject: Log4j and Tomcat howto?
 
 
 Does anybody know of a Log4j and Tomcat HOWTO?  I've seen 
 lots of info
 out
 there on Log4j and command line Java but little on Log4j in a Tomcat 
 container.  I'd like to see sample Logger... config tags for
 context.xml,
 sample log4j.properties files and where to put the log4j.jar file so
 that
 it's accessed correctly.  It would also be great to see a sample 
 JDBCLogAppender in action.  Thanks,  Joe
 


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



RE: Cookie handling in IE6 and session handling of tomcat 4.1.24

2003-06-26 Thread Craig R. McClanahan


On Thu, 26 Jun 2003, David Keyes wrote:

 Date: Thu, 26 Jun 2003 08:59:46 -0400
 From: David Keyes [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: Cookie handling in IE6 and session handling of tomcat 4.1.24

 IN GENERAL:

 For any two domains, A and B, if B is a subdomain of A (e.g., B.A), and
 if two different J2EE app servers are hosting those domains, the
 following will be true, assuming that the two appservers create session
 cookies that are identical except for the domain (note that a cookie
 consists of: name, domain, path, expiration):

 * If a user, running Internet Explorer, uses J2EE apps running on both
 domains, causing a session to be established on both domains
 simultaneously, the client accessing the application running in domain B
 will not be able to access a session established in domain B.

 This is due to the fact that IE orders cookies from least-specific to
 most-specific WITH RESPECT TO DOMAIN in an HTTP request.  ANY app server
 that looks for the FIRST cookie named JSESSIONID will be susceptible to
 this problem.

 EXAMPLE:

 In our case, tomcat was serving up JSPs on x.com, causing a J2EE
 servlet session to be created when that page was loaded.  Immediately
 after hitting x.com, w.x.com was being loaded, which also caused a
 session to be created.  Both sessions were being identified by cookies
 set in the client browser.  The cookies both had an ID of JSESSIONID,
 with an identical path.  The only difference between the cookies was the
 domain (one was x.com, and the other was w.x.com).  When interacting
 with the app on w.x.com, each request included an HTTP header specifying
 client-side cookies.  In that header, the JSESSIONID created by x.com
 was ordered BEFORE the JSESSIONID created by w.x.com.  The appserver on
 domain w.x.com was consequently attempting to find the session that had
 been created on x.com, and since it could not, was creating a new
 session with each request.


You probably want to address this as a bug report against Tomcat:

  http://nagoya.apache.org/bugzilla/

However, I can't see a lot of motivation to make Tomcat disobey the specs
just because IE does.

The real issue is that the incoming cookies only have names and values;
there is no extra information with which to disambiguate them.  Changing
the current take the first one policy woud break Tomcat for all users on
all browsers when you have context paths nested (instead of or in addition
to domains), so it is not a general purpose solution.

But it's an issue for the Tomcat developers to hash out.  I'm not an
active one any more (although I try to keep an eye on things there).

 Dave Keyes

Craig



 -Original Message-
 From: Suraj Berwal [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 25, 2003 11:00 AM
 To: Tomcat Users List
 Subject: Cookie handling in IE6 and session handling of tomcat 4.1.24


 dear tim,
i am facing a similar problem with my clients on IE6.0 regarding the session 
 handling using tomcat 4.1.24. Actually the data is getting swapped for users there. 
 can you please elaborate on the info you have posted about cookie problem in IE and 
 how it can affect the session handling in tomcat. i have a singlw webapp and the 
 tomcat is running on Standalone mode.

 re,
 suraj berwal
 
 
 Do you have other webapps? I thought I recall at one time, some version of IE
 did send cookies in the correct order. This can hurt session handling in tomcat.

 -Tim

 Billy Ng wrote:
  Hi folks;
 
  I have a customer complains the IE 6 sp1 times out the tomcat session way before 
  the tomcat default session time out settings.  I tried to reproduce it but I 
  can't.  Have anybody experienced this?
 
  Billy Ng
 



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



RE: Log4j problem mixing 2 apps

2003-06-26 Thread Joe Reger, Jr.

Thanks to all for the recommendations.  Good reading.

Bottom line goals I have:

1) All exceptions logged through one package... jsp compilation errors, sql
errors... errors that are caught by try/catch... errors that are not caught
by try/catch... debug and trace that coders write...

2) I want my entire app to fit into a single WAR file with no other
configuration.  In other words, aside from jdk/tomcat, no server-level
configuration. This doesn't mean that server config isn't done... but that
it's done from within my build/deploy process (i.e. my META-INF/context.xml
appends server.xml).  Prabhat's link seems to address elements of this.

But... my possibly incorrect understanding of the Logger/ tag in Tomcat is
that it defines the package that will log anything that Tomcat thinks I need
to see. 

What's the catch-all that I'm looking for?  While I agree that it's standard
practice to catch all exceptions, coders sometimes don't adhere to it.

Sounds like my first goal may be impossible.  Sounds like I need two things:
1) %@ page errorPage=error.jsp % on each jsp page and then on error.jsp
write the most recent uncaught exception to the database
2) Log4j or similar to log caught exceptions

What gives the rest of you comfort that you're seeing all errors that your
app is generating?

Thanks,

Joe


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 26, 2003 1:55 PM
To: Tomcat Users List


Howdy,

I read Ceki's article at http://qos.ch/logging/sc.html . Tomcat already
has
an implementation of the CRS, right? Is there a how-to document
somewhere
that explains how to configure Tomcat to use it?

No to the first question, and therefore no to the second one as well.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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


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



Tomcat and SSL

2003-06-26 Thread Daniel Zhang
I have a tomcat(4.1.12) running on RedHat Linux with SSL works fine on 
my Intranet testservers.  However when I configure it
to public servers(public IPs), the HTTP works but HTTPS does not work. 
When I type a HTTPS URL in IE browser,
the browser simply returned a The page cannot displayed message and 
there is NO any error records in Tomcat's log files.

Anyone has experience like this? Appreciate for any help.

-Daniel



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


Tomcat's classloaders

2003-06-26 Thread Dave Naden

I have a slick little JSP script that dumps the class/jar files found by the various 
classloaders:  boot, extension, system, and application.  But I'm aware that Tomcat 
also has it's own set of class loaders.  Is there a way to identify these from a JSP 
script, so that I can actually see what Tomcat is loading?

thanks, Tomcat gang.

-Dave Naden



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



chgTarg: Conditional

2003-06-26 Thread Tien-Lung . Liu
Hi,

Has anyone seen the chgTarg:Conditional error message? I'd appreciate any 
thoughts you may have.

Thanks.

Tien

A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has 
occurred in : 
  'com/sun/jndi/ldap/Connection.unpauseReader ()V': Interpreting method.
  Please report this error in detail to 
http://java.sun.com/cgi-bin/bugreport.cgi

A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has 
occurred in : 
  'com/sun/jndi/ldap/Connection.readReply 
(Lcom/sun/jndi/ldap/LdapRequest;)Lcom/sun/jndi/ldap/BerDecoder;': 
Interpreting method.
  Please report this error in detail to 
http://java.sun.com/cgi-bin/bugreport.cgi

(Thu Jun 26 13:18:54 EDT 2003) Processing SOAP request...
java.lang.IllegalMonitorStateException: current thread not owner
at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:309)
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:168)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2516)
at com.sun.jndi.ldap.LdapCtx.init(LdapCtx.java:263)
at 
com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:76)
at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
at javax.naming.InitialContext.init(InitialContext.java:226)
at javax.naming.InitialContext.init(InitialContext.java:202)
at 
javax.naming.directory.InitialDirContext.init(InitialDirContext.java:87)
at AuthenticateImpl.processAuthenticate(AuthenticateImpl.java, 
Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.soap.server.RPCRouter.invoke(RPCRouter.java, 
Compiled Code)
at 
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java, 
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Running multiple tomcat services

2003-06-26 Thread Jagan S
Hello

I am a newbie to apache-tomcat and I am sorry if this has been answered before. I have 
one instance of
tomcat server running on Windows NT server. It uses port 8080. Since 
there are more than one developers, I need to configure it such 
that each developer can run his/her own service, shutdown and startup 
without bothering others. Could somebody tell me how to do this 
?

Thanks a lot

[EMAIL PROTECTED]






Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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



RE: Cookie handling in IE6 and session handling of tomcat 4.1.24

2003-06-26 Thread David Keyes
Unfortunately, IE does NOT disobey the spec.  The spec is ambiguous about what to do 
in this scenario, and Microsoft (big surprise) just chose to do things differently 
than everyone else.  The spec (RFC 2109) says in section 4.3.4:

If multiple cookies satisfy the criteria above, they are ordered in the Cookie header 
such that those with more specific Path attributes precede those with less specific.  
*** Ordering with respect to other attributes (e.g., Domain) is unspecified.*** 

I added the emphasis.  I don't see a good solution to the problem, other than removing 
the mandate in the servlet spec that says JSESSIONID must be used to identify the 
cookie...

Dave

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 2:29 PM
To: David Keyes
Cc: Tomcat Users List
Subject: RE: Cookie handling in IE6 and session handling of tomcat
4.1.24




On Thu, 26 Jun 2003, David Keyes wrote:

 Date: Thu, 26 Jun 2003 08:59:46 -0400
 From: David Keyes [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: Cookie handling in IE6 and session handling of tomcat 4.1.24

 IN GENERAL:

 For any two domains, A and B, if B is a subdomain of A (e.g., B.A), and
 if two different J2EE app servers are hosting those domains, the
 following will be true, assuming that the two appservers create session
 cookies that are identical except for the domain (note that a cookie
 consists of: name, domain, path, expiration):

 * If a user, running Internet Explorer, uses J2EE apps running on both
 domains, causing a session to be established on both domains
 simultaneously, the client accessing the application running in domain B
 will not be able to access a session established in domain B.

 This is due to the fact that IE orders cookies from least-specific to
 most-specific WITH RESPECT TO DOMAIN in an HTTP request.  ANY app server
 that looks for the FIRST cookie named JSESSIONID will be susceptible to
 this problem.

 EXAMPLE:

 In our case, tomcat was serving up JSPs on x.com, causing a J2EE
 servlet session to be created when that page was loaded.  Immediately
 after hitting x.com, w.x.com was being loaded, which also caused a
 session to be created.  Both sessions were being identified by cookies
 set in the client browser.  The cookies both had an ID of JSESSIONID,
 with an identical path.  The only difference between the cookies was the
 domain (one was x.com, and the other was w.x.com).  When interacting
 with the app on w.x.com, each request included an HTTP header specifying
 client-side cookies.  In that header, the JSESSIONID created by x.com
 was ordered BEFORE the JSESSIONID created by w.x.com.  The appserver on
 domain w.x.com was consequently attempting to find the session that had
 been created on x.com, and since it could not, was creating a new
 session with each request.


You probably want to address this as a bug report against Tomcat:

  http://nagoya.apache.org/bugzilla/

However, I can't see a lot of motivation to make Tomcat disobey the specs
just because IE does.

The real issue is that the incoming cookies only have names and values;
there is no extra information with which to disambiguate them.  Changing
the current take the first one policy woud break Tomcat for all users on
all browsers when you have context paths nested (instead of or in addition
to domains), so it is not a general purpose solution.

But it's an issue for the Tomcat developers to hash out.  I'm not an
active one any more (although I try to keep an eye on things there).

 Dave Keyes

Craig



 -Original Message-
 From: Suraj Berwal [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 25, 2003 11:00 AM
 To: Tomcat Users List
 Subject: Cookie handling in IE6 and session handling of tomcat 4.1.24


 dear tim,
i am facing a similar problem with my clients on IE6.0 regarding the session 
 handling using tomcat 4.1.24. Actually the data is getting swapped for users there. 
 can you please elaborate on the info you have posted about cookie problem in IE and 
 how it can affect the session handling in tomcat. i have a singlw webapp and the 
 tomcat is running on Standalone mode.

 re,
 suraj berwal
 
 
 Do you have other webapps? I thought I recall at one time, some version of IE
 did send cookies in the correct order. This can hurt session handling in tomcat.

 -Tim

 Billy Ng wrote:
  Hi folks;
 
  I have a customer complains the IE 6 sp1 times out the tomcat session way before 
  the tomcat default session time out settings.  I tried to reproduce it but I 
  can't.  Have anybody experienced this?
 
  Billy Ng
 



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



current thread not owner

2003-06-26 Thread Tien-Lung . Liu
Hi,

I'm running jakarta-tomcat-3.2.4 on Windows 2000. The error below happens 
erratically. Can someone give me some pointers as to how to fix it?

(Thu Jun 26 13:18:54 EDT 2003) Processing SOAP request...
java.lang.IllegalMonitorStateException: current thread not owner
at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:309)
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:168)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2516)
at com.sun.jndi.ldap.LdapCtx.init(LdapCtx.java:263)
at 
com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:76)
at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
at javax.naming.InitialContext.init(InitialContext.java:226)
at javax.naming.InitialContext.init(InitialContext.java:202)
at 
javax.naming.directory.InitialDirContext.init(InitialDirContext.java:87)
at AuthenticateImpl.processAuthenticate(AuthenticateImpl.java, 
Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.soap.server.RPCRouter.invoke(RPCRouter.java, 
Compiled Code)
at 
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java, 

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

RE: current thread not owner

2003-06-26 Thread Shapira, Yoav

Howdy,
Wrong list to ask: this is a thread contention problem in an internal
(non-JDK) Sun class.  Their tech support is responsible for it.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 2:56 PM
To: [EMAIL PROTECTED]
Subject: current thread not owner

Hi,

I'm running jakarta-tomcat-3.2.4 on Windows 2000. The error below
happens
erratically. Can someone give me some pointers as to how to fix it?

(Thu Jun 26 13:18:54 EDT 2003) Processing SOAP request...
java.lang.IllegalMonitorStateException: current thread not owner
at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:309)
at
com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:168)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2516)
at com.sun.jndi.ldap.LdapCtx.init(LdapCtx.java:263)
at
com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:
76)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672
)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
at javax.naming.InitialContext.init(InitialContext.java:226)
at javax.naming.InitialContext.init(InitialContext.java:202)
at
javax.naming.directory.InitialDirContext.init(InitialDirContext.java:
87)
at AuthenticateImpl.processAuthenticate(AuthenticateImpl.java,
Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.soap.server.RPCRouter.invoke(RPCRouter.java,
Compiled Code)
at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.ja
va,

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



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



How to use HTTP1.0 by default

2003-06-26 Thread sandeep arshanapally
Hi,

   I want Tomcat to generate HTTP 1.0 responses by default. What config 
needs to be changed on tomcat for this?

Thanks,

Sandeep

_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Host problem...

2003-06-26 Thread Martín Mauri
Hi, I've got Tomcat 4.1 and Apache 2.0.43 running together in my images
host, so when  I type http://images/examples/, it works allright in the
local server though, but when I try the same from a remote machine (with the
hosts file properly configured) it can access the http://images/ apache
context but it cannot access http://images/examples/, can it be again a
virtual hosts problem?

thanks,

Martin


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



JNDI and Active Directory.....

2003-06-26 Thread Pitre, Russell
I'm trying to setup my webapp to authenticate to Active Directory. After
searching and googling I still cannot resolve my problem.  I've created
a user named tomcatuser and security group called tomcat in the Users
container.  I've put my logon in that group tomcat and no success
logging into the webapp.  Any help or direction would be very
appreciated...

 

 

 

Server.xml:

 

 

Realm className=org.apache.catalina.realm.JNDIRealm

connectionURL=ldap://server:389;

userBase=CN=Users,dc=[domain],dc=com

userSearch=(userPrincipalName={0})

userRoleName=member

roleBase=CN=Users,dc=[domain],dc=com

roleName=cn

roleSearch=(member={0})

 
connectionName=CN=tomcatuser,CN=Users,DC=[domain],DC=com

connectionPassword=sinner

roleSubtree=true

userSubtree=true/

 

Web.xml

 

security-constraint

display-nameShow Tracker Security
Constraint/display-name

web-resource-collection

 
web-resource-nameProtected Area/web-resource-name

 
url-pattern/*/url-pattern

/web-resource-collection

auth-constraint

 
role-nametomcat/role-name

/auth-constraint

/security-constraint

 

login-config

auth-methodFORM/auth-method

realm-nameShow Tracker
Authentication Area/realm-name

form-login-config

 
form-login-page/login.jsp/form-login-page

 
form-error-page/error.jsp/form-error-page

/form-login-config

/login-config

security-role

descriptionRegistered
users/description

role-nametomcat/role-name

/security-role

 

 

 



RE: JNDI and Active Directory.....

2003-06-26 Thread Pitre, Russell
Also,  prior to setting up my webapp to use Active Directory, I had the
webapp successfully authenticating to a JDBC realm.  

-Original Message-
From: Pitre, Russell 
Sent: Thursday, June 26, 2003 4:05 PM
To: [EMAIL PROTECTED]
Subject: JNDI and Active Directory.


I'm trying to setup my webapp to authenticate to Active Directory. After
searching and googling I still cannot resolve my problem.  I've created
a user named tomcatuser and security group called tomcat in the Users
container.  I've put my logon in that group tomcat and no success
logging into the webapp.  Any help or direction would be very
appreciated...

 

 

 

Server.xml:

 

 

Realm className=org.apache.catalina.realm.JNDIRealm

connectionURL=ldap://server:389;

userBase=CN=Users,dc=[domain],dc=com

userSearch=(userPrincipalName={0})

userRoleName=member

roleBase=CN=Users,dc=[domain],dc=com

roleName=cn

roleSearch=(member={0})

 
connectionName=CN=tomcatuser,CN=Users,DC=[domain],DC=com

connectionPassword=sinner

roleSubtree=true

userSubtree=true/

 

Web.xml

 

security-constraint

display-nameShow Tracker Security
Constraint/display-name

web-resource-collection

 
web-resource-nameProtected Area/web-resource-name

 
url-pattern/*/url-pattern

/web-resource-collection

auth-constraint

 
role-nametomcat/role-name

/auth-constraint

/security-constraint

 

login-config

auth-methodFORM/auth-method

realm-nameShow Tracker
Authentication Area/realm-name

form-login-config

 
form-login-page/login.jsp/form-login-page

 
form-error-page/error.jsp/form-error-page

/form-login-config

/login-config

security-role

descriptionRegistered
users/description

role-nametomcat/role-name

/security-role

 

 

 


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



RE: JNDI and Active Directory.....

2003-06-26 Thread Pitre, Russell
I also referenced this site..

http://www.java-internals.com/code/jndi_realm.html


Thanx again




-Original Message-
From: Pitre, Russell 
Sent: Thursday, June 26, 2003 4:10 PM
To: Tomcat Users List
Subject: RE: JNDI and Active Directory.


Also,  prior to setting up my webapp to use Active Directory, I had the
webapp successfully authenticating to a JDBC realm.  

-Original Message-
From: Pitre, Russell 
Sent: Thursday, June 26, 2003 4:05 PM
To: [EMAIL PROTECTED]
Subject: JNDI and Active Directory.


I'm trying to setup my webapp to authenticate to Active Directory. After
searching and googling I still cannot resolve my problem.  I've created
a user named tomcatuser and security group called tomcat in the Users
container.  I've put my logon in that group tomcat and no success
logging into the webapp.  Any help or direction would be very
appreciated...

 

 

 

Server.xml:

 

 

Realm className=org.apache.catalina.realm.JNDIRealm

connectionURL=ldap://server:389;

userBase=CN=Users,dc=[domain],dc=com

userSearch=(userPrincipalName={0})

userRoleName=member

roleBase=CN=Users,dc=[domain],dc=com

roleName=cn

roleSearch=(member={0})

 
connectionName=CN=tomcatuser,CN=Users,DC=[domain],DC=com

connectionPassword=sinner

roleSubtree=true

userSubtree=true/

 

Web.xml

 

security-constraint

display-nameShow Tracker Security
Constraint/display-name

web-resource-collection

 
web-resource-nameProtected Area/web-resource-name

 
url-pattern/*/url-pattern

/web-resource-collection

auth-constraint

 
role-nametomcat/role-name

/auth-constraint

/security-constraint

 

login-config

auth-methodFORM/auth-method

realm-nameShow Tracker
Authentication Area/realm-name

form-login-config

 
form-login-page/login.jsp/form-login-page

 
form-error-page/error.jsp/form-error-page

/form-login-config

/login-config

security-role

descriptionRegistered
users/description

role-nametomcat/role-name

/security-role

 

 

 


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


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



RE: Connectors for IIS/Tomcat SHOULD make sense - THE END

2003-06-26 Thread Januski, Ken
Well I've admitted defeat and shot not the server but the connector. After 5
days experimenting with various versions of isapi_redirect and
isapi_redirector I finally gave up on both and instead installed
isapi_redirector2. It was working within 30 minutes.


-Original Message-
From: Januski, Ken [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:44 PM
To: Tomcat Users List
Subject: RE: Connectors for IIS/Tomcat SHOULD make sense


yes. sad to say i've already checked that a number of times. also the ps#
has been corrected off and on as i've meddled with file. it seems to make no
difference.

i'm also determined to get it working and to document what i had to do to
get it working. but i don't want to clutter up the list with it.
unfortunately from what i've seen most of the threads with this problem just
seem to fizzle out without resolution. it would be nice to see one get
resolved, esp. since it's mine.:-)

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:37 PM
To: Tomcat Users List
Subject: Re: Connectors for IIS/Tomcat SHOULD make sense


Have you tried giving 'Everyone' full permissions on the directory
containing 
isapi_redirector.dll and on the file itself in the file system (not IIS)?

I am determined to get this damn thing working. :)

-- 
Jason Bainbridge
http://jblinux.org

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


  1   2   >