Re: can't see a tomcat installation on home network

2005-04-19 Thread Nikola Milutinovic
Greg Baynham wrote:
I can ping to the Linux box, but not telnet.
 

Nowdays NOBODY enables Telnet, unless they are totally sure the network 
is safe. And with the presence of freeware SSH clients, like OpenSSH on 
Linux and PuTTY on Windows, nobody has to run Telnet, even on safe networks.

Try SSH, instead of Telnet. Download PuTTY and install it.
Nix.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


All threads (250) are currently busy

2005-04-19 Thread Paul Grimwood
Tomcat hangs intermittently (1 to 10 days) with the following message in 
catalina.out

20/04/2005 13:48:09 org.apache.tomcat.util.threads.ThreadPool logFull
SEVERE: All threads (250) are currently busy, waiting. Increase maxThreads 
(250) or check the servlet status


We are running tomcat 5.5.7 on jdk1.5.0_02 under Redhat Linux Fedora Core 
2 against an Oracle9 DB.

I have seen various posts to this with suggestions including setting Linux 
threads with LD_ASSUME_KERNEL (tried but problem still exists) and setting 
connection timeout in server.xml from 0 to 6 (but ours is set at 2 
already). And we have already upgraded to latest Tomcat and JRE to no 
avail. Despite reviewing the mailing list over the past 18 to 24 months, i 
am none the wiser. 

The problem started around the time we deployed the code onto a new server 
running a later Linux version but this could be a red herring and I 
suspect it is a database connection issue. Has anyone got any ideas?

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



Static field memory leak on application reload

2005-04-19 Thread Otgonbayar
I am using some static fields in my beans, but when I am reloading
application the blocks were referenced by static fields still stays in
memory. I detected these using a profiler tool. I wrote a context listener
to free these blocks on destroy. But it doesn't help?

So what can I do? Please help me

Thanks

Otgo




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



Can't do logout in basic authentication

2005-04-19 Thread Otgonbayar
I am using basic authentication in my application and I need to create
logout link in my JSP that does LOGOUT. 
It seems session.invalidate() doesn't work.
How can I do this? Please help me!
Thanks
Otgo



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



RE: Running Tomcat on multiple processors on Windows 2003

2005-04-19 Thread Caldarale, Charles R
> From: Chris Hyzer [mailto:[EMAIL PROTECTED] 
> Subject: RE: Running Tomcat on multiple processors on Windows 2003
> 
> ...  so if we can get to 100% CPU usage on both CPUs with 
> one tomcat running under load, that would be great.

How about trying a simple two-thread Java program, where each thread
sits in an infinite loop?  Does this drive both CPUs to the limit?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: Running Tomcat on multiple processors on Windows 2003

2005-04-19 Thread Chris Hyzer

> Chris,
>When running top you can toggle displaying
> individual threads by hitting
> H.
>Also, you can see threads using ps with the -m
> switch.
> Jim T.

OK thanks, that is useful for visibility into threads
vs processes.  But I would think that if the CPU usage
in "top" is 50% when one tomcat is running under load
in a 2 CPU machine, and 100% when 2 or more tomcats
are running under load, that it means only one CPU is
being used for each tomcat...  also, "top" shows which
CPU has what load, and only one of them is all used up
when total it is at 50%, and the other is 0%...  so if
we can get to 100% CPU usage on both CPUs with one
tomcat running under load, that would be great.  
Regards, Chris

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



Re: Per Application JNDI/JDBC Configuration

2005-04-19 Thread Parsons Technical Services
For each app you have running you will need a context element in a xml
file. This should reside in the war. In this file you can setup the
resource which will be available only to that app. This will still give
you pooling. If you follow the instructions on the Tomcat site for the
JDBC How-To that will set things up. The only change is to put the
elements in with the context fragment in the xml file for your app
instead of the server.xml. 

Yeah the web site should be changed considering that the preferred way
to set up app is not to put anything in the server.xml and yet this How
to has you do just that. Eventually they will get to it.




On Tue, 2005-04-19 at 17:49, David C. Hicks wrote:
> Hi,
> 
> I'm trying to configure Tomcat5 with a JNDI resource for a JDBC 
> connection that I would like to be specific to the application.  In 
> other words, I don't want to have to add anything to "server.xml".  I 
> keep reading where this is possible, but haven't seen any clear examples 
> of it.  My attempts, thus far, have not been fruitful.  Can anyone give 
> me a basic overview of how I might go about doing this?  I don't need 
> the details of the resource definition, just wondering where to put the 
> resource definition so that when I deploy my application it can be found 
> and used.
> 
> Thanks,
> David
> 
> 
> -
> 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: Can't get Tomcat to use account other than System

2005-04-19 Thread Mark Leone
Thanks. That's useful information, but unfortunately it didn't solve my 
problem. The account I'm trying to use was already mapped to the "Logon 
as a Service" right. I looked at all other rights that didn't have 
either the account or its group mapped to them, and I couldn't see any 
that seemed to be needed. I searched through the MS knowledge base as 
well, and didn't find anything relevant to this problem.

I found a better way to accomplish what I was trying to do; but I'd like 
to find out why I can't run Tomcat as an account other than System, in 
case I have a need for it at some later point. Thanks for trying.

Darryl Wilburn wrote:
In Administrative Tools, go to Local Security Policy
and navigate to Local Policies >> User Rights
Assignment.  This lists all the assignable user
rights.  At the very least, this account will need to
be assigned to "Logon On as a Service".  Don't mess
around with the Net Logon service.  The only service
you need to mess with is Apache Tomcat.  The other
services aren't broken, so don't try to "fix" them. 
You might also consider looking here: 
http://support.microsoft.com/default.aspx?scid=fh;EN-US;kbhowto&sd=TECH&ln=EN-US&FR=0

Darryl
--- Mark Leone <[EMAIL PROTECTED]> wrote:
 

Can you tell me how to check for that? The only
options I can find for 
defining account properties are in Control Panel -->
Users and 
Administrative Tools --> Computer Management; and
neither of those have 
any settings beyond very basic things like Admin vs.
limited priviliges.

I played around a bit with the Net Logon service. I
specified the 
desired account credentials in the Log On tab of the
Service Properties, 
and then when I tried to start the service I got the
following error.

"Could Not start the Net Logon service on local
computer.
Error 1079: The accout specified for this service is
different from the 
account specified for other services running in the
same process."

Not sure what to make of this, or if I'm barking up
the wrong tree. 
Please enlighten me.

Darryl Wilburn wrote:
   

Mark,
Does the account you're trying to use have all the
correct user rights (act as part of the operating
system, run as a service, etc.)?
Darryl
--- Mark Leone <[EMAIL PROTECTED]> wrote:
 

I think this is a pretty basic question, but I
couldn't find an answer 
in the archives. I've been using Tomcat for a
   

while,
   

with Tomcat logging 
on as the local System account. Now I'd like
   

Tomcat
   

to have some 
additional access rights, so I'm trying to get it
   

to
   

log on as a 
privileged user. I have Tomcat 5.5.8 installed as
   

a
   

Service on Windows 
XP. I launch the Service properties window, go to
the "Log On" tab, 
check the "This Account" radio button, and then
enter the account 
credentials.

The credentials seem to be accepted, but if I
   

close
   

the Service 
properties window and re-launch it, the "Log On"
   

tab
   

has reverted to its 
default configuration, i.e. Log on as "Local
   

System
   

Account" is enabled 
instead of the account I specified. And Tomcat
doesn't have the access 
rights I'd like it to have, even after restart.

  

   

-
   


 

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

   

		
__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your
 

mobile phone. 
   

http://mobile.yahoo.com/learn/mail 

 

-
   

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]
   


		
__ 
Do you Yahoo!? 
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.com/p-travelguide

-
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: Plain text mime-mapping and IE

2005-04-19 Thread QM
On Tue, Apr 19, 2005 at 03:18:22PM -0600, Tim Sodergren wrote:
: I've never done filters before. I know how to do the filter-mapping from
: web.xml and know Java programming but not how to make filters for Tomcat.
: Could you point me in the right direction? 

Sure -- it may be confusing because filters aren't part of Tomcat;
they're part of the Servlet Spec (which Tomcat implements).  

Search the web for "servlet filter" or just check out the Servlet Spec
(available from Sun.com) for details.

-QM

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



RE: Running Tomcat on multiple processors on Windows 2003

2005-04-19 Thread Trice, Jim
Chris,
   When running top you can toggle displaying individual threads by hitting
H.
   Also, you can see threads using ps with the -m switch.
Jim T.

-Original Message-
From: Chris Hyzer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 11:40 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: Running Tomcat on multiple processors on Windows 2003

> Huh?  The Sun 1.3, 1.4, and 5.0 JVMs use all 32 of
the CPUs on our
> systems quite nicely.  What may be going on is that
some administrator
> has set Windows' CPU affinity to restrict all
threads of a given 
> process to a single CPU.
> 
> - Chuck

We have a recent and up2date Linux Redhat
installation, and the sun Java hotspot 1.4.2 in server
mode JVM.  When I run "top" I see Java as one process,
and with one Tomcat running in a performance test, it
only hits 50% CPU (of a 2 CPU box).  When I run 2
tomcats, I see two processes, and it hits 100% CPU. 
If anyone has seen this behavior, and then changed
some settings to get Tomcat or Java to use multiple
CPUs for one instance, I would be curious.  Maybe it
is something with the threading model or something.  I
thought Java used native threads by default, or at
least green threads on top of native threads
(one-to-one), so Im not sure how this fits in...

Thanks,
Chris



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



RE: Need help exporting contexts not under webapps/

2005-04-19 Thread J. Ryan Earl
Yea, I accidently hit the send button on the last email before I was done
writing it, but it's working.  I just had to create two context files under
conf/Catalina/localhost/

-ryan

-Original Message-
From: Gurumoorthy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 19, 2005 1:33 PM
To: Tomcat Users List
Subject: Re: Need help exporting contexts not under webapps/


Did you manage to get it right ?
I would recommend that you use lower case context path name

Regards
Guru
- Original Message -
From: "J. Ryan Earl" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, April 19, 2005 6:56 PM
Subject: RE: Need help exporting contexts not under webapps/


> Thanks for the reply, I actually figured it a few hours later.  I was
trying
> to do 2/ in your list.  I added a PICS.xml and a DOCS.xml under the
> ${CATALINA_HOME}/conf/Catalina/localhost/ directory which gave me the PICS
> and DOCS contexts.  ie:
>
> [EMAIL PROTECTED] localhost]$ pwd
> /home/tomcat/jakarta-tomcat-5.5.9/conf/Catalina/localhost
> [EMAIL PROTECTED] localhost]$ ls
> DOCS.xml  host-manager.xml  manager.xml  PICS.xml
> [EMAIL PROTECTED] localhost]$ cat PICS.xml
>   privileged="true" antiResourceLocking="false"
> antiJARLocking="false">
> 
> [EMAIL PROTECTED] localhost]$ cat PICS.xml
>   privileged="true" antiResourceLocking="false"
> antiJARLocking="false">
> 
> [EMAIL PROTECTED] localhost]$ cat PICS.xml DOCS.xml
>   privileged="true" antiResourceLocking="false"
> antiJARLocking="false">
> 
>   privileged="true" antiResourceLocking="false"
> antiJARLocking="false">
> 
>
>
>
> -Original Message-
> From: QM [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 18, 2005 8:30 PM
> To: Tomcat Users List
> Subject: Re: Need help exporting contexts not under webapps/
>
>
> On Mon, Apr 18, 2005 at 01:16:04PM -0500, J. Ryan Earl wrote:
> : So my question is, in short, given a directory structure of static
files,
> : how do you get Tomcat to serve said static content off of an arbitrary
> URI?
>
> So, are you trying to
> 1/ have a Tomcat-run webapp serve content that exists outside of the
> context path?
>
> 2/ setup the static content as its own webapp (context)?
>
>
> For #1, the (portable, spec-friendly) way is to write a servlet or
> filter to intercept requests for a given URI, open the matching file as
> an InputStream, and push the data to the client via the Response
> OutputStream.
>
> For #2, I don't remember the exact syntax off the top of my head so I
> won't waste your time with something that may not work. =) But it's
> definitely possible for a webapp to not exist under the "webapps/"
> directory.
>
> Just make sure said webapp has a WEB-INF directory and a web.xml.  Even
> a web.xml of just
> 
> should do.
>
> -QM
>
> --
>
> software   -- http://www.brandxdev.net/
> tech news  -- http://www.RoarNetworX.com/
> code scan  -- http://www.JxRef.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]
>


-
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]



Which connector to use, and how to build

2005-04-19 Thread Daxin Zuo
Please help
Computer: UNIX Sparc 2.9
Apache 2.0.54
Tomcat 5.0.28

Please tell me what connector to use. I see the jk2 is in history. The last
version it supports is  2.0.43.
I downloaded the jakarta-tomcat-connectors-1.2.10-src.tar, it is difficult
to find a clear instruction for the build process.


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



Building Tomcat 5.5.9 on Solaris 10

2005-04-19 Thread capa
Hi,
Somebody has making the building of Tomcat 5.5.9 source in Solaris 10 ?.
In this moment, i using jdk1.5.0_02 and ant 1.6.2. This works fine in
Solaris 9 for the source building, but not in Solaris 10.
Thanks.

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



OutOfMemoryError - 100 thread limit?

2005-04-19 Thread LeeAnn Pultz
I have a tomcat server with multiple copies of our web application 
running.  We are running into what seems to be a hard-coded limit on the 
number of threads available to the Tomcat application.

I have added code to our servlet class which prints out the number of 
active threads whenever I initialize the servlet.  On Red Hat Linux boxes, 
whenever we start up enough copies of the servlet to hit 100 active 
threads, we reach an OutOfMemoryError - regardless of the Xms/Xmx settings 
(memory profiling shows that we have plenty of memory available).  On 
Windows XP, 50 seems to be the magic number.

I have tried tweaking Xss parameters, my ulimit command in Linux shows 
"unlimited" - and I have reached the same results with Tomcat 3.3.1, 4.0.28 
and 5.0.28 using Java 1.4.1 and 1.4.2.  When I use WebLogic 8.1 on the same 
Linux box, I reach 241 active threads with no problems whatsoever (stopped 
my testing at that number) so it does not seem to be an o/s limitation, or 
a java limitation - which leads me to believe there is something in Tomcat?

Is the number of threads available to tomcat hard coded somewhere? Is there 
a parameter or configuration setting that I can change to increase this?

If this question is better off posted to the developers list, please 
someone, let me know :)

thanks!
LeeAnn Pultz
ExtraView Corporation
[EMAIL PROTECTED]
831-461-7100 x115 


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


RE: can't see a tomcat installation on home network

2005-04-19 Thread Jay Burgess
I'm coming in late to this thread, but the word "Telnet" caught my eye.  I just
debugged a Telnet issue today by running Ethereal and seeing what was going on
at the network level.  Maybe something like that will work for you?

Ethereal is great, and can be found at "http://www.ethereal.com/"/

Jay
Vertical Technology Group
"Essential Technology Links"
http://www.vtgroup.com/

 

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 5:01 PM
To: Tomcat Users List
Subject: Re: can't see a tomcat installation on home network

On 4/19/05, Greg Baynham <[EMAIL PROTECTED]> wrote:
> I've installed Tomcat on a Linux fedora box but am unable to access it from
> a windows xp home edition box.  I've found the IP address for the Linux box
> but when I type that in with the :8080 at the end of the address on the XP
> box it eventually returns that the connection was refused.

So are you trying http://192.168.2.188:8080 including the http:// part
in Internet Explorer?

Although if telnet isn't working that would seem to indicate another
problem most likely with a firewall setting somewhere.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
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: can't see a tomcat installation on home network

2005-04-19 Thread Jason Bainbridge
On 4/19/05, Greg Baynham <[EMAIL PROTECTED]> wrote:
> I've installed Tomcat on a Linux fedora box but am unable to access it from
> a windows xp home edition box.  I've found the IP address for the Linux box
> but when I type that in with the :8080 at the end of the address on the XP
> box it eventually returns that the connection was refused.

So are you trying http://192.168.2.188:8080 including the http:// part
in Internet Explorer?

Although if telnet isn't working that would seem to indicate another
problem most likely with a firewall setting somewhere.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: can't see a tomcat installation on home network

2005-04-19 Thread Greg Baynham
I do not see iptables running under either my acount or root.

On Tue, 2005-04-19 at 15:43 -0400, Parsons Technical Services wrote:
> Is iptables running?
> 
> >ps ax
> 
> If yes your firewall may be blocking the port. You will need to add port 
> 8080 to the firewall.
> 
> Doug
> 



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



Per Application JNDI/JDBC Configuration

2005-04-19 Thread David C. Hicks
Hi,
I'm trying to configure Tomcat5 with a JNDI resource for a JDBC 
connection that I would like to be specific to the application.  In 
other words, I don't want to have to add anything to "server.xml".  I 
keep reading where this is possible, but haven't seen any clear examples 
of it.  My attempts, thus far, have not been fruitful.  Can anyone give 
me a basic overview of how I might go about doing this?  I don't need 
the details of the resource definition, just wondering where to put the 
resource definition so that when I deploy my application it can be found 
and used.

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


RE: Plain text mime-mapping and IE

2005-04-19 Thread Tim Sodergren
I've never done filters before. I know how to do the filter-mapping from
web.xml and know Java programming but not how to make filters for Tomcat.
Could you point me in the right direction? 

-Original Message-
From: Trond G. Ziarkowski [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 2:36 PM
To: Tomcat Users List
Subject: Re: Plain text mime-mapping and IE

Hi Tim,

try serving the file through a servlet or jsp, or use a filter mapped to
*.las and *.dat, and use response.setHeader("Content-Disposition",
"inline; filename=file.txt"), and response.setContentType("text/plain").

Works for me...

Trond

Tim Sodergren wrote:

>Hello Group,
>
>First time user.
>
>I am using Tomcat 4.1.30 to serve (among other things) plain text files 
>with .dat and .las extensions. I have added the following lines to the 
>conf/web.xml file:
>
>
>las
>text/plain
>
>
>dat
>text/plain
>
>
>And they display properly in Netscape or Firefox. When trying to view 
>in IE, however it doesn't recognize the file type and prompts the user 
>to open or save. If the user selects open whatever text editor IE 
>chooses can't find the file. Save works properly. Does IE's 
>mime-sniffer completely ignore my server settings? Is there a 
>workaround for this (without having to change all of my files and links to
.txt)?
>
>Thanks in advance.
>
>-Tim
>
>  
>


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

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 4/19/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 4/19/2005
 


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



Re: can't see a tomcat installation on home network

2005-04-19 Thread Greg Baynham
I can ping to the Linux box, but not telnet.

here is the ifconfig:
[EMAIL PROTECTED] ~]# ifconfig
eth0  Link encap:Ethernet  HWaddr 00:01:02:01:31:03  
  inet addr:192.168.2.188  Bcast:192.168.2.255
Mask:255.255.255.0
  inet6 addr: fe80::201:2ff:fe01:3103/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:921 errors:0 dropped:0 overruns:0 frame:0
  TX packets:892 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
 RX bytes:572260 (558.8 KiB)  TX bytes:129057 (126.0 KiB)
  Interrupt:3 Base address:0xbc00 

loLink encap:Local Loopback  
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:2141 errors:0 dropped:0 overruns:0 frame:0
  TX packets:2141 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0 
  RX bytes:2390638 (2.2 MiB)  TX bytes:2390638 (2.2 MiB)

then from ipconfig:
ip:  192.168.2.187
subnet mask: 255.255.255.0
default gateway: 192.168.2.1



On Tue, 2005-04-19 at 19:28 +0100, Gurumoorthy wrote:
> First try to ping to your tomcat machine from xp machine
> Then try to telnet to your tomcat machine  from xp machine
> 
> c:\>telnet machineip 8080
> 
> See if you can connect.
> 
> To cross check send me the output of following details
> 
> ON xp Machine   :ipconfig
> ON linux Machine:ifconfig
> 
> Regards
> Guru
> 
> 



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



RE: [SPAM2] - RE: Problems with DataSourceRealm Tomcat 5.5 - Found word(s) list error in the Text body

2005-04-19 Thread Kanda Upendra

Hi

 Thanks for the suggestion. It works now. As Hassan had suggested, the resource 
params are listed as XML attributes in for Tomcat 5.5. 

Thanks again,

-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 4:17 PM
To: Tomcat Users List
Subject: RE: [SPAM2] - RE: Problems with DataSourceRealm Tomcat 5.5 - Found 
word(s) list error in the Text body
Importance: High

This is my context.xml



  
  
  
  

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory



  url
  jdbc:sybase:Tds:172.16.19.11:5000/WEB


  driverClassName
  com.sybase.jdbc2.jdbc.SybDriver


  username
  WEB123


  password
  456PASSW



  initialSize
  1


  minIdle
  1


  maxActive
  2


  maxIdle
  2


  maxWait
  3

  
  

WEB-INF/web.xml
META-INF/context.xml



-Original Message-
From: Kanda Upendra [mailto:[EMAIL PROTECTED] 
Sent: Martes, 19 de Abril de 2005 11:57 a.m.
To: Tomcat Users List
Subject: [SPAM2] - RE: Problems with DataSourceRealm Tomcat 5.5 - Found word(s) 
list error in the Text body


Hi,

  Thanks for the quick response. I have the  defined in my 
web.xml and it still doesn't work.

Throws me the same error.

"Name jdbc not bound in this context"

Thanks

Upendra


-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 1:20 PM
To: Tomcat Users List
Subject: RE: Problems with DataSourceRealm Tomcat 5.5
Importance: High

On the web.xml you have also to write down after ther welcome files:


jdbc/myDB
javax.sql.DataSource
Container

<-- optional.if you like -->
Shareable  


Lorenzo

-Original Message-
From: Kanda Upendra [mailto:[EMAIL PROTECTED] 
Sent: Martes, 19 de Abril de 2005 11:06 a.m.
To: Tomcat Users List
Subject: Problems with DataSourceRealm Tomcat 5.5


Hi,

  I am using Tomcat 5.5 and having problems with the DataSourceRealm
finding the data source in the JNDI. 

Here is the configuration of my context.xml,








I get this error "Name jdbc not bound in this context". I tried moving
the Resource configuration under  in server.xml,
but I get the same error. JDBCRealm works, but I want it use a
connection pool and hence I am trying to change it to a DataSourceRealm.

Also, interestingly, when I try to access the data source from a jsp in
my webapplication it works. The problem seems to be with the
DataSourceRealm looking up for the resource using JNDI.

Any help will be appreciated.

Thanks,

Upendra





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


-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 


-



-
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: jk 1.2.10 + apache 1.3 issue

2005-04-19 Thread Guernsey, Byron \(GE Consumer & Industrial\)

The workers.properties is identical in format to a version that is
working just fine with Apache 2.

Its starts with the usual..

ps=/

worker.list=jkstatus,gealnx5:12089,...

worker.jkstatus.type=status

worker.gealnx5:12089.type=ajp13
worker.gealnx5:12089.host=...
worker.gealnx5:12089.port=12089

... etc ...

Yes, I recognize that the ':' is noted in the documentation as an
illegal character for the work name- unfortunately all of our jvmRoutes
(hundreds of them in server.xml's on lots of machines) already use this
format host:port.  Since jk1 requires that the worker name match the
jvmRoute, we've had to use that when converting our mod_jk2 configs over
using an automated conversion script in perl. However, I did testing
before doing this to confirm that the ':' did not cause an issue in
Apache 2/mod_jk 1.2.10.  So if this was the problem with what I'm seeing
in apache 1.3, then there would be some difference in behavior between
the apache 1.3 and 2.

It uses a urimap.properties file instead of JkMounts.

The config directives in httpd.conf look like:


JkLogLeveldebug
JkShmSize 300
JkShmFile /usr/local/apache/logs/jk1-ssodev.shm
JkWorkersFile /usr/local/apache/conf/workers_sso.properties
JkMountFile /usr/local/apache/conf/uriworkermap_sso.properties
JkLogFile /usr/local/apache/logs/mod_jk-ssodev.log
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkRequestLogFormat "%w %V %T"


JkMount jkstatus
Order deny,allow
Deny from all
Allow from 3.
Allow from 127.



As you can see from my previous posting, not even jkstatus works, nor do
any workers.  Yet, they are configured properly and the jk log shows
that it finds them:

[Mon Apr 18 15:46:11 2005] [7037:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (455): Attempting to map URI
'/jkstatus /' from 1 maps 
[Mon Apr 18 15:46:11 2005] [7037:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (467): Attempting to map context
URI '/ jkstatus/'
[Mon Apr 18 15:46:11 2005] [7037:] [debug]
map_uri_to_worker::jk_uri_worker_map.c (492): Found an exact match
jkstatus ->  /jkstatus/ 
[Mon Apr 18 15:46:11 2005] [7037:] [debug]
wc_get_worker_for_name::jk_worker.c (94): did not find a worker jkstatus

[Mon Apr 18 15:46:11 2005] [7037:] [error] jk_handler::mod_jk.c
(1813): Could not init service for worker=jkstatus

Byron


-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 2:03 AM
To: Tomcat Users List
Subject: Re: jk 1.2.10 + apache 1.3 issue

Guernsey, Byron (GE Consumer & Industrial) wrote:
> 
> The "NULL factory for ajp13*ajp13" looks odd to me...but that seems 
> like an error create 1 worker and I didn't expect it to cause no 
> workers to be available.  I don't really want to run this with Apache 
> 1.3 long term, but I understood it should work...
>

It has nothing to do with Apache version, but rather with your
configuration.
It would be helpful (to you) if you send the workers.properties.

Regards,
Mladen.

-
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: Plain text mime-mapping and IE

2005-04-19 Thread Trond G. Ziarkowski
Hi Tim,
try serving the file through a servlet or jsp, or use a filter mapped to 
*.las and *.dat, and use response.setHeader("Content-Disposition", 
"inline; filename=file.txt"), and response.setContentType("text/plain").

Works for me...
Trond
Tim Sodergren wrote:
Hello Group,
First time user.
I am using Tomcat 4.1.30 to serve (among other things) plain text files with
.dat and .las extensions. I have added the following lines to the
conf/web.xml file:
   
   las
   text/plain
   
   
   dat
   text/plain
   
And they display properly in Netscape or Firefox. When trying to view in IE,
however it doesn't recognize the file type and prompts the user to open or
save. If the user selects open whatever text editor IE chooses can't find
the file. Save works properly. Does IE's mime-sniffer completely ignore my
server settings? Is there a workaround for this (without having to change
all of my files and links to .txt)?
Thanks in advance.
-Tim
 


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


Re: [SPAM2] - RE: Problems with DataSourceRealm Tomcat 5.5 - Found word(s) list error in the Text body

2005-04-19 Thread Hassan Schroeder
Lorenzo JimÃnez wrote:
This is my context.xml

  
If this is a direct copy/paste, you have a mismatch between the
names above and below, but that doesn't matter because
  
:: this *isn't* the way to specify params in 5.5 -- read this:


  factory
  org.apache.commons.dbcp.BasicDataSourceFactory

...
HTH!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


RE: [SPAM2] - RE: Problems with DataSourceRealm Tomcat 5.5 - Found word(s) list error in the Text body

2005-04-19 Thread Lorenzo Jiménez
This is my context.xml



  
  
  
  

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory



  url
  jdbc:sybase:Tds:172.16.19.11:5000/WEB


  driverClassName
  com.sybase.jdbc2.jdbc.SybDriver


  username
  WEB123


  password
  456PASSW



  initialSize
  1


  minIdle
  1


  maxActive
  2


  maxIdle
  2


  maxWait
  3

  
  

WEB-INF/web.xml
META-INF/context.xml



-Original Message-
From: Kanda Upendra [mailto:[EMAIL PROTECTED] 
Sent: Martes, 19 de Abril de 2005 11:57 a.m.
To: Tomcat Users List
Subject: [SPAM2] - RE: Problems with DataSourceRealm Tomcat 5.5 - Found word(s) 
list error in the Text body


Hi,

  Thanks for the quick response. I have the  defined in my 
web.xml and it still doesn't work.

Throws me the same error.

"Name jdbc not bound in this context"

Thanks

Upendra


-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 1:20 PM
To: Tomcat Users List
Subject: RE: Problems with DataSourceRealm Tomcat 5.5
Importance: High

On the web.xml you have also to write down after ther welcome files:


jdbc/myDB
javax.sql.DataSource
Container

<-- optional.if you like -->
Shareable  


Lorenzo

-Original Message-
From: Kanda Upendra [mailto:[EMAIL PROTECTED] 
Sent: Martes, 19 de Abril de 2005 11:06 a.m.
To: Tomcat Users List
Subject: Problems with DataSourceRealm Tomcat 5.5


Hi,

  I am using Tomcat 5.5 and having problems with the DataSourceRealm
finding the data source in the JNDI. 

Here is the configuration of my context.xml,








I get this error "Name jdbc not bound in this context". I tried moving
the Resource configuration under  in server.xml,
but I get the same error. JDBCRealm works, but I want it use a
connection pool and hence I am trying to change it to a DataSourceRealm.

Also, interestingly, when I try to access the data source from a jsp in
my webapplication it works. The problem seems to be with the
DataSourceRealm looking up for the resource using JNDI.

Any help will be appreciated.

Thanks,

Upendra





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


-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 


-



-
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]



Connectors

2005-04-19 Thread edwin roberts
Greetings,
 
I need some help on testing. Please advise which connector i should use for 
apache 2.044  and tomcat 4.1.24. If possible, a link to a installation guide 
will be helpful.
 
Thanks


-
Yahoo! Mail Mobile
 Take Yahoo! Mail with you! Check email on your mobile phone.

Re: can't see a tomcat installation on home network

2005-04-19 Thread Parsons Technical Services
Is iptables running?
ps ax
If yes your firewall may be blocking the port. You will need to add port 
8080 to the firewall.

Doug
- Original Message - 
From: "Gurumoorthy" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, April 19, 2005 2:28 PM
Subject: Re: can't see a tomcat installation on home network


First try to ping to your tomcat machine from xp machine
Then try to telnet to your tomcat machine  from xp machine
c:\>telnet machineip 8080
See if you can connect.
To cross check send me the output of following details
ON xp Machine   :ipconfig
ON linux Machine:ifconfig
Regards
Guru

- Original Message -
From: "Greg Baynham" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, April 19, 2005 6:55 PM
Subject: can't see a tomcat installation on home network

I've installed Tomcat on a Linux fedora box but am unable to access it
from
a windows xp home edition box.  I've found the IP address for the Linux
box
but when I type that in with the :8080 at the end of the address on the 
XP
box it eventually returns that the connection was refused.

is there something more I have to do to the tomcat installation to make 
it
visible to other machines?

thanks in advance
grb
-
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: Need help exporting contexts not under webapps/

2005-04-19 Thread Gurumoorthy
Did you manage to get it right ?
I would recommend that you use lower case context path name

Regards
Guru
- Original Message -
From: "J. Ryan Earl" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, April 19, 2005 6:56 PM
Subject: RE: Need help exporting contexts not under webapps/


> Thanks for the reply, I actually figured it a few hours later.  I was
trying
> to do 2/ in your list.  I added a PICS.xml and a DOCS.xml under the
> ${CATALINA_HOME}/conf/Catalina/localhost/ directory which gave me the PICS
> and DOCS contexts.  ie:
>
> [EMAIL PROTECTED] localhost]$ pwd
> /home/tomcat/jakarta-tomcat-5.5.9/conf/Catalina/localhost
> [EMAIL PROTECTED] localhost]$ ls
> DOCS.xml  host-manager.xml  manager.xml  PICS.xml
> [EMAIL PROTECTED] localhost]$ cat PICS.xml
>   privileged="true" antiResourceLocking="false"
> antiJARLocking="false">
> 
> [EMAIL PROTECTED] localhost]$ cat PICS.xml
>   privileged="true" antiResourceLocking="false"
> antiJARLocking="false">
> 
> [EMAIL PROTECTED] localhost]$ cat PICS.xml DOCS.xml
>   privileged="true" antiResourceLocking="false"
> antiJARLocking="false">
> 
>   privileged="true" antiResourceLocking="false"
> antiJARLocking="false">
> 
>
>
>
> -Original Message-
> From: QM [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 18, 2005 8:30 PM
> To: Tomcat Users List
> Subject: Re: Need help exporting contexts not under webapps/
>
>
> On Mon, Apr 18, 2005 at 01:16:04PM -0500, J. Ryan Earl wrote:
> : So my question is, in short, given a directory structure of static
files,
> : how do you get Tomcat to serve said static content off of an arbitrary
> URI?
>
> So, are you trying to
> 1/ have a Tomcat-run webapp serve content that exists outside of the
> context path?
>
> 2/ setup the static content as its own webapp (context)?
>
>
> For #1, the (portable, spec-friendly) way is to write a servlet or
> filter to intercept requests for a given URI, open the matching file as
> an InputStream, and push the data to the client via the Response
> OutputStream.
>
> For #2, I don't remember the exact syntax off the top of my head so I
> won't waste your time with something that may not work. =) But it's
> definitely possible for a webapp to not exist under the "webapps/"
> directory.
>
> Just make sure said webapp has a WEB-INF directory and a web.xml.  Even
> a web.xml of just
> 
> should do.
>
> -QM
>
> --
>
> software   -- http://www.brandxdev.net/
> tech news  -- http://www.RoarNetworX.com/
> code scan  -- http://www.JxRef.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]
>


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



Re: can't see a tomcat installation on home network

2005-04-19 Thread Gurumoorthy
First try to ping to your tomcat machine from xp machine
Then try to telnet to your tomcat machine  from xp machine

c:\>telnet machineip 8080

See if you can connect.

To cross check send me the output of following details

ON xp Machine   :ipconfig
ON linux Machine:ifconfig

Regards
Guru



- Original Message -
From: "Greg Baynham" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, April 19, 2005 6:55 PM
Subject: can't see a tomcat installation on home network


> I've installed Tomcat on a Linux fedora box but am unable to access it
from
> a windows xp home edition box.  I've found the IP address for the Linux
box
> but when I type that in with the :8080 at the end of the address on the XP
> box it eventually returns that the connection was refused.
>
> is there something more I have to do to the tomcat installation to make it
> visible to other machines?
>
> thanks in advance
>
> grb
>
>
> -
> 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: Problems with DataSourceRealm Tomcat 5.5

2005-04-19 Thread Kanda Upendra

Hi,

  Thanks for the quick response. I have the  defined in my 
web.xml and it still doesn't work.

Throws me the same error.

"Name jdbc not bound in this context"

Thanks

Upendra


-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 1:20 PM
To: Tomcat Users List
Subject: RE: Problems with DataSourceRealm Tomcat 5.5
Importance: High

On the web.xml you have also to write down after ther welcome files:


jdbc/myDB
javax.sql.DataSource
Container

<-- optional.if you like -->
Shareable  


Lorenzo

-Original Message-
From: Kanda Upendra [mailto:[EMAIL PROTECTED] 
Sent: Martes, 19 de Abril de 2005 11:06 a.m.
To: Tomcat Users List
Subject: Problems with DataSourceRealm Tomcat 5.5


Hi,

  I am using Tomcat 5.5 and having problems with the DataSourceRealm
finding the data source in the JNDI. 

Here is the configuration of my context.xml,








I get this error "Name jdbc not bound in this context". I tried moving
the Resource configuration under  in server.xml,
but I get the same error. JDBCRealm works, but I want it use a
connection pool and hence I am trying to change it to a DataSourceRealm.

Also, interestingly, when I try to access the data source from a jsp in
my webapplication it works. The problem seems to be with the
DataSourceRealm looking up for the resource using JNDI.

Any help will be appreciated.

Thanks,

Upendra





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


-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 


-



-
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: Need help exporting contexts not under webapps/

2005-04-19 Thread J. Ryan Earl
Thanks for the reply, I actually figured it a few hours later.  I was trying
to do 2/ in your list.  I added a PICS.xml and a DOCS.xml under the
${CATALINA_HOME}/conf/Catalina/localhost/ directory which gave me the PICS
and DOCS contexts.  ie:

[EMAIL PROTECTED] localhost]$ pwd
/home/tomcat/jakarta-tomcat-5.5.9/conf/Catalina/localhost
[EMAIL PROTECTED] localhost]$ ls
DOCS.xml  host-manager.xml  manager.xml  PICS.xml
[EMAIL PROTECTED] localhost]$ cat PICS.xml


[EMAIL PROTECTED] localhost]$ cat PICS.xml


[EMAIL PROTECTED] localhost]$ cat PICS.xml DOCS.xml







-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Monday, April 18, 2005 8:30 PM
To: Tomcat Users List
Subject: Re: Need help exporting contexts not under webapps/


On Mon, Apr 18, 2005 at 01:16:04PM -0500, J. Ryan Earl wrote:
: So my question is, in short, given a directory structure of static files,
: how do you get Tomcat to serve said static content off of an arbitrary
URI?

So, are you trying to
1/ have a Tomcat-run webapp serve content that exists outside of the
context path?

2/ setup the static content as its own webapp (context)?


For #1, the (portable, spec-friendly) way is to write a servlet or
filter to intercept requests for a given URI, open the matching file as
an InputStream, and push the data to the client via the Response
OutputStream.

For #2, I don't remember the exact syntax off the top of my head so I
won't waste your time with something that may not work. =) But it's
definitely possible for a webapp to not exist under the "webapps/"
directory.

Just make sure said webapp has a WEB-INF directory and a web.xml.  Even
a web.xml of just

should do.

-QM

--

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.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]



can't see a tomcat installation on home network

2005-04-19 Thread Greg Baynham
I've installed Tomcat on a Linux fedora box but am unable to access it from 
a windows xp home edition box.  I've found the IP address for the Linux box 
but when I type that in with the :8080 at the end of the address on the XP 
box it eventually returns that the connection was refused.

is there something more I have to do to the tomcat installation to make it 
visible to other machines?

thanks in advance
grb
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Problems with DataSourceRealm Tomcat 5.5

2005-04-19 Thread Lorenzo Jiménez
On the web.xml you have also to write down after ther welcome files:


jdbc/myDB
javax.sql.DataSource
Container

<-- optional.if you like -->
Shareable  


Lorenzo

-Original Message-
From: Kanda Upendra [mailto:[EMAIL PROTECTED] 
Sent: Martes, 19 de Abril de 2005 11:06 a.m.
To: Tomcat Users List
Subject: Problems with DataSourceRealm Tomcat 5.5


Hi,

  I am using Tomcat 5.5 and having problems with the DataSourceRealm
finding the data source in the JNDI. 

Here is the configuration of my context.xml,








I get this error "Name jdbc not bound in this context". I tried moving
the Resource configuration under  in server.xml,
but I get the same error. JDBCRealm works, but I want it use a
connection pool and hence I am trying to change it to a DataSourceRealm.

Also, interestingly, when I try to access the data source from a jsp in
my webapplication it works. The problem seems to be with the
DataSourceRealm looking up for the resource using JNDI.

Any help will be appreciated.

Thanks,

Upendra





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


-

Si usted no es el destinatario indicado en este mensaje o responsable como 
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor 
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes 
relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for 
delivery of the 
message to such person), you may not copy or send this message to anyone, 
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating to this 
e-mail. 


-



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



Problems with DataSourceRealm Tomcat 5.5

2005-04-19 Thread Kanda Upendra

Hi,

  I am using Tomcat 5.5 and having problems with the DataSourceRealm
finding the data source in the JNDI. 

Here is the configuration of my context.xml,








I get this error "Name jdbc not bound in this context". I tried moving
the Resource configuration under  in server.xml,
but I get the same error. JDBCRealm works, but I want it use a
connection pool and hence I am trying to change it to a DataSourceRealm.

Also, interestingly, when I try to access the data source from a jsp in
my webapplication it works. The problem seems to be with the
DataSourceRealm looking up for the resource using JNDI.

Any help will be appreciated.

Thanks,

Upendra





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



RE: Running Tomcat on multiple processors on Windows 2003

2005-04-19 Thread Caldarale, Charles R
> From: Chris Hyzer [mailto:[EMAIL PROTECTED] 
> Subject: Re: Running Tomcat on multiple processors on Windows 2003
> 
> I thought Java used native threads by default, or at
> least green threads on top of native threads
> (one-to-one), so Im not sure how this fits in...

The "green thread" mechanism is not used in the 1.4 and beyond JVM
itself - that was a holdover from the very early JVM days and was
thankfully not carried forward into HotSpot.  I'm not familiar enough
with Linux threading to know if there's some mode where underlying
native libraries might simulate the green thread behavior.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Temp File Bloat

2005-04-19 Thread Dakota Jack
This "bloat" appears to be related to fonts.  The files all seem to
refer to various fonts.

On 4/18/05, Dakota Jack <[EMAIL PROTECTED]> wrote:
> I am getting a major build up in my temp directory:
> 
> c://application/j2se
> c://application/server
> c://application/server/webapps/ROOT
> c://application/temp
> 
> The files being stored there are keeping resources, e.g. thumbnail
> images, "in the air", making them unavailable for modication.  Can
> someone tell me what is up?  Thanks.
> 
> Jack
> 
> --
> "You can lead a horse to water but you cannot make it float on its back."
> ~Dakota Jack~
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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



Re: How to use Database persistence for tomcat clustering?

2005-04-19 Thread Filip Hanik - Dev Lists
Configure the PersistenceManager as your session manager
hang zhao wrote:
Hi, everyone
I am trying some configuration with my small tomcat
cluster (2 tomcats, 1 apache, connected with mod_jk2
as load balancer).
The problem is that I want to use a shared database
(Mysql) to do session replication instead of in-memory
session replication. 

But to the best of my knowledge, you seems can not
make session level fail over to work with shared
database  session replication. The changed session
data is not sent to database immediately.
In another word, how can I configure so that when I
change session data, it is sent to database
immediately. And so when some nodes dies, the other
node can pick up the unfinished request silently
without session data loss.
Thanks in advance
Hang 

		
__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

-
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: Running Tomcat on multiple processors on Windows 2003

2005-04-19 Thread Chris Hyzer
> Huh?  The Sun 1.3, 1.4, and 5.0 JVMs use all 32 of
the CPUs on our
> systems quite nicely.  What may be going on is that
some administrator
> has set Windows' CPU affinity to restrict all
threads of a given 
> process to a single CPU.
> 
> - Chuck

We have a recent and up2date Linux Redhat
installation, and the sun Java hotspot 1.4.2 in server
mode JVM.  When I run "top" I see Java as one process,
and with one Tomcat running in a performance test, it
only hits 50% CPU (of a 2 CPU box).  When I run 2
tomcats, I see two processes, and it hits 100% CPU. 
If anyone has seen this behavior, and then changed
some settings to get Tomcat or Java to use multiple
CPUs for one instance, I would be curious.  Maybe it
is something with the threading model or something.  I
thought Java used native threads by default, or at
least green threads on top of native threads
(one-to-one), so Im not sure how this fits in...

Thanks,
Chris



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



Plain text mime-mapping and IE

2005-04-19 Thread Tim Sodergren
Hello Group,

First time user.

I am using Tomcat 4.1.30 to serve (among other things) plain text files with
.dat and .las extensions. I have added the following lines to the
conf/web.xml file:


las
text/plain


dat
text/plain


And they display properly in Netscape or Firefox. When trying to view in IE,
however it doesn't recognize the file type and prompts the user to open or
save. If the user selects open whatever text editor IE chooses can't find
the file. Save works properly. Does IE's mime-sniffer completely ignore my
server settings? Is there a workaround for this (without having to change
all of my files and links to .txt)?

Thanks in advance.

-Tim

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 4/19/2005
 


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



RE: Multiple services in single Tomcat instance

2005-04-19 Thread Gary Hirschhorn
We are using all of the following URL formats to access Tomcat.  There
is a singe IP address on the machine, and a single domain name
registered for the IP address.

http://localhost:6000/app6000
http://localhost:7000/app7000
http://machinename.hostname.com:6000/app6000 
http://machinename.hostname.com:7000/app7000


-Original Message-
From: Raghupathy,Gurumoorthy
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 7:56 AM
To: 'Tomcat Users List'
Subject: RE: Multiple services in single Tomcat instance

How are you accessing tomcat ? 

http://localhost:7000/
http://localhost:6000/

???

-Original Message-
From: Gary Hirschhorn [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 15:34
To: tomcat-user@jakarta.apache.org
Subject: Multiple services in single Tomcat instance


We would like to have a single Tomcat instance running as a web server
that allows requests received on one port to go to one context and
requests on another port to go to a second context.  Is there a way to
do this?  We tried putting the following in our server.xml, but requests
meant for the first service (port 6000) were recieved by the second
service (port 7000). Thank you for any help.


  
  

  

  
  


  
  

  

  


-
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]



LOOK HERE FOR ARCHIVE - WAS:Re: Archive?

2005-04-19 Thread Glenn Parsons
At 05:29 PM 4/18/2005, you wrote:
here is one...
http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2
On 4/18/05, John Najarian <[EMAIL PROTECTED]> wrote:
> Is there an archive of the questions and replies?  If so where?  What 
is the URL.
>
> Thank you,
>
> John Najarian
>
Thanks! I was looking for this a month ago and wanted to set a signpost for 
other 'travelers' looking for the archive.

Cheers! 

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
http://www.sng.ecs.soton.ac.uk/mailscanner/
Configuration by Glenn Parsons dnsadmin-at-1bigthink.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Query regarding Apache Tomcat and Real Time Application

2005-04-19 Thread jaya singhar
Hi,
Plz Help me regarding this under mentioned query.

In my application i am using Apache Tomcat and Real-time Application
server.give me any suggestion how to  start External
Server/Application automatically whenever i start apache tomcat
server.So i want to know the procedure for running External server
simultaneously whenever the Apache Tomcat is started in the same JVM ?
Plz reply soon.

Regards,
Jayaprada


Yahoo! India Matrimony: Find your life partneronline.

Tomcat in a clustered Enviroment

2005-04-19 Thread Josef Whiter
Hello,

I am trying to setup tomcat in a simple failover cluster.  I have
configured tomcat to bind to the virtual IP address thats setup in
cluster suite, but whenever I start the service it does not open any of
the ports its supposed to.  I get one little blip in my catalina.out
file, which never shows up when i start it normally

Created MBeanServer with ID: 
42d8b7dd:1034f377a4e:-8000:legion3.perf.redhat.com:1

The process shows up in ps auxw like normal, it just wont accept any
connections, not to the Virtual IP, not to localhost or the actual IP of
the cluster node.  I've attatched my server.xml file so you can see my
configuration.  Any help would be greatly appreciated.  Thank you,

Josef Whiter









  
  
  
  

  
  








  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  


  

  

  
  






	
	













 
 



  
  
  
  
  
  

  

  
  

  
  

  

  

  

  

  
  

 
 
	











  



  



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

RE: Multiple services in single Tomcat instance

2005-04-19 Thread Raghupathy,Gurumoorthy
How are you accessing tomcat ? 

http://localhost:7000/
http://localhost:6000/

???

-Original Message-
From: Gary Hirschhorn [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 15:34
To: tomcat-user@jakarta.apache.org
Subject: Multiple services in single Tomcat instance


We would like to have a single Tomcat instance running as a web server
that allows requests received on one port to go to one context and
requests on another port to go to a second context.  Is there a way to
do this?  We tried putting the following in our server.xml, but requests
meant for the first service (port 6000) were recieved by the second
service (port 7000). Thank you for any help.


  
  

  

  
  


  
  

  

  


-
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]



Multiple services in single Tomcat instance

2005-04-19 Thread Gary Hirschhorn
We would like to have a single Tomcat instance running as a web server
that allows requests received on one port to go to one context and
requests on another port to go to a second context.  Is there a way to
do this?  We tried putting the following in our server.xml, but requests
meant for the first service (port 6000) were recieved by the second
service (port 7000). Thank you for any help.


  
  

  

  
  


  
  

  

  


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



Problem building Tomcat 5.5.9 Source in Solaris 9

2005-04-19 Thread capa
Hi,
I try to build de source of Tomcat 5.5.9 in Solaris 9 with j2sdk1.4.2_05
and Ant 1.6.2. I found this error in the building:
Thanks for any help.


build-catalina:
 [echo] == Building: catalina in
/development/developer/tomcat/jakarta-tomcat-5/build

flags:

flags.display:

build-prepare:
[mkdir] Created dir:
/development/developer/tomcat/jakarta-tomcat-5/build/common/classes
[mkdir] Created dir:
/development/developer/tomcat/jakarta-tomcat-5/build/common/endorsed
[mkdir] Created dir:
/development/developer/tomcat/jakarta-tomcat-5/build/logs
[mkdir] Created dir:
/development/developer/tomcat/jakarta-tomcat-5/build/shared/classes
[mkdir] Created dir:
/development/developer/tomcat/jakarta-tomcat-5/build/shared/lib
[mkdir] Created dir:
/development/developer/tomcat/jakarta-tomcat-5/build/work
[mkdir] Created dir:
/development/developer/tomcat/jakarta-tomcat-5/build/temp

copy-fileupload.jar:

copy-launcher.jars:
 [copy] Copying 1 file to
/development/developer/tomcat/jakarta-tomcat-5/build/bin
 [copy] Copying 1 file to
/development/developer/tomcat/jakarta-tomcat-5/build/bin
 [copy] Copying 8 files to
/development/developer/tomcat/jakarta-tomcat-5/build/bin

copy-modeler.jar:

build-static:
 [copy] Copying 16 files to
/development/developer/tomcat/jakarta-tomcat-5/build/bin
 [copy] Copying 1 file to
/development/developer/tomcat/jakarta-tomcat-5/build/common/lib
 [copy] Copying 7 files to
/development/developer/tomcat/jakarta-tomcat-5/build/conf
 [copy] Copying 1 file to
/development/developer/tomcat/jakarta-tomcat-5/build/temp

flags:

flags.display:

build-prepare:

copy-fileupload.jar:

copy-launcher.jars:

copy-modeler.jar:

build-static:

deploy-prepare:
[mkdir] Created dir:
/development/developer/tomcat/jakarta-tomcat-5/build/common/i18n
[mkdir] Created dir:
/development/developer/tomcat/jakarta-tomcat-5/build/server/classes

build-catalina-core:
[javac] Compiling 306 source files to
/development/developer/tomcat/jakarta-tomcat-5/build/classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
 [copy] Copying 85 files to
/development/developer/tomcat/jakarta-tomcat-5/build/classes
 [copy] Copied 2 empty directories to 1 empty directory under
/development/developer/tomcat/jakarta-tomcat-5/build/classes

build-catalina-optional:
[javac] Compiling 26 source files to
/development/developer/tomcat/jakarta-tomcat-5/build/classes
[javac]
/development/developer/tomcat/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/factory/MailSessionFactory.java:24:
package javax.mail does not exist
[javac] import javax.mail.Authenticator;
[javac]   ^
[javac]
/development/developer/tomcat/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/factory/MailSessionFactory.java:25:
package javax.mail does not exist
[javac] import javax.mail.PasswordAuthentication;
[javac]   ^
[javac]
/development/developer/tomcat/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/factory/MailSessionFactory.java:26:
package javax.mail does not exist
[javac] import javax.mail.Session;
[javac]   ^
[javac]
/development/developer/tomcat/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/factory/SendMailFactory.java:24:
package javax.mail does not exist
[javac] import javax.mail.Session;
[javac]   ^
[javac]
/development/developer/tomcat/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/factory/SendMailFactory.java:25:
package javax.mail.internet does not exist
[javac] import javax.mail.internet.InternetAddress;
[javac]^
[javac]
/development/developer/tomcat/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/factory/SendMailFactory.java:26:
package javax.mail.internet does not exist
[javac] import javax.mail.internet.MimeMessage;
[javac]^
[javac]
/development/developer/tomcat/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/factory/SendMailFactory.java:27:
package javax.mail.internet does not exist
[javac] import javax.mail.internet.MimePart;
[javac]^
[javac]
/development/developer/tomcat/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/factory/SendMailFactory.java:28:
package javax.mail.internet does not exist
[javac] import javax.mail.internet.MimePartDataSource;
[javac]^
[javac]
/development/developer/tomcat/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/factory/MailSessionFactory.java:129:
cannot resolve symbol
[javac] symbol: class Authenticator
[javac] Authenticator auth = null;
[javac] ^
[javac]
/development/developer/tomcat/jakarta-tomcat-catalina/catalina

Re: PersistentManager

2005-04-19 Thread Jess Holle
Considering there are a number of issues with it (that I provided 
patches for a while back that were not accepted) I'd say it should be.

Also session passivation and activation listeners are not called...
Ron Crayton wrote:
The documentation for the PersistentManager has contained the following warning 
since Tomcat 4.1.   Is it really still considered experimental?
WARNING - Use of this Manager implementation has not been thoroughly tested, and should be considered experimental! 

Thanks.
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 

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


PersistentManager

2005-04-19 Thread Ron Crayton
The documentation for the PersistentManager has contained the following warning 
since Tomcat 4.1.   Is it really still considered experimental?
 
WARNING - Use of this Manager implementation has not been thoroughly tested, 
and should be considered experimental! 
 
Thanks.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Tomcat and SSL

2005-04-19 Thread Marcos Ferreira

I created the certificate using keytool and choosed JKS type.
I'm using "false" to enableLookups attribute.

Thanx

- Original Message - 
From: "Raghupathy,Gurumoorthy" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" 
Sent: Tuesday, April 19, 2005 9:46 AM
Subject: RE: Tomcat and SSL


How did you create the certificate ? And with what details ?


-Original Message-
From: Marcos Ferreira [mailto:[EMAIL PROTECTED]
Sent: 19 April 2005 13:39
To: tomcat-user@jakarta.apache.org
Subject: Tomcat and SSL



Hi,

I'm having problems using Tomcat with SSL Protocol.
I setup Client Authentication in Tomcat administration tool.
When i try to use access a page that needs a certificate, i receive error
"DNS Error" cause the site is unreachable.

Is there anyone who knows how to solve this problem.

Thanks.


PS.:

Tomcat 5.0.28
Windows 2000
Port 8443 listener OK

**
Informação transmitida destina-se apenas à pessoa a quem foi endereçada e
pode conter informação confidencial, legalmente protegida e para
conhecimento exclusivo do destinatário. Se o leitor desta advertência não
for o seu destinatário, fica ciente de que sua leitura, divulgação ou cópia
é estritamente proibida. Caso a mensagem tenha sido recebida por engano,
favor comunicar ao remetente e apagar o texto de qualquer computador.


The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon this information, by person or entity
other than the intended recipient is prohibited. If you received this in
error, please contact the sender and delete the material from any computer.
**

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


**
Informação transmitida destina-se apenas à pessoa a quem foi endereçada e pode 
conter informação confidencial, legalmente protegida e para conhecimento 
exclusivo do destinatário. Se o leitor desta advertência não for o seu 
destinatário, fica ciente de que sua leitura, divulgação ou cópia é 
estritamente proibida. Caso a mensagem tenha sido recebida por engano, favor 
comunicar ao remetente e apagar o texto de qualquer computador.


The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon this information, by person or entity other than the intended 
recipient is prohibited. If you received this in error, please contact the 
sender and delete the material from any computer.
**

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



RE: Can't multipart post large(ish) files via Tomcat 5.0.28

2005-04-19 Thread Pawson, David
http://jakarta.apache.org/commons/fileupload/using.html

says

// Create a new file upload handler
DiskFileUpload upload = new DiskFileUpload();

// Set upload parameters
upload.setSizeThreshold(yourMaxMemorySize);
upload.setSizeMax(yourMaxRequestSize);
upload.setRepositoryPath(yourTempDirectory);


which enables the use of a write to disk when big facility.

HTH DaveP.
 

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 13:43
To: Tomcat Users List
Subject: RE: Can't multipart post large(ish) files via Tomcat 5.0.28


Are you using struts?

Make sure your controller element tempDir property value 
matches that of the web apps context element's workDir.  
The workDir is where uploaded files over a certain size 
(256KB is the default I think) will be written prior to 
their final destination.  Perhaps Jboss has a working 
directory that needs to match as well.  H.


-Original Message-
From: Gareth Williams [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 19, 2005 7:31 AM
To: Tomcat Users List
Subject: RE: Can't multipart post large(ish) files via Tomcat 5.0.28

Using commons-fileupload results in the same problem.  I 
looked at the source, and the commons class FileUploadBase 
gets its input stream from the HttpServletRequest (as you 
would expect :) and hence I get the same errors/problematic 
behaviour.  Whatever is going wrong would appear to be 
either within Tomcat or within the underlying windows 
socket tcp/ip stuff 

I am surprised nobody else seems to have hit this upload 
problem given the number of people using Tomcat5.0.28 + 
Jboss 3.2.6.  Has anyone got any ideas?

Cheers, Gareth


#
Winner - e-Government excellence 2004. 
Runner up - European Information Management awards 2004:
- The Premier Project Award. 
- B2C Commerce Project Award. 
- CRM Project Award. 

For more information visit us at www.voxgen.com


#
Note:
This message is for the named person's use only.  It may 
contain confidential, proprietary or legally privileged 
information.  No confidentiality or privilege is waived or 
lost by any mistransmission.  If you receive this message 
in error, please immediately delete it and all copies of it 
from your system, destroy any hard copies of it and notify 
the sender.  You must not, directly or indirectly, use, 
disclose, distribute, print, or copy any part of this 
message if you are not the intended recipient. Vox 
Generation Limited and any of its subsidiaries each reserve 
the right to monitor all e-mail communications through its networks.

Any views expressed in this message are those of the 
individual sender, except where the message states 
otherwise and the sender is authorised to state them to be 
the views of any such entity.

Thank You.

#


#
This e-mail message has been scanned for Viruses and 
Content and cleared by NetIQ MailMarshal 

#


-
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]



-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




-
To unsubscribe, e-ma

RE: Need help exporting contexts not under webapps/

2005-04-19 Thread Fritz Schneider
Guru,

I got it! Forget about aegean.xml! The key us server.xml! I was able to move
my ROOT directory by adding the following to my  container in
server.xml:

 
  WEB-INF/web.xml 
 

Then all of my subdirectories under c:\www showed up on the server,
including aegean. Other contexts continue to be recognized as deployed apps.

Fritz
-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: Tuesday, April 19, 2005 5:45 AM
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/

Hello,

In your aegean.xml  try 



  WEB-INF/web.xml



and then stop and start tocmat. 
Go to the manager application and see if you can see the application
started ? 
if not try to start it. If yes then try the link
http://www.peacham.com/aegean
If it does not look into the logs 


Regards
Guru 

-Original Message-
From: Fritz Schneider [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 13:25
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/


Guru,

Earl isn't the only one trying to do this. Here are the details for my
attempts which may or may not be similar to his:

 - Running TC 5.5.8, JVM 1.5.0_02-b09 under Win XP Pro SP2
 - I have a set of static pages (starting with index.htm) stored at
C:\www\aegean
 - C:\www\agean\WEB-INF\web.xml contains 
 - I wish to access them as http://www.peacham.com/aegean
 - aegean is just one of many such directories.
 - It works if I copy it to {TOMCAT_BASE}\webapps\aegean but that creates
maintenance headaches by coupling the TC directory structure to the web site
directory structure.
 - I have tried building a webapps/aegean directory with just WEB-INF and
adding aegean.xml to {TOMCAT-BASE}\conf\Catalina\localhost containing:



  WEB-INF/web.xml


but all I get is 404 errors and no hint of other errors in the logs. I have
tried a couple of variations with equally poor results.

Thanks for any help you can give

Fritz

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: Tuesday, April 19, 2005 1:10 AM
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/

Not clear what you want.

Send me the details

Where is your static document ( The directory )
How do want to access it ? ( the URL )  
Which version of TOMCAT YOU ARE USING 
Send me your server.xml 

Regards
Guru 

-Original Message-
From: J. Ryan Earl [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2005 19:16
To: tomcat-user@jakarta.apache.org
Subject: Need help exporting contexts not under webapps/


Hello,

I'm in the process of bringing an in-house application up under Tomcat.
Previously we were using Jetty as the servlet container, but for various
reason I'm trying to get said application running with Tomcat 5.5.9 and Java
1.5.0.

The problem I'm having is that there are two directories with a large amount
of static files (pictures, videos, documents, and other forms of media) that
are mounted outside of the webapps/ home.  Under Jetty, there is a
configuration directive that I can use to export these directories under a
URL path.  I'm trying to do that in Tomcat, and the documentation has been
somewhat confusing.

What I've gathered is that this type of configuration should be put under
${CATALINA_HOME}/conf/context.xml however I have been able to do this
successfully.  I've tried putting the following in context.xml but it gives
me errors:




So my question is, in short, given a directory structure of static files,
how do you get Tomcat to serve said static content off of an arbitrary URI?
Ideas?

Thanks in advance,
-ryan


-
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]



Tomcat5 Service

2005-04-19 Thread Ferguson, Richard E
Hi,

 

I am new to this and Tomcat and Java are not my specialties!  What I
need to accomplish is an install the Tomcat5 service with a log on
account in a silent and unattended mode.  The vendor that has supplied
the Tomcat5 install has StartMode = jvm, so I am unable to use the -User
command.  The BAT file that they have setup is below and they have tried
changing the StartMode to a mode that will except the -User command but
they have stated it fails.  Any ideas on how to get this to work?

 

@echo off

if "%OS%" == "Windows_NT" setlocal

rem

---

rem NT Service Install/Uninstall script

rem

rem Options

rem installInstall the service using Tomcat5 as service
name.

remService is installed using default settings.

rem remove Remove the service from the System.

rem

rem name(optional) If the second argument is present it is
considered

remto be new service name


rem

rem $Id: service.bat,v 1.5.2.1 2004/08/23 22:54:32 mturk Exp $

rem

---

 

rem Guess CATALINA_HOME if not defined

set CURRENT_DIR=%cd%

if not "%CATALINA_HOME%" == "" goto gotHome

set CATALINA_HOME=%cd%

if exist "%CATALINA_HOME%\bin\tomcat5.exe" goto okHome

rem CD to the upper dir

cd ..

set CATALINA_HOME=%cd%

:gotHome

if exist "%CATALINA_HOME%\bin\tomcat5.exe" goto okHome

echo The tomcat.exe was not found...

echo The CATALINA_HOME environment variable is not defined correctly.

echo This environment variable is needed to run this program

goto end

rem Make sure prerequisite environment variables are set

if not "%JAVA_HOME%" == "" goto okHome

echo The JAVA_HOME environment variable is not defined

echo This environment variable is needed to run this program

goto end 

:okHome

if not "%CATALINA_BASE%" == "" goto gotBase

set CATALINA_BASE=%CATALINA_HOME%

:gotBase

 

set EXECUTABLE=%CATALINA_HOME%\bin\tomcat5.exe

 

rem Set default Service name

set SERVICE_NAME=Tomcat5

set PR_DISPLAYNAME=Apache Tomcat

 

if "%1" == "" goto displayUsage

if "%2" == "" goto setServiceName

set SERVICE_NAME=%2

set PR_DISPLAYNAME=Apache Tomcat %2

:setServiceName

if %1 == install goto doInstall

if %1 == remove goto doRemove

echo Unknown parameter "%1"

:displayUsage

echo 

echo Usage: service.bat install/remove [service_name]

goto end

 

:doRemove

rem Remove the service

"%EXECUTABLE%" //DS//%SERVICE_NAME%

echo The service '%SERVICE_NAME%' has been removed

goto end

 

:doInstall

rem Install the service

echo Installing the service '%SERVICE_NAME%' ...

echo Using CATALINA_HOME:%CATALINA_HOME%

echo Using JAVA_HOME:%JAVA_HOME%

 

rem Use the environment variables as an exaple

rem Each command line option is prefixed with PR_

 

set PR_DESCRIPTION=Apache Tomcat Server -
http://jakarta.apache.org/tomcat

set PR_INSTALL=%EXECUTABLE%

set PR_LOGPATH=%CATALINA_HOME%\logs

set
PR_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar

rem Set the server jvm frrom JAVA_HOME

set PR_JVM=%JAVA_HOME%\jre\bin\server\jvm.dll

rem You can use the 'set PR_JVM=auto' for default JVM

"%EXECUTABLE%" //IS//%SERVICE_NAME% --StartClass
org.apache.catalina.startup.Bootstrap --StopClass
org.apache.catalina.startup.Bootstrap --StartParams start --StopParams
stop

rem Clear the environment variables. They are not needed any more.

set PR_DISPLAYNAME=

set PR_DESCRIPTION=

set PR_INSTALL=

set PR_LOGPATH=

set PR_CLASSPATH=

set PR_JVM=

rem Set extra parameters

"%EXECUTABLE%" //US//%SERVICE_NAME% --JvmOptions
"-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.
endorsed.dirs=%CATALINA_HOME%\common\endorsed" --StartMode jvm
--StopMode jvm

rem More extra parameters

set PR_STDOUTPUT=%CATALINA_HOME%\logs\stdout.log

set PR_STDERROR=%CATALINA_HOME%\logs\stderr.log

"%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions
"-Djava.io.tmpdir=%CATALINA_BASE%\temp" --JvmMs 128 --JvmMx 256

echo The service '%SERVICE_NAME%' has been installed.

 

:end

cd %CURRENT_DIR%

 

Thanks

 

Rich

 



Re: Tomcat and SSL

2005-04-19 Thread Parsons Technical Services
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
Set enableLookups to false.
Doug
- Original Message - 
From: "Marcos Ferreira" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, April 19, 2005 8:39 AM
Subject: Tomcat and SSL


Hi,
I'm having problems using Tomcat with SSL Protocol.
I setup Client Authentication in Tomcat administration tool.
When i try to use access a page that needs a certificate, i receive error 
"DNS Error" cause the site is unreachable.

Is there anyone who knows how to solve this problem.
Thanks.
PS.:
Tomcat 5.0.28
Windows 2000
Port 8443 listener OK
**
Informação transmitida destina-se apenas à pessoa a quem foi endereçada e 
pode conter informação confidencial, legalmente protegida e para 
conhecimento exclusivo do destinatário. Se o leitor desta advertência não 
for o seu destinatário, fica ciente de que sua leitura, divulgação ou cópia 
é estritamente proibida. Caso a mensagem tenha sido recebida por engano, 
favor comunicar ao remetente e apagar o texto de qualquer computador.

The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged 
material. Any review, retransmission, dissemination or other use of, or 
taking of any action in reliance upon this information, by person or entity 
other than the intended recipient is prohibited. If you received this in 
error, please contact the sender and delete the material from any computer.
** 


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


Why tomcat start and stop threads ?

2005-04-19 Thread Xavier AMBROSIONI
Hi,

I'm running a home made application on tomcat 4.1.31 on a HP-UX 11i box
with the HotSpot JVM 1.4.2_02. I'm using a Coyote HTTP/1.1 Connector.
The heap size of the tomcat process grows until it reachs the value I
set with the -Xmx parameter. At this point I have some
java.lang.OutOfMemory exception in my application.
Investigating that problem, I discovered that tomcat creates new http
thread and kill the older one continually. The number of http threads is
always between 5 and 10.
I think that my memory problem is related with that thread behavior.

On the same box I'm running another web application in a second tomcat
instance without that memory problem and tomcat does not create new http
thread. The number of simultaneous connections is equivalent on both
applications.

Is it possible to start tomcat in a debug mode to understand why it
create/kill http thread ?
Is is possible that my application crashes the http thread without
releasing the memory used by thesethread ?


Thank you for your help

Xavier

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



RE: Tomcat and SSL

2005-04-19 Thread Raghupathy,Gurumoorthy
How did you create the certificate ? And with what details ?


-Original Message-
From: Marcos Ferreira [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 13:39
To: tomcat-user@jakarta.apache.org
Subject: Tomcat and SSL



Hi,

I'm having problems using Tomcat with SSL Protocol.
I setup Client Authentication in Tomcat administration tool.
When i try to use access a page that needs a certificate, i receive error
"DNS Error" cause the site is unreachable.

Is there anyone who knows how to solve this problem.

Thanks.


PS.:

Tomcat 5.0.28
Windows 2000
Port 8443 listener OK

**
Informação transmitida destina-se apenas à pessoa a quem foi endereçada e
pode conter informação confidencial, legalmente protegida e para
conhecimento exclusivo do destinatário. Se o leitor desta advertência não
for o seu destinatário, fica ciente de que sua leitura, divulgação ou cópia
é estritamente proibida. Caso a mensagem tenha sido recebida por engano,
favor comunicar ao remetente e apagar o texto de qualquer computador.


The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon this information, by person or entity
other than the intended recipient is prohibited. If you received this in
error, please contact the sender and delete the material from any computer.
**

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



RE: Need help exporting contexts not under webapps/

2005-04-19 Thread Raghupathy,Gurumoorthy
Hello,

In your aegean.xml  try 



  WEB-INF/web.xml



and then stop and start tocmat. 
Go to the manager application and see if you can see the application
started ? 
if not try to start it. If yes then try the link
http://www.peacham.com/aegean
If it does not look into the logs 


Regards
Guru 

-Original Message-
From: Fritz Schneider [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 13:25
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/


Guru,

Earl isn't the only one trying to do this. Here are the details for my
attempts which may or may not be similar to his:

 - Running TC 5.5.8, JVM 1.5.0_02-b09 under Win XP Pro SP2
 - I have a set of static pages (starting with index.htm) stored at
C:\www\aegean
 - C:\www\agean\WEB-INF\web.xml contains 
 - I wish to access them as http://www.peacham.com/aegean
 - aegean is just one of many such directories.
 - It works if I copy it to {TOMCAT_BASE}\webapps\aegean but that creates
maintenance headaches by coupling the TC directory structure to the web site
directory structure.
 - I have tried building a webapps/aegean directory with just WEB-INF and
adding aegean.xml to {TOMCAT-BASE}\conf\Catalina\localhost containing:



  WEB-INF/web.xml


but all I get is 404 errors and no hint of other errors in the logs. I have
tried a couple of variations with equally poor results.

Thanks for any help you can give

Fritz

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: Tuesday, April 19, 2005 1:10 AM
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/

Not clear what you want.

Send me the details

Where is your static document ( The directory )
How do want to access it ? ( the URL )  
Which version of TOMCAT YOU ARE USING 
Send me your server.xml 

Regards
Guru 

-Original Message-
From: J. Ryan Earl [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2005 19:16
To: tomcat-user@jakarta.apache.org
Subject: Need help exporting contexts not under webapps/


Hello,

I'm in the process of bringing an in-house application up under Tomcat.
Previously we were using Jetty as the servlet container, but for various
reason I'm trying to get said application running with Tomcat 5.5.9 and Java
1.5.0.

The problem I'm having is that there are two directories with a large amount
of static files (pictures, videos, documents, and other forms of media) that
are mounted outside of the webapps/ home.  Under Jetty, there is a
configuration directive that I can use to export these directories under a
URL path.  I'm trying to do that in Tomcat, and the documentation has been
somewhat confusing.

What I've gathered is that this type of configuration should be put under
${CATALINA_HOME}/conf/context.xml however I have been able to do this
successfully.  I've tried putting the following in context.xml but it gives
me errors:




So my question is, in short, given a directory structure of static files,
how do you get Tomcat to serve said static content off of an arbitrary URI?
Ideas?

Thanks in advance,
-ryan


-
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: Can't multipart post large(ish) files via Tomcat 5.0.28

2005-04-19 Thread Derrick Koes

Are you using struts?

Make sure your controller element tempDir property value matches that of the 
web apps context element's workDir.  The workDir is where uploaded files over a 
certain size (256KB is the default I think) will be written prior to their 
final destination.  Perhaps Jboss has a working directory that needs to match 
as well.  H.


-Original Message-
From: Gareth Williams [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 7:31 AM
To: Tomcat Users List
Subject: RE: Can't multipart post large(ish) files via Tomcat 5.0.28

Using commons-fileupload results in the same problem.  I looked at the source, 
and the commons class FileUploadBase gets its input stream from the 
HttpServletRequest (as you would expect :) and hence I get the same 
errors/problematic behaviour.  Whatever is going wrong would appear to be 
either within Tomcat or within the underlying windows socket tcp/ip stuff 

I am surprised nobody else seems to have hit this upload problem given the 
number of people using Tomcat5.0.28 + Jboss 3.2.6.  Has anyone got any ideas?

Cheers, Gareth

#
Winner - e-Government excellence 2004. 
Runner up - European Information Management awards 2004:
- The Premier Project Award. 
- B2C Commerce Project Award. 
- CRM Project Award. 

For more information visit us at www.voxgen.com

#
Note:
This message is for the named person's use only.  It may contain confidential, 
proprietary or legally privileged information.  No confidentiality or privilege 
is waived or lost by any mistransmission.  If you receive this message in 
error, please immediately delete it and all copies of it from your system, 
destroy any hard copies of it and notify the sender.  You must not, directly or 
indirectly, use, disclose, distribute, print, or copy any part of this message 
if you are not the intended recipient. Vox Generation Limited and any of its 
subsidiaries each reserve the right to monitor all e-mail communications 
through its networks.

Any views expressed in this message are those of the individual sender, except 
where the message states otherwise and the sender is authorised to state them 
to be the views of any such entity.

Thank You.
#

#
This e-mail message has been scanned for Viruses and Content and cleared by 
NetIQ MailMarshal 
#

-
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

2005-04-19 Thread Marcos Ferreira

Hi,

I'm having problems using Tomcat with SSL Protocol.
I setup Client Authentication in Tomcat administration tool.
When i try to use access a page that needs a certificate, i receive error "DNS 
Error" cause the site is unreachable.

Is there anyone who knows how to solve this problem.

Thanks.


PS.:

Tomcat 5.0.28
Windows 2000
Port 8443 listener OK

**
Informação transmitida destina-se apenas à pessoa a quem foi endereçada e pode 
conter informação confidencial, legalmente protegida e para conhecimento 
exclusivo do destinatário. Se o leitor desta advertência não for o seu 
destinatário, fica ciente de que sua leitura, divulgação ou cópia é 
estritamente proibida. Caso a mensagem tenha sido recebida por engano, favor 
comunicar ao remetente e apagar o texto de qualquer computador.


The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon this information, by person or entity other than the intended 
recipient is prohibited. If you received this in error, please contact the 
sender and delete the material from any computer.
**

RE: Need help exporting contexts not under webapps/

2005-04-19 Thread Fritz Schneider
Guru,

Earl isn't the only one trying to do this. Here are the details for my
attempts which may or may not be similar to his:

 - Running TC 5.5.8, JVM 1.5.0_02-b09 under Win XP Pro SP2
 - I have a set of static pages (starting with index.htm) stored at
C:\www\aegean
 - C:\www\agean\WEB-INF\web.xml contains 
 - I wish to access them as http://www.peacham.com/aegean
 - aegean is just one of many such directories.
 - It works if I copy it to {TOMCAT_BASE}\webapps\aegean but that creates
maintenance headaches by coupling the TC directory structure to the web site
directory structure.
 - I have tried building a webapps/aegean directory with just WEB-INF and
adding aegean.xml to {TOMCAT-BASE}\conf\Catalina\localhost containing:



  WEB-INF/web.xml


but all I get is 404 errors and no hint of other errors in the logs. I have
tried a couple of variations with equally poor results.

Thanks for any help you can give

Fritz

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: Tuesday, April 19, 2005 1:10 AM
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/

Not clear what you want.

Send me the details

Where is your static document ( The directory )
How do want to access it ? ( the URL )  
Which version of TOMCAT YOU ARE USING 
Send me your server.xml 

Regards
Guru 

-Original Message-
From: J. Ryan Earl [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2005 19:16
To: tomcat-user@jakarta.apache.org
Subject: Need help exporting contexts not under webapps/


Hello,

I'm in the process of bringing an in-house application up under Tomcat.
Previously we were using Jetty as the servlet container, but for various
reason I'm trying to get said application running with Tomcat 5.5.9 and Java
1.5.0.

The problem I'm having is that there are two directories with a large amount
of static files (pictures, videos, documents, and other forms of media) that
are mounted outside of the webapps/ home.  Under Jetty, there is a
configuration directive that I can use to export these directories under a
URL path.  I'm trying to do that in Tomcat, and the documentation has been
somewhat confusing.

What I've gathered is that this type of configuration should be put under
${CATALINA_HOME}/conf/context.xml however I have been able to do this
successfully.  I've tried putting the following in context.xml but it gives
me errors:




So my question is, in short, given a directory structure of static files,
how do you get Tomcat to serve said static content off of an arbitrary URI?
Ideas?

Thanks in advance,
-ryan


-
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: Can't get Tomcat to use account other than System

2005-04-19 Thread Darryl Wilburn
In Administrative Tools, go to Local Security Policy
and navigate to Local Policies >> User Rights
Assignment.  This lists all the assignable user
rights.  At the very least, this account will need to
be assigned to "Logon On as a Service".  Don't mess
around with the Net Logon service.  The only service
you need to mess with is Apache Tomcat.  The other
services aren't broken, so don't try to "fix" them. 
You might also consider looking here: 
http://support.microsoft.com/default.aspx?scid=fh;EN-US;kbhowto&sd=TECH&ln=EN-US&FR=0

Darryl

--- Mark Leone <[EMAIL PROTECTED]> wrote:
> Can you tell me how to check for that? The only
> options I can find for 
> defining account properties are in Control Panel -->
> Users and 
> Administrative Tools --> Computer Management; and
> neither of those have 
> any settings beyond very basic things like Admin vs.
> limited priviliges.
> 
> I played around a bit with the Net Logon service. I
> specified the 
> desired account credentials in the Log On tab of the
> Service Properties, 
> and then when I tried to start the service I got the
> following error.
> 
> "Could Not start the Net Logon service on local
> computer.
> 
> Error 1079: The accout specified for this service is
> different from the 
> account specified for other services running in the
> same process."
> 
> Not sure what to make of this, or if I'm barking up
> the wrong tree. 
> Please enlighten me.
> 
> Darryl Wilburn wrote:
> 
> >Mark,
> >Does the account you're trying to use have all the
> >correct user rights (act as part of the operating
> >system, run as a service, etc.)?
> >
> >Darryl
> >
> >--- Mark Leone <[EMAIL PROTECTED]> wrote:
> >  
> >
> >>I think this is a pretty basic question, but I
> >>couldn't find an answer 
> >>in the archives. I've been using Tomcat for a
> while,
> >>with Tomcat logging 
> >>on as the local System account. Now I'd like
> Tomcat
> >>to have some 
> >>additional access rights, so I'm trying to get it
> to
> >>log on as a 
> >>privileged user. I have Tomcat 5.5.8 installed as
> a
> >>Service on Windows 
> >>XP. I launch the Service properties window, go to
> >>the "Log On" tab, 
> >>check the "This Account" radio button, and then
> >>enter the account 
> >>credentials.
> >>
> >>The credentials seem to be accepted, but if I
> close
> >>the Service 
> >>properties window and re-launch it, the "Log On"
> tab
> >>has reverted to its 
> >>default configuration, i.e. Log on as "Local
> System
> >>Account" is enabled 
> >>instead of the account I specified. And Tomcat
> >>doesn't have the access 
> >>rights I'd like it to have, even after restart.
> >>
> >>
> >>
> >>
>
>-
> >  
> >
> >>To unsubscribe, e-mail:
> >>[EMAIL PROTECTED]
> >>For additional commands, e-mail:
> >>[EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> > 
> >__ 
> >Yahoo! Mail Mobile 
> >Take Yahoo! Mail with you! Check email on your
> mobile phone. 
> >http://mobile.yahoo.com/learn/mail 
> >
>
>-
> >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]
> 
> 



__ 
Do you Yahoo!? 
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.com/p-travelguide

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



RE: Can't multipart post large(ish) files via Tomcat 5.0.28

2005-04-19 Thread Gareth Williams
Using commons-fileupload results in the same problem.  I looked at the
source, and the commons class FileUploadBase gets its input stream from
the HttpServletRequest (as you would expect :) and hence I get the same
errors/problematic behaviour.  Whatever is going wrong would appear to
be either within Tomcat or within the underlying windows socket tcp/ip
stuff 

I am surprised nobody else seems to have hit this upload problem given
the number of people using Tomcat5.0.28 + Jboss 3.2.6.  Has anyone got
any ideas?

Cheers, Gareth

#
Winner - e-Government excellence 2004. 
Runner up - European Information Management awards 2004:
- The Premier Project Award. 
- B2C Commerce Project Award. 
- CRM Project Award. 

For more information visit us at www.voxgen.com

#
Note:
This message is for the named person's use only.  It may contain confidential,
proprietary or legally privileged information.  No confidentiality or privilege
is waived or lost by any mistransmission.  If you receive this message in error,
please immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender.  You must not, directly or indirectly,
use, disclose, distribute, print, or copy any part of this message if you are 
not
the intended recipient. Vox Generation Limited and any of its subsidiaries each 
reserve the right to monitor all e-mail communications through its networks.

Any views expressed in this message are those of the individual sender, except 
where
the message states otherwise and the sender is authorised to state them to be 
the
views of any such entity.

Thank You.
#

#
This e-mail message has been scanned for Viruses and Content and cleared 
by NetIQ MailMarshal
#

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



Re: Tomcat with PHP?

2005-04-19 Thread Nikola Milutinovic
Cameron Sim wrote:
Thanks mate.
From: andrew <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: Tomcat Users List 
Subject: Re: Tomcat with PHP?
Date: Tue, 19 Apr 2005 11:04:41 +0200
Dear Cameron,
You will need to use Apache with PHP, and use the Tomcat/ Apache 
connector so that apache pushes the requests through to tomcat
(jkmod)

Effectively you will have 2 seperate applications, and use the URLs/ 
browser requests to talk with each other

Also note that there is a "PHP servlet" for Tomcat (or any other 
JavaServlet/JSP container), but I have no information on the list of PHP 
modules supported by that config. It could be that that PHP servlet is 
just calling PHP CGI version (most likely), so anything you load will 
run. Calling any CGI from within a servlet is a definite slowdown and is 
to be avoided, if possible.

One thing also worth noting is that PHP is not thread safe. The core of 
PHP is (most likely) thread-safe, but a number of external libraries 
linked to PHP sub-modules are definitely not thread-safe. This forces us 
to run Apache 2.0 in Pre-Fork mode instead of full-blown Multi-Threaded. 
This in itself is not catastrophic, but is annoying. I don't know what 
are the benchmark comparisons between the two, but they must be in 
favour of MPM, otherwise Apache team would have dropped it a long time ago.

Bottom line - it would be nice if you could weed-out PHP from your 
application altogether and have a Tomcat-exclusively server.

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


re: deploy WAR to / - [using 5.5.4]

2005-04-19 Thread Euan Guttridge
If you have successfully deployed a ROOT.war to TC 5.5.4 please shout now,
with your platform, JDK and any extra config you may have changed. 

Thanks
Euan

-Original Message-
From: Euan Guttridge [mailto:[EMAIL PROTECTED]
Sent: 18 April 2005 16:35
To: 'Tomcat Users List'
Subject: RE: deploy WAR to /


I am getting the same problem, also with 5.5.4 + Compat, RH9, J2SDK142.
- I am building the WAR with ANT, scp'ing to to an empty /webapps and
restarting Tomcat. 
- If I copy the ROOT.war to BLAH.war it will expand fine as BLAH, even
root.war to root, just not ROOT.war to ROOT.

Thanks
Euan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 17 April 2005 02:06
To: Tomcat Users List
Subject: Re: deploy WAR to /


Hi,
16Apr2005 @ 14:11 Drew Jorgenson thusly spake
> I am trying to deploy a war file to tomcat 5.5.4 and naming the war file
> ROOT.war and for some reason it is not getting deployed to / of the
> virtual host that it's being deployed on.
> Any suggestions?

It'd certainly help if you'd post exactly what you've done and how.
The usual way to undertake this is to use ant to build your war file and
copy it
to the webapps directory where tomcat deploys it.

Take a look at the ant manual:
http://www.google.com.au/search?hl=en&q=ant+manual&btnG=Google+Search&meta=

hth,

kind regards,
Luke

-- 
._
:|  .| |.|/.|_
:|__.|_|.|\.|_
:0421 276 282.

-
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: Tomcat with PHP?

2005-04-19 Thread Cameron Sim
Thanks mate.
From: andrew <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: Tomcat Users List 
Subject: Re: Tomcat with PHP?
Date: Tue, 19 Apr 2005 11:04:41 +0200
Dear Cameron,
You will need to use Apache with PHP, and use the Tomcat/ Apache connector 
so that apache pushes the requests through to tomcat
(jkmod)

Effectively you will have 2 seperate applications, and use the URLs/ 
browser requests to talk with each other

Andrew
Cameron Sim wrote:
Does Tomcat support PHP scripting? I’ve tried installing PHP 4 & 5 but 
with
no joy.

I know Apache 2 supports PHP but what setup would I need to support
JSP/Servlets and PHP?
Hope you can help?

-
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: Tomcat with PHP?

2005-04-19 Thread Cameron Sim
Thanks mate, found some good pages.
From: "david joffrin" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: tomcat-user@jakarta.apache.org
Subject: RE: Tomcat with PHP?
Date: Tue, 19 Apr 2005 09:11:02 +
Hi,
Yes, it is possible, however, I had a very bad experience with it, 
especially PHP4 (I think this is not maintained anymore).
I can not find (quickly) a web site that explains how to set it up, but 
search for phpsrvlt on the net.

The principle is based on a servlet that catches the *.php and calls then 
the php libraries...

Good luck and hope that helps.
David Joffrin @ http://www.etradinginnovations.co.uk
From: "Cameron Sim" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: tomcat-user@jakarta.apache.org
Subject: Tomcat with PHP?
Date: Tue, 19 Apr 2005 09:53:24 +0100
Does Tomcat support PHP scripting? I’ve tried installing PHP 4 & 5 but 
with
no joy.

I know Apache 2 supports PHP but what setup would I need to support
JSP/Servlets and PHP?
Hope you can help?

-
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: Tomcat with PHP?

2005-04-19 Thread david joffrin
Hi,
Yes, it is possible, however, I had a very bad experience with it, 
especially PHP4 (I think this is not maintained anymore).
I can not find (quickly) a web site that explains how to set it up, but 
search for phpsrvlt on the net.

The principle is based on a servlet that catches the *.php and calls then 
the php libraries...

Good luck and hope that helps.
David Joffrin @ http://www.etradinginnovations.co.uk
From: "Cameron Sim" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: tomcat-user@jakarta.apache.org
Subject: Tomcat with PHP?
Date: Tue, 19 Apr 2005 09:53:24 +0100
Does Tomcat support PHP scripting? I’ve tried installing PHP 4 & 5 but with
no joy.
I know Apache 2 supports PHP but what setup would I need to support
JSP/Servlets and PHP?
Hope you can help?

-
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 with PHP?

2005-04-19 Thread andrew
Dear Cameron,
You will need to use Apache with PHP, and use the Tomcat/ Apache 
connector so that apache pushes the requests through to tomcat
(jkmod)

Effectively you will have 2 seperate applications, and use the URLs/ 
browser requests to talk with each other

Andrew
Cameron Sim wrote:
Does Tomcat support PHP scripting? I’ve tried installing PHP 4 & 5 but 
with
no joy.

I know Apache 2 supports PHP but what setup would I need to support
JSP/Servlets and PHP?
Hope you can help?

-
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 with PHP?

2005-04-19 Thread Cameron Sim
Does Tomcat support PHP scripting? I’ve tried installing PHP 4 & 5 but with
no joy.
I know Apache 2 supports PHP but what setup would I need to support
JSP/Servlets and PHP?
Hope you can help?

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


RE : Find login information from tomcat security

2005-04-19 Thread LERBSCHER Jean-Pierre
Hi, 
To my knowledge, you have no way to access GenericPrincipal object except if
to develop your own realm. In general, you do not need to reach Principal,
you have to define security constraint, or roles, authentication methods...

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 19 avril 2005 05:41
À : Tomcat Users List
Cc : Gia Thornton
Objet : Re: Find login information from tomcat security

I'm also interested in how to get that principal info and maybe how to
overwrite or add methods.


 -- Original message --
From: Gia Thornton <[EMAIL PROTECTED]>
> Hi,
>I am using Form-based tomcat security.  I use a servlet to find login 
> information such as the principal name, all the role names for this
principal.  
> I can use request.getUserPrincipal() from
> javax.servlet.http.HttpServletRequest.  Is there anyway I can use 
> GenericPrincipal class from package org.apache.catalina.realm of Tomcat in

> servlet?  Thank you for your help.
>  
>  
> regards,
> 
> 
> 
>   
> -
> Yahoo! Mail Mobile
 Take Yahoo! Mail with you! Check email on your mobile phone.


-
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: Need help exporting contexts not under webapps/

2005-04-19 Thread Raghupathy,Gurumoorthy
Not clear what you want.

Send me the details

Where is your static document ( The directory )
How do want to access it ? ( the URL )  
Which version of TOMCAT YOU ARE USING 
Send me your server.xml 

Regards
Guru 

-Original Message-
From: J. Ryan Earl [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2005 19:16
To: tomcat-user@jakarta.apache.org
Subject: Need help exporting contexts not under webapps/


Hello,

I'm in the process of bringing an in-house application up under Tomcat.
Previously we were using Jetty as the servlet container, but for various
reason I'm trying to get said application running with Tomcat 5.5.9 and Java
1.5.0.

The problem I'm having is that there are two directories with a large amount
of static files (pictures, videos, documents, and other forms of media) that
are mounted outside of the webapps/ home.  Under Jetty, there is a
configuration directive that I can use to export these directories under a
URL path.  I'm trying to do that in Tomcat, and the documentation has been
somewhat confusing.

What I've gathered is that this type of configuration should be put under
${CATALINA_HOME}/conf/context.xml however I have been able to do this
successfully.  I've tried putting the following in context.xml but it gives
me errors:




So my question is, in short, given a directory structure of static files,
how do you get Tomcat to serve said static content off of an arbitrary URI?
Ideas?

Thanks in advance,
-ryan


-
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]



doPost action in response to curl post

2005-04-19 Thread Pawson, David

I'm a bit lost using doPost() to react to a curl test
post with an xml file, either post or put.
http://curl.haxx.se/docs/httpscripting.html

Seemingly I need to use commons fileupload for 
an RFC 1867 post
curl -F [EMAIL PROTECTED] -F press=OK [URL]

which seems overly complex for a simple file.
I'm really unsure how to access a single xml file
uploaded using a put.

  curl -T uploadfile http://localhost/myapp

Does anyone have any url's with examples of this please?


Regards DaveP.

 snip here *

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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