Re: using a datasource connection pool resource with username and password supplied by user

2005-10-09 Thread Parsons Technical Services
Chuck is right in that it can't be done with the standard pool that Tomcat 
has. Due simply to the fact that the pool is established before anyone has 
made a call to the server.


But what you could do is to create a connection for that user when they 
authenticate and hold on to the connection for the session. Two limitations 
are the time on the connection and the potential number of open connections. 
If you control the time the connection is held alive for the session and 
return it after some period of time to prevent time out on the database side 
or tying up a connector forever. In essence you will be creating a one 
connection pool for each session. Second is the total number of connections. 
How many users are there going to be on the system at once and can the 
system handle that many open connections?


If you come up with a different/better solution let us know.

Doug


- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Sunday, October 09, 2005 11:26 PM
Subject: RE: using a datasource connection pool resource with username and 
password supplied by user




From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Subject: using a datasource connection pool resource with
username and password supplied by user

But what I really want to do is to get a database user and
password from the user and (after validating it) write this
to a session cookie.  Then when the user interacts with the
database (which is all the time) the username and password
will be extracted from the cookie and used in the following
way:


I don't think you can do this with a connection pool.  The connections
in the pool are opened once only, and persist for the life of the
application, not the session.  Any user (session) can end up using any
of the connections, which is why you have to configure the credentials
with the ressource.  I think if you want to authenticate on each
session, you'll have to dispense with the pool and suffer the overhead
of opening a DB connection each time.

Perhaps someone else has a better idea...

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





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



Re: MyServlet as default servlet in tomcat 5.0.27

2005-10-02 Thread Parsons Technical Services

Rename your war to ROOT.war and deploy it.

Or you can manually deploy the app and point the default Host element to the 
new appBase location.


Doug

- Original Message - 
From: Partheeban Boopathy [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Friday, September 30, 2005 5:06 PM
Subject: MyServlet as default servlet in tomcat 5.0.27


Hi
How to set my servlet as a default for my Tomcat5.0.27 instance which runs
in a machine name testmachine.
I want my servlet to make it as default one,i changed web.xml under
tomcatinstalldir/conf folder.
It works,but i dont want to change that web.xml under conf folder.Is there
any way on that.

My main requirnment is
How to make my servlet available for the url below
http://testmachine:8050
I dont want to give any application name after the port number
whereas tomcat5.0.27 is running in testmachine.

Note : I packed my servlet inside a war file and deployed under
tomcatinstalldir/webapps as test.war

Thanks
Parthi



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



Re: Configure multiple number of aliases / sub-domains

2005-09-22 Thread Parsons Technical Services

I don't think that Tomcat can do that without some hacking.

I think that you may be able to accomplish what you need by doing a little 
redirecting.


You might be able to use a filter to parse and redirect the request to the 
base domain.


Or use the default host as a catch all and the redirect the request to the 
desired domain.


I am sure there are some on the list that can help with the code as I have 
not messed with filters or redirects enough to give you any solid code. One 
source for the code is Tomcat itself, as it has to do this with the request 
in the first place. In your case you are just handling it a little 
differently.


And of course there is always the chance that I am FOS and someone will come 
up with a better solution.


Doug


- Original Message - 
From: Assaf [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, September 22, 2005 5:20 AM
Subject: Re: Configure multiple number of aliases / sub-domains



Hi Tom,

Thanks again for the answer. BUT my problem is not the
hosts file. That works fine. My issue is as follows:

I have multiple hosts (as in TOMCAT HOSTS) running on
the server. Each is mapped to a different context/
application. I need to be able to map ALL subdomains
to the same application as the www. subdomain.
Currently I have in the server.xml file:

host name=domain.com
  aliaswww.domain.com/alias
  aliasxx1.domain.com/alias
  aliasxx2.domain.com/alias
/host

It is not practical to have a list of all subdomains
(which in this case are aliases) in the server.xml
file as they are dynamically created and deleted.

Looking forward,

Assaf

--- Tom Burke [EMAIL PROTECTED] wrote:


The Hosts file is hold-over from the pre-DNS method
of finding IP
addresses. Basically, there's a file - 'Hosts' -
that holds addresses,
in the format:

domain_nameip_address eg
myhost.co.uk123.45.123.45

At one time this was the only way that machines on
the Internet knew the
addresses of other machines, and a new Hosts file
would be circulated
(by email) to all the sysadmins who managed
connected hosts. (Google for
'Jonathan Postel' if you want to know more about
these early days.)
Obviously, DNS has replaced all this, except that
Hosts remains - in a
Windows system you'll find it in:
[windir]\System32\Drivers\Etc

In Linux/Unix I think it's still in /etc ; I
remember frantically
editing /etc/hosts on many systems in the past!

So this is all a part of server-name resolution
within networking, not
Tomcat.

Tom





__
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.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: Create Valve and Deploy How to Help Please ????

2005-09-21 Thread Parsons Technical Services
Remove thyself. Look at the bottom of the email. Spamming the list will not 
help. The list admins are not on 24/7.


Doug


- Original Message - 
From: [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Wednesday, September 21, 2005 7:36 AM
Subject: RE: Create Valve and Deploy How to Help Please 


Please remove me from this reply list.

-Original Message-
From: Bovy, Stephen J [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 20, 2005 11:06 PM
To: Tomcat Users List
Subject: RE: Create Valve and Deploy How to Help Please 



I have created a new Valve in the authenticator package called
ThreadSignOn

I added a descritpion for it to the mbean description xml file.

I re-built and verified that my new valve and the new description is in
catalina.jar

But When I refference my new valve nothing happens it does not work

What else do I need to do ?


-
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: Wher do I get binary of Tomcat

2005-09-15 Thread Parsons Technical Services

-alpha  Potential for bugs and possibly lots of them and/or major ones.
-beta They think that most of the bugs are squashed.
No suffix  stable and should run without major issues.

As for the other extensions try the readme file at the top of each section.

http://apache.towardex.com/jakarta/tomcat-5/v5.5.9/README.html

For your needs the exe package for Win 98 would be a good bet. As for the 
Mac let Google be your guide. There are several Mac users on the list and I 
am sure there are some How to sites out there.


Doug

- Original Message - 
From: [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Thursday, September 15, 2005 8:27 PM
Subject: Wher do I get binary of Tomcat


I have browsed Jakarta page and have found rather confusing bunch of 
non-described links with cryptic names for files to download.


1. Is there any information what those files are for or you have to become 
Tomcat expert without Tomcat in order to know what file to downloads and 
know what they are for? (I mean do not make assumption that downloading 
person knows much about capabilities and extensions of the product because 
it is wrong assumption in general)


2. Where can I get Tomcat that works on MacOS X or Windows (let's say old 
good win98)?



Thanks,
M.

__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at 
http://isp.netscape.com/register


Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

-
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: Wher do I get binary of Tomcat

2005-09-15 Thread Parsons Technical Services

That's why I don't gamble.:)

Doug


- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, September 15, 2005 9:29 PM
Subject: RE: Wher do I get binary of Tomcat


From: Parsons Technical Services 
[mailto:[EMAIL PROTECTED] 
Subject: Re: Wher do I get binary of Tomcat


For your needs the exe package for Win 98 would be a good bet.


I don't think that's true.  The .exe download installs Tomcat as a
service only - the startup and shutdown scripts aren't included, whereas
they are in the .zip and .tar.gz packages.  Win98 support for services
is pretty limited.

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





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



Re: How to change the SSL port

2005-09-15 Thread Parsons Technical Services

What OS are you on and what services are running?

It sounds like something else has the port tied up. If you can post a list 
of the services maybe someone might spot it. If you are on windows there are 
some apps out that can map the app/service to the ports being used.


If on Linux, which flavor and what netstat command did you use?

When you say scanned the ports are you talking about from another machine or 
using netstat?


Doug


- Original Message - 
From: CommonGround Softworks/Phil McNamara [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, September 15, 2005 11:15 PM
Subject: RE: How to change the SSL port



Guys, Thank you. Stephen posted the original question on my behalf.  I am
just now joining the list.

Iannis and Chuck thank you for your feedback. Maybe I can provide some
more info. Appreciate any further suggestions.

I did ports scans before and after the server.xml edits to ports 443 and
to 8443.  443 has never responded. I saw  8443 go away, and 443 not come
up.  Edited server xml back to 8443 and portscanned it coming back up.
It would seem to me that this demonstrates that I am editing the correct
server.xml instance. I also checked processes and confirmed only one java
parent was started. Likewise tested browser https access using 443 and
8443 during the tomcat edit start/stop cycles. 8443 plays. 443 does not.

The tomcat log does show a bind error message after my server.xml edit to
port 443.

Sep 15, 2005 10:37:07 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:443
snip...
Sep 15, 2005 10:37:07 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed:
java.net.BindException: Permission denied:443
at org.apache.catalina.connector.Connector.initialize(Connector.java:920)
snip..

At no time has port 443 responded to an external port scan. Possible that
apache or a ssl module has already done a bind internally to 443?  I
disabled the apache ssl module and can't find any other app that is a
likely culprit.

Ran Netstat and nothing obvious jumped out at me.  Maybe I'm not savvy
enough to spot the obvious. Kinda stumped. No firewall config on this
machine. Could this be a permissions issue of some sort?

I am tempted to fire up ssl with apache on 443 with a trial cert and make
sure that Apache's ssl plays. I seem to recall over a year ago that I had
a server that never could play ssl.  Maybe this is the one with the
gremlin :).
Phil Mc


Check your tomcat log file. If tomcat could bind properly on the SSL
port you mentioned, it should show up in the log file (one of the first
lines on the top). If not (e.g. because the port is already in use), it
will show you a bind error message there as well.

If the log says that the port is fine, check for firewall, (etc.) on
your box.

At least, look at the port number that is specified in the log. It
should say 443 if your changes to the server.xml are correct.

Iannis

-Original Message-
From: Stephen Caine [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 15, 2005 7:07 PM
To: Tomcat Users List
Subject: How to change the SSL port

All:
Is there any way I can change the default SSL port from 8443 to 443?


Change the port attribute of the SSL connector in your server.xml
file.



And use port number 443.


yup, I tried this.  It doesn't work.  I tried edits to server xml
connector from 8443 to 443 - 443 port unresponsive after tomcat
restart.  Tried 8442 also.  No joy. Only plays with 8443.  There is
another setting somewhere

Please advise.

Stephen Caine
CommonGround Softworks, Inc.



Phil McNamara
CommonGround Softworks Inc.
[EMAIL PROTECTED]
http://www.commongrnd.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: Problem making my servlet the default servlet (instead of ROOT)

2005-09-13 Thread Parsons Technical Services

If I do Context path=/ docBase=store., then
http://localhost:8080/cart.faces  returns an error 404.

Yep. It will. Since you are using the path attribute I assume this is in the 
server.xml and to set it as the root you would use .


 If you specify a context path of an empty string (), you are defining 
the default web application for this Host, which will process all requests 
not assigned to other Contexts. 


If this is not in the server.xml then remove the path attribute completely. 
Name your package ROOT.war and deploy it. (Someone correct me if I am wrong 
here.)




I figured it should be / and not ?



No. See above.



If I do Context path= docBase=store., then it works. But.

http://localhost:8080/store/cart.faces works

http://localhost/store/cart.faces works (via IIS)

http://localhost:8080/cart.faces works

http://localhost/cart.faces - error 404



Any idea why the error only if using the root?





I don't use IIS but I would say it is a configuration issue in the 
connector, as you are connecting to two different apps in the first two URLs 
than you are in the last two. And since both :8080 URLs work then Tomcat is 
working.


Out of curiosity is there any particular reason you are using IIS and not 
Tomcat alone?


Doug 




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



Re: No Host matches server name localhost error

2005-08-30 Thread Parsons Technical Services
Per the 5.5 doc you can't do it that way. You can only specify the path as a 
blank string when the context element is in the server.xml.


http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

Look at the path attribute.

Doug


- Original Message - 
From: Brian Moseley [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, August 30, 2005 12:50 PM
Subject: No Host matches server name localhost error




i'm using tomcat 5.5.9 with a single webapp deployed with a context path 
of  and a default host named localhost. when i request the webapp's 
root resource (http://localhost:8080/), i get a 400 error with the message 
No Host matches server name localhost.


as you can see from my very minimal server.xml, i do in fact have a Host 
named localhost and have specified it as the default host for the engine. 
so, i must admit to being confused as to why i'm receiving that particular 
error message. :) i have turned on debug logging to verify that the 
context is being loaded, but i have yet to step through a request with a 
debugger. any ideas?


server.xml:

Server port=8005 shutdown=SHUTDOWN
  Service name=Catalina
Connector port=8080 enableLookups=false/
Engine name=Catalina defaultHost=localhost
  Host name=localhost appBase=webapps autoDeploy=false/
/Engine
  /Service
/Server

context.xml (in conf/Catalina/localhost/):

Context path= docBase=cosmo reloadable=true
  Environment name=cosmo/version value=0.2-4
   type=java.lang.String override=false/
  Environment name=cosmo/serverAdmin value=[EMAIL PROTECTED]
   type=java.lang.String override=false/
  Environment name=cosmo/repository/username
   value=cosmo_repository
   type=java.lang.String override=false/
  Environment name=cosmo/repository/password
   value=
   type=java.lang.String override=false/
  Resource name=jcr/cosmo
type=javax.jcr.Repository

factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory
configFilePath=etc/repository.xml
repHomeDir=data/repository/
  Resource name=jdbc/cosmo
type=javax.sql.DataSource
maxActive=5
maxIdle=3
maxWait=1
username=sa
parameter=
driverClassName=org.hsqldb.jdbcDriver
url=jdbc:hsqldb:file:data/db/userdb/
  Resource name=mail/cosmo
type=javax.mail.Session
mail.transport.protocol=smtp/
mail.smtp.host=localhost/
mail.smtps.host=localhost/
mail.smtp.starttls.enable=false/
  Valve className=org.apache.catalina.valves.AccessLogValve
 directory=../logs prefix=access. suffix=.log
 pattern=combined resolveHosts=false/
/Context

-
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: Database Pooling

2005-08-30 Thread Parsons Technical Services

MySQL shuts down the connections after 8 hours. Ran into this myself.

Yes, Tomcat has pooling built in.
Yes, it handles all aspects of the pool.

Try this link to start with:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html

It is directed more to the database pooling. There is also lots of entries 
in the archives.


Some people have no problem setting it up but there are a few that run into 
some configuration issues that seem to baffle them.


Some tips:
Watch the naming that both case and spelling match.
Put the drivers in common/lib
Use the latest drivers.
Make sure you have only one copy of the drivers.

Doug

- Original Message - 
From: Scott Purcell [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Tuesday, August 30, 2005 1:08 PM
Subject: Database Pooling


Hello,

To start off with, I hand rolled a database pooling class to handle database 
pooling for a ecommerce site I am writing. The application is web-based so 
of course I am using Tomcat 5.5 and all was going well. But in my 
implementation, I occasionally get errors when the connection has not been 
used for a long period of time. Basically mysql or tomcat may be taking 
themselves out of service and I get some java.net errors through Tomcat.


Anyway, I got frustrated and began to look through some on-line docs in 
regards to Tomcat and DatabasePooling.


Which leads me to my question:
Is pooling build-in to Tomcat 5.5?
If so, how simple is this to implement (I have read here: 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html 
but I an not familiar with JNDI.
And if it does it take care of shutting down the pool when the server gets 
reloaded or gets unloaded?


Currently my pooling solution is huge, with threads to monitor if they are 
closed, etc. I figure there has to be a better implementation, or solution 
for myself in this regards


Could anyone please help out with some sample, or explanation of how this 
all fits together.


I have created business objects, so I just need to call the database from 
business objects, not directly from tomcat.


Thanks,
Scott




-
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: No Host matches server name localhost error

2005-08-30 Thread Parsons Technical Services
First, let me clarify that I am only a user of Tomcat and was simply 
pointing out the part of the documentation.


Now as for the issue, I am not sure that it is a bug but just a feature. 
Unless you can show where it does not meet the servlet specs then it will 
not be considered a bug.


I am not sure why this is causing such a problem. The only time a default 
context will ever be used is if the browser is using an IP instead of a URL 
or if you have a DNS entry that points to your IP with no matching 
application.


So unless you are using only the IP or are directing multiple unmatched URLs 
at the server there is no issue. If you are, then knowing what the war is 
about is only a small piece of the puzzle that exist in the setup.


Just my understanding of the setup. Feel free to enlighten me if you think I 
am off base.


Every aspect of a program is considered a feature. No matter how good or bad 
one may think it is. It only become a bug when it breaks a rule. Either the 
programmers rule, a system rule or a specification rule.


If a feature that was considered bad by some could be classed as a bug, then 
90% of the code written in the world would be bugs because somewhere there 
is someone who doesn't like it.


Doug

- Original Message - 
From: Thomas Corte [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, August 30, 2005 4:28 PM
Subject: Re: No Host matches server name localhost error



Hi,

Parsons Technical Services wrote:

Per the 5.5 doc you can't do it that way. You can only specify the path 
as a blank string when the context element is in the server.xml.


To reiterate: so the only 2 ways to define the *default web app* for the 
host are either


- to define the context in server.xml (which is inconvenient because it
  may e.g. contain JNDI resource definitions that have to be updated
  whenever META-INF/context.xml within the war changes)

or

- to name the war file for the default webapp ROOT.war
  (which is somewhat crappy, too, since it e.g. leaves no hint
  at what the war is about if someone just looks at the webapps drawer)


If the above is true, I wonder why the path attribute of the context 
defined in META-INF/context.xml isn't simply considered in *any* case?

Shouldn't this be considered a tomcat bug?

--
Thomas Corte
[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: Got trouble with virtual hosts

2005-08-29 Thread Parsons Technical Services
Unless there is another reason, why not drop Apache and run only Tomcat? It 
can handle the virtual hosts just fine.


This would simplify the setup considerably.

Doug


- Original Message - 
From: rueh hänä [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 6:58 AM
Subject: Got trouble with virtual hosts



Hi there

I dont know, what term to search for.. so excuse me, if there is already a
similar problem

I'm running a Webserver on Fedora Core 4

- Apache 2.0.54
- tomcat5-5.0.30-5jpp_6fc

I want to run about 13 Websites (html and jsp) over one virtual host. So i
defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
added the websites. For example:

-
VirtualHost 192.168.0.170:80
 ServerName www.website.ch
 DocumentRoot /drbd/www/html/www.website.ch
 JKMount /*.jsp tomcat-worker1
 JKMount /*/servlet/ tomcat-worker1
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 DirectoryIndex index.jsp index.html index.php index.htm index.shtml
index.cgi
 Location /WEB-INF/
  AllowOverride None
  deny from all
 /Location
 Location /META-INF/
  AllowOverride None
  deny from all
 /Location
/VirtualHost


The server.xml entry for this site is:
--
Host name=www.k-exp.ch debug=0 
appBase=/drbd/www/html/www.website.ch

unpackWARs=true autoDeploy=true
   Valve className=org.apache.catalina.valves.AccessLogValve
  directory=/var/log/tomcat5/
  prefix=www.kexp.ch-access.
  suffix=.log
  resolveHosts=true
  pattern=combined/
   Logger className=org.apache.catalina.logger.FileLogger
   directory=/var/log/tomcat5/  prefix=www.kexp.ch_log.
suffix=.txt
   timestamp=false/

   Context path= docBase= debug=0/

   Realm className=org.apache.catalina.realm.MemoryRealm
  pathname=/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml/
 /Host
-

I'm replacing the actually active server with a new one. I overtook the
config-files from the active server, so they should work. The only change 
is

that thing with the virtual hosts. In the old config, all sites had their
own virtualhost setting (= several virtual network interfaces). It would 
be

much more simple, when i only had one virtual host.
But, if i want to access a jsp website, i get an internal server error
mesage.
HTML-Sites work properly.

It seems, that tomcat cant translate the hostnames defined in httpd.conf.
Can only apache do this? Or do i have to do some additional changes to my
configs?

Any idea? Thanks for help beforehand!

--
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: 
http://www.gmx.net/de/go/dsl


-
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: Got trouble with virtual hosts

2005-08-29 Thread Parsons Technical Services

Tomcat will handle them just fine with the current releases.

With the current versions of Tomcat, unless you are doing something special 
that requires a feature of Apache that is not in Tomcat, you can host 
multiple sites just fine. If load is an issue, take a look a the clustering. 
Otherwise just set up Tomcat with the virtual host and enjoy the simplicity.


Start here:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/engine.html

Then read the link for host. Simply put, for each website put a host element
in for that site. But make sure you understand the default host.

Doug


- Original Message - 
From: rueh hänä [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 7:52 AM
Subject: Re: Got trouble with virtual hosts


Because im running normal HTML sites, too. I need another solution, if 
even

possible...



--- Ursprüngliche Nachricht ---
Von: Parsons Technical Services [EMAIL PROTECTED]
An: Tomcat Users List tomcat-user@jakarta.apache.org
Betreff: Re: Got trouble with virtual hosts
Datum: Mon, 29 Aug 2005 07:41:50 -0400

Unless there is another reason, why not drop Apache and run only Tomcat?
It
can handle the virtual hosts just fine.

This would simplify the setup considerably.

Doug


- Original Message - 
From: rueh hänä [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 6:58 AM
Subject: Got trouble with virtual hosts


 Hi there

 I dont know, what term to search for.. so excuse me, if there is 
 already

a
 similar problem

 I'm running a Webserver on Fedora Core 4

 - Apache 2.0.54
 - tomcat5-5.0.30-5jpp_6fc

 I want to run about 13 Websites (html and jsp) over one virtual host. 
 So

i
 defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
 added the websites. For example:

 -
 VirtualHost 192.168.0.170:80
  ServerName www.website.ch
  DocumentRoot /drbd/www/html/www.website.ch
  JKMount /*.jsp tomcat-worker1
  JKMount /*/servlet/ tomcat-worker1
  JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
  DirectoryIndex index.jsp index.html index.php index.htm index.shtml
 index.cgi
  Location /WEB-INF/
   AllowOverride None
   deny from all
  /Location
  Location /META-INF/
   AllowOverride None
   deny from all
  /Location
 /VirtualHost
 

 The server.xml entry for this site is:
 --
 Host name=www.k-exp.ch debug=0
 appBase=/drbd/www/html/www.website.ch
 unpackWARs=true autoDeploy=true
Valve className=org.apache.catalina.valves.AccessLogValve
   directory=/var/log/tomcat5/
   prefix=www.kexp.ch-access.
   suffix=.log
   resolveHosts=true
   pattern=combined/
Logger className=org.apache.catalina.logger.FileLogger
directory=/var/log/tomcat5/  prefix=www.kexp.ch_log.
 suffix=.txt
timestamp=false/

Context path= docBase= debug=0/

Realm className=org.apache.catalina.realm.MemoryRealm
 
 pathname=/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml/

  /Host
 -

 I'm replacing the actually active server with a new one. I overtook the
 config-files from the active server, so they should work. The only
change
 is
 that thing with the virtual hosts. In the old config, all sites had
their
 own virtualhost setting (= several virtual network interfaces). It
would
 be
 much more simple, when i only had one virtual host.
 But, if i want to access a jsp website, i get an internal server error
 mesage.
 HTML-Sites work properly.

 It seems, that tomcat cant translate the hostnames defined in
httpd.conf.
 Can only apache do this? Or do i have to do some additional changes to
my
 configs?

 Any idea? Thanks for help beforehand!

 -- 
 GMX DSL = Maximale Leistung zum minimalen Preis!

 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat:
 http://www.gmx.net/de/go/dsl

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



--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner

-
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: Please kill the MAIL FAILURE user

2005-08-24 Thread Parsons Technical Services

Yes there is one or more but they are not always online.

Doug

PS: As to the subject line, if I had his/her home address it would be very 
tempting.



- Original Message - 
From: Larry Meadors [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, August 24, 2005 10:44 AM
Subject: Please kill the MAIL FAILURE user


Do we have a list admin who can do this?

Larry

-
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: Multiple virtual hosts NEWBIE (UNCLASSIFIED)

2005-08-17 Thread Parsons Technical Services

Start here:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/engine.html

Then read the link for host. Simply put, for each website put a host element 
in for that site. But make sure you understand the default host.


Doug


- Original Message - 
From: Hassan Schroeder [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, August 17, 2005 10:01 AM
Subject: Re: Multiple virtual hosts NEWBIE (UNCLASSIFIED)




I appreciate your input.  I went onto the site and I can't seem to find 
what

I need.
Could anyone please supply me with the URL of a reference manual ? I am
using version 5.5.8


http://jakarta.apache.org/tomcat/tomcat-5.5-doc/

Good luck,
--
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]







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



Re: virtual host memory usage

2005-08-13 Thread Parsons Technical Services
To my knowledge (sometimes limited but open to expansion) the answer is no. 
I base this on the understanding that each host loaded by Tomcat takes up 
memory space. Then add the application to that.


Doug


- Original Message - 
From: Oleg [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Saturday, August 13, 2005 1:19 PM
Subject: virtual host memory usage


Why running 100 virutal hosts in Tomcat takes up much more memory than
running a 100 identical applications under one host? Is there a way to
configure Tomcat to run both the same?

Thank you
Oleg



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



Re: Viewing Web Resource Updates without Restarting Tomcat

2005-07-28 Thread Parsons Technical Services

What version are you running?

Doug


- Original Message - 
From: Martyn George [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Wednesday, July 27, 2005 10:59 PM
Subject: Viewing Web Resource Updates without Restarting Tomcat


Currently, I wish to make minor changes to web pages, and the like, 
associated with a production application without restarting Tomcat, and 
with minimal impact to users. These changes can be made, but are not 
immediately observable due to caching. Is there any command that can be 
issued to Tomcat so that changes can be immediately observed (e.g. a cache 
flush)?


Thankyou

_
Sell your car for $9 on carpoint.com.au 
http://www.carpoint.com.au/sellyourcar



-
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: help in setting up

2005-06-28 Thread Parsons Technical Services

It depends:

5.5.x only needs JRE
5.0.x and earlier versions needs full JDK
As for version I recommend Java 1.5 and it is required for the 5.5.x version 
unless you use the compatibility patch for 1.4


Doug

- Original Message - 
From: ganesan malairaja [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Tuesday, June 28, 2005 11:42 PM
Subject: help in setting up




hi guys

i know that to settup tomcat , there no need for apache

i wanna know what java i should use

is it j2dk or j2ee

because i saw some example that uses both..

i am going to run JSP to retrieve info from database

i need guide on how to setup tomcat .. ie what java version i shoud use.

any links also would be helpfull .. consider a newbie case

thanks guys .. ur help is appreaciated.
htmlDIV
DIVFONT color=#cc face=Lucida Handwriting, 
CursiveEMSTRONGIMG height=16 
src=http://graphics.hotmail.com/emarrow_right.gif; 
width=16Ganesan_MalairajaIMG height=16 
src=http://graphics.hotmail.com/emarrow_left.gif; 
width=16/STRONG/EM/FONT/DIV/DIV/html




-
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: Virtual hosts with standalone tomcat 5.5.9

2005-06-25 Thread Parsons Technical Services
You can't do it that way. At least the testing. You either have to set up 
DNS to resolve both names back to the IP or put entries in your host file. 
When you do a request to the server the header holds the URL and when you 
use the localhost that is what is sent in the header. Tomcat then will use 
the first host since there is no match. And that is why www.mysite.com 
works. It is the first one listed.


Add the entries to your host file and try the actual URLs listed in the 
server.xml, then if all else is right, it will work.



Doug



- Original Message - 
From: [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Friday, June 24, 2005 6:16 PM
Subject: Virtual hosts with standalone tomcat 5.5.9



All I need is different FQDNs (Fully qualified domain names)

Say:

www.mysite.com,

mail.external.mysite.com

I tried simply going like this

Host name=www.mysite.com
Context path= docBase=/var/www/server1 reloadable=true debug=0 /
/Host

Host name=mail.external.mysite.com
Context path= docBase=/var/www/server2 reloadable=true debug=0 /
/Host

and www.mysite.com works fine but mail.external.mysite.com doesn't.

In my trials, I am actually using http://localhost:8080/ and
http://host2.localhost:8080/ and I am just copying all the files from the
webapps folder.

I don't think that this should be causing any problems, though.

I have searched for it and you get a lot on links refering to previous
versions, etc.

Albretch


-
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: Where is Admintool?

2005-06-18 Thread Parsons Technical Services

http://apache.intissite.com/jakarta/tomcat-5/v5.5.9/bin/jakarta-tomcat-5.5.9-admin.tar.gz

Look on this page under 5.5.9 the ninth bullet down has 5.5.9 Admin tar.gz
The 10th one is the zip version.

http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi

Doug
- Original Message - 
From: Hugh Barrett [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Saturday, June 18, 2005 8:31 PM
Subject: Where is Admintool?


Hi,

Can someone help me.  I am searching for the admintool and cannot find
a download for it.  Please help.

HEB

-
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: Vexing problem with Tomcat 5.0.28/Pointbase/JNDI/ConnectionPooling

2005-06-11 Thread Parsons Technical Services

Try this:
parameter
   namedriverClassName/name
   valuecom.pointbase.jdbc.jdbcUniversalDriver/value
 /parameter

in place of:

parameter
   namedriverClassName/name
   valuecom.pointbase.jdbc.jdbcDataSource/value
 /parameter

Doug

- Original Message - 
From: Suraj Sashidharan [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Saturday, June 11, 2005 5:38 PM
Subject: Vexing problem with Tomcat 5.0.28/Pointbase/JNDI/ConnectionPooling



Hi all,

  Tomcat 5.0.28 with Pointbase - Trying to obtain a database connection 
from the DataSource.


  I saw a zillion places in the web where they've discussed a problem 
quite similar to the exception shown below BUT, none exactly like what I'm 
experiencing. And by the way, I couldn't even find one case where they 
were trying to connect with Pointbase. I followed documentation from all 
over the web, but I don't see anything that I could be missing. To 
explain, many have complained about null values for class and URL in the 
exception message that you see below, but I don't have that problem. What 
could be wrong?


  I have spent 5 hours trying to fix this.

  (It is not even a case of the JDBC driver not being located as I get a 
different error message when I remove the JDBC driver .jar files 
(pbclient.jar). Pointbase is up and running on port 9092. Funny thing is 
the same error message comes up whether Pointbase is running or not.)


  Please HELP !!

Exception :

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of 
class 'com.pointbase.jdbc.jdbcDataSource' for connect URL 
'jdbc:pointbase:server://localhost:9092/dbCompany'
   at 
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
   at 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)

   at dataaccess.UserDatabaseAccessBean.findByUserId(Unknown Source)
   at security.databaseclient.SecurityBean.login(Unknown Source)
   at security.SecurityControllerServlet.doPost(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
   at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474)
   at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409)
   at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)

   at framework.MainControllerServlet.processRequest(Unknown Source)
   at framework.MainControllerServlet.doPost(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
   at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
   at 

Re: Turning off port 8080 but still need to access to admin pages

2005-06-09 Thread Parsons Technical Services
This will do what you need. Set it to only accept the IP of the machine or 
machines you wish to connect.


http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html#Remote%20Address%20Filter

Another way that might work is to set the address element in the HTTP 
connector. You could try setting it to 127.0.0.1  I do not know if this will 
work as I have never tried it. But in theory it sounded good.

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


Doug


- Original Message - 
From: Scott Heitkamp [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Thursday, June 09, 2005 4:31 PM
Subject: Turning off port 8080 but still need to access to admin pages


I need to turn off port 8080, so that you can only access Tomcat by going 
through port 8009 using Apache.  Once I turn off port 8080, I no longer 
have a way of getting to the admin pages for Tomcat.  Is there a way around 
this?



-
Discover Yahoo!
Find restaurants, movies, travel  more fun for the weekend. Check it out! 




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



Re: Issue with a class not being resolved with a strange error

2005-06-04 Thread Parsons Technical Services

Unless you made a typo in your email, you have a typo in index.jsp.
The error says RidDB. The a is missing.
Search the file for RidDB.

Doug

- Original Message - 
From: Thomas Polliard [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Saturday, June 04, 2005 11:07 PM
Subject: Issue with a class not being resolved with a strange error



Has anyone seen this before and if so what does it mean?

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

An error occurred at line: 5 in the jsp file: /index.jsp
Generated servlet error:
RidDB cannot be resolved or is not a type

The code that makes the call is:
%@ page import=com.polliard.db.RaidDB%

from the webapps directory the following is the path:

Raid
Raid/raid.css
Raid/header.jsp
Raid/META-INF
Raid/META-INF/MANIFEST.MF
Raid/login.jsp
Raid/index.jsp.old
Raid/menu.jsp
Raid/WEB-INF
Raid/WEB-INF/lib
Raid/WEB-INF/lib/postgresql-jdbc.jar
Raid/WEB-INF/classes
Raid/WEB-INF/classes/com
Raid/WEB-INF/classes/com/polliard
Raid/WEB-INF/classes/com/polliard/db
Raid/WEB-INF/classes/com/polliard/db/RaidDB.class
Raid/index.jsp
Raid/images
Raid/images/space.gif

If there is any advise please let me know.

Thanks

Thomas



-
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 5.5.9 does not read context.xml

2005-06-02 Thread Parsons Technical Services
The value of this field(Path) must not be set except when statically 
defining a Context in server.xml,  


This is found on this page under the Path attribute,

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

Doug

- Original Message - 
From: teknokrat [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Thursday, June 02, 2005 6:45 AM
Subject: tomcat 5.5.9 does not read context.xml


What is the story with context descriptors in 5.5.9. Nothing seems to work 
right. I have placed the the following context.xml file in the META-INF 
directory inside my war


Context path=/mobile reloadable=true/

When my war is expanded the context does not use the name in the path as
specified by context.xml but the name of the war file!!

How is it possible to use a context path different to the name of the war 
file?


thanks


-
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: Slow shutdown in tomcat

2005-06-01 Thread Parsons Technical Services
Look at your server.xml   You will find the references to the used ports 
there.
I think the one you are looking for is the shutdown port at either 8005 or 
8009.


Have your firewall allow connections to this port from the IP defined as 
localhost as well as the IP of the machine if not the same. I believe it 
uses localhost or 127.0.0.1 to make this connection. Some firewalls break 
all connections to ports and some only challenge the connections from other 
machines. Yours seems to control all connections.


There is also the possibility that I am way off base.

Doug


- Original Message - 
From: Shadow [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Tuesday, May 31, 2005 1:02 PM
Subject: Slow shutdown in tomcat



Hi,

I've been experiencing very long shutdown times with tomcat (about 3
minutes). I was googling for this and found mention that a firewall can
affect tomcat. I disabled shorewall on my serve and indeed tomcat shutdown
within 30 seconds.

However, I have not found any information on how to configure my firewall
to allow tomcat to operate correctly. What ports do tomcat use on the host
system? Any ideas as to how a firewall should be configured for tomcat to
function properly? Thanks in advance.

~Shadow


-
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 Tomcat 5.5.9 + Apache 2.0.49

2005-06-01 Thread Parsons Technical Services
As I do not use Mod_jk or jk2 and so I will not be able to help in that 
sense, but often I see the time spent on this when Apache is not needed. So 
I ask, why do you want Apache?


If you have valid reasons, no problem, just trying to save you some time.

A couple of points to consider:

Mod_jk2 is abandoned and no longer being developed.

Mod_jk is still alive and active.

Yes they are different and so is the setup.

An alternative is mod_proxy.

Just a few thoughts.

Doug

- Original Message - 
From: Fabricio Veiga [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Wednesday, June 01, 2005 3:37 PM
Subject: Problems with Tomcat 5.5.9 + Apache 2.0.49



Hi.

I'm with problems to integrate Tomcat 5.5.9 and Apache 2.0.49.
I'm using module Mod_jk2, but doesn't functioned.

Could somebody help me?

-
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 service terminated unexpectedly

2005-06-01 Thread Parsons Technical Services

What is in the logs?

Did it start this at some point or has it been happening all along?

Consider updating you JDK. You may even try 1.5 as it is faster.

Check you debug settings and turn them up.

Look in the logs for the last connection/request to see what was being asked 
for. If needed set up the logger for this.


Are any other services on the machine having issues?

What is the shortest and longest time between crashes?

What is your user load?

Sorry I have no clear answers, only question. There can be so many things 
affecting you it can be somewhat difficult to pin it down.


Doug


- Original Message - 
From: ivy chen [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, June 01, 2005 9:36 PM
Subject: Tomcat service terminated unexpectedly


Hi,All
I am running Tomcat 4.1.12 , in a W2K Box (tomcat 4.1.12+ java 1.4.1_02+ W2K 
SP4, ).


Tomcat is running as a service and time to time (random) it crashes with the 
following message:


The Apache Tomcat 4.1 service terminated unexpectedly. It has done this 1 
time(s). The following corrective action will be taken in 6

milliseconds: Restart the service.

The source of this message is Service Control Manager and the Event id is 
7031.


Are there anyone encounter this case, any have any advice?

B.R.
Ivy






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



Re: Tomcat in chroot

2005-06-01 Thread Parsons Technical Services
Apparently you are seeing what users of some flavors of *nix see. That is 
you are seeing each thread as a separate process rather than one. When 
running a chroot environment things act a little differently. I would not be 
too concerned as long as top reports back proper memory usage. Note that you 
may have many listing each showing all the same memory amount, this is 
normal and that is the total all those threads use together and not each.


Doug

- Original Message - 
From: Ben [EMAIL PROTECTED]

To: Tomcat tomcat-user@jakarta.apache.org
Sent: Tuesday, May 31, 2005 10:03 PM
Subject: Tomcat in chroot


Hi

I am trying to setup Tomcat in chroot environment and have
successfully started it up. However, when I run Tomcat in chroot, I
see 10+ Tomcat processes as oppose to a single Tomcat process in a
non-chroot environment. Why is this? Is it normal?

Thanks,
Ben

-
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: Suddenly, can't access a tomcat

2005-06-01 Thread Parsons Technical Services

Are you running out of db connections?

Add elements to your resource for the database connection to recover 
abandoned connections and to log them. Then see if any show in the logs. 
Poor way of profiling. If they do and your app continues to run you were 
running out of db connections. Note: This is only  patch and you will need 
to fix your code.


Doug


- Original Message - 
From: Motokazu Ishikawa [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Wednesday, June 01, 2005 11:01 PM
Subject: Suddenly, can't access a tomcat



Hello, all.

Please help me resolve the following problem.

I developed web application in which an user can run external python 
scripts and

outputs of these scripts are stored in MySQL. Stored data can be reviewed.

My web application runs normally for a day or two. But suddenly, tomcat 
becomes

inaccessible. this happens many times, but I don't know why.

When inaccessible, I confirmed the following,
 JVM are alive: confirmed by ps command.
 port(8080) is open:  confirmed by nmap command.

And when inaccessible, I throw some HTTP requests through telnet command 
like this.

$ telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.1   (- I typed this)

But any response are returned. (off course, response are returned when 
tomcat

runs normally)

** related modules etc.
Tomcat:   4.1.31
OS:   Linux 2.4.21-4 (Red Hat Enterprise Linux 3.2.4-20)
JAVA: j2sdk1.4.2
Velocity: velocity-dep-1.4.jar, velocity-tools-1.1.jar
mysql:mysql-connector-java-3.0.16-ga-bin.jar
DAO:  s2dao (s2-dao-1.0.0.jar, s2-extension-2.0.12.jar, 
s2-framework-2.0.12.jar)


** the following thread dump is taken when the tomcat are inaccessible.

Full thread dump Java HotSpot(TM) Server VM (1.4.2_06-b03 mixed mode):

http-8080-Processor30 daemon prio=1 tid=0x08ac5e38 nid=0x5878 in 
Object.wait() [904d9000..904d9854]

at java.lang.Object.wait(Native Method)
- waiting on 0x4fc1cd78 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)

at java.lang.Object.wait(Object.java:429)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:655)
- locked 0x4fc1cd78 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)

at java.lang.Thread.run(Thread.java:534)

http-8080-Processor29 daemon prio=1 tid=0x098e6438 nid=0x5878 in 
Object.wait() [94131000..94131854]

at java.lang.Object.wait(Native Method)
- waiting on 0x4fc1cdf8 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)

at java.lang.Object.wait(Object.java:429)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:655)
- locked 0x4fc1cdf8 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)

at java.lang.Thread.run(Thread.java:534)

http-8080-Processor28 daemon prio=1 tid=0x098e6260 nid=0x5878 runnable 
[903d7000..903d7854]

at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
- locked 0x4cca0070 (a java.net.PlainSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at 
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:368)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:549)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

at java.lang.Thread.run(Thread.java:534)

http-8080-Processor27 daemon prio=1 tid=0x09eeb800 nid=0x5878 in 
Object.wait() [90458000..90458854]

at java.lang.Object.wait(Native Method)
- waiting on 0x4fc1cef8 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)

at java.lang.Object.wait(Object.java:429)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:655)
- locked 0x4fc1cef8 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)

at java.lang.Thread.run(Thread.java:534)

http-8080-Processor26 daemon prio=1 tid=0x0b2f6558 nid=0x5878 in 
Object.wait() [93daa000..93daa854]

at java.lang.Object.wait(Native Method)
- waiting on 0x4fc1cf78 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)

at java.lang.Object.wait(Object.java:429)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:655)
- locked 0x4fc1cf78 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)

at java.lang.Thread.run(Thread.java:534)

http-8080-Processor21 daemon prio=1 tid=0x91bf63a8 nid=0x5878 in 
Object.wait() [940b..940b0854]

at java.lang.Object.wait(Native Method)
- waiting on 0x4f82f108 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)

at java.lang.Object.wait(Object.java:429)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:655)
- locked 0x4f82f108 (a 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)

at 

Re: Auto-Deployment Problems (Real Version)

2005-05-28 Thread Parsons Technical Services

Just a few suggestions.

Check the logs.
Turn up debugging if nothing shows.

It sounds like something has a lock on a file and Tomcat can't remove it.

If this is the case your next move is to look at your app. Are you creating 
any threads or objects that are not getting cleaned up by the destroy method 
of the servlets?


You may have to use a profiler or some tool to see what is hanging.

Also look for windows file lock in the archives as there may be some help 
there.


Just some ideas to try.

Doug


- Original Message - 
From: Kory L [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Friday, May 27, 2005 1:38 PM
Subject: Auto-Deployment Problems (Real Version)





 Hello,

 I've been trying to deploy my application into Tomcat and can get it to 
work
just fine.  However, as I make additional changes to the classes within my 
WAR,

re-deploying them causes Tomcat to delete virtually every file within the
webapps directory.  Here's the flow of what's happening:

 1) Deploy myapp.war into Tomcat's webapp directory.
 2) Start up Tomcat.  Tomcat sees the myapp.war file and explodes the WAR 
into

the myapp directory under webapps.
 3) I make changes to the code.
 4) After creating a new myapp.war, I use my deployment process to deploy 
the
application using the Tomcat Ant Tasks or simply by copying the file into 
the

directory.
  ANT TASK:
   target name=deploy-tomcat
   echo message=Deploying MyApp to ${tomcat.url}/
   deploy url=${tomcat.url} username=${tomcat.user}
   password=${tomcat.password}
   path=/${app.name} 
war=${build.dir}/${app.name}.war

   update=true/
   /target
 5) Tomcat sees this new myapp.war and promptly deletes everything in the
webapps/myapp directory, except for /WEB-INF/lib/axis.jar.  Of course, 
this

causes my application to die horribly, and only a removal of the
webapps/myapp directory and another (re-)deployment (along with a 
restart of

apache) will fix the situation.

 Does anyone know why this is happening?  If it makes a difference, this 
is

running on a windows box.

 Thanks,

 Kory



-
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: Force Non-SSL

2005-05-25 Thread Parsons Technical Services
Since there is no way to maintain the session without hacking Tomcat, as Tim 
said no.


But what you could try is a single use password.
User hits the SSL encrypted login page.
User authenticates with normal username and password.
Random string password is created and stored in database and put in query 
string.
User then is redirected to the unencrypted jsp login page that pulls the 
password from the request query string and inserts it into the form.

The page does a submit on load. (JavaScript onload in the body tag)
Once the user is logged in the password would need deleted from the database 
and replaced with normal password.


So the user logs in with the normal password.
It is the swapped for the single use password.
Once logged in with the single use password it is replaced with the normal 
password.


Now the question is how bad did you want this?

And no I have not done this, so it is all theory at this point.

Doug


- Original Message - 
From: August Detlefsen [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, May 25, 2005 8:43 PM
Subject: Re: Force Non-SSL



Is there no way to do it? SSL creates a lot of overhead for a site that
is serving up 100MB image files.




--- Tim Funk [EMAIL PROTECTED] wrote:

no

-Tim

August Detlefsen wrote:
 In my webapp I force clients to use SSL encryption for logins with
a
 security constraint and transport-guarantee elements like this:

 security-constraint
   web-resource-collection
 web-resource-nameLogin/web-resource-name
 url-pattern/login/*/url-pattern
   /web-resource-collection

   user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
 /security-constraint

 However, once a user hits the login page, every subsequent page
also
 uses https. Is there a way to force them back to regular http once
they
 leave the login section?


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

2005-05-24 Thread Parsons Technical Services
I am in VA and the local Community College does a seminar on it. I am not 
aware of any formal training. I would suggest Google.


Doug

- Original Message - 
From: Tim Sodergren [EMAIL PROTECTED]

To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Monday, May 23, 2005 2:47 PM
Subject: Tomcat Training



We would like to send one of our employees to some type of training for
Tomcat administration. Does anyone have any suggestions on how to find
reliable courses? We are located in Salt Lake City and prefer something
local.


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 5/22/2005






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



Re: Can mulitple domains share one web app?

2005-05-24 Thread Parsons Technical Services

Sorry for the delay. Been off-line. It would be in Tomcat.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Host%20Name%20Aliases

Doug

- Original Message - 
From: Randy Paries [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org; 
[EMAIL PROTECTED]

Sent: Monday, May 23, 2005 3:42 PM
Subject: RE: Can mulitple domains share one web app?



So would this be an alias within apache or tomcat?

Thanks

Randy





From: Parsons Technical Services [EMAIL PROTECTED]
Subject: Re: Can mulitple domains share one web app?
Date: Fri, 20 May 2005 21:14:26 GMT
Prev Next Prev by Thread Next by Thread




Alias might do what you want with one reservation, you cannot have
www.mydomain.com/bob
www.yourdomain.com/bob
as different folders. These will be the same folder. So each /folder will
have to be unique even though the domain names are different.

Doug


- Original Message -
From: Randy Paries [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Friday, May 20, 2005 4:55 PM
Subject: Can mulitple domains share one web app?



Hello,

I will try to ask this question so it makes sense.

I have a webapp.

Currently I have 2000 people that share the same web app

For example

www.mydomain.com/sue
www.mydomain.com/fred

Etc  All these guys have their own directories, but they are a single
web app.

Now I have many (100s ) that want their own domains. I do not want to
create
100 webapps

Currently have a work around where
www.sue.com gets redirected via apache to www.mydomain.com/sue
So this way they start at their domain, but the immediately they see the
www.mydomain.com/sue

So is there a way to have one webapp share multiple domains?

Thanks
Randy



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





Message Index: [Date] [Author] [Thread]
Prev Next Prev by Thread Next by Thread



-
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: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 batch files?

2005-05-23 Thread Parsons Technical Services

Jack,

To use the batch files you need to set it as an Environment Variable. The 
catalina.bat file will the pick it up and add it to command line.


If you are wanting to do some quick testing, I think you MAY be able to 
include it on the command line with startup.bat. I don't run on Windows so I 
can't test it.


If you look in the catalina.bat you will see the comments at the top talking 
about the variables. If you look in startup.bat you will see where it picks 
up the command line variables.


The .sh files are the nix OS equivalent to the Windows .bat files.

Doug

- Original Message - 
From: Edao, Aliye [EMAIL PROTECTED]

To: Dakota Jack [EMAIL PROTECTED]
Cc: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, May 23, 2005 2:57 AM
Subject: AW: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 
batch files?



Hi Jack,

The answer is CATALINA_HOME/bin/catalina.sh

CATALINA_OPTS=-Xmx512m -Xss1024k  -XX:+PrintGCDetails -server ...



Mit freundlichem Gruß / kind regards

SBS ORS GD AHS OA42
Otto-Hahn-Ring 6
D - 81739 München
Tel. (089) 636-41024
Fax (089) 636-49347

Dr. Aliye Edao
mailto:[EMAIL PROTECTED]



-Ursprüngliche Nachricht-
Von: Dakota Jack [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 23. Mai 2005 08:48
An: Tomcat Users List
Betreff: Where do -Xms32m, -Xmx256m, and -Xrs go in the Tomcat 5.0.28 batch 
files?



I am running out of memory when running some imaging ops with Tomcat
5.0.28 and need to set the java command with the attributes -Xms32m,
-Xmx256m, and -Xrs.  However, danged if I can figure out how to do
that.  I am using the simple startup.bat and shutdown.bat.  Where is
the place I plugin with those values?  Thanks?
--
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]


-
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: 5.5.9 - ant deploy

2005-05-23 Thread Parsons Technical Services
Not having done this myself, try with no path attribute and a war file named 
a#b.war   I think that was the recommendation from prior posts that worked.


Doug


- Original Message - 
From: Pfingstl Gernot [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Monday, May 23, 2005 5:22 AM
Subject: 5.5.9 - ant deploy


How can I deploy a webapp with the tomcat deploy-ant-task to a context path 
e.g. /a/b?
I do not have a problem to deploy a app to e.g. /a but a context path with 
subpaths does make problems.


I tried various versions ('path=/a/b' or 'path=/a#b') in combination 
with varoius war names.

I also have a /MEATA-INF/context.xml (without a path attribute).

Gernot


-
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: Reload on Tomcat 5.5

2005-05-22 Thread Parsons Technical Services
I don't run 5.5, but it sounds like you may be running into an issue that 
has plagued several others on the list. 5.5 has a hard time letting go of 
the cache/workfiles.


I notice that you said the program updates fine, what are you doing that a 
reload should update?


An undeploy will normally delete the cache. I am not sure on a reload. Also 
what version of 5.5 as there may have been a fix for this in later versions.


Doug Parsons

- Original Message - 
From: Robert Parsons [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Sunday, May 22, 2005 5:49 AM
Subject: Reload on Tomcat 5.5



Hi,

I first stared using tomcat with version 5.0. I recently have tried 
installing version 5.5 and have noticed only 1 major difference... reload 
doesnt seem to work! I dont get any errors, infact i get the correct 
entries in the log etc but nothing actually reloads. I have tried to 
reload via the manager application and reload via the ant task. Neither 
work. If i undeploy then re-deploy then the application updates fine.


I just then tried EXACTLY the same application and environment (in fact i 
just deleted the 5.5 tomcat folder and stuck a 5.0 one there instead). 
Reload works perfectly.


I have searched high and low on the internet and cannot find anything 
about any difference or problems with reload. An I doing somthing wrong 
here or does reload just not work?


Thanks,
Robert.




-
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: Reload on Tomcat 5.5

2005-05-22 Thread Parsons Technical Services

Robert,

Now that Remy has tested it in his perfect world, this gives some direction 
to work in. It would appear that with a basic setup, which we can only 
assume since Remy assured you that it works, that there must be a OS issue. 
I wonder what Remy runs?


If you decide to dig deeper, I would layout the code for the two versions 
and see where they differ. Then with this information you could submit a bug 
report with all the details. Hopefully it could be changed unless there was 
a compelling reason.


I am so glad that Remy pointed out that I was wrong, but had no explanation 
for why you were having problems. Considering that I was only suggesting a 
direction to look in. But then again if you had been running Windows then I 
may have been right.


Don't let the snotty attitude get to you. You encounter those type on the 
list from time to time.


Doug

- Original Message - 
From: Remy Maucherat [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Sunday, May 22, 2005 11:07 AM
Subject: Re: Reload on Tomcat 5.5


On 5/22/05, Robert Parsons [EMAIL PROTECTED] wrote:

Hi,

Thanks for the reply.

Well to be more specific then I will give you an example of what I have
tried as a test. I write a basic servlet that simply prints a line of
text to the screen. If i compile it and deploy it, all is good. If I
then make a modification to that that string in the source file,
recompile then RELOAD (using ant), the servlet still outputs the
ORIGINAL string (before the modification). The same thing happens If i
recompile then press 'reload' in the tomcat manager application instead
of using ant.


I tested this, and it (of course) works fine.


If i perform the steps above on the latest tomcat 5.0 (rather than 5.5),
the NEW string would be printed out after the reload.  Any ideas? Coz
i'm stumped.


Well, don't plan to upgrade ever, because the bug will obviously
never be fixed.

--
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

-
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: Reload on Tomcat 5.5

2005-05-22 Thread Parsons Technical Services

Robert,

I would like to apologize for allowing myself to get into a flame war on 
your thread. My original intent was to point out an area that I had noticed 
had gotten a lot of postings and sounded similar to yours. Most of the posts 
made reference to the cache or workfiles and thus that is also what I was 
referring to as a means for searching.


Unless I am sure of something I always try to let the reader know that. That 
is why I said things like sounds like and you may be.


I did mistype a word, I meant to say delete the folder instead of cache.

Again, I apologize for letting myself get sidetracked.

Now back on topic.

If you are working on two separate machines for deployment and programming, 
you may want to ensure that both machine have the same time. It should not 
make a difference between 5.5 and 5.0 but may be worth checking.


Doug

- Original Message - 
From: Remy Maucherat [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Sunday, May 22, 2005 12:03 PM
Subject: Re: Reload on Tomcat 5.5


On 5/22/05, Parsons Technical Services [EMAIL PROTECTED] 
wrote:

Robert,

Now that Remy has tested it in his perfect world, this gives some 
direction

to work in. It would appear that with a basic setup, which we can only
assume since Remy assured you that it works, that there must be a OS 
issue.

I wonder what Remy runs?

If you decide to dig deeper, I would layout the code for the two versions
and see where they differ. Then with this information you could submit a 
bug
report with all the details. Hopefully it could be changed unless there 
was

a compelling reason.

I am so glad that Remy pointed out that I was wrong, but had no 
explanation

for why you were having problems. Considering that I was only suggesting a
direction to look in. But then again if you had been running Windows then 
I

may have been right.

Don't let the snotty attitude get to you. You encounter those type on the
list from time to time.


Please try to make sense next time. Writing inaccurate statements
while appearing to know things will confuse people, and will be much
worse than posting nothing. If you don't really know, then don't post
funky theories as facts.

Your main assertion is baseless 5.5 has a hard time letting go of the
cache/workfiles. Do you actually know what you are talking about ? I
suppose not.

--
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

-
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: Environment in Tomcat 5.0.28 not working with multiple tomcat services in server.xml

2005-05-20 Thread Parsons Technical Services
You did specify a different IP for each connector? Else the 2nd one will 
fail because the port is in use. Unless the ports on all connectors are 
different.

Doug
- Original Message - 
From: Iannis Hanen [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Cc: [EMAIL PROTECTED]
Sent: Thursday, May 19, 2005 8:11 PM
Subject: Environment in Tomcat 5.0.28 not working with multiple tomcat 
services in server.xml

Hi,

I am back with some more questions. I have configured Tomcat to operate
with multiple services and engines (I have different services since I
need separate connector for different set of web applications). For some
web applications inside the host, I have specified some environment
entries. In the first service, everything works great. But in the second
service, I cannot access any of them. Is it a problem in Tomcat, or a
misconfiguration? Here is an outline of my server.xml file below.
Basically, AttrName2 in the foo2 context cannot be found. If I swap
the order of the services in server.xml, only the first service (on the
top) behaves properly.

Thanks,
Iannis


Server ...
 Listener .../
 Listener .../

Service name=Service1

   Connector ... /

   Engine name=Engine1 defaultHost=localhost ...

  Logger .../

 Host name=localhost ...

 DefaultContext
Environment name=DefaultAttrName type=java.lang.String
value=Some default value/
/DefaultContext

   Context path=/foo reloadable=false docBase=C:\foo.war
workDir=C:\ tomcat\work\foo
   Environment name=AttrName type=java.lang.String
value=myValueOK/
   /Context
 /Host
   /Engine
 /Service

 Service name=Service2
   Connector  .../

   Engine name=Engine2 defaultHost=localhost ...

  Logger .../

 Host name=localhost ...
   Context path=/foo2 reloadable=false docBase=C:\foo2.war
workDir=C:\ tomcat\work\foo2
   Environment name=AttrName2 type=java.lang.String
value=MyLostValue/
   /Context
 /Host
   /Engine
 /Service
/Server

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


Re: start tomcat-4.1.31 with jsvc?

2005-05-20 Thread Parsons Technical Services
http://jakarta.apache.org/commons/daemon/jsvc.html
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html
Don't use the args from the website. I never got them to work. Use the 
script files included for jsvc, tomcat.sh .  There is a note on the second 
link about changing the filename to Bootstrap, this may already be done and 
needs to be reversed in your case.

You may want to look in the archives and get an old copy of 5.0 and use the 
tomcat.sh from it to guide you.

I know there were some changes made but because I run 5.0, I haven't look 
them up yet.

Doug
- Original Message - 
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, May 19, 2005 5:42 PM
Subject: start tomcat-4.1.31 with jsvc?


Is it possible to start tomcat 4 with jsvc from tomcat-5.5.0?  If so, how 
are you doing it?

I tried it using the args given on the tomcat 5 doc page but it doesn't 
start, it just immediately
exits with no error.

Thanks
-
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: Cannot Login After Upgrade From 4.0.4 to 5.0.28

2005-05-20 Thread Parsons Technical Services
Look at the admin app. It uses a form login. Also compare the web.xml of the 
admin app. Hopefully you can spot any differences.

Doug
- Original Message - 
From: John Lindley [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, May 19, 2005 5:51 PM
Subject: Cannot Login After Upgrade From 4.0.4 to 5.0.28


Hi all, we recently upgraded from 4.0.4 to 5.0.28.  We had a login page 
under 4.0.4 that worked
fine.  Now under 5.0.28, after we enter the username and password, we get 
a Page cannot be found
and the address it's looking for is
http://ipaddress:8080/WebApp/jsp/security/login/j_security_check.  I have 
checked the
tomcat-users.xml file and it looks fine.  I believe that the web.xml file 
is fine.  As I said, all
was fine under 4.0.4 with the same web.xml.  Does anyone have any 
suggestions?  Thanks!

John

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


Re: DBCP Exception

2005-05-20 Thread Parsons Technical Services
Post the parts of your config files that pertain to the database and a code 
snippet where you are calling out the connection. Looks like a 
misconfiguration but only a guess until we see the configs.

Don't forget to change passwords and user names before posting.
Also what OS JVM and Tomcat version are you running?
Doug
- Original Message - 
From: Joy Kenneth Harry [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 20, 2005 8:40 AM
Subject: DBCP Exception


Hi,
Can you tell why I am getting this exception.
SEVERE: Null component
Catalina:type=DataSource,path=/,host=localhost,class=javax.sql.DataSourc
e, name=jdbc/oracle
Thanks
Joy Kenneth Harry
Infosys Tech Ltd


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


Re: Can mulitple domains share one web app?

2005-05-20 Thread Parsons Technical Services
Alias might do what you want with one reservation, you cannot have
www.mydomain.com/bob
www.yourdomain.com/bob
as different folders. These will be the same folder. So each /folder will 
have to be unique even though the domain names are different.

Doug
- Original Message - 
From: Randy Paries [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Friday, May 20, 2005 4:55 PM
Subject: Can mulitple domains share one web app?


Hello,
I will try to ask this question so it makes sense.
I have a webapp.
Currently I have 2000 people that share the same web app
For example
www.mydomain.com/sue
www.mydomain.com/fred
Etc  All these guys have their own directories, but they are a single
web app.
Now I have many (100s ) that want their own domains. I do not want to 
create
100 webapps

Currently have a work around where
www.sue.com gets redirected via apache to www.mydomain.com/sue
So this way they start at their domain, but the immediately they see the
www.mydomain.com/sue
So is there a way to have one webapp share multiple domains?
Thanks
Randy

-
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 vs Apache

2005-05-19 Thread Parsons Technical Services
Look here:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/default-servlet.html
If you override the mapping by putting your own reference to the default in 
your web.xml for the app, you should be able to map it the way you want and 
then have a mapping to your servlet with the / path.

Or have your Spring dispatcher catch everything and parse the path to 
redirect the static stuff.

Haven't tried this myself, just some thoughts.
Doug

- Original Message - 
From: Tim Diggins [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, May 19, 2005 7:23 AM
Subject: Re: Tomcat vs Apache


(Er, and sorry I just realised I posted __some__ of this as part of a 
question on the list last week, but the question I have is now posed more 
concretely and wasn't answered then)!

Tim Diggins wrote:
This has been a great and informative thread... I'm wondering now, how to 
accomplish what I want to do in Tomcat alone, rather than looking for a 
Tomcat+Apache solution (sounds simpler).

The issue is that I want ALL directory-like urls resolved by a particular 
servlet (which is a Spring dispatcher servlet, but never mind that), but 
I would like very few kinds of static files (which I could name explictly 
*.gif, *.png, *.css or put under a static place) served statically (ie by 
the default servlet.

The problem is that the url-pattern for a directory-like urls covers all 
urls.

Is there a way to do the reverse of normal, state that you want  a 
particular url-pattern (e.g. /static/*) to go to the default servlet 
, and everything else (e.g. /*) to go to a particular servlet. If so, 
how do I indicate the default servlet in my web.xml?

(And I've already had recommendations from people to change the URLs for 
the dynamic stuff to something else, but that's not what the 
client/customer/user/design wants -- the url is very much part of the 
user interface in this application).

thanks
Tim



-
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: No suuuccchh llllliiiisssssttttttttttttt

2005-05-17 Thread Parsons Technical Services
And even higher on the list of to-do's is to prevent it in the first place.
Would it be possible to force user intervention on the subscription 
confirmation? Rather than have a reply confirm it have a subject in the body 
that must be copied to the subject line to complete the confirm process. 
That way an auto response by a machine will not complete the confirm.

Even make the reply address only in the body instead of as the reply or from 
address.

$.015
Doug
- Original Message - 
From: Rick Beton [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, May 17, 2005 4:17 AM
Subject: Re: No such list! s


Chris wrote:
Is anyone else getting these when they try to send mail to the list?

Yes.  My guess is that the Apache list administrator needs to remove 
[EMAIL PROTECTED] from the tomcat-user list.  I may be wrong; 
either way, I'd like someone to work out how to stop these annonyances 
please.

Rick


--
Visit our website at www.roke.co.uk
Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.
The information contained in this e-mail and any attachments is 
proprietary to
Roke Manor Research Ltd and must not be passed to any third party without
permission. This communication is for information only and shall not 
create or
change any contractual relationship.

-
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: Sharing Data Sources

2005-05-13 Thread Parsons Technical Services
Just to clarify something: Where are you specifying the global data sources?
In server.xml or ROOT.xml?
It should be in root. Just checking.
Second, what do you need to change? There is very little in the link to 
begin with. Since the change would affect all apps then I couldn't see 
needing to change anything of the link. Just change the global but leave the 
name the same.

Doug
- Original Message - 
From: Cook, Jared [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Friday, May 13, 2005 10:08 AM
Subject: RE: Sharing Data Sources


That's what I am doing, but I want to avoid having to do that.  I would
rather have it all in one file so when I need to make changes I only have to
do it once.

-Original Message-
From: Pfingstl Gernot [mailto:[EMAIL PROTECTED]
Sent: Friday, May 13, 2005 1:32 AM
To: Tomcat Users List
Subject: AW: Sharing Data Sources
Did you try to define your datasource in GlobalNamingResources? And then
you only have to define a resource-link in your contexts.
-Ursprüngliche Nachricht-
Von: Cook, Jared [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 12. Mai 2005 21:23
An: 'tomcat-user@jakarta.apache.org'
Betreff: Sharing Data Sources

I have a lot of virtual hosts that need access to a lot of the same
databases.  Security isn't an issue because they are all trusted sites.  I
would like to be able to share the ResourceLinks across all the virtual
hosts without having to have them all defined in every ROOT.xml.  Is there a
way to include a file in all my conf files?  Is there a way to globally
share out these datasources?
Thanks.
-
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: question about load-on-startup in web.xml

2005-05-10 Thread Parsons Technical Services
I may be off base on this one but I think that once Tomcat fires off the 
init method it doesn't care or monitor the progress of the servlet. Just 
think, some servlets may take several minutes to finish. If other apps had 
to wait then it could take a long time to get the server started.

Now as for a solution I am really speculating here (hopefully someone can 
educate both of us). I would look at a wait statement in the init method to 
pause the second app's servlet until the first one is done. Simply time the 
first app's servlet and set it for a little more.

Hopefully someone will set me straight if I am off base here.
Doug
- Original Message - 
From: Annie Wang [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, May 10, 2005 6:59 PM
Subject: question about load-on-startup in web.xml

hi,
regarding the load-on-startup tag in web.xml:
say i have 2 web apps (webapp1 and webapp2).  if i configure webapp1's
servlet to have load-on-startup1/load-on-startup and webapp2's
servlet to have load-on-startup100/load-on-startup, does this mean
that tomcat will init webapp1's servlet first and once that's done,
it'll init webapp2's servlet?
basically, i want both web app's servlets to auto initialize on tomcat
startup, but i want webapp2's servlet to initialze only after
webapp1's servlet has finished initialization.  when i use the above
load-on-startup settings, webapp2's servlet seems to initialize before
webapp1's servlet has finished initialization.
thanks.
-annie
-
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 5 slow, it's in production, please help!

2005-05-07 Thread Parsons Technical Services
127421 over what period of time?
Without a profile it is impossible to say if Tomcat can handle the load. But 
if the memory consumption and the CPU usage is low (as noted) it is fairly 
safe to say that Tomcat itself is not the bottle neck.

Quick question, why are you using Apache?
Also what is the time out for the connection in Apache?
Do you get this slow reaction if you are hitting Tomcat directly?
I may be repeating something that was covered because I have not been 
reading this thread in detail. So sorry if already asked and answered.

Doug

- Original Message - 
From: Jeffrey [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Saturday, May 07, 2005 10:44 AM
Subject: Re: Tomcat 5 slow, it's in production, please help!


This website has many JSP pages of which each has many
JSPF included. I wonder whether or not the system is
not be able to handle this kind of  setting. But
strange thing is that when we experienced the
slowness, I looked at the usage of CPU and find that
almost 90% of the CPU is idle.
Do anyone know what kind of load a tomcat can handle.
I am thinking that maybe a load balancer will help.
But I am still puzzled by the fact of low CPU usage at
the time of slowness.
From the server status view in tomcat manager, I can
see 's Request count: 127421'
--- Jeffrey [EMAIL PROTECTED] wrote:
I have a apache/tomcat environment that has some
problems recently. The environment has the
following:
1.  Apache 1.3
2.  Tomcat 5.0.28 (Max memory 384mb)
3.  JDK 1.4.2_06
My apache has MaxClient set to 256 (apache default).
The maxThread for tomcat is 500. The site is a
database driven site.
It seems working fine when load is low. But when
there
are more than 150 threads (from the sever status
view
of the tomcat manager), it's response time is very
slow (5 - 10 minutes). I have tested the database
connections, they seem responding fairly well.
Interesting thing is that most of time the slow
response time only happens when a user login. Once
the
user login and get the main menu page, the user will
get a good response time. Is it related to KeepAlive
connections.
Another strange thing is that many threads always
show
up in the server status view on the tomcat html
manager page even though I am sure the request has
gone (I tested this by making a request, then close
the browser).
My CPU usage is low when the slowdown is experienced
(Using the top command on this solaris box which has
old solaris operating system 2.6? with 1GB memory.
I set the session timeout time to 5 minutes, but in
the session view of tomcat manager, I see message
30
- 40 minutes:136 sessions. How a session that is
more than 30 minutes is still there. Maybe I don't
understand this message correctly.
Please advice. This is a production machine. Helps
are
greatly appreciated.
Thanks.
Jeffrey.

Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and
more. Check it out!
http://discover.yahoo.com/mobile.html

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

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


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


Re: Tomcat 5 slow, it's in production, please help!

2005-05-07 Thread Parsons Technical Services
I think that would be the direction I would take.
If you need more proof:
Sniff the connection to the server to confirm the lack of available 
connections. So far it is pointing in that direction.

Another test you might do is create a connection from a known IP, close the 
browser and monitor the connection status. If it is hanging open then start 
digging.

I think you may also be experiencing  an issue of clickatosis. It occurs 
when the client doesn't think the page is responding quick enough and since 
more is better after 10 or 20 clicks they decide to wait or give up. Mean 
while for each click they cause a request which can bog things down. 
Wrapping this with the held connections you can get a scenario as such:

Client hits site.
No or slow response.
Clicks again. Or several times.
Often closes browser and tries over.
This creates a new connection request.
Snowballs from there.
Think about this, do you really get over a 100k users in six hours? Or even 
100k page requests? That's a lot of traffic. If the client machines abandons 
the connection before the server, then establishes a new one, it compound 
the problem.

Find a way to have the OS let Apache handle the connection timeout and get 
it down to a reasonable time.

Since you are inheriting this, there may be a reason that the connection 
timeout is set so high. If the original creator of this wanted the user to 
be able to sit on a page for a long time without losing the session and 
connection thus causing the user to have to re-authenticate. But then there 
is a trade off. which you are experiencing right now.

Get the time down until the complaint about having to re-login get too high 
or until the connection speed delay is acceptable.

Just my $0.015
Doug
- Original Message - 
From: Jeffrey [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Saturday, May 07, 2005 1:05 PM
Subject: Re: Tomcat 5 slow, it's in production, please help!


It seems that, at least in most cases, the main menu
page after a login is loaded slow. After that other
pages are loaded pretty quick. Does that mean once a
connection is established, browser and server
communication is ok. If that is the case, maybe I
should look more at the connection timeout at the OS
level (solaris 5.6) since I see a lot of TIME_WAIT at
the machine using the 'netstat -n' command.
--- Jeffrey [EMAIL PROTECTED] wrote:
Please see the answer embedded below.
--- Parsons Technical Services
[EMAIL PROTECTED] wrote:
 127421 over what period of time?
It's about 6 hours. But most of them are at the
first
hour or so.

 Without a profile it is impossible to say if
Tomcat
 can handle the load. But
 if the memory consumption and the CPU usage is low
 (as noted) it is fairly
 safe to say that Tomcat itself is not the bottle
 neck.

 Quick question, why are you using Apache?
I am using Apache SSL for SSL connections. It is the
original setup by someone else.

 Also what is the time out for the connection in
 Apache?
Apache's Timeout value is 300. MaxKeepAliveRequests
is
100 and KeepAliveTimeout is 15

 Do you get this slow reaction if you are hitting
 Tomcat directly?
I did get the slow reaction if I hit Tomcat directly
at port 8080 to the same webapp. But the tomcat
manager web pages seem show up fairly quick.

 I may be repeating something that was covered
 because I have not been
 reading this thread in detail. So sorry if already
 asked and answered.


 Doug



 - Original Message - 
 From: Jeffrey [EMAIL PROTECTED]
 To: Tomcat Users List
 tomcat-user@jakarta.apache.org
 Sent: Saturday, May 07, 2005 10:44 AM
 Subject: Re: Tomcat 5 slow, it's in production,
 please help!


  This website has many JSP pages of which each
has
 many
  JSPF included. I wonder whether or not the
system
 is
  not be able to handle this kind of  setting. But
  strange thing is that when we experienced the
  slowness, I looked at the usage of CPU and find
 that
  almost 90% of the CPU is idle.
 
  Do anyone know what kind of load a tomcat can
 handle.
  I am thinking that maybe a load balancer will
 help.
  But I am still puzzled by the fact of low CPU
 usage at
  the time of slowness.
 
  From the server status view in tomcat manager, I
 can
  see 's Request count: 127421'
 
  --- Jeffrey [EMAIL PROTECTED] wrote:
  I have a apache/tomcat environment that has
some
  problems recently. The environment has the
  following:
  1.  Apache 1.3
  2.  Tomcat 5.0.28 (Max memory 384mb)
  3.  JDK 1.4.2_06
 
  My apache has MaxClient set to 256 (apache
 default).
  The maxThread for tomcat is 500. The site is a
  database driven site.
 
  It seems working fine when load is low. But
when
  there
  are more than 150 threads (from the sever
status
  view
  of the tomcat manager), it's response time is
 very
  slow (5 - 10 minutes). I have tested the
database
  connections, they seem responding fairly well.
 
  Interesting thing is that most of time the slow
  response time only happens when

Re: manager/admin login problem

2005-05-06 Thread Parsons Technical Services
Look in the server.xml  That is where you will find where the username and 
password is being looked up at. If the comments are there then they will 
explain the configuration. If there are no comments then download the 
matching version of Tomcat and look at the virgin server.xml for the 
comments.

Doug
- Original Message - 
From: Phil Manheim [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, May 06, 2005 3:51 PM
Subject: manager/admin login problem


Hi,
I recently installed Crystal Reports XI on one of my servers.  This 
included
an installation of Tomcat.  I am trying to log in to both the 
administration
and manager consoles, but cannot get it to work.  I have added the 
following
record to the tomcat-users.xml file:

user username=foo password=bar roles=admin,manager/
It will not allow me to log in with the new username and password.  I also
tried adding admin or manager to the roles list for one of the default
users, but that did not work either.  In some of the documentation,
username is replaced with name, so I tried that too.  Still no good. 
I
am starting to think that maybe the logins aren't running off of the
tomcat-users.xml file, but as far as I know, I did a standard 
installation.
Maybe CR XI does a different type of install that I don't know about.
Please advise me on how to log in to these two portals.

Thanks,
Phil Manheim
GiveAnything.com
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 5/4/2005

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


Re: pdf not working

2005-05-04 Thread Parsons Technical Services
What browser are you using?
Doug
- Original Message - 
From: Maarten Janssen [EMAIL PROTECTED]
To: Tomcat User List tomcat-user@jakarta.apache.org
Sent: Wednesday, May 04, 2005 6:04 AM
Subject: pdf not working


Hi all,
Iam trying to call a link to a new window and that's calling a pdf 
document
thats somewhere in my folder under webapps.
The problem is that the pdf is not shown. If i try it with an image it 
will
be displayed correctly. I am using Tomcat 5.5.

Maarten
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 3-5-2005
-
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]


Removal from List

2005-05-02 Thread Parsons Technical Services
Dear Sir,
I am a user of the Tomcat List and noticed a large number of emails from 
you. It appears that someone subscribed you to the list and you 
inadvertently confirmed the subscription or someone has access to your 
email. As an IT person who deals with security I recommend you have someone 
check your security and that you scan your system and that you change all of 
your passwords.

As for the List subscription, if you will look at the bottom of the emails 
you will see a link where you can send an email to unsubscribe yourself. As 
this list is staffed by volunteers and the person with the access needed to 
remove you may not get you request for several days, this would be your best 
course of action. If after attempting this you are unable to unsubscribe, 
please post to the list explaining you have tried to unsubscribe and have 
been unsuccessful. At that point as soon as a person with the needed access 
gets your message they can assist you in removing your email from the list.

As a user of this list it is always a concern when someone wants off the 
list and is unable to do so. As this reflects poorly on the List even though 
it is out of the lists control that you were subscribed in the first place.

Doug Parsons
Tomcat User 


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


Re: Is 5.5.9 stable?

2005-04-30 Thread Parsons Technical Services
I wouldn't say inaccurate but contradicting. Placing the information in the 
context tag in the server.xml will work but the preferred method to declare 
the context is in a separate file. Thus the instructions are not showing the 
preferred method. It is however the simplest setup for beginners. Often the 
configuration is for a manual deploy that is accomplished by creating the 
directories by hand, and not deploying the app with a war or such.

You can place it in the context.xml file if it is to apply only for that 
app. I run 5.0 and use global data resources, so I don't have an example but 
I am sure that there are several on the list that can provide one.

Often books are based on the examples from the web, or visa versa. Also the 
5.5 docs are a modified version of the 5.0 docs (At least it appears that 
way).

You may wish to start a new thread and ask for some help on setups.
Doug
- Original Message - 
From: Gene Horodecki [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Saturday, April 30, 2005 9:08 PM
Subject: Re: Is 5.5.9 stable?


Thank you for your reply.  I thought perhaps I had been mistaken about the 
5.5 documentation and I went back and checked and it does seem to be 
inaccurate.  This is a direct quote from 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html

Configure the JNDI DataSource in Tomcat by adding a declaration for your 
resource to $CATALINA_HOME/conf/server.xml.
Add this in between the /Context tag of the examples context and the 
/Host tag closing the localhost definition.

However, there is no /Context tag in server.xml any longer because 
contexts are in their own file. I then attempted to place it in 
context.xml but it would not work.  I don't feel comfortable doing 
something other then what the instructions say.

I also purchased a book on Tomcat 5.5 and it also instructed to put the 
Context in server.xml.  Is there something I'm missing here?  Thanks.

- Original Message -
From: Parsons Technical Services [EMAIL PROTECTED]
Date: Friday, April 29, 2005 10:31 pm
Subject: Re: Is 5.5.9 stable?
Both are latest and greatest. If 5.0.28 works fine for you then I
don't see
any reason not to stick with it for now.
The main difference in the two (as I have read) is that 5.5 does
not need
the JDK and as such resolves some license issues for a lot of
users who
wanted to package and distribute Tomcat as turn key. The JRE can
be done
this way but not the JDK. So for now you are fine with the 5.0
branch. And
please anyone correct me if I am wrong here or the is any other
major
reasons.
As for the JDBC did you follow the instructions on the 5.5 web
page? The 5.0
page is different and will not work.
I know there is a note on the 5.5 page, but maybe we could ask
nicely if
someone could put a big warning on the 5.0 page about 5.5
As for 5.5.8 there should be a link for the archives that will
take you to
it.
Doug
- Original Message - 
From: Gene Horodecki [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 29, 2005 3:31 PM
Subject: Is 5.5.9 stable?

 I've been battling this all week, I'm hoping someone can lend a
helping
 hand.  I read that Tomcat 5.5.9 was the latest stable version
and so I
 downloaded it and installed on Linux FC2 and AIX 5.1, though I
realize on
 the website it says 'current development focus'-- does this mean
it is not
 stable?  I attempted to follow the accompanying documentation on
setting
 up a JDBC resource, as well as similar instructions in a book
that I
 purchased.  I could not do so because I found that 5.5.9
utilizes a
 seperate context.xml file which does not seem to be referenced
in any
 documentation anywhere.  This changed things, such as the
location of
 DefaultContext, etc.  I attempted to compensate but I could
not get a
 JDBC config to work without error.  I read one post on the
internet in
 which a user ran into the same problem and the advice was to go
to
 5.5.8-stable, which is not available on the primary downloading
site.  In
 desperation, I installed Tomcat 5.0.28 which seems to work well
 but I want to make sure I am using the latest and greatest.  All
I want is
 a stable version that works.  Which version should I use?  To me
the
 online instructions on the matter do not seem clear.

 Thanks so much for your comments / suggestions.


 -

 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

Re: DatasourceRealm for tomcat 5.5

2005-04-29 Thread Parsons Technical Services
There are seperate pages for 5.0  and 5.5  In the 5.5 the syntax for the 
elements changed. If you open both pages and look at the examples you will 
see the changes.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations
Doug
- Original Message - 
From: Guy Katz [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 29, 2005 3:34 PM
Subject: DatasourceRealm for tomcat 5.5


hello;
is there a porting guide for upgrading from tomcat 5 to 5.5?
i am having some problems with my DatasourceRealm configuration. the =
same configuration that wirks for tomcat 5.0.30 does not work for 5.5.9
is there some document that can explain the differences? i could not =
find anything in the tomcat docs.
thanks in advance 


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


Re: Is 5.5.9 stable?

2005-04-29 Thread Parsons Technical Services
Both are latest and greatest. If 5.0.28 works fine for you then I don't see 
any reason not to stick with it for now.

The main difference in the two (as I have read) is that 5.5 does not need 
the JDK and as such resolves some license issues for a lot of users who 
wanted to package and distribute Tomcat as turn key. The JRE can be done 
this way but not the JDK. So for now you are fine with the 5.0 branch. And 
please anyone correct me if I am wrong here or the is any other major 
reasons.

As for the JDBC did you follow the instructions on the 5.5 web page? The 5.0 
page is different and will not work.

I know there is a note on the 5.5 page, but maybe we could ask nicely if 
someone could put a big warning on the 5.0 page about 5.5

As for 5.5.8 there should be a link for the archives that will take you to 
it.

Doug
- Original Message - 
From: Gene Horodecki [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 29, 2005 3:31 PM
Subject: Is 5.5.9 stable?


I've been battling this all week, I'm hoping someone can lend a helping 
hand.  I read that Tomcat 5.5.9 was the latest stable version and so I 
downloaded it and installed on Linux FC2 and AIX 5.1, though I realize on 
the website it says 'current development focus'-- does this mean it is not 
stable?  I attempted to follow the accompanying documentation on setting 
up a JDBC resource, as well as similar instructions in a book that I 
purchased.  I could not do so because I found that 5.5.9 utilizes a 
seperate context.xml file which does not seem to be referenced in any 
documentation anywhere.  This changed things, such as the location of 
DefaultContext, etc.  I attempted to compensate but I could not get a 
JDBC config to work without error.  I read one post on the internet in 
which a user ran into the same problem and the advice was to go to 
5.5.8-stable, which is not available on the primary downloading site.  In 
desperation, I installed Tomcat 5.0.28 which seems to work well
but I want to make sure I am using the latest and greatest.  All I want is 
a stable version that works.  Which version should I use?  To me the 
online instructions on the matter do not seem clear.

Thanks so much for your comments / suggestions.
-
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 and IIS 6 slow (resent)

2005-04-28 Thread Parsons Technical Services
A few questions:
How many servers have this problem?
You say you have a different server set up the same way and it has no 
problem, am I correct?

Did you apply any updates to the server?
Did you apply the same update to the server that is running OK?
Have you rebooted the server?
Has the load changed on the server?
How does the load compare between server with problem to server with no 
problem?

Do you know exact day when problem started?
Are any events in the Windows logs that may apply? (errors or warnings)
Did you start getting any new events in any log that started the same time 
the server became slow?

What does the processor time and memory look like for the processes?
I don't run this setup, but do work with windows servers. These are some of 
the questions I would try to answer if I was having the problem.

Doug
- Original Message - 
From: Michael Südkamp [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 7:35 AM
Subject: Jk and IIS 6 slow (resent)


Hello,
I posted this question already a few days ago. Maybe this time I have more
luck with an answer ;-)

We have a problem with the IIS6/JK-connection on some of our Windows 2003
webservers (IIS 6).
Each request waits inside the JK connector for about 15 seconds until it 
is
forwarded to Tomcat.

I replaced our JK DLL with the recent version I found (1.2.10) and have 
the
same problem.
I set the JK log level to DEBUG and here are the two lines where the pause
occurs (notice the timestamp difference).

[Fri Apr 22 10:43:53 2005] [1276:1484] [debug]
HttpFilterProc::jk_isapi_plugin.c (842): [/examples/jsp] is a servlet 
url -
should redirect to ajp13
[Fri Apr 22 10:44:08 2005] [1276:1084] [debug]
wc_get_worker_for_name::jk_worker.c (94): found a worker ajp13

The strange thing is that other W2003 webservers we set up the same way 
have
not this problem. We are even sure that the problem webservers had not had
this problem some weeks ago.

Best regards
Michael
-
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: Change ROOT in Tomcat 5.5.9

2005-04-27 Thread Parsons Technical Services
RTFM or should I say rtm so as to be nice.
You can't do that with 5.5.X . You must declare the default context in the 
server.xml

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
Doug
- Original Message - 
From: Yuval Zantkeren [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, April 27, 2005 3:03 PM
Subject: Change ROOT in Tomcat 5.5.9

Hi,

I want to change the ROOT context to my web app but not in the Tomcat
directory.
I tried to define the context in xml file in the
conf/Catalina/localhost/ with path= and delete the ROOT folder in
The webapp directory but it doesn't work.
I would also want to use this root from the JK connector.

Please advise,

Yuval

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


Re: Cannot assign requested address

2005-04-27 Thread Parsons Technical Services
Do an ipconfig /all on Windoze or ifconfig on Linux and see what your IP is.
Is there a reason you are having Tomcat only listen on a specific IP?
Is your IP static?
What OS are you running?
Doug
- Original Message - 
From: J S [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, April 27, 2005 11:38 AM
Subject: Cannot assign requested address


Hi,
I'm having problems getting tomcat (4.1.24) to start. It was working 
before, and I'm pretty sure nothing's been changed in the config. In the 
catalina log it just complains it can't assign the requested address, 
then shuts down.

Nothing is bound to the ip address, or port (even on local) so I'm 
completely stuck! Any help would be very much appreciated.

Cheers,
JS.
StandardManager[/passwordExpiry]: Seeding random number generator class 
java.security.SecureRandom
StandardManager[/passwordExpiry]: Seeding of random number generator has 
been completed
StandardWrapper[/passwordExpiry:default]: Loading container servlet 
default
StandardWrapper[/passwordExpiry:invoker]: Loading container servlet 
invoker
[INFO] ChannelSocket - -JK2: ajp13 listening on 
b7uat01-smpl143/154.122.154.174:8009
[INFO] JkMain - -Jk running ID=0 time=2/224708 
config=/b7/apache/b7uat01/conf/jk2.properties
StandardServer.await: create[8006]: java.net.BindException: Cannot assign 
requested address
java.net.BindException: Cannot assign requested address
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:447)
   at java.net.ServerSocket.init(ServerSocket.java:165)
   at 
org.apache.catalina.core.StandardServer.await(StandardServer.java:510)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:521)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
ServerLifecycleListener: Skipping MBean for Service 
StandardService[Tomcat-Apache]
GlobalResourcesLifecycleListener: Destroying MBeans for Global JNDI 
Resources
Stopping service Tomcat-Apache
StandardHost[154.122.154.174]: Removing web application at context path 
/dpm/tomcat-docs
StandardHost[154.122.154.174]: Removing web application at context path 
/dpm/webdav
StandardHost[154.122.154.174]: Removing web application at context path 
/passwordExpiry
StandardHost[154.122.154.174]: Removing web application at context path 
/dpm/manager


-
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: Change ROOT in Tomcat 5.5.9

2005-04-27 Thread Parsons Technical Services
Hassan,
So your context have the path element set to  ?
Please read what Yuval wrote and what I responded. Yuval wrote with path= 
. I responded with default context.

And you are correct that you do not have to define any context in the 
server.xml, but if you wish to use the path element set to a value of  
(defined as default) then you do according to the documentation.

 If you specify a context path of an empty string (), you are defining 
the default web application for this Host, which will process all requests 
not assigned to other Contexts. The value of this field must not be set 
except when statically defining a Context in server.xml, as it will be 
infered from the filenames used for either the .xml context file or the 
docBase. 

Doug
- Original Message - 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 27, 2005 3:17 PM
Subject: Re: Change ROOT in Tomcat 5.5.9


Parsons Technical Services wrote:
You can't do that with 5.5.X . You must declare the default context in 
the server.xml
No, I don't know how you're getting that out of the reference below
but there's no requirement to have your context -- any context --
defined in server.xml.
Trust me, I've got several 5.5.x machines running right now, and
*all* the contexts are defined in either /META-INF/context.xml or
$CATALINA_HOME/conf/{engine}/{hostname}/{context}.xml
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
FWIW,
--
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]


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


Re: Problem Binding Tomcat to Ports 80/443

2005-04-26 Thread Parsons Technical Services
Check to see if Tomcat is already running. Also the config you posted has 
the port at 8086. And something is listening on 8086.

Do a reboot and look at your processes and netstat before doing anything 
else. Then take it from there.

Doug
- Original Message - 
From: Craig [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 6:18 AM
Subject: Problem Binding Tomcat to Ports 80/443


Hey Tomcat Users!
I am having  a very desperate problem with Tomcat.  I have a demonstration
due later today, and the script I have been using to run tomcat (5.0.27)
on ports 80/443 doesn't seem to do the job -- though it had been
workingfor weeks up until a restart earlier today.  I'm getting these
kinds of errors in catalina.out when I try to start it on port 80/443:
Apr 26, 2005 1:23:55 AM org.apache.coyote.tomcat5.CoyoteConnector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
...
Apr 26, 2005 1:24:04 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:80
I don't have anything running on ports 80 or 443, as a netstat -ltun
shows:
# netstat -ltun
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address State
tcp0  0 127.0.0.1:8005  0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:71440.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:80090.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:873 0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:71450.0.0.0:*   LISTEN
tcp0  0 127.0.0.1:3306  0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:587 0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:80800.0.0.0:*   LISTEN
tcp0  0 66.93.121.250:530.0.0.0:*   LISTEN
tcp0  0 127.0.0.1:530.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:80860.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:22  0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:54320.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:25  0.0.0.0:*   LISTEN
tcp0  0 127.0.0.1:953   0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:84430.0.0.0:*   LISTEN
udp0  0 0.0.0.0:32768   0.0.0.0:*
udp0  0 66.93.121.250:530.0.0.0:*
udp0  0 127.0.0.1:530.0.0.0:*
The connectors in my server.xml look like this:
   !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 80 --
   Connector port=8086
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false acceptCount=100
  debug=0 connectionTimeout=2
  disableUploadTimeout=true redirectPort=443 /
  !-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --
   Connector port=443
  minProcessors=5 maxProcessors=75
  enableLookups=true disableUploadTimeout=true
  acceptCount=100 debug=0 scheme=https secure=true
  clientAuth=false sslProtocal=TLS
  keystoreFile=/home/tomcat/.keystore keystorepass=xx
  keystoreType=JKS /
I get the same problem using the Tomcat5.sh jsvc script modified for my
installation as I do when I try to run tomcat as root!
It's like something has mysterously taken over ports 80/443 and won't tell
me about it or give them back!
Any suggestions?
- Craig
Ne te quaesiveris extra.
-
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: Why 8080 and 8443 ..?

2005-04-25 Thread Parsons Technical Services
Taking a wild stab at it, in the early days Tomcat was not as good of a http 
server as it is now and was thus put behind a real web server to do it's 
thing when needed and not mess with static stuff. Thus to avoid conflicts on 
install the ports were set to a different value from default. Then there is 
the issue that Tomcat cannot start on Linux on the default ports unless 
running as root.

So there are two of the possible reasons that an upper port was chosen. 
Since I am relatively new to Tomcat it is totally possible that I am way off 
base.

- Original Message - 
From: David Whitehurst [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, April 25, 2005 6:23 PM
Subject: Why 8080 and 8443 ..?


I'm curious about the historical reasons behind the choice of 8080 and 
8443 as the default ports for Coyote connectors?  Can someone answer 
this question? Knowing that the general ports are 80 and 443, would the 
need for translation of the ports, running Tomcat as a non-root user, be a 
reason for this?

Thanks,
David Whitehurst
[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: Missing JNDI resource params after deployment.

2005-04-24 Thread Parsons Technical Services
Which version of Tomcat are you running. There is a difference from the 
5.0.x and 5.5.x tree. The setup you have listed is for the 5.0.x branch.

Doug
PS Didn't mean to not respond but I actually took a small vacation to Busch 
Gardens. Apollo's Chariot rocks, especially front row! And just now back on 
line.


- Original Message - 
From: David C. Hicks [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, April 21, 2005 10:25 AM
Subject: Missing JNDI resource params after deployment.


I have the following in a file called ems.xml in my META-INF directory. 
After deploying this application, the JNDI resource is listed for the 
application in the administration screen, but none of the ResourceParams 
are associated with it.  Have I got something wrong in the context file?

Thanks in advance.
Dave
Context path=/ems reloadable=true 
docBase=/home/dhicks/projects/ems/build/webapp 
workDir=/home/dhicks/projects/ems/build/webapp/WEB-INF/work 
   Logger className=org.apache.catalina.logger.SystemOutLogger 
verbosity=4 timestamp=true/
   Resource name=jdbc/emsDb auth=Container 
type=javax.sql.DataSource/
   ResourceParams name=jdbc/emsDb
   parameternameusername/namevaluesa/value/parameter
   parameternamepassword/namevalue/value/parameter

parameternamedriverClassName/namevaluenet.sourceforge.jtds.jdbc.Driver/value/parameter
parameternameurl/namevaluejdbc:jtds:sqlserver://psg01:1433/dchems;user=sa/value/parameter
   /ResourceParams
/Context

-
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: localhost Context files and path = /

2005-04-20 Thread Parsons Technical Services
This is not allowed in Tomcat 5.5.x
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
Do not declare the path if the path is null  or / in the context unless 
you are doing a static in the server.xml

With that in mind think about the fact that there is already a context 
element in the server.xml

This is the context element for the app you are trying to deploy. Modify it 
to suit your needs. Unlike the others that are declared in the war, the 
context for the ROOT app  is in the server.xml and nowhere else.

Doug
- Original Message - 
From: Joe Bautista [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 20, 2005 8:02 PM
Subject: localhost Context files and path = /


Hi all,
I've been trying to deploy Sakai 1.5 on my Tomcat 5.5.7. One of the
Contexts, sakai-dispatch, is supposed to replace the ROOT Context. My
CATALINA_HOME/conf/catalina/localhost/sakai-dispatch.xml file contains the
following code:
Context path=/ docBase=f:/usr/local/sakai/sakai-dispatch
crossContext=true
Realm className=org.sakaiproject.dav.DavRealm /
/Context
When I move this code into my CATALINA_HOME/conf/server.xml file, Sakai
works. At first I thought sakai-dispatch.xml is not being read, so I added
some garbage to sakai-dispatch.xml, but upon running
CATALINA_HOME/bin/startup.bat the output window gave me some error 
messages
based on the Digester.

My conclusion is this: sakai-dispatch.xml is working, but for some reason
it's not letting me set the path to /.
Any ideas?
Joe Bautista
Fuller Seminary
Programmer/Analyst

-
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 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: tomcat-user@jakarta.apache.org
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]


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 tomcat-user@jakarta.apache.org
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: tomcat-user@jakarta.apache.org
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: 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: Set group id using jsvc?

2005-04-18 Thread Parsons Technical Services
Why not make the user that Tomcat runs at a member of the group you need it 
in?

Why do you need to change the group if it is set ahead of time?
Doug
- Original Message - 
From: QM [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, April 18, 2005 9:25 PM
Subject: Re: Set group id using jsvc?


On Mon, Apr 18, 2005 at 12:50:26PM -0400, Nick Johnson wrote:
: I know that jsvc will let you set the user id of the tomcat process,
: but will it also let you set the group id of the process?
Off the top of my head I don't know; but you can grep the source code
for setgid()  (or even setegid()).  That call sets group membership.
Do you need jsvc to run Tomcat on a privileged port?  If not, you could
use erni[1] for fine-tuned group membership.
-QM
[1] = http://www.brandxdev.net/erni/index.site
--
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]


Re: can´t Configurate Database Connection Pool (DBCP) with Tomcat 5.0.28

2005-04-15 Thread Parsons Technical Services
Do you have your resource link in the context element? And if you don't have 
a context for the app you need to create one.

Doug
- Original Message - 
From: Sevillano sevi llano [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 15, 2005 5:34 AM
Subject: can´t Configurate Database Connection Pool (DBCP) with Tomcat 
5.0.28


Hi, I´m a newbie trying to configurate DBCP with Tomcat 5.0.28
I´m following this documentation:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
...Add this in between the /Context tag of the examples context and the 
/Host tag closing the localhost definition...
but there is no /Context in my server.xml

also I´ver read tons of forums about this question, and I´ve tested a lot 
of different configuration.

this is the error I´ve got (the usual I think):
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of 
class '' for connect URL 'null'


any help please? I´ve been the whole week trying to fix it
thanks

these are my files:
SERVER.XML
Server port=8005 shutdown=SHUTDOWN
 GlobalNamingResources
   !-- Used by Manager webapp --
   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
 description=User database that can be updated and saved
   /Resource
   ResourceParams name=UserDatabase
 parameter
   namefactory/name
   valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
 /parameter
 parameter
   namepathname/name
   valueconf/tomcat-users.xml/value
 /parameter
   /ResourceParams
Resource name=jdbc/myoracle auth=Container 
type=javax.sql.DataSource/
ResourceParams name=jdbc/myoracle

parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter
   parameternameusername/namevalue***/value/parameter
   parameternamepassword/namevalue***/value/parameter
parameternamedriverClassName/namevalueoracle.jdbc.driver.OracleDriver/value/parameter
parameternameurl/namevaluejdbc:oracle:thin:@:1521:bddesa/value/parameter
   parameternameremoveAbandoned/namevaluefalse/value/parameter
parameternameremoveAbandonedTimeout/namevalue300/value/parameter
   parameternamelogAbandoned/namevaluetrue/value/parameter
   parameternamemaxActive/namevalue10/value/parameter
/ResourceParams
 /GlobalNamingResources
 Service name=Catalina
   Connector port=8080 /
   !-- This is here for compatibility only, not required --
   Connector port=8009 protocol=AJP/1.3 /
   Engine name=Catalina defaultHost=localhost
 Logger className=org.apache.catalina.logger.FileLogger /
 Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase /
 Host name=localhost appBase=webapps /
   /Engine
 /Service
/Server

WEB.XML
?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
   version=2.4

 display-nameWelcome to Tomcat/display-name
 description
Welcome to Tomcat
 /description
resource-ref
res-ref-namejdbc/myoracle/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
/web-app

TEST.JSP
...
Context initContext = new InitialContext();
Context envContext  = (Context)initContext.lookup(java:/comp/env);
DataSource ds = (DataSource)envContext.lookup(jdbc/myoracle);
conn = ds.getConnection();
...
_
Descarga gratis la Barra de Herramientas de MSN 
http://www.msn.es/usuario/busqueda/barra?XAPID=2031DI=1055SU=http%3A//www.hotmail.comHL=LINKTAG1OPENINGTEXT_MSNBH

-
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: Servlet context problem

2005-04-15 Thread Parsons Technical Services
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Automatic%20Application%20Deployment
Read section carefully. The warning at the end of the section describes your 
symptoms.

Doug

--snip--

When i deploy the war file to tomcat the application works fine. the
context.xml file lists the servlet context as /servlet/ICTHelpdesk
and the manager app lists the correct context and everything works
fine, until tomcat (5.0.28) is restarted. the manager now lists two
contexts /ICTHelpdesk and /servlet/appICTHelpdesk name, but
/servlet/ICTHelpdesk will not start, and the following exception is
thrown.
--snip--

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


Re: How to change a running Tomcat with root user to other user.

2005-04-15 Thread Parsons Technical Services
There are several options:
1. Keep running as root. (Bad as noted)
2. Listen on port above 1024.
3. Apache front end.
4. Use jsvc to start Tomcat as root. Bind to ports and change user.
I think 4 is what you are looking for.
http://jakarta.apache.org/commons/daemon/jsvc.html
Doug
- Original Message - 
From: Lorenzo Jiménez [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Friday, April 15, 2005 10:37 AM
Subject: How to change a running Tomcat with root user to other user.

Hi,
Today we saw that our Tomcat 5.0.28 had been installed and it is running 
with the root user.

Because is a security hazard,
how can I change it to other less dangerous user?, and
what privileges needs to have in order to work?
Our system is a RedHat 9.0, 2.4.21-20.ELsmp
Thanks,
Regards,
Lorenzo
-
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.
http://www.nacion.com/disclaimer/index_en2.htm

-

-
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: RES: How can I create a digest password - digest.bat is the key!

2005-04-13 Thread Parsons Technical Services
Dejavu
In a properly configured system, if the attacker can read the server.xml or 
context element then he has OWNED your system and has free reign.

If secured on windows then only two groups should have access, admins and 
the webadmins. If either of those have been compromised you got big issues.

What exactly do you mean by watch clean passwords?
Doug
- Original Message - 
From: Paulo Alvim [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 13, 2005 7:00 PM
Subject: RES: RES: How can I create a digest password - digest.bat is the 
key!


Ok, thank you,
I didn't think that it would be the only solution...but it would make 
things
a little more difficult and our customers don't like the idea of to watch
clean passwords because they don't do it to create Windows Services or
Oracle users.

We know that these softwares have proprietary databases to store that 
pass -
but I was wondering what could be done in the Tomcat Open-Source
context...do you think that the only approach would be to protect the
folders/files - file system level security? What are you guys doing?

-Mensagem original-
De: Mark Thomas [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 18:16
Para: Tomcat Users List
Assunto: Re: RES: How can I create a digest password - digest.bat is the
key!
Paulo,
I am pretty sure this won't work. Tomcat can't calculate the real
password (required by the database) from the hash. The key feature of a
hash is its one way nature.
Also, if Tomcat could get the password from the hash so could any 
attacker.

Mark
Paulo Alvim wrote:
Lorenzo,
Are you using the DBCP JDBC connection pooling (with that configuration
files in the conf/catalina/localhost)?
We'd like to know if your approach could be used to change the JDBC pool
configuration files from:
  ResourceParams name=jdbc/jcompanyadmseg
parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
  nameurl/name
  valuejdbc:oracle:thin:@x:1521:oraplcdb/value
/parameter
parameter
  nameusername/name
  valuedemo3/value
/parameter
parameter
  namepassword/name
  valuemypass/value
/parameter
   (...)
  /ResourceParams
...to something like (pass encrypted):
ResourceParams name=jdbc/jcompanyadmseg
parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
  nameurl/name
  valuejdbc:oracle:thin:@x:1521:oraplcdb/value
/parameter
parameter
  nameusername/name
  valuedemo3/value
/parameter
parameter
  namepassword/name
  value%$#I(#)$/value
/parameter
   (...)
  /ResourceParams
-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 17:13
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - digest.bat is the key!
Prioridade: Alta
Dear Paulo:
Thanks for your comments.
What we want is to have minimum exposure to hacking.
We found out that, in the context.xml, we can specify the users.xml file,
and the digest method. So now it is possible to have a different user and
password for admin and manager, and in a separate location where
hackers -hopelly- cannot get thru.
Also in the net we found that we can generate the MD5 password using
digest.bat that is in the tomcat/bin directory. This worked perfectly!
Thanks again,
Regards,
Lorenzo Jimenez

-Original Message-
From: Paulo Alvim [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 13 de Abril de 2005 02:01 p.m.
To: Tomcat Users List
Subject: [SPAM2] - RES: How can I create a digest password - another
error -
Found word(s) list error in the Text body
Hi,
I don't know if it's your objective but is it possible to use MD5 to
encode
passwords in the DBCP conf files?
Is there any documentation about how could we avoid to have the real
passwords in these files?
Thanks in advance!
Alvim
-Mensagem original-
De: Lorenzo Jiménez [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 13 de abril de 2005 15:04
Para: Tomcat Users List
Assunto: RE: How can I create a digest password - another error
Prioridade: Alta

Dear Jerry:
Thanks for the advice.
I follow your advice but did not worked. I use this
C:\java -cp C:\Java\Tomcat5.0.28\common\lib\catalina.jar
org.apache.catalina.realm.RealmBase -a MD5 admin
And I got this error:
Exception in thread main java.lang.NoClassDefFoundError:
javax/management/MBeanRegistration
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native 

Re: tomcat example app corrupt

2005-04-13 Thread Parsons Technical Services
I am getting the same thing. When I download it, I cannot extract the files. 
The example on the 5.0 page is also semi broke. It doesn't have a war but 
drops you to a folder directory when you follow the link. If you browse 
around you can find the app.

So it's not on your end. It is the file.
Doug
- Original Message - 
From: Mark Panahi [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, April 13, 2005 5:00 PM
Subject: Fwd: tomcat example app corrupt

-- Forwarded message --
From: Mark Panahi [EMAIL PROTECTED]
Date: Apr 12, 2005 9:47 PM
Subject: tomcat example app corrupt
To: [EMAIL PROTECTED]
The example app posted at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/sample/ seems
to be corrupt.
Any help?
Thanks,
Mark
-
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 5.5.9 installlation doesn't seem to work

2005-04-11 Thread Parsons Technical Services
It appears you have two versions on your machine. And since you have not 
changed the defaults you cannot run both at the same time. Shut down the 
5.0.28 version and try starting the 5.5.9 version. OR change the server xml 
to have the 5.5.9 listen on different ports. If the 5.0.28 is also installed 
as a service, there is a good chance this was the cause of the error.

Doug
- Original Message - 
From: Walter Lee [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, April 11, 2005 10:48 AM
Subject: tomcat 5.5.9 installlation doesn't seem to work

Hi,
I downloaded the Tomcat 5.5.9 beta and unzipped it. I get a message saying 
that it failed to install Tomcat Service and gives me the option to abort it 
or ignore it. I chose ignore and it finished unzipping. Then it shows a 
progress bar about service being installed. When all this finished I did the 
http://localhost:8080http://localhost:8080/ and the Tomcat 5.0.28 main 
page came up. I don't understand how this happened. I have checked out every 
option I can find and nothing seems wrong. I also changed to JRE 5.0 Update 
2. Any thoughts on this?

Wally Lee 


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


Re: change to server.xml requires restart 5.5.4

2005-04-11 Thread Parsons Technical Services
I don't think that has changed, but I could be wrong. One thought is that 
unless you have a lot of apps using the DB you could move the resource to 
the context for the app. Then only the app would have to be restarted.

But that begs the question, if you are changing the global db resource what 
are the apps doing? If you are making a change such as this why is 
restarting Tomcat an issue?

Just trying to understand to better help.
Doug
- Original Message - 
From: quentin.compson [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, April 11, 2005 11:08 PM
Subject: change to server.xml requires restart 5.5.4


tomcat 5.5.4 on win2k server, jvm 1.4.x
it seems that every time i make a change to the server.xml (db connection
pools), i have to restart tomcat.  i assume thats normal, but i was hoping 
maybe
not to have to do it. or maybe 5.5.9 supports something like this?

thx
-
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: still not clear with connection pooling in tomcat

2005-04-08 Thread Parsons Technical Services
Since the Conn method is static you do not need to initialize it. The DBUtil 
class actually handles all that for you. Just send your query string to the 
method there and get back the instance of the data results class.

No init needed.
Doug
- Original Message - 
From: Krishnakant Mane [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Friday, April 08, 2005 5:06 AM
Subject: Re: still not clear with connection pooling in tomcat


thanks doug.
I got my application right.
only one problem remains.
where do I initialise the connection.
and what should I do in the init method of the
servlet.
or is it that I wont need to use the init method at
all?
thanks again
Krishnakant.
Send instant messages to your online friends http://uk.messenger.yahoo.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: http://localhost:8081/manager/list

2005-04-08 Thread Parsons Technical Services
As a test, remove admin from the user and have only manager. I think I had 
that problem once. If it works, try to add a space after the comma or just 
add a second entry for the admin. You can list the same user/password as 
many times as you like.

And remember to restart Tomcat each time(been there done that, Duh). The 
file only gets read at startup.

Doug
- Original Message - 
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 08, 2005 7:10 AM
Subject: Re: http://localhost:8081/manager/list


yes, tomcat has been restarted by the way..

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


Re: Can you use Tomcat when you are not on line?

2005-04-08 Thread Parsons Technical Services
Question, if you allow IE to connect to the Internet, can you get to the 
page on localhost?

Can you ping localhost? (I think you said yes.)
Can you ping 127.0.0.1 ?
What does netstat -ta show in a Dos window? Can you see the port listening?
Does the computer have a network card in it, and is it enabled?
Do you have the loopback driver installed?
Are you running a firewall (on the PC in question)?
Can you connect to the Internet and browse otherwise?
Is it via dialup?
Doug
- Original Message - 
From: Walter Lee [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Friday, April 08, 2005 1:05 AM
Subject: Re: Can you use Tomcat when you are not on line?

Hi Jim,
I thought this was going to be the answer, but alas I don't have an option 
exactly like that. The Internet Options/LAN setting states that it does not 
apply to dialup. I looked at the setting anyway and it is not checked where 
they ask if I am using a proxy server. I couldn't find any other place that 
proxy servers are mentioned so I don't have any idea where one could be. I 
will keep trying things.
Thanks,
Wally
 - Original Message - 
 From: Sng Wee Jimmailto:[EMAIL PROTECTED]
 To: Tomcat Users Listmailto:tomcat-user@jakarta.apache.org
 Sent: Thursday, April 07, 2005 10:06 PM
 Subject: RE: Can you use Tomcat when you are not on line?


 Wally,
 Did you set your Internet Explorer to Bypass proxy server for local
 addresses (Internet Options | Local Area Network (LAN) Settings)?

 Jim
 -Original Message-
 From: Walter Lee [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 08, 2005 3:06 AM
 To: Tomcat Users List; Jason Bainbridge
 Subject: Re: Can you use Tomcat when you are not on line?
 Thanks for responding. My IE is totally up to date. I have changed and
 re-changed all the options for connecting and it does not seem to make
 any difference. I cannot go to Firefox because the company does not want
 to. So I will keep playing around and see what happens. It does not seem
 to be a problem right now.
 Wally
   - Original Message -
   From: Jason 
Bainbridgemailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
   To: Tomcat Users 
Listmailto:tomcat-user@jakarta.apache.orgmailto:tomcat-user@jakarta.apache.org
   Sent: Thursday, April 07, 2005 2:42 PM
   Subject: Re: Can you use Tomcat when you are not on line?

   On Apr 6, 2005 10:44 AM, Walter Lee
 [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED] 
wrote:
I have Tomcat installed on W2K and it says it is installed
 correctly. When I try the examples it tells me that I must be on line.
 If I am using localhost:8080 why does it need to be on line?
   

   This is just Internet Explorer being tempermental, as other posters
   have suggested either just use Firefox -
 http://getfirefox.comhttp://getfirefox.com/http://getfirefox.comhttp://getfirefox.com/ 
or just
   play around with checking and unchecking File / work Offline in
   Internet Explorer in between page refreshes. Eventually it will work.

   I think this was only a problem with older versions of IE though.
   --
   Jason Bainbridge
   http://kde.orghttp://kde.org/http://kde.orghttp://kde.org/ -
 [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED]
   Personal Site -
 
http://jasonbainbridge.comhttp://jasonbainbridge.com/http://jasonbainbridge.comhttp://jasonbainbridge.com/
   -
   To unsubscribe, e-mail:
 [EMAIL PROTECTED]mailto:tomcat-user-unsubscribmailto:[EMAIL 
PROTECTED]mailto:tomcat-user-unsubscrib
 [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
 [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED]
 he.org

 
 The information in this email is confidential and is intended solely
 for the addressee(s).
 Access to this email by anyone else is unauthorized. If you are not
 an intended recipient, please notify the sender of this email
 immediately. You should not copy, use or disseminate the
 information contained in the email.
 Any views expressed in this message are those of the individual
 sender, except where the sender specifically states them to be
 the views of Capco.
 http://www.capco.com/http://www.capco.com/
 
 -
 To unsubscribe, e-mail: 
[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]


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


Re: Windows Installation - Tomcat Start and Stop in the Start menu

2005-04-08 Thread Parsons Technical Services
I don't run Tomcat on windows, but the batch files are in the 
$tomcat_home/bin folder. You can create shortcuts to them if needed. I think 
they will not work if Tomcat is running as a service.

Doug
- Original Message - 
From: Malvey, Ramesh (GE Consumer  Industrial) [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 08, 2005 7:17 AM
Subject: Windows Installation - Tomcat Start and Stop in the Start menu

Hi,
I have downloaded Tomcat 5 on my Windows 2000 machine. I see neither Start 
Tomcat nor Stop Tomcat programs in the start menu. In case I make any 
changes to my class files that require the restart of the server, how do I 
do so? Also, where can I see the logs of my application? Using Tomcat 4.1, I 
could restart Tomcat by selecting Start Tomcat program from the start menu 
which also used to display the logs of the application..

Thanks,
Ramesh
-
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: http://localhost:8081/manager/list

2005-04-08 Thread Parsons Technical Services
What OS are you running on?
Did you make any changes to the server.xml other than changing ports?
Post your server.xml
Doug
- Original Message - 
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 08, 2005 8:20 AM
Subject: Re: http://localhost:8081/manager/list


Hi there,
i ammended my tomcat users file to:
?xml version='1.0'  encoding='utf-8'?
tomcat-users
role  rolename=tomcat/
role rolename=role1/
role rolename=manager/
user username=tomcat  password=tomcat roles=tomcat/
user username=both  password=tomcat roles=tomcat,role1/
user username=role1  password=tomcat roles=role1/
user username=pgibbonsx  password=tomcat roles=manager/
/tomcat-users
but with no luck..
any suggestions

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


Re: Help:java.lang.ClassFormatError: Invalid method attribute name index 10 in class file

2005-04-08 Thread Parsons Technical Services
Try changing the order of your elements. Put the servlet elements at 
together and then below that put your servlet-mappings together. The DTD has 
a set order for the elements in the xml. It needs to see all of one element 
the all of the next type and so forth and so on.
That is if my wife didn't spike my coffee and I'm imagining this stuff 
again.

If you go to the link at the top of your xml and do a view source you will 
see a listing of the elements. I believe that this is the order the elements 
need to occur in the xml.

Doug
- Original Message - 
From: Liu Honghai [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 08, 2005 9:11 AM
Subject: Help:java.lang.ClassFormatError: Invalid method attribute name 
index 10 in class file


Hello everybody,
I try to deploy my serlet apps in Tomcat, but Tomcat always report an 
exception:

java.lang.ClassFormatError: Invalid method attribute name index 10 in
class file org/servermon/gui/Init
Tomcat 5.5.7, compiler:jdk1.5.0
When I use Tomcat 5.0.27, and recompile the sourcecode under
jdk1.4.2_04, it report another exception:
Error deploying web application directory servermon
java.lang.ClassFormatError: org/servermon/gui/Init (Illegal constant pool 
index)

My deployer is:
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  servlet
  servlet-nameMenuServlet/servlet-name
servlet-classorg.servermon.gui.tree.MenuServlet/servlet-class
  /servlet
  servlet-mapping
  servlet-name  MenuServlet /servlet-name
  url-pattern /servlet/MenuServlet /url-pattern
  /servlet-mapping
  servlet
  servlet-nameTableServlet/servlet-name
servlet-classorg.servermon.gui.table.TableServlet/servlet-class
  /servlet
  servlet-mapping
  servlet-name  TableServlet /servlet-name
  url-pattern /servlet/TableServlet /url-pattern
  /servlet-mapping
  servlet
  servlet-nameMenu/servlet-name
  servlet-classorg.servermon.gui.tree.Menu/servlet-class
  /servlet
  servlet-mapping
  servlet-name  Menu/servlet-name
  url-pattern /servlet/Menu /url-pattern
  /servlet-mapping
  servlet
  servlet-nameMonitoringServlet/servlet-name
servlet-classorg.servermon.gui.monitoring.MonitoringServlet/servlet-class
  /servlet
  servlet-mapping
  servlet-name  MonitoringServlet/servlet-name
  url-pattern /servlet/MonitoringServlet /url-pattern
  /servlet-mapping
  servlet
  servlet-nameGraphServlet/servlet-name
servlet-classorg.servermon.gui.monitoring.GraphServlet/servlet-class
  /servlet
  servlet-mapping
  servlet-name  GraphServlet/servlet-name
  url-pattern /servlet/GraphServlet /url-pattern
  /servlet-mapping
  servlet
  servlet-nameServerServlet/servlet-name
servlet-classorg.servermon.gui.client.ServerServlet/servlet-class
  /servlet
  servlet-mapping
  servlet-name  ServerServlet/servlet-name
  url-pattern /servlet/ServerServlet /url-pattern
  /servlet-mapping
  servlet
  servlet-namelog4j-init/servlet-name
  servlet-classorg.servermon.gui.Log4jInit/servlet-class
  init-param
  param-namelog4j-init-file/param-name
  param-valueWEB-INF/log4j.lcf/param-value
  /init-param
  load-on-startup1/load-on-startup
  /servlet
  servlet
  servlet-namegui-init/servlet-name
  servlet-classorg.servermon.gui.Init/servlet-class
  load-on-startup1/load-on-startup
  /servlet
/web-app
Does anybody have suggestion?
Thanks a lot!
Honghai
-
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: http://localhost:8081/manager/list

2005-04-08 Thread Parsons Technical Services
Just as I was afraid of. Looks fine. Check the permissions on the file. It 
must be whoever Tomcat is running as. Also check your logs for any errors. 
It should be in Catalina.out

Doug
- Original Message - 
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 08, 2005 9:46 AM
Subject: Re: http://localhost:8081/manager/list


Server port=8005 shutdown=SHUTDOWN
 GlobalNamingResources
!-- Used by Manager webapp --
Resource name=UserDatabase  auth=Container
type=org.apache.catalina.UserDatabase
description=User database that can be updated and  saved
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
pathname=conf/tomcat-users.xml /
/GlobalNamingResources
  Service name=Catalina
Connector port=8081 /
!-- This  is here for compatibility only, not required --
Connector port=8009 protocol=AJP/1.3 /
 Engine name=Catalina  defaultHost=localhost
Host  name=localhost debug=0 appBase=webapps  unpackWARs=true
Valve  className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=localhost_access_log. suffix=.txt 
pattern=common/
Valve  className=org.apache.catalina.valves.FastCommonAccessLogValve
directory=logs  prefix=localhost_access_log. suffix=.gibbo 
pattern=common
resolveHosts=false/
/Host
/Engine
/Service
/Server


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


Re: http://localhost:8081/manager/list

2005-04-08 Thread Parsons Technical Services
Just ran across something. Remove the role elements from the xml file.
So it would be this:
user username=tomcat password=tomcat roles=tomcat/
user username=both password=tomcat roles=tomcat,role1/
user username=pgibbons password=tomcat roles=admin,manager/
Doug
- Original Message - 
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 08, 2005 7:05 AM
Subject: http://localhost:8081/manager/list


Hi there,
i am trying to use the web application manager for the first time, however 
i
donot seem to be get past the authenication. I have the following entries 
in
my tomcat-users.xml file:

 role rolename=tomcat/
role  rolename=manager/
role rolename=admin/
user username=tomcat password=tomcat roles=tomcat/
user username=both password=tomcat roles=tomcat,role1/
user username=pgibbons password=tomcat roles=admin,manager/
i am trying to access _http://localhost:8081/manager/list_
(http://localhost:8081/manager/list)  with  a user name of pgibbons and a 
password of tomact.
My Tomact version is  5.5.7 and my sdk is 1.5.

Have i missed anything out here?

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


Re: installation two TOMCAT versions on our server

2005-04-08 Thread Parsons Technical Services
There is a space between the words program and file. When you have a path 
the contains the space character it causes problems.
SO:
OK
programfiles
ProgramFiles
program_files
mydocuments
anything
somedirectory

Bad
program files
my documents
some directory
any thing
Doug
- Original Message - 
From: THOMAZON Fabien [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Friday, April 08, 2005 9:56 AM
Subject: RE: installation two TOMCAT versions on our server


Thank you for your explications, but I don't understand when you write :
'...which does NOT have
space program files ' ?
Regards,
Fabien
-Message d'origine-
De : Raghupathy,Gurumoorthy
[mailto:[EMAIL PROTECTED]
Envoyé : vendredi 8 avril 2005 14:09
À : 'Tomcat Users List'
Objet : RE: installation two TOMCAT versions on our server
Yes you can ...
Things you need to remember
1. don't install as service
2. use the batch file to start and stop
3. install both version in different directories which does NOT have
space program files
4. Edit the server.xml file in one of them and change the port
nubers ( may be add 1 in front of them )
5. Let the other server.xml remain the same
6. Start 1st and check it this runs fine and then stop
7. Start 2st and check it this runs fine and then stop
8. Start both and check ( with correct port numbers )
Regards
Guru
-Original Message-
From: THOMAZON Fabien [mailto:[EMAIL PROTECTED]
Sent: 08 April 2005 12:55
To: 'Tomcat Users List'
Subject: installation two TOMCAT versions on our server
Hi,
I don't know whether I should ask my question now or not. But I've been
blocked for a long time and I would need your help and suppport.
I would like to install two TOMCAT versions (4.1.27 and 5.0.28) on our
Windows development server.
1st question : Is it possible to make two versions exist on the same 
server?
2nd question : How can we do?
3rd question : When I was looking for it on the Internet, I could'nt find
any website to help me, but maybe you know some?

Thanks by advance
Regards
Fabien
-
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 you use Tomcat when you are not on line?

2005-04-08 Thread Parsons Technical Services
Dang, I missed a question. Can you get to Tomcat when you are online?
Turn off the firewall if the answer is no. Don't dial up with it off.
In case you missed my other post go into IE under Tools and Options. On the 
connection tab set it to never dial up. Then if you get the prompt to work 
off line say OK. change your address to the localhost and then click on file 
and uncheck work offline.Try clicking the go button.

If this works go to your dial up connections and create a short cut for that 
account. When you need to browse, click on the dial up and after connection 
open the browser. Yeah it's a pain.

A no luck few more things to try:
If the network card is set to a static IP can you ping it?
If not static, set it to a static IP and then try to ping it.
Start the other computer and try it.
If you can ping the static IP of the nic, set Tomcat to listen to that IP. 
Tell the firewall that the IP of the nic is trusted.

Whose firewall are you running?
Doug

- Original Message - 
From: Walter Lee [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Friday, April 08, 2005 11:56 AM
Subject: Re: Can you use Tomcat when you are not on line?

Answers for today follow. I tried to find out everything I could about the 
proxy server stuff, but after an hour gave up on getting a short answer from 
microsoft documentation. I could not find anything about ignoring it 
although since I am working dialup the proxy server should not be the 
problem. As usual this little fun project is beginning to take over my life. 
Thanks for all your help.
Wally


Can you ping localhost? (I think you said yes.)
Yes
Can you ping 127.0.0.1 ?
Yes
What does netstat -ta show in a Dos window? Can you see the port listening?
Yes
Does the computer have a network card in it, and is it enabled?
Yes, connects to my other computer but is presently turned off.
Do you have the loopback driver installed?
no (don't know, never used it)
Are you running a firewall (on the PC in question)?
Yes
Can you connect to the Internet and browse otherwise?
Yes
Is it via dialup?
Yes
 - Original Message - 
 From: Parsons Technical Servicesmailto:[EMAIL PROTECTED]
 To: Tomcat Users Listmailto:tomcat-user@jakarta.apache.org
 Sent: Friday, April 08, 2005 7:40 AM
 Subject: Re: Can you use Tomcat when you are not on line?

 Question, if you allow IE to connect to the Internet, can you get to the
 page on localhost?
 Yes
 Can you ping localhost? (I think you said yes.)
 Yes
 Can you ping 127.0.0.1 ?
 Yes
 What does netstat -ta show in a Dos window? Can you see the port 
listening?
 Yes
 Does the computer have a network card in it, and is it enabled?
 Yes, connects to my other computer
 Do you have the loopback driver installed?
 no (don't know, never used it)
 Are you running a firewall (on the PC in question)?
 Yes
 Can you connect to the Internet and browse otherwise?
 Yes
 Is it via dialup?
 Yes
 Doug

 - Original Message - 
 From: Walter Lee [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
 To: Tomcat Users List 
tomcat-user@jakarta.apache.orgmailto:tomcat-user@jakarta.apache.org
 Sent: Friday, April 08, 2005 1:05 AM
 Subject: Re: Can you use Tomcat when you are not on line?

 Hi Jim,
 I thought this was going to be the answer, but alas I don't have an option
 exactly like that. The Internet Options/LAN setting states that it does 
not
 apply to dialup. I looked at the setting anyway and it is not checked 
where
 they ask if I am using a proxy server. I couldn't find any other place 
that
 proxy servers are mentioned so I don't have any idea where one could be. I
 will keep trying things.
 Thanks,
  Wally
   - Original Message - 
   From: Sng Wee 
Jimmailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
   To: Tomcat Users 
Listmailto:tomcat-user@jakarta.apache.orgmailto:tomcat-user@jakarta.apache.org
   Sent: Thursday, April 07, 2005 10:06 PM
   Subject: RE: Can you use Tomcat when you are not on line?


   Wally,
   Did you set your Internet Explorer to Bypass proxy server for local
   addresses (Internet Options | Local Area Network (LAN) Settings)?

   Jim
   -Original Message-
   From: Walter Lee [mailto:[EMAIL PROTECTED]
   Sent: Friday, April 08, 2005 3:06 AM
   To: Tomcat Users List; Jason Bainbridge
   Subject: Re: Can you use Tomcat when you are not on line?
   Thanks for responding. My IE is totally up to date. I have changed and
   re-changed all the options for connecting and it does not seem to make
   any difference. I cannot go to Firefox because the company does not want
   to. So I will keep playing around and see what happens. It does not seem
   to be a problem right now.
   Wally
 - Original Message -
 From: Jason
 Bainbridgemailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED]mailto:[EMAIL PROTECTED]
 To: Tomcat Users
 

Re: problem configuring context resource in Tomcat 5.0 for mysql connector/j

2005-04-07 Thread Parsons Technical Services
You need to setup the user in the database. If you log into the database and 
switch to the mysql database. The do a select * from users you will see the 
users are defined with either localhost, %, or an IP. You will need to have 
the javauser setup to use the % (anywhere) or better the IP of the Tomcat 
machine.

OR the user does not have rights to the database you are trying to access.
Doug
- Original Message - 
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, April 07, 2005 7:58 AM
Subject: problem configuring context resource in Tomcat 5.0 for mysql 
connector/j



Im having problems with setting up a database connection pool with mysql
connector/j.
I follow the example code in the how-twos. My problem is that Tomcat seems 
to
pickup my resource and its parameters (kind of)! I would like to connect 
to a
database that is not on localhost. So in the url paremeter I use:

   parameter
 nameurl/name
valuejdbc:mysql://IP_Address:3306/javatest?autoReconnect=true/value
   /parameter

However, when I run the test example I get:
Access denied for user: 'javauser@Tomcat_Machine_IP_address' (Using 
password:
YES)

When I replace the IP address with duff text ie. blahblah I then get the 
error
that blahblah is a n unknownhost exception, which I expect.

This is driving me bonkers and I bet its something simple, I just cant see
it
I have been reading many articles on the net and I have tried a variety of
combinations but to no success! Arrhh!
Setup;
1) Im using the mysql connector/j drivers
2) Using Tomcat 5.0
3) On windows XP (Dev!) which will be deployed to redhat eventually!
4) Using the example on the Tomcat website, I moved the context out of:
CATALINA_HOME\conf\server.xml to:
CATALINA_HOME\conf\Catalina\localhost\DBTest.xml it behaves the same in 
both
cases.

Many thanks in advance.
-
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: still not clear with connection pooling in tomcat

2005-04-06 Thread Parsons Technical Services
No problem.
With a one to one, set up the dataresource in the context element of the 
app.

Place this after your context element. You will need to either declare one 
in the server.xml, in your app war file or create a file yourapp.xml and 
place it in the Tomcat dir:
tomcat_home/conf/Catalina/localhost or the matching host for the app.

Resource name=jdbc/TestDB
  auth=Container
  type=javax.sql.DataSource/
 ResourceParams name=jdbc/TestDB
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namemaxActive/name
 value100/value
   /parameter
   parameter
 namemaxIdle/name
 value30/value
   /parameter
parameter
 namemaxWait/name
 value1/value
   /parameter
parameter
nameusername/name
valuejavauser/value
   /parameter
   parameter
namepassword/name
valuejavadude/value
   /parameter
parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:mysql://localhost:3306/javatest?autoReconnect=true/value
   /parameter
 /ResourceParams
Make sure the resource name= resourceParams name= and the name called out in 
the class I sent in the last email all match including case.
Set the url to match the database name in place of javatest. And use the 
user and password you created for the database.

I create a user in the database and limit the rights to only the one databse 
and with limited rights.

Add this to the web.xml for the app:
  resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/TestDB/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
Again match the res-ref-name to the name used above for the resource.
And that should get things talking if you have set up all the database and 
users.

The above examples are from:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
Good luck.
- Original Message - 
From: Krishnakant Mane [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 8:08 AM
Subject: Re: still not clear with connection pooling in tomcat


never mind doug,
in fact it seams that your asking questions reflects
nothing but professionalism and perfection.  that's
the way to do it.
by the way the relation to databases is one  to one
with web apps.  one web app is going to refer to only
one database.
so that is the way it is going to be.
thanks
Krishnakant.
Send instant messages to your online friends http://uk.messenger.yahoo.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 you use Tomcat when you are not on line?

2005-04-06 Thread Parsons Technical Services
Assuming you are running this under IE:
Tools
Internet Options
Connections (Tab)
Change the setting to the second box.
My guess is that you use a dialup connection. It wants to connect to lookup 
the DNS.
Set it to the second one so it only dials when there is no network 
connection or the first one so that it never dials.
In either case you will either have to change it back or dial manually to 
get back on the Internet.

Doug
- Original Message - 
From: Walter Lee [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 11:44 AM
Subject: Can you use Tomcat when you are not on line?

I have Tomcat installed on W2K and it says it is installed correctly. When I 
try the examples it tells me that I must be on line.  If I am using 
localhost:8080 why does it need to be on line? 


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


Re: Can you use Tomcat when you are not on line?

2005-04-06 Thread Parsons Technical Services
If the browser is set to always dial a connection, it doesn't matter what 
the address is. Even if it is a local file. About the only way it doesn't 
prompt is if you open a html file directly. And sometimes even then it will, 
especially if the sync files setting is turned up. Every time IE opens it 
wants to update the files.

Isn't IE wonderful.
Doug
- Original Message - 
From: Hein Behrens [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 1:28 PM
Subject: Re: Can you use Tomcat when you are not on line?


It is more than likely you browser needs to be told localhost is local.
Go to a command line and ping localhost and see if it works
- Original Message - 
From: Rhino [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 6:42 PM
Subject: Re: Can you use Tomcat when you are not on line?


You are correct. I use Tomcat on XP via localhost:8080 all the time and 
it
works fine. I am using a DSL connection that is on all the time so I
suppose
it is possible that Tomcat is using that somehow but I'd be surprised
Perhaps you should post the exact error message you are getting and some
of
your configuration information so that people can figure out what is
*really* causing your problem.
Rhino
- Original Message - 
From: Walter Lee [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 11:44 AM
Subject: Can you use Tomcat when you are not on line?

I have Tomcat installed on W2K and it says it is installed correctly. 
When
I
try the examples it tells me that I must be on line.  If I am using
localhost:8080 why does it need to be on line?
--
--

No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005
-
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: Using JDBC with 5.5.x

2005-04-05 Thread Parsons Technical Services
I, for one, appreciate the follow up post as I have found several people 
with the same issue as I had, only to have no resolution in the post.

As for the issue not showing up in the log, I think it is more a function 
of the driver sending back the information. Along with, what are you doing 
with the exception when you catch it? If it doesn't show up in the 
exception, then it is an issue of the driver not sending back enough 
information when it throws the exception. So to sum it up, you need to look 
at your own code first. If all is handled there, then turn to the drivers. 
Tomcat is only the messenger in this case. Some one correct me if I am 
wrong.

Don't feel bad, I did the same thing before, twice!
Doug
- Original Message - 
From: Martin Dubuc [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 05, 2005 9:11 AM
Subject: Re: Using JDBC with 5.5.x


I have found the cause of my problem. I am posting it
in case someone would run into the same problem.
The main issue was that I was using a DataSourceRealm
that was pointing to a Resource (under
GlobalNamingResources) that was using a username and
password that was valid but didn't have the right
privilege to access my users database. I found out the
problem after I enabled MySQL logs. The access denied
log showed up in the hostname.log file.
It is unfortunate that the Tomcat logs don't
explicitly state that access to users database was
denied. It took me a while to figure this one out.
The right config to use MySQL to perform
authentication in 5.5.x is:
server.xml:
 GlobalNamingResources
   ...
   Resource name=jdbc/auth
 auth=Container
 type=javax.sql.DataSource
 maxActive=4 maxIdle=30
 maxWait=1
 username=test password=test
 driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/auth?autoReconnect=true/
 /GlobalNamingResources
 ...
 Service name=Catalina
   ...
   Engine name=Catalina defaultHost=localhost
 ...
 Realm
className=org.apache.catalina.realm.DataSourceRealm
dataSourceName=jdbc/auth
userTable=users
userNameCol=user_name
userCredCol=user_pass
userRoleTable=user_roles
roleNameCol=role_name/
 ...
   /Engine
 /Service
where the users databse is defined as:
CREATE TABLE users (
 user_name varchar(12) default NULL,
 user_pass varchar(12) default NULL,
 PRIMARY KEY  (user_name)
) TYPE=MyISAM;
CREATE TABLE roles (
 role_name varchar(12) default NULL,
 PRIMARY KEY  (role_name)
) TYPE=MyISAM;
CREATE TABLE user_roles (
 user_name varchar(12) default NULL,
 role_name varchar(12) default NULL,
 PRIMARY KEY  (user_name, role_name)
) TYPE=MyISAM;
Martin
--- Martin Dubuc [EMAIL PROTECTED] wrote:
I am having some problems using JDBC with 5.5.x
releases. I can use JDBC with 5.0.28, but as soon as
I
switch to 5.5.x, I get the following errors trying
to
connect to database:
Mar 29, 2005 11:26:37 AM
org.apache.catalina.realm.DataSourceRealm open
SEVERE: Exception performing authentication
org.apache.tomcat.dbcp.dbcp.SQLNestedException:
Cannot
create PoolableConnectionFactory (Server connection
failure during transaction. Due to underlying
exception: 'com.mysql.jdbc.CommunicationsException:
Communications link failure due to underlying
exception:
** BEGIN NESTED EXCEPTION **
java.io.EOFException
STACKTRACE:
java.io.EOFException
at
com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1842)
at
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2288)
at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2784)
at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:750)
at
com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3573)
at
com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1151)
at
com.mysql.jdbc.Connection.createNewIO(Connection.java:1889)
at
com.mysql.jdbc.Connection.init(Connection.java:430)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
at
org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
at
org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at
org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:402)
at
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:282)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:256)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:391)
at

Re: still not clear with connection pooling in tomcat

2005-04-05 Thread Parsons Technical Services
I hate to keep asking questions, but I want to make sure to give you the 
correct setup. Other wise you will have to change it later on.

Let's say you have three databases:
data1
data2
data3
And three apps:
app1
app2
app3
If app1 hits data1
and app2 hits data2
and .
You are on a one to one app to database.
If app1 hit data1
and app2 hits data1
and app3 hits data3
and app4 hits data2
You are many to one and one to one.
If you have
app1 hits data1
and app1 hits data2
then you have a special case.
For one to ones you can create you data resource in the context element for 
the app as no other app will need access to the database.
For many to one you will want to put your resource in the server.xml as a 
Globalrsource and links in the context for each app that will access that 
database.
You can have more than one Globalresource.

And here are some class examples for using the datasource.
Servlet for getting connection.
***
package yourPackage;
import java.sql.*;
import javax.naming.*;
import javax.sql.*;
public class Conn {
/**Takes desired database as a string and returns a connection.
*/
public static Connection getConn(String dBase) {
Connection connection = null;
String osName = System.getProperty(os.name);
try {
//Start of Tomcat connect
Context ctx = new InitialContext();
if (ctx == null) {
System.err.println(Conn.getConn ctx is null);
throw new Exception(Boom - No Context);
DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/ + dBase);
if (ds != null)
connection = ds.getConnection();
//End of Tomcat connect
} catch (Exception e) {
System.err.println(Conn.getConn  + e);
}
return connection;
}
}
Class to make db calls

package yourPackage;
import java.sql.*;
public class DBUtil {
/** Retrieves results from query as a DBResults class.
*/
public static DBResults getQueryResults(String query, String dBase) {
Connection connection = Conn.getConn(dBase);
Statement statement = null;
ResultSet resultSet = null;
DBResults dbResults = null;
boolean good = false;
try {
DatabaseMetaData dbMetaData = connection.getMetaData();
String productName = dbMetaData.getDatabaseProductName();
String productVersion = dbMetaData.getDatabaseProductVersion();
statement = connection.createStatement();
resultSet = statement.executeQuery(query);
ResultSetMetaData resultsMetaData = resultSet.getMetaData();
int columnCount = resultsMetaData.getColumnCount();
String[] columnNames = new String[columnCount];
// Column index starts at 1 (a la SQL) not 0 (a la Java).
for (int i = 1; i  columnCount + 1; i++) {
columnNames[i - 1] = resultsMetaData.getColumnName(i).trim();
}
dbResults =
new DBResults(
connection,
productName,
productVersion,
columnCount,
columnNames);
while (resultSet.next()) {
String[] row = new String[columnCount];
// Again, ResultSet index starts at 1, not 0.
for (int i = 1; i  columnCount + 1; i++) {
String entry = resultSet.getString(i);
if (entry != null) {
entry = entry.trim();
}
row[i - 1] = entry;
}
dbResults.addRow(row);
}
good = true;
} catch (SQLException sqle) {
System.err.println(Error connecting:  + sqle);
} finally {
// Always make sure result sets and statements are closed,
// and the connection is returned to the pool
if (resultSet != null) {
try {
resultSet.close();
} catch (SQLException e) {
System.err.println(DataBaseUtilities Error closing resultset:  + e);
}
resultSet = null;
}
if (statement != null) {
try {
statement.close();
} catch (SQLException e) {
System.err.println(DataBaseUtilities Error closing statement:  + e);
}
statement = null;
}
if (connection != null) {
try {
connection.close();
} catch (SQLException e) {
System.err.println(DataBaseUtilities Error closing connection:  + e);
}
connection = null;
}
if (good)
return (dbResults);
else
return (null);
}
}
/** Runs update query.
*/
public static void setUpdate(String query, String dBase) {
Connection connection = Conn.getConn(dBase);
Statement statement = null;
boolean good = false;
try {
statement = connection.createStatement();
statement.executeUpdate(query);
} catch (SQLException sqle) {
System.err.println(Error connecting:  + sqle);
} finally {
// Always make sure statements are closed,
// and the connection is returned to the pool
if (statement != null) {
try {
statement.close();
} catch (SQLException e) {
System.err.println(DataBaseUtilities Error closing statement:  + e);
}
statement = null;
}
if (connection != null) {
try {
connection.close();
} catch (SQLException e) {
System.err.println(DataBaseUtilities Error closing connection:  + e);
}
connection = null;
}
}
}
}

And to handle the data from the resultset that would otherwise be
unaccessable it is places in an DBResults object.

package yourPackage;
import java.sql.*;
import java.util.*;
/** Class to store completed results of a JDBC Query.
* Differs from a ResultSet in several 

Re: Source of tomcat.exe

2005-04-05 Thread Parsons Technical Services
http://jakarta.apache.org/site/downloads/downloads_tomcat.html
Go to the section for your version and the link for the source download is 
towards the bottom.

Doug
- Original Message - 
From: :CI75-Support Technologies collaboratives 
[EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, April 05, 2005 5:37 AM
Subject: Source of tomcat.exe


We use tomcat (4.1 and 5.5) on windows as services.
Is someone knows where we can find the source in C of these executables ?
Thanks



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


Re: Host level JNDI Variable

2005-04-05 Thread Parsons Technical Services
To use pooling provided by Tomcat, one way to do it is to set up four 
Globalresources in the server.xml

Then from your apps call the one you want. You will need the resource link 
in the context for each app for the matching Globalresource.

So set up four globals: dataDev, dataSit, dataUat and dataProd
Place links in the context for apps in the DEV to dataDev
for apps in SIT to dataSit and so on.
Since the connections are established to the database and not the engine, 
each pool is dedicated to that database. So in effect you will be creating a 
pool for each database and then connecting to the appropriate pool. And in 
order to create the pool the database must be specified, so it cannot be 
selected at any point later in the process.

Doug
- Original Message - 
From: Gurumoorthy [EMAIL PROTECTED]
To: [EMAIL PROTECTED] tomcat-user@jakarta.apache.org
Sent: Tuesday, April 05, 2005 8:28 PM
Subject: Host level JNDI Variable

Hi,
   The senario
   I have 4 VIRTUAL HOST on tomcat dev / sit / uat / prod
   Based on host information i need to access different database 
instance
   jdbc:/DEV : for dev
   jdbc:/SIT : for sit
   and so on...
Can anyone let me know how to set the JNDI variable at host level or service 
level ?

Many thanks
Guru 


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


Re: still not clear with connection pooling in tomcat

2005-04-04 Thread Parsons Technical Services
Because there are different versions, and the setup is different, I need 
exact version of Tomcat. What was the file name you downloaded? Was it a 
5.0.xx or 5.5.x for they are different?

Doug
- Original Message - 
From: Krishnakant Mane [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, April 04, 2005 2:16 AM
Subject: Re: still not clear with connection pooling in tomcat


hello doug,
I am sending the following details on the questions
you asked.
and thanks for your help.
I am using mysql as the database back-end and tomcat
version 5.  I have the mysql jdbc the latest stable
version.  and the server is right now going to support
a single application but I plan to serve more apps in
a few days.
Please help me with the info I need.  I will be
obliged if u could give an example.
I am again thankfull to you as you exactly understood
my problem and the confusion I faced with the articles
on the net.
Please provide a servlet based example not a jsp one.
thanks again
Krishnakant
Send instant messages to your online friends http://uk.messenger.yahoo.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: still not clear with connection pooling in tomcat

2005-04-04 Thread Parsons Technical Services
Will more than one of the apps be using the same database? That is the same 
tables and data? Even if they are using the same database engine IE MySQL on 
the server, will it be the same database instance?

Doug
- Original Message - 
From: Krishnakant Mane [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, April 04, 2005 7:25 AM
Subject: Re: still not clear with connection pooling in tomcat


doug,
thanks again for ur response.
Well it is not 5.5. It is 5.0.xx
Thanks
Krishnakant.
Send instant messages to your online friends http://uk.messenger.yahoo.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: still not clear with connection pooling in tomcat

2005-04-03 Thread Parsons Technical Services
In the beginning a programmer created ...
Seriously it goes like this:
To use pooling in Tomcat you can forget a lot of what is in the java api as 
Tomcat uses this to provide pooling for you.

Steps to take:
1.Determine the database you are going to use.
2.Get the JDBC drivers for that database and put them in common/lib
3.Determine if the database pool is going to serve one application or many.
4.If many, set up a Global Resource in server.xml
5.If many, add a resource link to the context for each app
4a. If one, set up a resource in the context.
5a.If one, do nothing.
6.Create a class that makes a call to retrieve the resource from the 
context.
7.From that resource a datasource is received.
8.Ask for a connection from the datasource.
9.Tomcat will give you a connection from the pool it creates when it sets up 
the resource.
10.Use this connection as you would one from a datamanager.
11.Close the connection when you are done and Tomcat will put it back in the 
pool.
12.DO NOT call DataManager as you will bypass the connection pool.

Now after reading this, to help us give you more help please fill in the 
details above on 1,2 and 3.
Give us the exact version of Tomcat.
And OS version.

Doug
- Original Message - 
From: Krishnakant Mane [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Sunday, April 03, 2005 8:47 AM
Subject: RE: still not clear with connection pooling in tomcat


hello all,
Thanks for your help on this issue.
however I still can't get my problem solved.  10
different articles give 10 different solutions.
however my problem is simple.  I have a streight
forward question.
I want to implement connection pooling in the tomcat 5
web container and I have the jakarta commons packages
as well as the mysql jdbc jar file in the proper
place.
I found one good example in the tomcat 5 docs, but it
talks about an example in jsp.  I exclusively use
servlets and I want to know how I use connection
pooling in the servlet.
where do I use the Initial context and where do I
initialise it?  where will the datasource come into
question?  and how I use the connection object with
the datasource?  all this I want to know in context of
a servlet not jsp.
Please help me
and please no more references to other documents I
have read enough of those articles and I am getting
more and more confused.
thanks
Krishnakant.
Send instant messages to your online friends http://uk.messenger.yahoo.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: tomcat 5.5/win loading external image files

2005-04-01 Thread Parsons Technical Services
Tomcat cannot serve up files outside the root of the app. To do what you 
want requires a work around that has been discussed and debated on this list 
several times. If this is what you have to have, then write a servlet that 
responds to a pattern setup for the images 
(http://www.yoursite.com/yourapp/imagefiles/mypic.jpg). Map the servlet to 
answer for any /imagefiles/* request. Then have the servlet parse the file 
name, read from disk (the directory you want) and serve the file out in 
response to the request.

Other options include using a database to store the images or putting the 
images in the app. One other suggestion was to have an app just for images.

It really is just what fits your needs the best and the pros and cons of 
each. IE You can't move this app to a Linux box without a rewrite.

Doug
- Original Message - 
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 01, 2005 10:23 PM
Subject: tomcat 5.5/win  loading external image files


i need to load a bunch of image files located outside my exploded war
file.  for example, say that the images live here
|---c:\myimages
|---\app
|-\promotions
|-\images
 my app is under
|---c:\tomcat5.5
|--\webapps
|\myapp.
the img links are written out dynamically based on an init-param in the
web.xml  javabeans.   the result is that i can get a valid path to the
image resouce looking at the html, but cannot actually load the image.
does anyone know if that's possible on the windows platform (win2k
server)?
thanks

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


Re: Cannot get a connection, pool exhausted

2005-04-01 Thread Parsons Technical Services
Try adding the abandoned connection recovery settings and have it log them. 
If they show in your log as abandoned, then they are not getting closed. 
Even if you wrote the code as recommended, I have found that it does not 
always work. I am still chasing the exact details of this and when I get a 
handle on it I will weigh in on it. I think it has to do with the exact 
ordering in the try catches. For now add these and see what you get. The 
other questions is if you are getting more request than you have connections 
to handle, and how long the code holds the connection. If you are grabbing 
the connection and holding it for a long time in the code, it will not be 
considered to be abandoned.

Doug
- Original Message - 
From: Koller Krisztian [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Friday, April 01, 2005 1:39 PM
Subject: Cannot get a connection, pool exhausted


Hi All!
I'm using Tomcat 5.5 and Mysql 4.1 for an online survey web-application. 
(on
Fedora Core 3)
After some user outfilled the survey, Tomcat hangs with
org.apache.tomcat.dbcp.dbcp.SQLNestedException:  Cannot get a connection,
pool exhausted message.
I'm always close the all rs, stmt and conn components (How described in
doc).

What may be the problem?
Can I query the connection pool of Tomcat? (how many active connection has
it?)
Thanx,
Chris
--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.3 - Release Date: 2004.12.21.

-
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 5.5.7 / windowsXP / access database

2005-03-26 Thread Parsons Technical Services
Luke,
I should have read closer. What you have done is to create a connection 
without pooling. The language in the servlet does not call the resource that 
you created in the server.xml . If you don't need pooling you can remove the 
Global resource. If you want pooling, you need to change the servlet.

As for why all three work, you need to look at your setup.
Is the database protected with a password?
Did you declare a password in the DSN?
Glad you got things working, but I wanted you to know that they were not 
working as you thought.

Doug
- Original Message - 
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Saturday, March 26, 2005 4:27 AM
Subject: Re: tomcat 5.5.7 / windowsXP / access database


Hi,
I've solved the problem.
I needed to declare a 'system-wide' datasource on the windowsXP box.
In adminstrative tools, firstup I declared a user DSN, that has to be
a System DSN,
then it worked.
NOTE: the DriverManager.getConnection() method has a few different
constructors. Once you have the System wide DSN, any of the following
constructors work:
DriverManager.getConnection(jdbc:odbc:db);
DriverManager.getConnection(jdbc:odbc:db,,);
DriverManager.getConnection(jdbc:odbc:db,user,pass);
these all worked regardless of the settings for 'username' and
'password' in server.xml, even deleting those to settings from
server.xml didn't affect access to the access database.
THis was once again confirmed by rebooting the windows box and
(obviously) starting all services again.
Have a great Easter!
Luke
~
Hi,
I've recently started to experiment with tomcat 5.5.7 on windows XP,
trying to access an Access (.mdb) database.
I've set up a datasource in windows administration tools and used the
the tomcat administration (which had to be installed separately) to
configure a datasource in tomcat.
this gave me the following in 'server.xml' under GlobalNamingResources:
___
/
  Resource
name=movies
type=javax.sql.DataSource
password=
driverClassName=sun.jdbc.odbc.JdbcOdbcDriver
maxIdle=2
maxWait=5000
username=
url=jdbc:odbc:movies
maxActive=4/
\___
I then got a servlet going with the following:
___
/
  Connection con = null;
  try {
  // Load the Driver class file
  Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
  out.println(Getting Connection!);
  // Make a connection to the ODBC datasource Movie Catalog
  // In this example we are opening a connection to the
  // database with every request.
  con = DriverManager.getConnection(jdbc:odbc:movies,,);
  if ( con == null ) {
  out.println(no Connection!);
  }
  else {
  out.println(we have a connection);
  }
\___
restarted tomcat and tried but get the following message after an
SqlException is thrown.
___
/
  SQLException -- [Microsoft][ODBC Driver Manager] Data source name
not found and no default
  driver specified
\___
In other words it chokes at:
___
/
  con = DriverManager.getConnection(jdbc:odbc:movies,,);
\___
any hints as to what I'm doing wrong?
thanks,
kind regards,
Luke
--
 /  /  _
/_ /_/ / /=
0421 276 282
 Hi,

 I've recently started to experiment with tomcat 5.5.7 on windows XP,
 trying to access an Access (.mdb) database.
 I've set up a datasource in windowsXP administration tools and used
 the the tomcat administration (which had to be installed separately)
 to configure a datasource in tomcat.

 this gave me the following in 'server.xml' under GlobalNamingResources:
 ___
 /
   Resource
 name=movies
 type=javax.sql.DataSource
 password=
 driverClassName=sun.jdbc.odbc.JdbcOdbcDriver
 maxIdle=2
 maxWait=5000
 username=
 url=jdbc:odbc:movies
 maxActive=4/
 \___

 I then got a servlet going with the following:
 ___
 /
   Connection con = null;
   try {
   // Load the Driver class file
   Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
   out.println(Getting Connection!);
   // Make a connection to the ODBC datasource Movie Catalog
   // In this example we are opening a connection to the
   // database with every request.
   con = DriverManager.getConnection(jdbc:odbc:movies,,);
   if ( con == null ) {
   out.println(no Connection!);
   }
   else {
   out.println(we have a connection);
   }
 \___

 restarted tomcat and tried but get the following message after an
 SqlException is thrown.
 ___
 /
   SQLException -- [Microsoft][ODBC Driver Manager] Data source name
 not found and no default
   driver specified
 \___

 In other words it chokes at:
 ___
 /
   con = DriverManager.getConnection(jdbc:odbc:movies,,);
 \___

 any hints as to what I'm doing wrong?

 thanks,
 kind regards,
 Luke

 --
  /  /  _
 

Re: tomcat 5.5.7 / windowsXP / access database

2005-03-25 Thread Parsons Technical Services
Check to see if you have a resource link in your context.xml .
Without it your app can't see the resource.
Doug
- Original Message - 
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Saturday, March 26, 2005 2:15 AM
Subject: tomcat 5.5.7 / windowsXP / access database


Hi,
I've recently started to experiment with tomcat 5.5.7 on windows XP,
trying to access an Access (.mdb) database.
I've set up a datasource in windowsXP administration tools and used
the the tomcat administration (which had to be installed separately)
to configure a datasource in tomcat.
this gave me the following in 'server.xml' under GlobalNamingResources:
___
/
  Resource
name=movies
type=javax.sql.DataSource
password=
driverClassName=sun.jdbc.odbc.JdbcOdbcDriver
maxIdle=2
maxWait=5000
username=
url=jdbc:odbc:movies
maxActive=4/
\___
I then got a servlet going with the following:
___
/
  Connection con = null;
  try {
  // Load the Driver class file
  Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
  out.println(Getting Connection!);
  // Make a connection to the ODBC datasource Movie Catalog
  // In this example we are opening a connection to the
  // database with every request.
  con = DriverManager.getConnection(jdbc:odbc:movies,,);
  if ( con == null ) {
  out.println(no Connection!);
  }
  else {
  out.println(we have a connection);
  }
\___
restarted tomcat and tried but get the following message after an
SqlException is thrown.
___
/
  SQLException -- [Microsoft][ODBC Driver Manager] Data source name
not found and no default
  driver specified
\___
In other words it chokes at:
___
/
  con = DriverManager.getConnection(jdbc:odbc:movies,,);
\___
any hints as to what I'm doing wrong?
thanks,
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]


Re: Redirect from one SSL port to another

2005-03-24 Thread Parsons Technical Services
This might work:
http://www.boutell.com/rinetd/
Ran across it on Google
Doug
- Original Message - 
From: Jason Bainbridge [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, March 24, 2005 12:11 PM
Subject: Redirect from one SSL port to another


Currently we are running a pilot of Tomcat (alongside Jrun+IIS) where
Tomcat is on port 8443 using https and IIS is on port 443. We are
getting close to moving Tomcat into Production use disabling IIS +
Jrun and are looking at ways to easily redirect users from 8443 to 443
so the users of the pilot don't have to change URL's within email
notifications they have received from the system.
At first I thought setting an additional Connector port for 8443 with
a redirectPort to 443 was a good idea but if you don't add in all the
addtional SSL stuff it won't respons to https requests and if you do
add in the SSL stuff then the redirectPort doesn't get used and it
just sticks to 8443.
Does anyone know of an easy way to do this within Tomcat? I'm thinking
I might have to setup a separate Tomcat instance listening on port
8443 and setup redirects there but then again I could be missing
something obvious.
Cheers,
--
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]


  1   2   3   4   5   6   >